:root {
  --menu-width: 430px;
  --main-header-height: 150px;
  --main-header-height-mobile: 70px;
  --transition-time-fullscreen: 0.3s;
  --mobile-model-height: 45vh;
}

/****************************************/
/***   --- progress bar styles ---    ***/
/****************************************/

#loader-container {
  position: fixed;
  margin: 0;
  padding: 0;
  top: 0;
  right: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 30;
}

#loader-container.loader-hidden {
  display: none !important;
}

#loader-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
}

#loader-content {
  position: relative;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333;
  font-family: Arial, sans-serif;
  transform: translateY(50px);
}

#loader-gif {
  width: 256px;
  height: 256px;
  margin-bottom: 20px;
}

#loader-text {
  font-size: 16px;
  text-align: center;
}

#loading-screen-logo {
  display: flex;
  width: 256px;
  height: 256px;
}

#progress-bar-container {
  width: 250px;
  height: 10px;
  background-color: #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 10px;
}

#progress-bar {
  width: 0%;
  height: 100%;
  background-color: rgba(92, 105, 88, 1);
  border-radius: 5px;
  transition: width 0.2s ease-out;
}

#progress-percent {
  font-size: 14px;
  font-weight: bold;
}

/****************************************/
/***   --- MODEL VIEWER STYLES ---    ***/
/****************************************/

#ar-prompt {
  position: absolute;
  left: 50%;
  bottom: 60px;
  animation: 2s ease-in-out 0s infinite alternate none running elongate;
  animation-duration: 2s;
  animation-timing-function: ease-in-out;
  animation-delay: 0s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-fill-mode: none;
  animation-play-state: running;
  animation-name: elongate;
  display: none;
}

@keyframes elongate {
  from {
    transform: translateX(100px);
  }

  to {
    transform: translateX(-100px);
  }
}

@keyframes circle {
  from {
    transform: translateX(-50%) rotate(0deg) translateX(50px) rotate(0deg);
  }

  to {
    transform: translateX(-50%) rotate(360deg) translateX(50px) rotate(-360deg);
  }
}

#ar-prompt>img {
  animation: circle 4s linear infinite;
}

model-viewer {
  width: 100%;
  height: 100%;
}

/****************************************/
/***   --- DEFAULT MENU STYLES ---    ***/
/****************************************/

.ar_filter .ar_filter_group .ar_filter_inputs.type_range .option,
.ar_filter .ar_filter_group .ar_filter_options .option.hide_when_disabled.disable_filter,
.ar_filter .ar_filter_group .ar_filter_options .option.hide_when_disabled.disabled,
.ar_filter .ar_filter_group .ar_filter_options.type_select_no_photo .option .image,
.ar_filter .ar_filter_group .ar_filter_options.type_dropdown .option,
.ar_filter .ar_filter_group .ar_filter_options.type_range .option,
.ar_filter .ar_filter_group .ar_filter_options .option.hidden,
.ar_filter .ar_filter_group .ar_filter_options.closed,
.ar_filter .ar_filter_group.disabled,
.hidden_option,
.include_group,
.include_item,
.exclude_group,
.exclude_item {
  display: none;
}

.ar_filter .ar_filter_group .ar_filter_options .option.disabled *,
.ar_filter .ar_filter_group .ar_filter_options .option.disable_filter *,
.ar_filter .ar_filter_group .ar_filter_options.type_checkbox .option.disabled,
.ar_filter .ar_filter_group .ar_filter_options.type_checkbox .option.disabled .image,
.ar_filter .ar_filter_group .ar_filter_options.type_checkbox .option.disable_filter,
.ar_filter .ar_filter_group .ar_filter_options.type_checkbox .option.disable_filter .image,
.ar_filter .ar_filter_group .ar_filter_options.type_checkbox .option.disabled .component_title,
.ar_filter .ar_filter_group .ar_filter_options.type_checkbox .option.disable_filter .component_title,
.ar_filter .ar_filter_group .ar_filter_options.type_select .option.disable_filter .image,
.ar_filter .option.disabled {
  cursor: auto;
  pointer-events: none;
}

.ar_filter .ar_filter_options.type_select .option.disable_filter .ar_option_description_tooltip {
  cursor: pointer;
  pointer-events: all;
}

.ar_filter .ar_filter_group .ar_filter_options .option.disable_filter .ar_option_description_tooltip,
.ar_filter .ar_filter_group .ar_filter_options .option.disabled .ar_option_description_tooltip {
  pointer-events: auto;
}


/*******************************************/
/*** --- MAIN 3D-CONFIGURATOR STYLES --- ***/
/*******************************************/

.ar_conf_container * {
  box-sizing: border-box;
}

.ar_conf_container {
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: flex-start;
}

.ar_model_viewer_sticky_container {
  flex-grow: 1;
  height: calc(100vh - var(--main-header-height));
  position: sticky;
  top: var(--main-header-height);
  overflow: visible;
}

.ar_model_viewer {
  position: absolute;
  top: 0;
  height: 100%;
  width: calc(100vw + var(--menu-width));
  left: calc(-1 * var(--menu-width));
  transition: left var(--transition-time-fullscreen) ease;
}

.ar_model_canvas_visible_area {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  transition: all var(--transition-time-fullscreen) ease;
  pointer-events: none;
}

.ar_model_viewer canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.ar_model_view {
  width: 100%;
  height: 100%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.menu_wrapper {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  width: var(--menu-width);
  max-width: 100%;
  min-width: inherit !important;
  background-color: #fff;
  opacity: 0.85;
  transform: rotateY(0deg);
  transform-origin: center right;
  transition: all var(--transition-time-fullscreen) ease;
}

.ar_filter * {
  box-sizing: border-box;
}

.ar_filter {
  width: 100%;
  position: relative;
  padding: 20px;
  flex-grow: 1;
}

.ar_filter .ar_filter_group {
  display: flex;
  flex-direction: column;
}

/* ------ FULLSCREEN ------ */
.fullscreen_btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  pointer-events: all;
  transition: all var(--transition-time-fullscreen) ease;
}

.fullscreen_btn .icon_collapse {
  display: none;
}

/* ------ FULLSCREEN (ACTIVE) ------ */
.ar_conf_container.fullscreen-active .ar_model_canvas_visible_area {
  width: calc(100% + var(--menu-width));
}

.ar_conf_container.fullscreen-active .menu_wrapper {
  transform: rotateY(-90deg);
  opacity: 0;
  pointer-events: none;
}

.ar_conf_container.fullscreen-active .ar_model_viewer {
  left: calc(var(--menu-width) / -2);
}

.ar_conf_container.fullscreen-active .fullscreen_btn {
  transform: rotateZ(180deg);
}

.ar_conf_container.fullscreen-active .fullscreen_btn .icon_expand {
  display: none;
}

.ar_conf_container.fullscreen-active .fullscreen_btn .icon_collapse {
  display: block;
}

/****************************************/
/*** --- MOBILE / PORTRAIT STYLES --- ***/
/****************************************/

@media (orientation: portrait) {
  .ar_conf_container {
    display: block;
  }

  .ar_model_viewer_sticky_container {
    position: sticky;
    top: var(--main-header-height-mobile);
    height: calc(100svh - var(--main-header-height-mobile));
    width: 100%;
    z-index: 20;
    background-color: transparent;
    pointer-events: none;
  }
  
  .ar_model_canvas_visible_area {
    width: 100%;
    height: var(--mobile-model-height);
  }

  .ar_model_viewer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--mobile-model-height);
    pointer-events: auto;
    transition: top 0.6s ease;
    transform: none;
  }

  .menu_wrapper {
    width: 100%;
    z-index: 10;
    min-height: calc(100svh - var(--mobile-model-height));
    transform: none;
    opacity: 1;
    margin-top: calc(var(--mobile-model-height) - (100svh - var(--main-header-height-mobile)));
    transition: opacity 0.6s ease;
  }

  .fullscreen_btn {
    top: auto;
    bottom: 15px;
    right: 15px;
    transform: none;
  }

  /* ------ FULLSCREEN (MOBILE) ------ */
  .ar_conf_container.fullscreen-active .ar_model_viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    z-index: 100;
    box-shadow: none;
    border-radius: 0;
  }

  .ar_conf_container.fullscreen-active .ar_model_canvas_visible_area {
    width: 100%;
    height: 100%;
    z-index: 110;
  }

  .ar_conf_container.fullscreen-active .menu_wrapper {
    opacity: 0;
    pointer-events: none;
  }

  .ar_conf_container.fullscreen-active .fullscreen_btn {
    transform: none;
    bottom: 20px;
    right: 20px;
  }
}

/*******************************************************/
/***                 --- CHECK IT ---                ***/
/*******************************************************/

.ar_filter .ar_filter_group .ar_filter_header {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 16px;
  cursor: pointer;
}

.ar_filter .ar_filter_group .ar_filter_number {
  color: black;
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.ar_filter .ar_filter_group .ar_filter_options_result_caption {
  color: var(--marevo-config-color-gray-light);
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-transform: uppercase;
  margin-bottom: 8px;
}





/*******************************************************/
