.configurator-modal-open {
  overflow: hidden;
}

.b-model-viewer-shell {
  flex: 1 1 100%;
  min-width: 0;
  position: relative;
  width: 100%;
}

.b-model-viewer-host {
  height: clamp(360px, 52vh, 560px);
  min-width: 0;
  position: relative;
  width: 100%;
}

.b-banner-product__gallery--item-figure > .b-model-viewer-shell {
  flex: 1 1 100%;
}

#product-model-viewer.custom-model-viewer {
  height: 100% !important;
  width: 100% !important;
}

.b-model-viewer-loading {
  align-items: center;
  background: rgba(15, 24, 32, 0.68);
  border-radius: 10px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  inset: 0;
  justify-content: center;
  position: absolute;
  transition: opacity 0.3s ease;
  z-index: 4;
}

.b-model-viewer-loading.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.b-model-viewer-loading__spinner {
  animation: configuratorSpin 0.8s linear infinite;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  height: 30px;
  width: 30px;
}

.b-model-viewer-loading__text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.b-model-viewer-fullscreen-btn {
  align-items: center;
  background: rgba(35, 48, 58, 0.68);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  position: absolute;
  right: 10px;
  top: 10px;
  touch-action: manipulation;
  width: 34px;
  z-index: 8;
}

.b-model-viewer-fullscreen-btn:hover {
  background: rgba(0, 176, 151, 0.9);
}

.b-model-viewer-ready {
  bottom: 14px;
  color: #8f8f8f;
  font-size: 11px;
  font-weight: 700;
  left: 50%;
  letter-spacing: 0.04em;
  max-width: calc(100% - 24px);
  opacity: 0;
  pointer-events: none;
  position: absolute;
  text-align: center;
  transition: opacity 0.25s ease, transform 0.25s ease;
  text-transform: uppercase;
  transform: translateX(-50%) translateY(6px);
  width: max-content;
  z-index: 5;
}

.b-model-viewer-ready.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.b-hero-configurator {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0 20px;
}

.b-hero-configurator__row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 76px 1fr;
}

.b-hero-configurator__title {
  color: #2a3641;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.b-hero-configurator__track {
  cursor: grab;
  overflow: hidden;
  padding-bottom: 2px;
  touch-action: pan-y;
  width: 100%;
}

.b-hero-configurator__rail {
  align-items: center;
  display: flex;
  gap: 6px;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.b-hero-configurator__track.is-dragging,
.b-configurator-carousel__track.is-dragging {
  cursor: grabbing;
}

.b-hero-configurator__scroller,
.b-configurator-carousel__scroller {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  padding-left: 4px;
  padding-right: 14px;
}

.b-hero-configurator__arrow,
.b-configurator-carousel__arrow {
  align-items: center !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  justify-content: center !important;
  position: static !important;
  transform: none !important;
}

.b-hero-configurator__arrow:disabled,
.b-configurator-carousel__arrow:disabled {
  cursor: default;
  opacity: 0.35;
}

.b-hero-configurator__arrow i,
.b-configurator-carousel__arrow i {
  font-size: 14px;
}

.b-hero-configurator__scroller .b-product-gallery__arrow,
.b-configurator-carousel__scroller .b-product-gallery__arrow {
  height: 28px !important;
  margin: 0 !important;
  right: auto !important;
  top: auto !important;
  width: 28px !important;
  z-index: 2;
}

.b-hero-configurator__item,
.b-configurator-carousel__item {
  overflow: hidden;
  position: relative;
}

.b-configurator-tooltip {
  background: rgba(26, 38, 47, 0.96);
  border-radius: 5px;
  color: #fff;
  font-size: 11px;
  left: 0;
  line-height: 1.2;
  max-width: 180px;
  opacity: 0;
  padding: 6px 8px;
  pointer-events: none;
  position: fixed;
  text-align: center;
  top: 0;
  transform: translate(-50%, -100%);
  transition: opacity 0.08s linear;
  white-space: nowrap;
  z-index: 10000000001;
}

.b-configurator-tooltip.is-visible {
  opacity: 1;
}

.b-hero-configurator__set-label,
.b-hero-configurator__item {
  user-select: none;
}

.b-configurator-carousel__track {
  cursor: grab;
  overflow: hidden;
  padding-bottom: 6px;
  touch-action: pan-y;
  width: 100%;
}

.b-configurator-carousel__rail {
  align-items: stretch;
  display: flex;
  gap: 8px;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.b-hero-configurator__set-label {
  background: #eef2f4;
  border-radius: 999px;
  color: #5b6771;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  white-space: nowrap;
}

.b-hero-configurator__item {
  background: #fff;
  border: 1px solid #d8dde1;
  border-radius: 6px;
  cursor: pointer;
  flex: 0 0 auto;
  height: 25px;
  padding: 0;
  width: 42px;
}

.b-hero-configurator__item img {
  -webkit-user-drag: none;
  border-radius: 5px;
  display: block;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  width: 100%;
}

.b-hero-configurator__item.is-active {
  border-color: #00b097;
  box-shadow: 0 0 0 1px rgba(0, 176, 151, 0.25);
}

.b-configurator-lightbox {
  display: none;
  inset: 0;
  position: fixed;
  z-index: 9999999999;
}

.b-configurator-lightbox.is-active {
  display: block;
}

.b-configurator-lightbox__overlay {
  background: rgba(10, 16, 23, 0.86);
  inset: 0;
  position: absolute;
}

.b-configurator-lightbox__content {
  background: #fff;
  border-radius: 12px;
  inset: 5%;
  overflow: auto;
  padding: 18px;
  position: absolute;
}

.b-configurator-lightbox__content {
  margin: 0 auto;
  max-width: 980px;
  padding: 14px 14px 0;
}

.b-configurator-lightbox__layout {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.b-configurator-lightbox__swatches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.b-configurator-lightbox__header {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 0;
  padding: 0 54px 14px 0;
}

.b-configurator-lightbox__title {
  color: #182430;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 3px;
}

.b-configurator-lightbox__subtitle {
  color: #63727f;
  font-size: 12px;
  margin: 0;
}

.b-configurator-lightbox__selection-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.b-configurator-lightbox__pill {
  align-items: center;
  background: #f5f6f4;
  border: 1px solid #e0e3e7;
  border-radius: 9px;
  display: flex;
  gap: 10px;
  min-width: 190px;
  padding: 8px 10px;
}

.b-configurator-lightbox__pill-swatch {
  background: #d7dadf;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 7px;
  cursor: zoom-in;
  flex: 0 0 68px;
  height: 68px;
  width: 68px;
}

.b-configurator-lightbox__preview-zoom {
  background: #fff;
  border: 1px solid #d7dde3;
  border-radius: 12px;
  box-shadow: 0 16px 44px rgba(10, 18, 26, 0.28);
  display: none;
  padding: 10px;
  pointer-events: none;
  position: absolute;
  right: 14px;
  top: 66px;
  width: 252px;
  z-index: 6;
}

.b-configurator-lightbox__preview-zoom.is-visible {
  display: block;
}

.b-configurator-lightbox__preview-zoom img {
  border-radius: 8px;
  display: block;
  height: 228px;
  object-fit: cover;
  width: 100%;
}

.b-configurator-lightbox__preview-zoom-name {
  color: #1b2731;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 8px;
}

.b-configurator-lightbox__pill-copy {
  min-width: 0;
}

.b-configurator-lightbox__pill-label {
  color: #7d8995;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  text-transform: uppercase;
}

.b-configurator-lightbox__pill-name {
  color: #1f2a33;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  max-width: 116px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.b-configurator-lightbox__close {
  align-items: center;
  background: #fff;
  border: 1px solid #d7dee4;
  border-radius: 999px;
  color: #2a3641;
  cursor: pointer;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  position: absolute;
  right: 12px;
  top: 10px;
  width: 34px;
  z-index: 4;
}

.b-configurator-lightbox__model {
  border: 1px solid #e0e3e6;
  border-radius: 10px;
  min-height: 400px;
  overflow: hidden;
  position: relative;
}

.b-configurator-lightbox__model {
  background: #f5f3ef;
}

.b-configurator-lightbox__drag-hint {
  align-items: center;
  bottom: 18px;
  color: #8a96a1;
  display: inline-flex;
  font-size: 11px;
  gap: 4px;
  position: absolute;
  left: 12px;
  z-index: 5;
}

.b-configurator-lightbox__column {
  padding: 12px;
}

.b-configurator-lightbox__column--outer {
  border-right: 1px solid #e6eaee;
}

.b-configurator-lightbox__column-head {
  align-items: baseline;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 8px;
}

.b-configurator-lightbox__column-title {
  color: #1a2731;
  font-size: 12px;
  font-weight: 700;
}

.b-configurator-lightbox__column-current {
  color: #7c8893;
  font-size: 11px;
  max-width: 52%;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.b-configurator-lightbox__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.b-configurator-lightbox__tab {
  background: #fff;
  border: 1px solid #d7dde3;
  border-radius: 999px;
  color: #495864;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  padding: 4px 10px;
}

.b-configurator-lightbox__tab.is-active {
  background: #e8f6f3;
  border-color: #8ecfc3;
  color: #147f6e;
}

.b-configurator-lightbox__grid {
  display: flex;
  flex-wrap: wrap;
}

.b-configurator-lightbox__grid--outer {
  gap: 8px;
  max-height: 192px;
  overflow-y: auto;
  padding-right: 4px;
}

.b-configurator-lightbox__grid--inner {
  gap: 8px;
  max-height: 192px;
  overflow-y: auto;
  padding-right: 4px;
}

.b-configurator-lightbox__swatch {
  align-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
  padding: 0;
}

.b-configurator-lightbox__swatch img {
  -webkit-user-drag: none;
  display: block;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.b-configurator-lightbox__swatch--tile {
  border: 1px solid rgba(18, 33, 44, 0.16);
  border-radius: 6px;
  height: 40px;
  overflow: hidden;
  width: 40px;
}

.b-configurator-lightbox__swatch--tile img {
  height: 100%;
  width: 100%;
}
.b-configurator-lightbox__swatch.is-active.b-configurator-lightbox__swatch--tile {
  border: 2px solid #1aab8f;
}

.b-configurator-lightbox__model model-viewer {
  height: 100% !important;
  min-height: 400px;
  width: 100%;
}

.b-configurator-carousel {
  margin-bottom: 0;
}

.b-configurator-carousel__title {
  color: #2a3641;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.b-configurator-carousel__set-label {
  align-items: center;
  background: #edf2f4;
  border-radius: 999px;
  color: #5a6670;
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  white-space: nowrap;
}

.b-configurator-carousel__item {
  background: #fff;
  border: 1px solid #d5dde2;
  border-radius: 8px;
  cursor: pointer;
  flex: 0 0 auto;
  overflow: hidden;
  padding: 0;
  width: 86px;
}

.b-configurator-carousel__item img {
  -webkit-user-drag: none;
  border-radius: 7px 7px 0 0;
  pointer-events: none;
  user-select: none;
}

.b-configurator-carousel__item:focus-visible,
.b-hero-configurator__item:focus-visible {
  outline: 2px solid #00b097;
  outline-offset: 2px;
}

.b-configurator-lightbox__carousel--active .b-configurator-carousel__title,
.b-configurator-lightbox__carousel--other .b-configurator-carousel__title {
  margin-bottom: 6px;
}


.b-configurator-carousel__item img {
  display: block;
  height: 54px;
  object-fit: cover;
  width: 100%;
}

.b-configurator-carousel__name {
  color: #2a3641;
  display: block;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  padding: 4px 6px 6px;
  text-align: center;
}

.b-configurator-carousel__item.is-active {
  border-color: #00b097;
  box-shadow: 0 0 0 1px rgba(0, 176, 151, 0.25);
}

@keyframes configuratorSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 1024px) {
  .b-hero-configurator__row {
    grid-template-columns: 70px 1fr;
  }

  .b-configurator-lightbox__selection-pills {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .single-product .b-product-hero {
    padding-top: 68px;
  }

  .b-model-viewer-host {
    height: clamp(272px, 47vh, 332px);
  }

  .b-model-viewer-fullscreen-btn {
    right: 16px;
    top: 17px;
  }

  .b-product-gallery__main-item.active {
    justify-content: center;
  }

  .b-product-gallery__main-item.active .b-banner-product__gallery--item-figure,
  .b-product-gallery__main-item.active .b-banner-product__gallery--item-image {
    margin-left: auto;
    margin-right: auto;
  }

  .b-model-viewer-shell {
    border-radius: 10px;
    overflow: hidden;
  }

  .b-model-viewer-loading__text {
    font-size: 12px;
    text-align: center;
    padding: 0 12px;
  }

  .b-model-viewer-ready {
    background: rgba(19, 31, 41, 0.72);
    border-radius: 999px;
    bottom: 10px;
    color: #f2f7fb;
    font-size: 10px;
    line-height: 1.2;
    max-width: calc(100% - 20px);
    white-space: normal;
    padding: 6px 12px;
  }

  #hero-model-shell #model-ready-indicator {
    display: none;
  }

  .b-hero-configurator {
    gap: 10px;
    margin: 30px 0 14px;
  }

  .b-hero-configurator__row {
    align-items: center;
    gap: 6px;
    grid-template-columns: 66px minmax(0, 1fr) !important;
  }

  .b-hero-configurator__scroller,
  .b-configurator-carousel__scroller {
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    gap: 6px;
    overflow: visible;
    padding-left: 0;
    padding-right: 2px;
  }

  .b-hero-configurator__track {
    padding-bottom: 4px;
  }

  .b-hero-configurator__arrow,
  .b-configurator-carousel__arrow {
    height: 32px;
    width: 32px;
  }

  .b-hero-configurator__scroller .b-product-gallery__arrow,
  .b-configurator-carousel__scroller .b-product-gallery__arrow {
    height: 32px !important;
    width: 32px !important;
  }

  .b-hero-configurator__title {
    color: #1f2e3a;
    display: block;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.2;
    min-width: 66px;
    overflow: visible;
    white-space: nowrap;
  }

  .b-hero-configurator__item {
    height: 30px;
    width: 48px;
  }

  .b-hero-configurator__set-label {
    font-size: 9px;
    padding: 3px 7px;
  }

  .b-product-gallery__filmstrip-wrapper {
    margin-top: 4px;
  }

  .b-configurator-lightbox__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-right: 42px;
  }

  .b-configurator-lightbox__selection-pills {
    justify-content: flex-start;
    width: calc(100vw - 28px);
  }

  .b-configurator-lightbox__pill {
    min-width: 0;
    padding: 7px 9px;
    width: 100%;
  }

  .b-configurator-lightbox__pill-swatch {
    flex-basis: 56px;
    height: 56px;
    width: 56px;
  }

  .b-configurator-lightbox__preview-zoom {
    display: none !important;
  }

  .b-configurator-lightbox__pill-name {
    font-size: 12px;
    max-width: 104px;
  }

  .b-configurator-lightbox__content {
    inset: 0;
    border-radius: 0;
    padding: 14px;
  }

  .b-configurator-lightbox__model {
    min-height: 250px;
  }

  .b-configurator-lightbox__model model-viewer {
    min-height: 250px;
  }

  .b-configurator-lightbox__swatches {
    grid-template-columns: 1fr;
  }

  .b-configurator-lightbox__grid--outer {
    max-height: 174px;
  }

  .b-configurator-lightbox__swatch--tile {
    height: 36px;
    width: 36px;
  }

  .b-configurator-lightbox__column--outer {
    border-bottom: 1px solid #e6eaee;
    border-right: 0;
  }
}
