/* LATE FONT INJECTION FROM S3 TO BYPASS STAGING CORS AND LOAD CORRECT FONTS */
@font-face {
  font-family: "SF Pro Display";
  src: url("https://s3.eu-central-1.amazonaws.com/marevo.vision/Web/admin_configurator_base/prorace/SF-Pro-Display-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro Display";
  src: url("https://s3.eu-central-1.amazonaws.com/marevo.vision/Web/admin_configurator_base/prorace/SF-Pro-Display-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro Text";
  src: url("https://s3.eu-central-1.amazonaws.com/marevo.vision/Web/admin_configurator_base/prorace/SF-Pro-Text-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {}

/* Safety: make sure groups don't clip their children popovers */
.ar_filter .ar_filter_group {
  overflow: visible;
}

.configurator3d_post,
.configurator3d_post .ar_model_viewer,
.ar_model_viewer,
.configurator3d_post canvas,
.ar_model_viewer canvas {
  background-color: #F5F5F5 !important;
}

.disabled {
  /* display: none !important; */

  >.image {
    content: "";
  }
}

:root {
  --menu-plus-icon: url('https://staging.prorace.be/wp-content/uploads/2025/09/PlusIcon.svg');
  --menu-bicycle-icon: url('https://staging.prorace.be/wp-content/uploads/2025/09/iconoir_bicycle.svg');

  --menu-minus-icon: url('https://staging.prorace.be/wp-content/uploads/2025/09/Vector-22.svg');
  --menu-color-icon: url('https://staging.prorace.be/wp-content/uploads/2025/09/material-symbols-light_colors.svg');
  --menu-cockpit-icon: url('https://staging.prorace.be/wp-content/uploads/2025/09/Frame.svg');
  --menu-wheel-icon: url('https://staging.prorace.be/wp-content/uploads/2025/09/fluent-emoji-high-contrast_wheel.svg');
  --menu-saddle-icon: url('https://staging.prorace.be/wp-content/uploads/2025/09/Frame-1-1.svg');
  --menu-acc-icon: url('https://staging.prorace.be/wp-content/uploads/2025/09/Frame-2147226867.svg');
  --menu-group-icon: url('https://staging.prorace.be/wp-content/uploads/2025/09/image-5.svg');
  --menu-tofla-img: url('https://staging.prorace.be/wp-content/uploads/2025/09/image.svg');
  --menu-cura-img: url('https://staging.prorace.be/wp-content/uploads/2025/11/image-3.svg');
  --menu-batalla-img: url('https://staging.prorace.be/wp-content/uploads/2025/11/image-2.svg');
  --menu-cart-img: url('https://staging.prorace.be/wp-content/uploads/2025/09/marevo-icon-cart.svg.svg');
  --menu-wheel-img: url('https://staging.prorace.be/wp-content/uploads/2025/09/image-1.svg');
  --menu-arrow-img: url('https://staging.prorace.be/wp-content/uploads/2025/09/solar_alt-arrow-down-line-duotone.svg');
  --menu-arrowButton-img: url('https://staging.prorace.be/wp-content/uploads/2025/09/Vector-21.svg');
  --menu-info-img: url('https://staging.prorace.be/wp-content/uploads/2025/09/Vector-23.svg');
  /* --menu-close-img: url('https://staging.prorace.be/wp-content/uploads/2025/09/marevo-icon-info.svg.png'); */
  --menu-leftBtn-icon1: url('https://staging.prorace.be/wp-content/uploads/2025/09/marevo-icon-ar.svg.svg');
  --menu-leftBtn-icon2: url('https://staging.prorace.be/wp-content/uploads/2025/09/marevo-icon-share.svg.svg');
  --menu-leftBtn-icon3: url('https://staging.prorace.be/wp-content/uploads/2025/09/system-uicons_fullscreen.svg');
  --menu-leftBtnHover-icon1: url('https://staging.prorace.be/wp-content/uploads/2025/09/marevo-icon-ar.svg-3.svg');
  --menu-leftBtnHover-icon2: url('https://staging.prorace.be/wp-content/uploads/2025/09/marevo-icon-share.svg-2.svg');
  --menu-leftBtnHover-icon3: url('https://staging.prorace.be/wp-content/uploads/2025/09/Group-24-1.svg');
}


/* REDU INITIAL STYLE */
body {
  background-color: #F5F5F5;
  /* font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif; */
  font-family: SF Pro Display !important;
}

.ar_filter {
  /* border-radius: 25px; */
  /* background-color: #F5F5F5; */
  display: flex;
  /* position: absolute; */
  right: 0px;
  flex-direction: column;
  gap: 20px;
  max-width: 392px;
  margin: 30px;
  margin-left: 0px;
  overflow-y: auto;
  height: 85vh;

  >:last-child {
    margin-bottom: 100px;
  }
}

/* Sticky header inside the scrolling filter: keeps custom-block and price block visible */
.ar_filter_sticky_header {
  position: sticky;
  top: 0;
  z-index: 10;
  /* padding-bottom: 16px; */
  background-color: #F5F5F5;
  padding-bottom: 20px;
}

.ar_filter::-webkit-scrollbar {
  width: 3px;
}

.ar_filter .ar_filter_group {
  border-top: none;
  padding-top: 0px;
}

.ar_filter .ar_filter_group .ar_filter_options.type_select_no_photo .option.active {
  transition: 0.5s;

  .component_title {
    color: white;
    text-align: center;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    background: #000;
    transition: 0.5s;
  }

  .component_title::before {
    display: none;
  }

}

.ar_filter .ar_filter_group .ar_filter_options.type_select .option.active .image::before {
  display: none;
}

.ar_filter .ar_filter_group .ar_filter_options.type_select .option.active .image {
  border: none;
}

.ar_filter_options.type_select {
  .active {
    .component_title {
      font-size: xx-large;

    }
  }
}

.ar_conf_container {
  background: rgba(245, 245, 245, 1);
}

.ar_filter_header {
  border-radius: 10px;
}

.ar_filter_header {
  padding: 0px;
}

.ar_summary {
  display: none !important;
}

.ar_filter .option.active .ar_option_description_tooltip {
  width: 100%;
  height: 100%;
  content: ''
}

.ar_filter .ar_option_description_tooltip {
  width: 100%;
  height: 100%;
  content: ''
}

.ar_filter .ar_filter_group .ar_filter_options.type_select .option .component_title {
  font-size: 14px !important;
}

.ar_filter_group {
  margin-bottom: 50px;
  position: relative;

  .ar_filter_options.type_select {
    margin-bottom: 0px;
  }

}

.ar_option_description {
  width: max-content;
}

/* END INITIAL STYLE REDU */


/* PRICE */

.subtotal_caption {
  display: none;
}

.quantity {
  display: none;
}

.ar_result_container {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  align-items: center;
}

#ar-currency {
  display: none;
}

#ar-currency_code {
  display: none;
}

#ar-locale {
  display: none;
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button.alt {
  background: linear-gradient(90deg, #324169 0%, #B23A48 100%) !important;
  padding: 14px 30px;
  border-radius: 50px;
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: center;
  font-family: SF Pro Display;
  font-weight: 400;
  font-style: Regular;
  font-size: 18px;
  line-height: 100%;
  letter-spacing: 0%;
}

button.single_add_to_cart_button.button.alt::before {
  content: '';
  width: 26px;
  height: 26px;
  margin-right: 10px;
  background: var(--menu-cart-img) center / contain no-repeat;
  display: block;
}

.single_add_to_cart_button {
  padding: 12px 14px !important;
  color: white !important;
}

.ar_price_amount {
  font-family: SF Pro Display;
  font-weight: 500 !important;
  font-style: Medium;
  font-size: 24px !important;
  line-height: 100%;
  letter-spacing: 0%;
}

/* END OF PRICE */

.custom-block {
  font-family: SF Pro Display;

  h2 {
    font-weight: 500;
    font-size: 28px;
    /* leading-trim: NONE; */
    line-height: 100%;
    letter-spacing: 0%;
  }

  p {
    font-weight: 400;
    font-style: Regular;
    font-size: 14px;
    /* leading-trim: NONE; */
    line-height: 140%;
    letter-spacing: 0%;
  }

}


.configurator3d_post_cover {
  display: none;
}

.viewer-loader {
  position: absolute;
  display: none;
  width: 864px;
  height: 864px;
  top: calc(50svh - var(--header-height, 0px));
  left: 50vw;
  transform: translate(-50%, -50%);
  background-color: #F5F5F5;
  z-index: 6;
}

@media only screen and (max-width: 778px),
(orientation: portrait) {
  .viewer-loader {
    width: 100vw;
    height: 100vw;
  }
}

.viewer-loader img {
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  object-fit: contain;
}

.viewer-loader-img {
  content: var(--marevo-config-img-loader);
  width: 100%;
  height: 100%;
}

.ar_conf_container .main_menu {
  width: 380px;
  padding: 20px 10px 16px 16px;
  border-left: 1px solid #eee;
  background: transparent;
}

/* === Desktop overlay: scene under the menu === */
@media (min-width: 957px) {
  .ar_conf_container {
    position: relative;
  }

  /* 3D займає всю ширину; меню плаває зверху праворуч */
  .configurator3d_post .ar_model_viewer {
    order: 1;
    flex: none;
    min-width: 0;
    width: 100% !important;
  }

  .ar_conf_container .main_menu {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: clamp(340px, 26vw, 420px);
    z-index: 5;
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.0);
    /* прозора панель */
    border-left: 1px solid rgba(0, 0, 0, 0.06);
    backdrop-filter: saturate(1.05) blur(4px);
    /* легка читабельність (якщо підтримується) */
  }
}

#group-7 .ar_filter_header,
#group-14 .ar_filter_header {
  display: flex !important;
}

.ar_filter .ar_filter_group {
  background: rgba(255, 255, 255, 0.88);
  /* border-radius: 12px; */
  /* margin: 10px 8px; */
  /* overflow: hidden; */
}

.ar_filter .ar_filter_group+.ar_filter_group {
  /* margin-top: 12px; */
  border-radius: 10px;
}

.ar_filter .ar_filter_group .ar_filter_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* border: 1px solid #ececec; */
  /* gap: 10px; */
  /* padding: 18px 16px; */
  cursor: pointer;
  user-select: none;
  margin: 0px;
}

.ar_filter .ar_filter_group .ar_filter_header::before {
  content: '';
  width: 40px;
  height: 28px;
  /* margin-right: 10px; */
  background: var(--menu-bicycle-icon) center/contain no-repeat;
}

.ar_filter .ar_filter_group_25 .ar_filter_header::before {
  height: 30px;
}

.ar_filter .ar_filter_group_27 .ar_filter_header::before {
  height: 26px;
}

.ar_filter .ar_filter_group_29 .ar_filter_header::before {
  height: 26px;
}

.ar_filter .ar_filter_group .ar_filter_caption {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px !important;
  font-family: SF Pro Display;
  font-weight: 500;
  font-style: normal;
  font-size: 20px;
  line-height: 100%;
  letter-spacing: 0%;
  color: #000;
  white-space: nowrap;
}

/* .ar_filter .ar_filter_group .ar_filter_header::after {
    content: '';
    width: 22px;
    height: 22px;
    background: var(--menu-plus-icon) center/contain no-repeat;
    margin: 9px;
} */

.ar_filter .ar_filter_group .ar_filter_header[aria-expanded="true"]::after {
  background: var(--menu-minus-icon) center/contain no-repeat;
}

/* .ar_filter .ar_filter_group.active .ar_filter_header::after {
    background: var(--menu-plus-icon) center/contain no-repeat;
    border-radius: 50%;
} */


#group-7 .ar_filter_header::before,
#group-14 .ar_filter_header::before,
#group-15 .ar_filter_header::before {
  background-image: var(--footer_color_b);
}

#group-22 {
  &>:first-child {
    /* margin-bottom: 50px; */
  }

  .ar_filter_options.type_select {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    align-items: self-start;

    &>* {
      max-width: 110px;

      .component_title {
        font-family: SF Pro Display;
        font-weight: 500;
        font-style: Medium;
        font-size: 14px;
        line-height: 120%;
        letter-spacing: 0%;
        text-align: center;
        margin-top: 10px;
        height: 60px !important;
        min-height: fit-content;
        width: 100%;
        transition: 0s;
      }

      .image.ar_no_image {
        background-image: var(--menu-wheel-img);
        background-repeat: no-repeat;
        background-position: center center;
        width: 114px;
        height: 76px !important;
        padding: 7px;
        border: 1px solid rgba(197, 197, 197, 1)
      }
    }


    .active {
      .component_title {
        font-family: SF Pro Display;
        font-weight: 600;
        font-style: Semibold;
        font-size: 13px !important;
        line-height: 120%;
        letter-spacing: 0%;
        text-align: center;
      }

      .image.ar_no_image {
        background-image: var(--menu-wheel-img);
        background-repeat: no-repeat;
        background-position: center center;
        width: 114px;
        height: 76px !important;
        padding: 7px;
        border: 1px solid rgba(119, 118, 118, 1);
      }
    }
  }

}

#group-23 {
  margin-bottom: 0px !important;
}

#group-8 .component_title {
  margin-top: 10px;
}

#group-16,
#group-17,
#group-23,
#group-35,
#group-26,
#group-28,
#group-30,
#group-39 {
  .ar_filter_caption {
    margin-bottom: 14px;
  }

  .ar_filter_options_result {
    margin-top: 0px;
  }

  select {
    display: block !important;
    justify-content: space-between;
    opacity: 1;
    border-radius: 30px !important;
    padding: 10px 14px !important;
    padding-right: 18px;
    background: rgba(245, 245, 245, 1);
    border: none !important;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    /* ставимо свою іконку-стрілку */
    background-image: var(--menu-arrow-img);
    background-repeat: no-repeat;
    background-position: right 10px center;
    /* куди ставити стрілку */
    background-size: 17px 17px;
  }

  .ar_filter_caption {
    margin-bottom: 0px;
  }

  &>:first-child {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;

    &>:last-child {
      width: 100%;
      text-align: center;
      display: flex;
      justify-content: end;
      align-items: center
    }
  }

  .ar_filter_inputs.type_dropdown {
    margin-bottom: 0px;
  }
}

.cd-label {
  max-width: 90%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cd-price {
  text-align: end;
  width: 30%;
  /* display: none; */
}

/* Group 28 dropdown: show price inside the list item, aligned to the right of the name */
#group-28 .cd-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

#group-28 .cd-option .cd-label {
  flex: 1 1 auto;
  min-width: 0;
}

/* #group-28 .cd-option .cd-price {
    margin-left: auto;
    font-family: SF Pro Display;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    color: rgba(119, 118, 118, 1);
} */

/* Custom dropdown selected head: keep price on a single line */
.custom-dropdown .cd-selected {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

/* Price in the selected head: never wrap to the next line */
.custom-dropdown .cd-selected-price {
  flex-shrink: 0;
  white-space: nowrap;
  margin-left: 0.4em;
  display: none;
}

/* Label (name) inside selected head: truncate with ellipsis if too long */
.custom-dropdown .cd-selected-label {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Group 28: show Price in the same line as name, aligned to the right */

.ar_filter .ar_filter_group .ar_filter_options.type_select .option {
  min-height: 110px;
  width: auto;
  transition: 0.5s;
}

.ar_conf_container {
  display: flex !important;
  flex-wrap: nowrap !important;
}

.configurator3d_post .ar_model_viewer {
  order: 1;
  flex: 1 1 auto;
  min-width: 0;
}

.ar_conf_container .main_menu {
  order: 2;
  flex: 0 0 380px;
  width: 380px !important;
  float: none !important;
  margin-left: auto;
  align-self: stretch;
}



.ar_model_viewer {
  width: 100%;
  height: 90vh;
}

.ar_filter_number {
  display: none;
}

.ar_filter_options {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.ar_filter_header {
  background: rgba(255, 255, 255, 0.9);
}

#group-2,
#group-10,
#group-15,
#group-21,
#group-25,
#group-27,
#group-29 {
  padding: 16px;
  margin-bottom: 0px;

  >.ar_filter_options.type_select {
    display: none;
  }

  &>:first-child {
    .ar_filter_caption {
      font-size: 22px !important;
    }

    .ar_filter_caption {
      font-weight: 500 !important;
    }
  }
}

/* Subtle left nudge (bounce) on hover/focus for key groups (container itself) */
#group-2,
#group-10,
#group-15,
#group-21,
#group-25,
#group-27,
#group-29 {
  will-change: transform;
  transition: 0.5s;
}

@keyframes nudge-left {
  0% {
    transform: translateY(0);
  }

  60% {
    transform: translateY(6px);
  }

  85% {
    transform: translateY(2px);
  }

  100% {
    transform: translateY(4px);
  }
}

/* Respect user reduced motion preferences */
@media (prefers-reduced-motion: reduce) {

  /* No effect for OPEN groups */
  #group-2.active:hover,
  #group-10.active:hover,
  #group-15.active:hover,
  #group-21.active:hover,
  #group-25.active:hover,
  #group-27.active:hover,
  #group-29.active:hover {
    animation: none;
    transform: none;
  }
}

#group-9,
#group-33,
#group-37,
#group-34 {
  flex-direction: column;
  padding: 16px;
  margin-bottom: 0px;
  margin-top: -50px;

  .ar_filter_options {
    gap: 9px;
  }

  .component_title {
    border: 1px solid #C5C5C5 !important
  }
}

.group_custom_id-frame_1,
#group-11,
#group-16,
#group-22,
#group-26,
#group-28,
#group-30,
#group-39 {
  margin-top: 20px;
  /* margin-bottom: 0px; */
}

#group-10 {
  font-family: SF Pro Display;
  font-weight: 400;
  font-style: Regular;
  font-size: 16px !important;
  line-height: 100%;
  letter-spacing: 0%;

  .ar_filter_options_result_list {
    padding-top: 4px;
  }


  > :first-child::before {
    background: var(--menu-color-icon) center / contain no-repeat;
  }

  & button {
    display: flex;
    justify-content: flex-end;
    font-size: 14px;

    &::after {
      content: "";
      display: inline-block;
      margin-left: 3px !important;
      width: 15px;
      height: 15px;
      background: var(--menu-arrowButton-img) center / contain no-repeat;
      margin-left: auto;
      transition: transform .5s ease;
    }

    &[aria-expanded="true"]::after {
      transform: rotate(180deg);
    }
  }

}

#group-15 {
  > :first-child::before {
    background: var(--menu-cockpit-icon) center / contain no-repeat;
  }

  .component_title {
    margin-top: 10px;
  }
}

#group-21 {
  > :first-child::before {
    background: var(--menu-wheel-icon) center / contain no-repeat;
  }
}

#group-25 {
  > :first-child::before {
    background: var(--menu-saddle-icon) center / contain no-repeat;
  }
}

#group-27 {
  > :first-child::before {
    background: var(--menu-acc-icon) center / contain no-repeat;
  }
}

#group-29 {
  > :first-child::before {
    background: var(--menu-group-icon) center / contain no-repeat;
  }
}

.option_8-0,
.option_8-1,
.option_8-2 {

  /* padding: 5px; */
  .image.ar_no_image {
    width: 105px;
    height: 62px;
    background-repeat: no-repeat;
    background-position: center center;
  }
}

.option_8-0 {
  .image.ar_no_image {
    background-image: var(--menu-tofla-img);
  }
}

.option_8-1 {
  .image.ar_no_image {
    background-image: var(--menu-cura-img);
  }
}

.option_8-2 {
  .image.ar_no_image {
    background-image: var(--menu-batalla-img);
  }
}

.ar_filter .ar_filter_group .ar_filter_options.type_select .option.disabled .image::before {
  content: ' ' !important
}

.ar_filter_options_result_list {
  /* padding-top: 4px; */
}

#group-7 {
  margin-bottom: 50px;

  .component_title {
    padding: 12px 23px;
    font-weight: 400;
    size: 14px;
    width: 64px;
  }

  .custom-config {
    margin-top: 12px;
    font-family: inherit;
  }

  .config-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* текст зліва, інпут справа */
    gap: 12px;
  }

  .config-label {
    font-size: 16px;
    flex: 1;
    font-family: SF Pro Display;
    font-weight: 500;
    font-style: Medium;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
  }

  .config-input {
    flex: 0 0 174px;
    padding: 6px 10px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    border-radius: 30px;
    background: rgba(245, 245, 245, 1);
  }

  .config-note {
    margin-top: 8px;
    font-family: SF Pro Display;
    font-weight: 400;
    font-style: Regular;
    font-size: 12px;
    line-height: 100%;
    letter-spacing: 0%;
  }

  .ar_filter_options.type_select_no_photo {
    margin-bottom: 0px;
    margin-top: 0px;
  }

  .ar_filter_options_result {
    position: absolute;
    right: 0px;
    top: 17px;
  }

  .ar_option_description_tooltip {
    content: var(--menu-info-img) !important;
    width: auto !important;
    height: auto !important;
    border-radius: 30px;
    background-color: white;
  }

}

#group-7> :first-child {
  display: flex;
  flex-direction: column;
}


#group-9> :first-child {
  display: flex;
  flex-direction: column;

  .ar_filter_options.type_select {
    justify-content: flex-start !important;
  }

  .component_title {
    border: 1px solid rgba(197, 197, 197, 1);
  }
}

#group-33> :first-child {
  display: flex;
  flex-direction: column;

  .ar_filter_options.type_select {
    justify-content: flex-start !important;
  }

  .component_title {
    border: 1px solid rgba(197, 197, 197, 1);
  }
}

#group-34> :first-child {
  display: flex;
  flex-direction: column;

  .ar_filter_options.type_select {
    justify-content: flex-start !important;
  }

  .component_title {
    border: 1px solid rgba(197, 197, 197, 1);
  }
}

#group-37> :first-child {
  display: flex;
  flex-direction: column;

  .ar_filter_options.type_select {
    justify-content: flex-start !important;
  }

  .component_title {
    border: 1px solid rgba(197, 197, 197, 1);
  }
}

#group-11> :first-child,
#group-31> :first-child,
#group-32> :first-child {
  display: flex;
  /* padding-right: 16px; */
  justify-content: space-between;
  flex-direction: column;

  .ar_filter_caption {
    width: auto;
    font-family: SF Pro Display;
    font-weight: 600;
    font-style: Medium;
    font-size: 22px;
    line-height: 100%;
    letter-spacing: 0%;
  }
}

.ar_filter_options_result_name {
  text-align: end;
  color: rgba(119, 118, 118, 1);
  font-family: SF Pro Display;
  font-weight: 500;
  font-style: Medium;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: 0%;
}

.ar_filter_options_result {
  display: none;
  margin: 0px;
}

.ar_filter_options_result_caption {
  display: none;
}

.ar_filter_options_result_price {
  display: contents;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  width: auto !important;
  font-family: SF Pro Display;
  font-weight: 500 !important;
  font-style: Medium;
  font-size: 16px !important;
  leading-trim: NONE;
  line-height: 100% !important;
  letter-spacing: 0%;
  display: none;

}

.ar_filter_options_result_price:empty {
  display: none !important;
}

.ar_filter_options_result_price:before {
  margin-top: 3px;
  margin-right: 3px;
  content: "";
  width: 4px !important;
  height: 4px !important;
  background: black;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: block;
}

.ar_filter .ar_filter_group .ar_filter_options_result_name {
  width: auto;
  padding-left: 10px;
  color: rgba(119, 118, 118, 1);
  font-family: SF Pro Display;
  font-weight: 500;
  font-style: Medium;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: 0%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 207px;
}

.ar_filter .ar_filter_group .ar_filter_options_result_item {
  margin: 0px;
  padding: 0px;
  background: none;
  max-width: 65vw;
}

.ar_filter_group> :last-child {
  display: none;
}

.ar_filter .ar_filter_group .ar_filter_options_result_item:last-child {
  margin: 0px;
}

.ar_filter .ar_filter_group .ar_filter_options_result {
  margin: 0px;
  position: relative;
  margin-top: -20px;
  text-align: end;
  display: flex;
  align-items: end;
}

#group-8 .ar_filter_options_result,
#group-22 .ar_filter_options_result {
  margin-top: 0px;
}

#group-9,
#group-33,
#group-37,
#group-34 {
  .component_title {
    display: flex;
    width: 64px;
    height: 40px;
    border: solid;
    text-align: center;
    justify-content: center;
    align-items: center;
    border-radius: 30px;
  }

  .image {
    display: none;
  }

  .option.active {
    .component_title {
      background: #000;
      color: #fff;
    }
  }

  .ar_filter_options.type_select {
    justify-content: flex-start !important;
  }
}

#group-11,
#group-31,
#group-32 {
  .component_title {
    display: none;
  }

  .option {
    padding: 3px;
  }

  img {
    /* border: 1px solid rgba(217, 217, 217, 1) */
  }

  .ar_filter_options>:first-child {
    img {
      border: 1px solid rgba(217, 217, 217, 1)
    }
  }

  .active {
    border: 1px solid rgba(0, 0, 0, 1);
    border-radius: 10px;
  }

  .type_select {
    display: grid;
    grid-auto-rows: 45px;
    grid-template-columns: repeat(4, 25%);
  }
}

/* Ховаємо зайві елементи */
.ar_filter_options.type_select .option.sm-hidden {
  display: none !important;
}

/* Кнопка "Show More" */



#group-10 {

  .elementor-kit-6 button,
  .elementor-kit-6 input[type="button"],
  .elementor-kit-6 input[type="submit"],
  .elementor-kit-6 .elementor-button {
    background: none !important;
    color: black !important;
  }

  .sm-toggle {
    margin-top: 8px;
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    text-decoration: underline;
    /* display: inline-flex; */
    align-items: end;
    width: 100%;
  }

  [type=button],
  [type=submit],
  button {
    color: #000;
    border: none !important;
    padding: 0px !important;
    text-underline-offset: 5px;
    text-align: end !important;
  }
}

.ar_filter .ar_filter_group .ar_filter_options.type_select {
  justify-content: flex-start;
  gap: 1px;
  row-gap: 5px;

  .option {
    min-height: 0px;

    .image {
      width: 82px;
      height: 40px;
      margin: 0px;
      border: none;

      img {
        width: 82px;
        height: 40px;
      }
    }
  }
}

#group-2 {
  border-radius: 10px !important;

  .ar_filter_options.type_select {
    /* justify-content: space-between; */
    gap: 8px;
  }

}

.ar_filter_options.type_select {
  display: none;
}

#group-8 {
  margin-bottom: 45px;

  .ar_filter_options_result_list {
    padding-top: 4px;
  }

  &> :first-child {
    display: flex;
    flex-direction: column;
  }

  font-family: SF Pro Display;
  font-weight: 400;
  font-style: Semibold;
  font-size: 14px;
  line-height: 120%;
  letter-spacing: 0%;
  text-align: center;

  .image.ar_no_image {
    width: 100px;
    height: 60px;
    margin: 5px;
    padding: 5px;
    margin: 0px;
    margin-bottom: 10px;
    /* border: none; */
    box-sizing: content-box;
    border: 1px solid rgba(197, 197, 197, 1);
  }

  .active {
    .component_title {
      font-weight: 500;
    }

    .image.ar_no_image {
      border: 1px solid black;
    }
  }

  .ar_filter_options.type_select {
    margin-bottom: 24px;
  }
}

#group-18 {
  margin-bottom: 0px !important;

  .type_checkbox {
    margin-top: 0px;
  }

  &> :first-child {
    display: flex;
    flex-direction: row;
  }

  /* Layout for checkbox options */
  .ar_filter_options.type_checkbox {
    justify-content: flex-start;
    width: fit-content;
  }

  .ar_filter_options.type_checkbox .option {
    width: 100%;
    height: auto;
    padding: 0;
  }

  /* Hide default checkbox square */
  .ar_filter_options.type_checkbox .option .image {
    display: none;
  }

  /* Pill-style button for the label */
  .ar_filter_options.type_checkbox .option .component_title {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 46px;
    /* width: 100%; */
    box-sizing: border-box;
    border-radius: 999px;
    border: 1px solid #C5C5C5;
    background: #F5F5F5;
    font-family: SF Pro Display;
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0%;
    margin-top: 0px;
    transition: background 0.2s
  }

  /* Active (checked) state: black pill with light green outline */
  .ar_filter_options.type_checkbox .option.active .component_title {
    background: #000000;
    color: #FFFFFF;
    border-color: #154734;
    box-shadow: 0 0 0 1px #154734;
  }

  .ar_filter_options_result {
    margin-bottom: 0px;
    display: none !important;
  }

  .ar_filter_options {
    margin-bottom: 0px !important;
  }
}

#group-8,
#group-19,
#group-22,
#group-35,
#group-36,
#group-38,
#group-14 {
  margin-bottom: 0px !important;

  &> :first-child {
    display: flex;
    flex-direction: row;
  }

  .option {
    width: 30%;
    height: auto;
  }

  .image {
    width: 100%;
    height: 100%;
    min-height: 70px;
    border: 1px solid rgba(197, 197, 197, 1);
    padding: 8px 16px;
  }

  .ar_filter_options.type_select {
    gap: 10px;
    align-items: start;
  }

  .component_title {
    font-family: SF Pro Display;
    font-weight: 400;
    font-style: Regular;
    font-size: 14px;
    line-height: 120%;
    letter-spacing: 0%;
    text-align: center;
    height: fit-content;
  }

  .active {
    .image {
      border: 1px solid rgba(119, 118, 118, 1)
    }

    .component_title {
      font-family: SF Pro Display;
      font-weight: 600;
      font-style: Semibold;
      font-size: 14px;
      line-height: 120%;
      letter-spacing: 0%;
      text-align: center;
    }
  }

  img {
    height: 53px;
  }
}

#group-35 {
  margin-bottom: 0px;
  display: block;

  .component_title {
    height: 50px;
  }
}

#group-19 {
  margin-top: 20px;
}

#group-36,
#group-38 {
  margin-bottom: 50px !important;
  margin-top: 30px !important;
}

#group-7,
#group-8,
#group-9,
#group-33 #group-11,
#group-34,
#group-37,
#group-31,
#group-32,
#group-16,
#group-17,
#group-18,
#group-19,
#group-14,
#group-35,
#group-22,
#group-23,
#group-35,
#group-26,
#group-27,
#group-30,
#group-39 {
  font-weight: 500 !important;
  font-size: 16px !important;
  line-height: 100%;
}

#group-22 {
  .image {
    padding: 4px;
  }

  .image img {
    height: 100%;
    width: 100%;
  }
}

#group-14 {
  .optiom {
    width: 45%;
    padding: 2px;
    border: 1px solid rgba(0, 0, 0, 1);
    border-radius: 10px;
  }

  .component_title {
    width: 100%;
    border-radius: 10px !important;
    font-size: 14px;
  }

  .ar_filter_options_result {
    margin: 0px !important
  }
}

/* Стилі для меню зліва */
.ar-side-menu {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 10px;
  z-index: 10;
  margin-left: 10px;

  .elementor-kit-6 button,
  .elementor-kit-6 input[type="button"],
  .elementor-kit-6 input[type="submit"],
  .elementor-kit-6 .elementor-button {
    background-color: none;
  }

  &>* {
    display: flex;
    align-items: center;
    gap: 10%;

    >:last-child {
      width: 100px;
      display: none;
      font-family: SF Pro Display;
      font-weight: 400;
      font-style: Regular;
      font-size: 14px;
      line-height: 100%;
      letter-spacing: 0%;
    }
  }

  &>*:hover {
    span {
      display: block;
    }
  }

  button {
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    border: none;
    background: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid #C5C5C5 !important;
    /* box-shadow: 0 2px 6px rgba(0,0,0,0.15); */
    transition: background 0.3s;
    padding: 0px 10px !important;

    #imgLeftBtn0 {
      background: var(--menu-leftBtn-icon1) center / contain no-repeat;
    }

    #imgLeftBtn1 {
      background: var(--menu-leftBtn-icon2) center / contain no-repeat;
    }

    #imgLeftBtn2 {
      background: var(--menu-leftBtn-icon3) center / contain no-repeat;
    }

    .img {
      width: 22px;
      height: 22px;
      flex-shrink: 0
    }
  }

  &>.active {
    button {
      background: #000000 !important;

      #imgLeftBtn0 {
        background: var(--menu-leftBtnHover-icon1) center / contain no-repeat;
      }

      #imgLeftBtn1 {
        background: var(--menu-leftBtnHover-icon2) center / contain no-repeat;
      }

      #imgLeftBtn2 {
        background: var(--menu-leftBtnHover-icon3) center / contain no-repeat;
      }
    }

  }
}

/* Modal */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9999;
  visibility: hidden;
  display: none;
  transition: 0.3s ease;

  .modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    width: 320px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    padding-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;

    &>:first-child {
      width: 24px;
      height: 24px;
      background: var(--menu-cart-img) center / contain no-repeat;
    }

    img.desctopARPopUpItems {
      width: 70%;
    }
  }

  .modal-content h2 {
    margin: 0 0 8px;
    font-size: 18px;
    font-family: SF Pro Display;
    font-weight: 600;
    font-style: Medium;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    vertical-align: bottom;
    color: #000000;
  }

  .modal-content p {
    margin: 0 0 20px;
    font-size: 14px;
    color: #000000;
    font-family: SF Pro Display;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    vertical-align: bottom;
    line-height: 1.3;
  }

  .modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: none;
    font-size: 20px;
    cursor: pointer;
    padding: 0px;
  }

  .modal-close::before {
    content: "✕";
    /* тут можна будь-який символ або навіть unicode */
    font-size: 20px;
    color: #333;
  }

  .copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px;
    border-radius: 9999px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    color: #000;
    transition: background 0.2s;
    margin-top: 15px;
  }

  .copy-btn:hover {
    background: #000000;
    color: white;
  }

  .copy-btn img {
    width: 16px;
    height: 16px;
  }

  .mobileARPopUpItems {
    display: none;
  }

  .desctopARPopUpItems {
    display: flex;
  }
}

.modal.show {
  visibility: visible;
  display: flex;
}

/* Ті ж групи */
#group-2>.ar_filter_header .ar_filter_group_toggle,
#group-10>.ar_filter_header .ar_filter_group_toggle,
#group-15>.ar_filter_header .ar_filter_group_toggle,
#group-21>.ar_filter_header .ar_filter_group_toggle,
#group-25>.ar_filter_header .ar_filter_group_toggle,
#group-27>.ar_filter_header .ar_filter_group_toggle,
#group-29>.ar_filter_header .ar_filter_group_toggle {
  width: 16px;
  height: 16px;
  position: relative;
  display: inline-block;
  margin-right: 16px;
}

/* #group-2>.ar_filter_header:hover .ar_filter_group_toggle,
#group-10>.ar_filter_header:hover .ar_filter_group_toggle,
#group-15>.ar_filter_header:hover .ar_filter_group_toggle,
#group-21>.ar_filter_header:hover .ar_filter_group_toggle,
#group-25>.ar_filter_header:hover .ar_filter_group_toggle,
#group-27>.ar_filter_header:hover .ar_filter_group_toggle,
#group-29>.ar_filter_header:hover .ar_filter_group_toggle {
    transform: scaleX(1.2);
} */

/* Горизонтальна та вертикальна лінії */
#group-2>.ar_filter_header .ar_filter_group_toggle::before,
#group-2>.ar_filter_header .ar_filter_group_toggle::after,
#group-10>.ar_filter_header .ar_filter_group_toggle::before,
#group-10>.ar_filter_header .ar_filter_group_toggle::after,
#group-15>.ar_filter_header .ar_filter_group_toggle::before,
#group-15>.ar_filter_header .ar_filter_group_toggle::after,
#group-21>.ar_filter_header .ar_filter_group_toggle::before,
#group-21>.ar_filter_header .ar_filter_group_toggle::after,
#group-25>.ar_filter_header .ar_filter_group_toggle::before,
#group-25>.ar_filter_header .ar_filter_group_toggle::after,
#group-27>.ar_filter_header .ar_filter_group_toggle::before,
#group-27>.ar_filter_header .ar_filter_group_toggle::after,
#group-29>.ar_filter_header .ar_filter_group_toggle::before,
#group-29>.ar_filter_header .ar_filter_group_toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 2px;
  background: #000;
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6), opacity 0.2s ease;
}

/* Горизонтальна риска (–) */
#group-2>.ar_filter_header .ar_filter_group_toggle::before,
#group-10>.ar_filter_header .ar_filter_group_toggle::before,
#group-15>.ar_filter_header .ar_filter_group_toggle::before,
#group-21>.ar_filter_header .ar_filter_group_toggle::before,
#group-25>.ar_filter_header .ar_filter_group_toggle::before,
#group-27>.ar_filter_header .ar_filter_group_toggle::before,
#group-29>.ar_filter_header .ar_filter_group_toggle::before {
  transform: translate(-50%, -50%) rotate(0deg);
}

/* Вертикальна риска (|) — у нормі */
#group-2>.ar_filter_header .ar_filter_group_toggle::after,
#group-10>.ar_filter_header .ar_filter_group_toggle::after,
#group-15>.ar_filter_header .ar_filter_group_toggle::after,
#group-21>.ar_filter_header .ar_filter_group_toggle::after,
#group-25>.ar_filter_header .ar_filter_group_toggle::after,
#group-27>.ar_filter_header .ar_filter_group_toggle::after,
#group-29>.ar_filter_header .ar_filter_group_toggle::after {
  transform: translate(-50%, -50%) rotate(90deg) scaleX(1.1);
  opacity: 1;
}

/* ВІДКРИТО — вертикальна риска “стискається” з bounce */
#group-2>.ar_filter_header[aria-expanded="true"] .ar_filter_group_toggle::after,
#group-10>.ar_filter_header[aria-expanded="true"] .ar_filter_group_toggle::after,
#group-15>.ar_filter_header[aria-expanded="true"] .ar_filter_group_toggle::after,
#group-21>.ar_filter_header[aria-expanded="true"] .ar_filter_group_toggle::after,
#group-25>.ar_filter_header[aria-expanded="true"] .ar_filter_group_toggle::after,
#group-27>.ar_filter_header[aria-expanded="true"] .ar_filter_group_toggle::after,
#group-29>.ar_filter_header[aria-expanded="true"] .ar_filter_group_toggle::after {
  transform: translate(-50%, -50%) rotate(90deg) scaleX(0);
  opacity: 0;
}


.component_title {
  transition: 0.2s, color 0.4s;
}



@media (max-width: 956px) {

  .custom-text {
    margin: 0px !important;
  }

  #ar_model_viewer {
    height: 40vh;
    width: 100%;
  }

  .ar_filter {
    margin: 30px 16px;
    width: auto;
    height: 40vh;
    position: relative;
  }

  .custom-block {
    h2 {
      font-size: 18px;
      margin-bottom: 8px;
    }
  }

  .ar_result_container {
    button {
      font-size: 14px !important;
    }
  }

  .ar_price_amount {
    font-size: 20px !important;
  }

  .component_title {
    width: 15vw;
    overflow-wrap: break-word;
    width: 100%;
  }

  .image.ar_no_image {
    width: 22vw;
  }

  .ar_filter {
    max-width: 100%;
    margin-bottom: 70px;
  }

  .ar_conf_container {
    flex-direction: column !important;
    height: auto;
  }

  .configurator3d_post .ar_model_viewer {
    order: 1;
    width: 100% !important;
    flex: none;
  }

  .ar_conf_container .main_menu {
    order: 2;
    width: 100% !important;
    flex: none;
    margin-left: 0;
  }

  #group-7 {
    .option {
      width: 18%;
      transition: 0.5s;
    }

    .component_title {
      padding: 0px;
      width: 100%;
      height: 40px;
    }

    .config-label {
      flex: 2;
    }

    .config-input {
      flex: 1;
    }
  }

  #group-8 {
    .image.ar_no_image {
      width: 23vw;
      background-size: contain;
    }

  }

  #group-9,
  #group-33,
  #group-37,
  #group-34 {
    .ar_filter_options.type_select {
      gap: 7px;
    }

    .option {
      width: 18%;
    }

    .ar_filter_options.type_select {
      border-bottom: 0px;
    }
  }

  #group-10 {
    .option {
      /* width: 24%; */

      .image {
        width: 100%;

        img {
          width: 100%;
        }
      }
    }
  }

  #group-22 {

    .ar_filter_options_result_list {
      padding-top: 4px;
    }

    .image.ar_no_image,
    .component_title {
      width: 25.5vw;
      overflow-wrap: break-word;
      width: 100%;
      height: 50px !important;
      width: 100%;
      transition: 0s;
    }

    .option {
      width: 31%;
    }

    .image.ar_no_image {
      width: 100% !important;
    }
  }

  .ar-side-menu {
    top: 0;
    transform: translateY(-50%);
    flex-direction: row;
    margin-left: 0px;
    width: 100%;
    justify-content: center;
    margin-left: 0px;
    margin-top: 25px;

  }

  .ar-side-menu {

    button {
      width: 34px;
      height: 34px;

      .img {
        width: 20px;
        height: 20px;
      }
    }

    &>*:hover {
      span {
        display: none;
      }
    }

    #menuItem2 {
      display: none;
    }
  }

  .mobileARPopUpItems {
    display: flex !important;
  }

  .desctopARPopUpItems {
    display: none !important;
  }

  #AR-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px;
    border-radius: 9999px;
    border: 1px solid #ccc;
    background: #fff !important;
    cursor: pointer;
    font-size: 14px;
    color: #000 !important;
    transition: background 0.2s;
    margin-top: 15px;
  }
}

/* last elements */
#group-9,
#group-33,
#group-34,
#group-37,
/* #group-32, */
#group-35,
#group-35,
#group-26,
#group-28,
#group-30,
#group-39 {
  margin-bottom: 0px;

  .ar_filter_inputs,
  .ar_filter_options {
    margin-bottom: 0px;
  }
}


.ar_filter_caption {
  color: #000;
}

/* Контейнер */
.custom-dropdown {
  position: relative;
  font: 14px/1.2 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  width: 100%;
  /* підлаштується під select */
  min-width: auto !important;
}

/* Закрита “голова” */
.custom-dropdown .cd-selected {
  min-width: 220px;
  /* fallback, JS поставить точну ширину */
  min-height: 36px;
  padding: 12px 36px 12px 14px;
  /* місце під стрілку праворуч */
  /* border: 1px solid #c9c9c9; */
  background: #F5F5F5;
  color: #000;
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  border-radius: 30px;
}

/* Стрілка */
.custom-dropdown .cd-selected::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 20px;
  height: 20px;
  top: 20px;
  transform: translateY(-50%) rotate(0deg);
  transition: transform .18s ease;
  /* svg-стрілка */
  background: no-repeat center/contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
}

/* Фокус як у системи */
.custom-dropdown.cd-focus .cd-selected {
  outline: none;
  /* border-color: #6aa4ff; */
  box-shadow: 0 0 0 3px rgba(55, 132, 255, .2);
}

/* Стан відкрито */
.custom-dropdown.cd-open .cd-selected::after {
  transform: translateY(-50%) rotate(180deg);
}

.cd-options {
  margin-top: 10px !important;
}

/* Список опцій */
.custom-dropdown .cd-options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  margin: 0;
  padding: 0px 0;
  list-style: none;
  background: #F5F5F5;
  border-radius: 1000px;
  box-shadow: 0px 0px 10px 0px #0000001F;
  display: none;
  z-index: 1000;
  animation: cd-pop .12s ease-out;
}

.custom-dropdown.cd-open .cd-options {
  display: block;
}

/* Firefox */
.custom-dropdown .cd-options {
  scrollbar-width: thin;
  /* auto | thin | none */
  scrollbar-color: #9aa0a6 transparent;
  /* thumb track */
  scrollbar-gutter: stable both-edges;
  /* щоб контент не "стрибає" */
  -webkit-overflow-scrolling: touch;
  /* приємний скрол на iOS */
}

/* Chrome / Edge / Safari */
/* Chrome / Edge / Safari: thinner and supports horizontal scrollbars */
.custom-dropdown .cd-options::-webkit-scrollbar {
  width: 4px;
  /* was 10px */
  height: 4px;
  /* ensure thin horizontal bar too */
}

.custom-dropdown .cd-options::-webkit-scrollbar-track {
  background: transparent;
  /* фон треку */
  border-radius: 10px;
}

.custom-dropdown .cd-options::-webkit-scrollbar-thumb {
  background-color: #bcbfc4;
  border-radius: 10px;
  border: 1px solid transparent;
  /* was 2px */
  background-clip: content-box;
}

.custom-dropdown .cd-options::-webkit-scrollbar-thumb:hover {
  background-color: #9aa0a6;
}

.custom-dropdown .cd-options::-webkit-scrollbar-corner {
  background: transparent;
}

@keyframes cd-pop {
  from {
    transform: translateY(-2px);
    opacity: .85;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Пункти */
.custom-dropdown .cd-option {
  padding: 8px 12px;
  color: #000;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
  z-index: 1000;
  border-radius: 100px;
  background: #F5F5F5;
  justify-content: space-between;
}

.custom-dropdown .cd-option:hover {
  background: #f4f6f8;
}

.custom-dropdown .cd-option[aria-selected="true"] {
  /* background: #e9f2ff; */
  /* color: #0b63ff; */
  font-weight: 600;
}

.custom-dropdown .cd-option[aria-disabled="true"] {
  color: #9aa0a6;
  cursor: not-allowed;

  display: none !important;
}

/* Клавіатурна навігація – підсвічує “фокусну” опцію */
.custom-dropdown .cd-option.cd-active {
  /* background: #ecf0f3; */
}

/* Ховаємо нативний select, але зберігаємо у потоці і для форм */
select[data-group_id] {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  inset: 0 auto auto 0;
  /* щоб зберіг місце поруч для вставки кастома */
}

/* вимкнені пункти */
.custom-dropdown .cd-option[aria-disabled="true"] {
  color: #9aa0a6;
  cursor: not-allowed;
  opacity: .7;
}

.custom-dropdown .cd-option[aria-disabled="true"]:hover {
  background: transparent;
}

/* не дозволяємо виділяти як active */
.custom-dropdown .cd-option[aria-disabled="true"].cd-active {
  background: transparent;
}

/* ---------AR PROMPT--------- */

#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: translateY(100px)
  }

  to {
    transform: translateY(-100px)
  }
}

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

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

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

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

/* === Micro‑animations pack (safe, no DOM changes) === */
:root {
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --elev-1: 0 2px 6px rgba(0, 0, 0, .10);
  --elev-2: 0 8px 20px rgba(0, 0, 0, .15);
}

/* 1) Add-to-cart button: hover lift + ripple press */
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button.alt {
  position: relative;
  overflow: hidden;
  /* for ripple */
  transition: transform .22s var(--ease), background .22s var(--ease);
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt:hover,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button.alt:hover {
  transform: translateY(-2px);
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt:active,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button.alt:active {
  transform: translateY(0);
}

/* simple CSS ripple */
button.single_add_to_cart_button.button.alt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  transform: scale(0);
  background: rgba(255, 255, 255, .25);
  transition: transform .35s var(--ease-out), opacity .45s var(--ease-out);
  opacity: 0;
}

button.single_add_to_cart_button.button.alt:active::after {
  transform: scale(2.4);
  opacity: 1;
}

/* 2) Left floating menu: hover scale, active pop */
.ar-side-menu button {
  transition: transform .18s var(--ease) .18s var(--ease), background .18s var(--ease);
}

.ar-side-menu button:hover {
  transform: scale(1.06);
}

.ar-side-menu button:active {
  transform: scale(.96);
}

.ar-side-menu button:focus-visible {
  outline: none;
}

/* Tooltip label slide-in on hover */
.ar-side-menu>* span {
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  opacity: 0;
  transform: translateY(6px);
}

.ar-side-menu>*:hover span {
  opacity: 1;
  transform: translateY(0);
}

/* 3) Options cards: soft lift on hover + stronger active state */

.ar_filter .ar_filter_group .ar_filter_options .option:hover {
  transform: translateY(-2px);
  transition: 0.5s;
}

.ar_filter .ar_filter_group .ar_filter_options .option.active {
  transform: translateY(-1px);
  transition: 0.5s;
}

/* 4) Section headers: plus toggle pulse when opened */
@keyframes pr-pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1);
  }
}

#group-2 .ar_filter_group_toggle,
#group-10 .ar_filter_group_toggle,
#group-15 .ar_filter_group_toggle,
#group-21 .ar_filter_group_toggle,
#group-25 .ar_filter_group_toggle,
#group-27 .ar_filter_group_toggle,
#group-29 .ar_filter_group_toggle {
  will-change: transform;
}

#group-2 .ar_filter_header[aria-expanded="true"] .ar_filter_group_toggle,
#group-10 .ar_filter_header[aria-expanded="true"] .ar_filter_group_toggle,
#group-15 .ar_filter_header[aria-expanded="true"] .ar_filter_group_toggle,
#group-21 .ar_filter_header[aria-expanded="true"] .ar_filter_group_toggle,
#group-25 .ar_filter_header[aria-expanded="true"] .ar_filter_group_toggle,
#group-27 .ar_filter_header[aria-expanded="true"] .ar_filter_group_toggle,
#group-29 .ar_filter_header[aria-expanded="true"] .ar_filter_group_toggle {
  animation: pr-pulse .32s var(--ease);
}

/* 5) Custom dropdown: fade/slide when opening */
.custom-dropdown .cd-options {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}

.custom-dropdown.cd-open .cd-options {
  opacity: 1;
  transform: translateY(0);
}

.custom-dropdown .cd-selected {}

.custom-dropdown.cd-focus .cd-selected {}

/* 6) Modal: subtle pop of content on show */
.modal.show .modal-content {
  animation: pr-pop .24s var(--ease);
}

@keyframes pr-pop {
  0% {
    transform: scale(.96);
    opacity: .6;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* 7) Small accessibility improvements */
.ar_filter_header:focus-visible {
  outline: none;
  border-radius: 8px;
}

/* =========================
   Coat Finish (group-14)
   Redesign: gradient bar (preview) + label under it
   ========================= */
#group-14 .ar_filter_options.type_select_no_photo {
  display: flex !important;
  gap: 16px;
  align-items: flex-start;
}

#group-14 .ar_filter_options.type_select_no_photo .option {
  flex: 1 1 0;
  max-width: none;
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* Kill default "black pill" title style for active state in this group */
#group-14 .ar_filter_options.type_select_no_photo .option .component_title {
  background: none !important;
  color: #000 !important;
  font-family: SF Pro Display;
  font-weight: 500;
  font-size: 14px !important;
  line-height: 120%;
  letter-spacing: 0%;
  text-align: center;
  height: auto !important;
  margin-top: 4px;
  padding: 0;
  border: 0;
}

#group-14 .ar_filter_options.type_select_no_photo .option.active .component_title {
  font-weight: 600 !important;
}

#group-14 .ar_filter_options.type_select_no_photo .option .component_title::before {
  display: none !important;
}

/* Visual preview bar (acts like an image) */
#group-14 .ar_filter_options.type_select_no_photo .option::before {
  content: "";
  display: block;
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.75);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 0 0 rgba(0, 0, 0, 0);
  background: linear-gradient(90deg, #0b0b0b 0%, #131313 18%, #1a1a1a 35%, #151515 52%, #0b0b0b 100%);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  height: 42px;
  transition: 0.5s;
}

/* Specific looks */
/* Matt: lower contrast */
#group-14 .option_14-0::before {
  background: linear-gradient(90deg, #0b0b0b 0%, #121212 20%, #171717 50%, #121212 80%, #0b0b0b 100%);
  filter: saturate(0.8) brightness(0.95);
}

/* Gloss: strong specular core with soft falloff */
#group-14 .option_14-1::before {
  background:
    radial-gradient(60% 140% at 50% 50%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 32%, rgba(255, 255, 255, 0.02) 52%, rgba(255, 255, 255, 0) 70%) center/100% 100% no-repeat,
    linear-gradient(90deg, #0b0b0b 0%, #111 14%, #2a2a2a 35%, #8b8b8b 50%, #2a2a2a 65%, #111 86%, #0b0b0b 100%);
}

/* Active ring and subtle elevation */
#group-14 .ar_filter_options.type_select_no_photo .option.active::before {
  outline: 2px solid #ffffff;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.85),
    0 1px 8px rgba(0, 0, 0, 0.18);
}

/* Default: dropdown opens downwards */
.cd-dropdown.open-down .cd-options {
  top: 100%;
  bottom: auto;
}

/* Open upwards if not enough space below */
.cd-dropdown.open-up .cd-options {
  bottom: 100%;
  top: auto;
  transform-origin: bottom center;
}

/* Touch target comfort on mobile */
@media (max-width: 956px) {
  #group-14 .ar_filter_options.type_select_no_photo .option::before {
    outline: 2px solid #ffffff;
    box-shadow:
      inset 0 0 0 2px rgba(0, 0, 0, 0.85),
      0 1px 8px rgba(0, 0, 0, 0.18);
    height: 42px;
    border-radius: 10px;
  }

  #group-14 .ar_filter_options.type_select_no_photo .option .component_title {
    font-size: 14px !important;
  }
}

.ar_filter .ar_filter_group .ar_filter_header {
  /* ...existing styles... */
}

/* Inline dropdowns inside the left menu (no overlay above other blocks) */
.ar_filter .custom-dropdown {
  position: relative;
}

.ar_filter .custom-dropdown .cd-selected {
  border-radius: 12px;
  background: #F5F5F5;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 50px;
  /* avoid glowing "outside" look */
}

.ar_filter .custom-dropdown.cd-focus .cd-selected {
  border-color: #C5C5C5;
  /* subtle focus state */
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06) inset;
}

/* Make the options list part of normal layout so it pushes content instead of overlaying */
.ar_filter .custom-dropdown .cd-options {
  position: static !important;
  /* key change: no absolute overlay */
  max-height: 280px;
  /* scroll inside if long */
  overflow: auto;
  border-radius: 12px;
  box-shadow: none;
  /* keep it inside the card visually */
  z-index: 0;
  /* below zTop card */
}

.ar_filter .custom-dropdown .cd-options li {
  padding: 10px 12px;
}

.ar_filter .custom-dropdown .cd-options li[aria-selected="true"],
.ar_filter .custom-dropdown .cd-options li[aria-checked="true"] {
  background: #F5F5F5;
}

/* Remove aggressive system-like focus ring inside configurator */
.ar_filter .custom-dropdown.cd-focus .cd-selected {
  outline: none !important;
}

ul.cd-options {
  margin-top: 10px;
}

/* ==== Inline dropdown caret fix (no jump) ==== */
.ar_filter.inline-dropdowns .custom-dropdown {
  position: relative;
}

/* Ховаємо “рідну” стрілку плагіна в inline-режимі */
.ar_filter.inline-dropdowns .custom-dropdown::after {
  content: none !important;
}

/* Малюємо стрілку всередині поля, прив'язуємо до центру */
.ar_filter.inline-dropdowns .custom-dropdown .cd-selected {
  position: relative;
  padding-right: 32px;
  /* місце під карет */
}

.ar_filter.inline-dropdowns .custom-dropdown .cd-selected::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%) rotate(0deg);
  background: var(--menu-arrow-img) center / contain no-repeat;
  pointer-events: none;
  /* не блокує клік по полю */
}

/* Поворот стрілки при відкритті */
.ar_filter.inline-dropdowns .custom-dropdown.cd-open .cd-selected::after,
.ar_filter.inline-dropdowns .custom-dropdown[aria-expanded="true"] .cd-selected::after {
  transform: translateY(-50%) rotate(180deg);
}

/* Щоб не було стрибка ширини через скролbar у списку */
.ar_filter.inline-dropdowns .custom-dropdown .cd-options {
  scrollbar-gutter: stable;
}

.ar_filter .ar_filter_group.disabled {
  display: none !important;
}

.ar_option_description:empty {
  display: none !important;
}

#group-16,
#group-15 {
  .cd-price {
    display: none;
  }
}


/*        MOBILE STYLES           */

@media (max-width: 768px),
(orientation: portrait) {
  .ar_filter {
    margin-top: 0;
    gap: 12px;
    height: 41vh;
  }

  .ar_filter_sticky_header {
    top: -2px;
    padding-bottom: 10px;
  }

  .ar_filter_sticky_header .ar_price_amount {
    font-size: 26px !important;
  }

  .ar_filter_sticky_header .custom-text {
    display: none;
  }

  .ar_filter_toggle {
    display: none;
  }

  #group-2,
  #group-10,
  #group-15,
  #group-21,
  #group-25,
  #group-27,
  #group-29 {
    padding: 12px;
  }

  #group-2,
  #group-10,
  #group-15,
  #group-21,
  #group-25,
  #group-27,
  #group-29 {
    &> :first-child {
      .ar_filter_caption {
        font-size: 20px !important;
      }
    }
  }

  #group-9,
  #group-33,
  #group-37,
  #group-34 {
    .option {
      width: fit-content;
    }
  }
}

.option.hide_when_disabled.disabled {
  display: none !important;
}

.cart {
  margin-left: auto;
  position: relative;
  right: 0;
  align-items: flex-end;
  text-align: right;
}

button[type=submit] {
  margin-left: auto !important;
  right: 0 !important;
}

.ar_price {
  min-width: fit-content;
}

/* BLUR EFFECT DURING DYNAMIC LOADING */
.ar_model_viewer canvas {
    transition: filter 0.4s ease, opacity 0.4s ease;
}

body.is-loading-dynamic .ar_model_viewer canvas,
body.is-loading-dynamic .configurator3d_post canvas {
    filter: blur(8px) grayscale(20%);
    opacity: 0.6;
}

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

.option.disable_filter {
  position: relative; 
  cursor: not-allowed; 
}

.option.disable_filter > * {
  opacity: 0.4;
  filter: grayscale(100%);
  pointer-events: none;
}

.option.disable_filter::after {
  content: "Out of stock";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  
  background-color: #222;
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  font-family: sans-serif;
  
  opacity: 0;
  visibility: hidden;
  z-index: 100;
  
  margin-bottom: -5px; 
  transition: all 0.2s ease-in-out;
}

.option.disable_filter::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  
  border-width: 6px;
  border-style: solid;
  border-color: #222 transparent transparent transparent;
  
  opacity: 0;
  visibility: hidden;
  z-index: 100;
  
  margin-bottom: -11px;
  transition: all 0.2s ease-in-out;
}

.option.disable_filter:hover::after,
.option.disable_filter:hover::before {
  opacity: 1;
  visibility: visible;
  margin-bottom: 8px;
}

.option.disable_filter:hover::before {
  margin-bottom: 2px;
}

.option.disable_filter .ar_option_description {
  display: none;
}



