html {
  scrollbar-gutter: stable;
}

:root {
  --bsc-fs-xs: clamp(0.625rem, 0.58rem + 0.18vw, 0.75rem);
  --bsc-fs-sm: clamp(0.75rem, 0.70rem + 0.22vw, 0.875rem);
  --bsc-fs-md: clamp(0.875rem, 0.80rem + 0.28vw, 1rem);
	--bsc-fs-lg: clamp(1.08rem, 1rem + 0.42vw, 1.4rem);
	--bsc-fs-xl: clamp(1.45rem, 1.22rem + 0.95vw, 2.05rem);
  --bsc-fs-xxl: clamp(1.75rem, 1.30rem + 1.80vw, 3rem);
  --bsc-fs-display: clamp(2.5rem, 1.70rem + 3.50vw, 5.5rem);
}

.bsc-configurator,
.bsc-configurator * {
  box-sizing: border-box;
}


/* Fabric sample library */
.bsc-sample-library {
  --bsc-sample-accent: var(--bsc-accent, #794765);
  color: #2f2926;
}

.bsc-sample-library__head {
  max-width: 760px;
  margin-bottom: 28px;
}

.bsc-sample-library__head span {
  color: var(--bsc-sample-accent);
  display: block;
  font-size: var(--bsc-fs-xs);
  font-weight: 800;
  letter-spacing: .16em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.bsc-sample-library__head h2 {
  font-family: var(--bsc-heading-font, Georgia, serif);
  font-size: var(--bsc-fs-xxl);
  font-weight: 400;
  line-height: 1;
  margin: 0 0 14px;
}

.bsc-sample-library__head p {
  color: #716760;
  font-size: var(--bsc-fs-lg);
  line-height: 1.5;
  margin: 0;
}

.bsc-sample-range-select select {
  background: #fff;
  border: 1px solid #e1d6ca;
  border-radius: 10px;
  color: #332d29;
  min-height: 48px;
  padding: 0 14px;
  width: 100%;
}

.bsc-sample-colours,
.bsc-colour-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding-top: 0;
}

.bsc-sample-colours > span,
.bsc-colour-row > span {
  align-items: center;
  color: var(--bsc-sample-accent, var(--bsc-accent, #794765));
  display: inline-flex;
  font-size: var(--bsc-fs-xs);
  font-weight: 800;
  letter-spacing: .14em;
  min-height: 36px;
  padding-right: 4px;
  text-transform: uppercase;
}

.bsc-sample-colours button,
.bsc-colour-row button {
  background: #fff;
  background-clip: padding-box;
  border: 1px solid #dfd4c9;
  border-radius: 999px;
  box-shadow: none;
  color: #6e625b;
  cursor: pointer;
  height: 34px;
  min-height: 34px;
  padding: 0;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  width: 34px;
}

.bsc-sample-colours .bsc-sample-colour-all,
.bsc-colour-row .bsc-sample-colour-all {
  width: auto;
  padding: 0 14px;
}

.bsc-sample-colours button.is-active,
.bsc-sample-colours button:hover,
.bsc-colour-row button.is-active,
.bsc-colour-row button:hover {
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--bsc-sample-accent, var(--bsc-accent, #794765));
}

.bsc-sample-colours .bsc-sample-colour-all.is-active,
.bsc-sample-colours .bsc-sample-colour-all:hover,
.bsc-colour-row .bsc-sample-colour-all.is-active,
.bsc-colour-row .bsc-sample-colour-all:hover {
  background: var(--bsc-sample-accent, var(--bsc-accent, #794765));
  border-color: var(--bsc-sample-accent, var(--bsc-accent, #794765));
  box-shadow: none;
  color: #fff;
}

.bsc-sample-range-select {
  display: block;
  margin: 0;
  max-width: none;
}

.bsc-sample-range-select span {
  color: var(--bsc-sample-accent);
  display: block;
  font-size: var(--bsc-fs-xs);
  font-weight: 800;
  letter-spacing: .16em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.bsc-sample-showing {
  color: #776d66;
  font-size: var(--bsc-fs-md);
  margin: 0 0 16px;
}

.bsc-sample-filter-groups {
  display: flex;
  gap: 12px 18px;
  margin: 4px 0 12px;
  flex-direction: column;
}

.bsc-sample-collection-filter {
  margin: 0 0 12px;
}

.bsc-sample-filter-group > span {
  color: var(--bsc-sample-accent);
  display: block;
  font-size: var(--bsc-fs-xs);
  font-weight: 800;
  letter-spacing: .16em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.bsc-sample-filter-group .bsc-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bsc-sample-filter-group .bsc-chip-row button {
  min-height: 32px;
  align-items: center;
  background: none;
  der: 1px solid #ded2c7;
  cursor: pointer;
  font-size: var(--bsc-fs-sm);
  font-weight: 700;
  gap: 9px;
}

.bsc-sample-filter-group .bsc-chip-row button.is-active,
.bsc-sample-filter-group .bsc-chip-row button:hover {
}

.bsc-chip-row--radio button::before,
.bsc-chip-row--checkbox button::before {
  align-items: center;
  background: #fbf8f5;
  border: 1px solid #cfc0b4;
  box-sizing: border-box;
  content: "";
  display: inline-flex;
  flex: 0 0 auto;
  height: 15px;
  justify-content: center;
  line-height: 1;
  width: 15px;
}

.bsc-chip-row--radio button::before {
  border-radius: 999px;
}

.bsc-chip-row--checkbox button::before {
  border-radius: 3px;
}

.bsc-chip-row--radio button.is-active::before {
  background: radial-gradient(circle, var(--bsc-sample-accent, var(--bsc-accent, #794765)) 0 35%, #fff 39%);
  border-color: var(--bsc-sample-accent, var(--bsc-accent, #794765));
}

.bsc-chip-row--checkbox button.is-active::before {
  background: var(--bsc-sample-accent, var(--bsc-accent, #794765));
  border-color: var(--bsc-sample-accent, var(--bsc-accent, #794765));
  color: #fff;
  content: "\2713";
  font-size: 10px;
  font-weight: 900;
}

.bsc-sample-grid-wrap {
  min-height: 260px;
  position: relative;
}

.bsc-sample-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1180px) and (min-width: 761px) {
  .bsc-sample-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .bsc-sample-filter-groups {
    grid-template-columns: 1fr;
  }
}

.bsc-sample-card,
.bsc-swatch {
  background: #fff;
  border: 1px solid #e2d8cf;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.bsc-sample-card:hover,
.bsc-sample-card.is-active,
.bsc-swatch:hover,
.bsc-swatch.is-active {
  border-color: var(--bsc-sample-accent, var(--bsc-accent, #794765));
  background: #fffdfb;
  transform: translateY(-1px);
}

.bsc-sample-card button {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: block;
  padding: 0;
  text-align: left;
  width: 100%;
}

.bsc-sample-card__image,
.bsc-swatch__image {
  aspect-ratio: 1.35;
  display: block;
  overflow: hidden;
}

.bsc-sample-card__image img,
.bsc-swatch__image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.bsc-sample-card strong,
.bsc-sample-card small,
.bsc-swatch strong,
.bsc-swatch small {
  display: block;
  padding-inline: 17px;
}

.bsc-sample-card strong,
.bsc-swatch strong {
  font-size: var(--bsc-fs-md);
  font-weight: 700;
  line-height: 1.2;
  margin-top: 15px;
  overflow-wrap: anywhere;
  text-transform: none;
}

.bsc-sample-card small,
.bsc-swatch small {
  color: #81766f;
  font-size: var(--bsc-fs-xs);
  line-height: 1.2;
  margin: 9px 0 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsc-sample-card__add {
  border-top: 1px solid #eee5dd !important;
  color: var(--bsc-sample-accent) !important;
  font-size: var(--bsc-fs-xs);
  font-weight: 800;
  letter-spacing: .04em;
  padding: 15px 17px !important;
  text-transform: uppercase;
}

.bsc-sample-card.is-active .bsc-sample-card__add {
  background: #f7edf3;
}

.bsc-sample-card__quick,
.bsc-swatch__zoom {
  align-items: center;
  background: rgba(255, 255, 255, .92) !important;
  border: 1px solid rgba(226, 216, 207, .9) !important;
  border-radius: 999px !important;
  color: var(--bsc-sample-accent, var(--bsc-accent, #794765)) !important;
  display: flex !important;
  height: 34px;
  justify-content: center;
  width: 34px !important;
}

.bsc-sample-card__quick {
  opacity: 0;
  position: absolute;
  right: 10px;
  top: 10px;
  transform: translateY(4px);
  transition: opacity .18s ease, transform .18s ease;
  z-index: 2;
}

.bsc-sample-card:hover .bsc-sample-card__quick,
.bsc-sample-card__quick:focus-visible {
  opacity: 1;
  transform: translateY(0);
}

.bsc-sample-card__quick span {
  display: none;
}

.bsc-sample-card__quick svg {
  display: block;
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 18px;
}

html.bsc-sample-lightbox-lock,
body.bsc-sample-lightbox-lock,
html.bsc-fabric-lightbox-lock,
body.bsc-fabric-lightbox-lock,
html.bsc-drawer-lock,
body.bsc-drawer-lock {
  overflow: hidden;
}

.bsc-fabric-preview-modal {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  padding: clamp(18px, 4vw, 48px);
  pointer-events: none;
  position: fixed;
  transition: opacity .22s ease;
  z-index: 2147483010;
}

.bsc-fabric-preview-modal[hidden] {
  display: none;
}

.bsc-fabric-preview-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.bsc-fabric-preview-modal__backdrop {
  appearance: none;
  background: rgba(39, 31, 27, .46);
  border: 0;
  cursor: pointer;
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity .22s ease;
}

.bsc-fabric-preview-modal.is-open .bsc-fabric-preview-modal__backdrop {
  opacity: 1;
}

.bsc-fabric-preview-modal__dialog {
  background: #f7f1ea;
  border: 1px solid rgba(226, 216, 207, .9);
  border-radius: 18px;
  box-shadow: none;
  max-width: min(860px, 92vw);
  opacity: 0;
  overflow: hidden;
  position: relative;
  transform: translateY(14px) scale(.975);
  transition: transform .28s cubic-bezier(.2,.7,.2,1), opacity .24s ease;
  width: 100%;
}

.bsc-fabric-preview-modal.is-open .bsc-fabric-preview-modal__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.bsc-fabric-preview-modal__close {
  appearance: none;
  background: rgba(255, 255, 255, .9);
  border: 1px solid #e2d8cf;
  border-radius: 999px;
  color: #5f534d;
  cursor: pointer;
  font-size: var(--bsc-fs-xs);
  font-weight: 800;
  letter-spacing: .08em;
  min-height: 34px;
  padding: 0 14px;
  position: absolute;
  right: 16px;
  text-transform: uppercase;
  top: 16px;
  z-index: 2;
}

.bsc-fabric-preview-modal__image {
  background: #f7f1ea;
  display: grid;
  height: clamp(300px, 54vh, 570px);
  overflow: hidden;
  place-items: center;
  position: relative;
}

.bsc-fabric-preview-modal__image.is-loading::before {
  animation: bsc-spin .75s linear infinite;
  border: 2px solid rgba(124, 74, 104, .18);
  border-radius: 999px;
  border-top-color: var(--bsc-accent, #7c4a68);
  content: "";
  height: 28px;
  left: calc(50% - 14px);
  position: absolute;
  top: calc(50% - 14px);
  width: 28px;
  z-index: 1;
}

.bsc-fabric-preview-modal__image.is-loading img {
  opacity: 0;
}

.bsc-fabric-preview-modal__image img,
.bsc-fabric-preview-modal__image span {
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 0;
  cursor: zoom-in;
  display: block;
  height: 100%;
  max-height: none;
  max-width: none;
  object-fit: cover;
  opacity: 1;
  transform-origin: center;
  transition: transform .18s ease, opacity .18s ease;
  width: 100%;
}

.bsc-fabric-preview-modal__image img.is-zooming,
.bsc-fabric-preview-modal__image span.is-zooming {
  cursor: zoom-out;
  transform: scale(1.8);
}

.bsc-sample-lightbox {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  padding: 24px;
  position: fixed;
  pointer-events: none;
  transition: opacity .22s ease;
  z-index: 999999;
}

.bsc-sample-lightbox[hidden] {
  display: none;
}

.bsc-sample-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.bsc-sample-lightbox__backdrop {
  background: rgba(39, 31, 27, .46);
  border: 0;
  cursor: pointer;
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity .22s ease;
}

.bsc-sample-lightbox__dialog {
  background: #fffdfb;
  border: 1px solid #e2d8cf;
  border-radius: 18px;
  box-shadow: none;
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(260px, .9fr);
  max-width: min(900px, 94vw);
  opacity: 0;
  overflow: hidden;
  position: relative;
  transform: translateY(14px) scale(.975);
  transition: transform .28s cubic-bezier(.2,.7,.2,1), opacity .24s ease;
  width: 100%;
}

.bsc-sample-lightbox.is-open .bsc-sample-lightbox__backdrop {
  opacity: 1;
}

.bsc-sample-lightbox.is-open .bsc-sample-lightbox__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.bsc-sample-lightbox__dialog--image-only {
  display: block;
  background: #f7f1ea;
  border: 1px solid rgba(226, 216, 207, .9);
  border-radius: 18px;
  max-width: min(860px, 92vw);
  overflow: hidden;
}

.bsc-sample-lightbox__close {
  background: rgba(255, 255, 255, .88);
  border: 1px solid #e2d8cf;
  border-radius: 999px;
  color: #5f534d;
  cursor: pointer;
  font-size: var(--bsc-fs-xs);
  font-weight: 800;
  letter-spacing: .08em;
  padding: 8px 14px;
  position: absolute;
  right: 16px;
  text-transform: uppercase;
  top: 16px;
  z-index: 2;
}

.bsc-sample-lightbox__image {
  background: #f5f0ea;
  min-height: 520px;
}

.bsc-sample-lightbox__dialog--image-only .bsc-sample-lightbox__image {
  background: #f7f1ea;
  display: grid;
  height: clamp(300px, 54vh, 570px);
  overflow: hidden;
  place-items: center;
  position: relative;
}

.bsc-sample-lightbox__image.is-loading::before,
.bsc-fabric-lightbox__image.is-loading::before {
  animation: bsc-spin .75s linear infinite;
  border: 2px solid rgba(124, 74, 104, .18);
  border-radius: 999px;
  border-top-color: var(--bsc-accent, #7c4a68);
  content: "";
  height: 28px;
  left: calc(50% - 14px);
  position: absolute;
  top: calc(50% - 14px);
  width: 28px;
  z-index: 1;
}

.bsc-sample-lightbox__image.is-loading img,
.bsc-fabric-lightbox__image.is-loading img {
  opacity: 0;
}

.bsc-sample-lightbox__image img,
.bsc-sample-lightbox__image span {
  display: block;
  height: 100%;
  max-height: none;
  max-width: none;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 0;
  cursor: zoom-in;
  opacity: 1;
  transition: transform .18s ease, opacity .18s ease;
  width: 100%;
}

.bsc-sample-lightbox__image img.is-zooming {
  cursor: zoom-out;
  transition: transform .14s ease-out;
}

.bsc-sample-tray {
  align-items: center;
  background: rgba(255, 255, 255, .94);
  border: 1px solid #e2d8cf;
  border-radius: 14px;
  box-shadow: none;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(230px, .8fr) minmax(360px, 1.2fr) minmax(190px, 260px);
  margin-top: 24px;
  padding: 16px;
  position: sticky;
  bottom: 18px;
  z-index: 3;
}

.bsc-sample-tray strong,
.bsc-sample-tray span {
  display: block;
}

.bsc-sample-tray span {
  color: #776d66;
  font-size: var(--bsc-fs-sm);
  margin-top: 3px;
  white-space: nowrap;
}

.bsc-sample-tray span strong {
  color: var(--bsc-sample-accent);
  display: inline;
  font-weight: 800;
}

.bsc-sample-selected {
  display: flex;
  gap: 0;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  padding-left: 10px;
}

.bsc-sample-selected.is-empty {
  opacity: 0;
  pointer-events: none;
}

.bsc-sample-selected button,
.bsc-sample-selected em {
  align-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #3a332f;
  display: inline-flex;
  appearance: none;
  flex: 0 0 38px;
  font-style: normal;
  gap: 8px;
  height: 38px;
  justify-content: center;
  margin-left: -10px;
  min-height: 42px;
  min-width: 0;
  overflow: visible;
  padding: 0;
  position: relative;
  width: 38px;
}

.bsc-sample-selected button {
  cursor: pointer;
  z-index: 1;
}

.bsc-sample-selected button:hover,
.bsc-sample-selected button:focus-visible {
  z-index: 4;
}

.bsc-sample-selected button img {
  border-radius: 999px;
  display: block;
  overflow: hidden;
}

.bsc-sample-selected button i {
  align-items: center;
  background: rgba(255, 255, 255, .95);
  border: 1px solid #e2d8cf;
  border-radius: 999px;
  color: var(--bsc-sample-accent);
  display: flex;
  font-size: var(--bsc-fs-xs);
  font-style: normal;
  font-weight: 800;
  height: 16px;
  justify-content: center;
  line-height: 1;
  opacity: 0;
  position: absolute;
  right: -2px;
  top: -2px;
  transition: opacity .16s ease;
  width: 16px;
  z-index: 5;
}

.bsc-sample-selected button:hover i,
.bsc-sample-selected button:focus-visible i {
  opacity: 1;
}

.bsc-sample-selected em {
  background: #fbf8f4;
  border-color: #e2d8cf;
  color: var(--bsc-sample-accent);
  flex-basis: 38px;
  font-size: var(--bsc-fs-xs);
  font-weight: 700;
  line-height: 1;
}

.bsc-sample-selected img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.bsc-sample-cart-link {
  align-items: center;
  background: #fbf8f4;
  border: 1px solid #e2d8cf;
  border-radius: 999px;
  color: var(--bsc-sample-accent);
  display: inline-flex;
  font-size: var(--bsc-fs-xs);
  font-weight: 800;
  justify-content: center;
  letter-spacing: .08em;
  min-height: 42px;
  padding: 0 18px;
  text-decoration: none;
  text-transform: uppercase;
}

.bsc-sample-cart-link:hover {
  background: #fff;
  border-color: var(--bsc-sample-accent);
  color: var(--bsc-sample-accent);
}

.bsc-sample-tray .bsc-summary-cta {
  background: var(--bsc-sample-accent);
  border-color: var(--bsc-sample-accent);
  box-shadow: none;
  color: #fff;
  min-width: 190px;
  min-height: 52px;
  width: 100%;
}

.bsc-sample-tray .bsc-summary-cta:hover {
  background: #5f354f;
  border-color: #5f354f;
  box-shadow: none;
}

.bsc-sample-tray .bsc-summary-cta:disabled {
  background: #e8e0d8;
  border-color: #e8e0d8;
  box-shadow: none;
  color: #8b8179;
}

@media (max-width: 760px) {
  .bsc-sample-grid {
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bsc-sample-card__quick {
    opacity: 1;
    transform: none;
  }

  .bsc-sample-card strong,
  .bsc-swatch strong {
    font-size: var(--bsc-fs-sm);
    line-height: 1.15;
    margin-top: 8px;
  }

  .bsc-sample-card small,
  .bsc-swatch small {
    font-size: var(--bsc-fs-xs);
    margin: 3px 0 8px;
  }

  .bsc-swatch__actions {
    opacity: 1;
  }

  .bsc-sample-lightbox {
    padding: 14px;
  }

  .bsc-sample-lightbox__dialog {
    grid-template-columns: 1fr;
    max-height: 92vh;
    overflow: auto;
  }

  .bsc-sample-lightbox__dialog--image-only {
    max-height: none;
    overflow: hidden;
  }

  .bsc-sample-lightbox__image {
    min-height: 320px;
  }

  .bsc-sample-lightbox__dialog--image-only .bsc-sample-lightbox__image {
    height: min(54vh, 390px);
  }

  .bsc-sample-lightbox__image img,
  .bsc-sample-lightbox__image span {
    max-height: none;
  }

  .bsc-fabric-preview-modal {
    padding: 14px;
  }

  .bsc-fabric-preview-modal__dialog {
    border-radius: 14px;
    max-height: none;
    max-width: min(440px, calc(100vw - 36px));
  }

  .bsc-fabric-preview-modal__image {
    aspect-ratio: 1.35;
    height: auto;
    max-height: 42vh;
    min-height: 0;
  }

  .bsc-fabric-preview-modal__image img,
  .bsc-fabric-preview-modal__image span {
    height: 100%;
    object-position: center;
    transform: none;
  }

  .bsc-fabric-preview-modal__image img.is-zooming,
  .bsc-fabric-preview-modal__image span.is-zooming {
    transform: scale(1.8);
  }

  .bsc-sample-tray {
    align-items: center;
    border-left: 0;
    border-radius: 12px 12px 0 0;
    border-right: 0;
    border-bottom: 0;
    bottom: 0;
    gap: 5px 12px;
    grid-template-columns: minmax(0, 1fr) minmax(138px, 44%);
    left: 0;
    margin: 0;
    padding: 8px 14px calc(8px + env(safe-area-inset-bottom, 0px));
    position: fixed;
    right: 0;
  }

  .bsc-sample-tray > div:first-child {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .bsc-sample-tray strong {
    font-size: var(--bsc-fs-xs);
    line-height: 1.2;
  }

  .bsc-sample-tray span {
    font-size: var(--bsc-fs-xs);
    line-height: 1.25;
    margin-top: 2px;
    white-space: normal;
  }

  .bsc-sample-tray .bsc-summary-cta {
    align-self: center;
    font-size: var(--bsc-fs-xs);
    grid-column: 2;
    grid-row: 1 / span 2;
    min-height: 38px;
    min-width: 0;
    padding: 0 10px;
    width: 100%;
  }

  .bsc-sample-selected {
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-start;
    max-height: 28px;
    overflow-x: auto;
    overflow-y: visible;
    padding: 0 0 0 8px;
  }

  .bsc-sample-selected.is-empty {
    display: none;
  }

  .bsc-sample-selected .bsc-sample-cart-link {
    display: none;
  }

  .bsc-sample-selected button,
  .bsc-sample-selected em {
    flex-basis: 26px;
    height: 26px;
    min-height: 26px;
    width: 26px;
  }

  .bsc-sample-selected em {
    font-size: var(--bsc-fs-xs);
  }
}

@media (max-width: 430px) {
  .bsc-sample-tray {
    grid-template-columns: minmax(0, 1fr) 122px;
    padding: 7px 10px calc(7px + env(safe-area-inset-bottom, 0px));
  }

  .bsc-sample-tray .bsc-summary-cta {
    font-size: var(--bsc-fs-xs);
    min-height: 38px;
  }
}

.bsc-configurator {
  --bsc-ink: #302a28;
  --bsc-muted: #776f69;
  --bsc-subtle: #9b928b;
  --bsc-line: #e5ddd6;
  --bsc-line-strong: #cdbfb4;
  --bsc-bg: #f4f0eb;
  --bsc-panel: #fffdfb;
  --bsc-soft: #faf7f3;
  --bsc-accent: #70465f;
  --bsc-accent-dark: #573347;
  --bsc-accent-soft: #f4edf1;
  --bsc-brown: #8b6b4e;
  --bsc-display-font: "Playfair Display", Georgia, serif;
  background: transparent;
  color: var(--bsc-ink);
  display: grid;
  column-gap: clamp(26px, 3.4vw, 78px);
  grid-template-columns: minmax(0, 1.22fr) minmax(clamp(430px, 30vw, 620px), .78fr);
  margin: clamp(18px, 2.2vw, 34px) auto;
  max-width: min(96vw, 1940px);
  min-height: 0;
  overflow: visible;
  position: relative;
  width: 96%;
}

.bsc-configurator.is-drawer-open {
  z-index: 2147483645;
}

.bsc-configurator button,
.bsc-configurator input {
  font: inherit;
}

.bsc-configurator button:focus-visible,
.bsc-configurator input:focus-visible {
  outline: 2px solid var(--bsc-accent);
  outline-offset: 3px;
}

/* Visual studio column */
.bsc-preview-pane {
  align-self: start;
  box-shadow: none;
  display: grid;
  gap: 14px;
  min-width: 0;

  position: sticky;
  top: 24px;
}

.bsc-preview-copy {
  display: none;
}

.bsc-kicker {
  color: var(--bsc-accent);
  display: block;
  font-size: var(--bsc-fs-xs);
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.bsc-preview-copy h2,
.bsc-control-pane h2,
.bsc-step__head h3,
.bsc-summary-head h1,
.bsc-price-bar__total strong {
  font-family: var(--bsc-display-font);
  font-weight: 400;
  letter-spacing: 0;
}

.bsc-preview-copy h2 {
  font-size: var(--bsc-fs-display);
  line-height: .98;
  margin: 12px 0 14px;
}

.bsc-preview-copy p,
.bsc-step__head p,
.bsc-showing,
.bsc-price-bar p,
.bsc-delivery-note {
  color: var(--bsc-muted);
}

.bsc-preview-copy p {
  font-size: var(--bsc-fs-md);
  line-height: 1.55;
  margin: 0;
}

.bsc-preview-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  min-height: 0;
  padding: 0;
}

.bsc-preview-card__media {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 14px;
  box-shadow: none;
  display: flex;
  justify-content: center;
  min-height: clamp(430px, 40vw, 740px);
  overflow: hidden;
  padding: clamp(8px, 1.15vw, 20px);
  position: relative;
  width: 100%;
}

.bsc-preview__image {
  display: block;
  height: 100%;
  max-height: none;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  opacity: 1;
  transform: scale(1);
  transition: opacity .28s ease, transform .5s ease;
  width: 100%;
}

.bsc-preview__image.is-fading {
  opacity: .68;
}

.bsc-preview-arrow {
  align-items: center;
  appearance: none;
  background: rgba(255,253,250,.92);
  border: 1px solid rgba(123,68,100,.28);
  border-radius: 999px;
  color: var(--bsc-accent);
  cursor: pointer;
  display: none;
  height: 40px;
  justify-content: center;
  opacity: .96;
  padding: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: background .18s ease, border-color .18s ease, color .18s ease;
  width: 40px;
  z-index: 2;
}

.bsc-preview-arrow[hidden] {
  display: none;
}

.bsc-preview-arrow::before {
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  content: "";
  display: block;
  height: 9px;
  width: 9px;
}

.bsc-preview-arrow--prev {
  left: 14px;
}

.bsc-preview-arrow--prev::before {
  transform: rotate(45deg) translate(1px, -1px);
}

.bsc-preview-arrow--next {
  right: 14px;
}

.bsc-preview-arrow--next::before {
  transform: rotate(225deg) translate(1px, -1px);
}

.bsc-preview-arrow:hover,
.bsc-preview-arrow:focus-visible {
  background: #fff;
  border-color: var(--bsc-accent);
  color: var(--bsc-accent);
}

.bsc-preview-caption {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--bsc-line);
  border-radius: 10px;
  bottom: clamp(12px, 1.25vw, 22px);
  box-shadow: 0 10px 24px rgba(39,31,28,.08);
  color: var(--bsc-ink);
  font-size: var(--bsc-fs-sm);
  left: 50%;
  line-height: 1.35;
  margin: 0;
  max-width: min(520px, calc(100% - 128px));
  padding: 8px 12px;
  position: absolute;
  text-align: center;
  transform: translateX(-50%);
  width: max-content;
  z-index: 1;
}

.bsc-preview-caption[hidden] {
  display: none;
}

.bsc-preview-gallery {
  display: flex;
  gap: clamp(14px, 1.05vw, 22px);
  margin-top: clamp(20px, 1.55vw, 32px);
  overflow-x: auto;
  padding-bottom: 2px;
}

.bsc-preview-gallery[hidden] {
  display: none;
}

.bsc-preview-gallery button {
  appearance: none;
  background: #fff;
  border: 1px solid var(--bsc-line);
  border-radius: 10px;
  cursor: pointer;
  height: clamp(96px, 6.4vw, 138px);
  overflow: hidden;
  padding: 2px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  width: clamp(132px, 8.7vw, 190px);
}

.bsc-preview-gallery button:hover {
  border-color: var(--bsc-line-strong);
  transform: translateY(-1px);
}

.bsc-preview-gallery button.is-active {
  border-color: var(--bsc-accent);
  box-shadow: 0 0 0 1px var(--bsc-accent) inset;
}

.bsc-preview-gallery img {
  border-radius: 8px;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.bsc-gallery-preload {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  width: 1px;
}

.bsc-preview-fabric {
  align-items: center;
  background: rgba(255,253,251,.94);
  border: 1px solid var(--bsc-line);
  border-radius: 12px;
  display: inline-flex;
  gap: 10px;
  margin-top: 16px;
  max-width: 100%;
  min-height: 54px;
  padding: 7px 16px 7px 7px;
}

.bsc-preview-fabric[hidden] {
  display: none;
}

.bsc-preview-fabric__swatch {
  border: 1px solid var(--bsc-line);
  border-radius: 999px;
  display: block;
  height: 40px;
  overflow: hidden;
  width: 40px;
}

.bsc-preview-fabric__swatch img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.bsc-preview-fabric small,
.bsc-preview-fabric strong {
  display: block;
}

.bsc-preview-fabric small {
  color: var(--bsc-subtle);
  font-size: var(--bsc-fs-xs);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.bsc-preview-fabric strong {
  font-size: var(--bsc-fs-sm);
  line-height: 1.2;
}

.bsc-preview-proof {
  border-bottom: 1px solid rgba(205,191,180,.72);
  border-top: 1px solid rgba(205,191,180,.72);
  display: none;
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 4px 0 8px;
  padding: 14px 0;
}

.bsc-preview-proof li {
  border-right: 1px solid rgba(205,191,180,.62);
  padding: 0 16px;
}

.bsc-preview-proof li:first-child {
  padding-left: 0;
}

.bsc-preview-proof li:last-child {
  border-right: 0;
  padding-right: 0;
}

.bsc-preview-proof strong,
.bsc-preview-proof span {
  display: block;
}

.bsc-preview-proof strong {
  color: var(--bsc-ink);
  font-size: var(--bsc-fs-md);
  font-weight: 400;
  line-height: 1.1;
}

.bsc-preview-proof span {
  color: var(--bsc-muted);
  font-size: var(--bsc-fs-xs);
  line-height: 1.3;
  margin-top: 4px;
}

/* Configuration column */
.bsc-control-pane {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  grid-template-rows: auto auto auto;
  min-width: 0;
  padding: 0;
  position: sticky;
  top: 24px;
  align-self: start;
}

.bsc-control-pane h2 {
  font-size: var(--bsc-fs-xxl);
  line-height: 1;
  margin: 8px 0 12px;
}

.bsc-steps-scroll {
  background: var(--bsc-panel);
  border-left: 1px solid var(--bsc-line);
  box-shadow: none;
  bottom: 0;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  min-height: 0;
  opacity: 0;
  overscroll-behavior: contain;
  overflow-y: auto;
  padding: 0 clamp(22px, 2.6vw, 34px) 0;
  pointer-events: none;
  position: fixed;
  right: 0;
  scrollbar-color: var(--bsc-line-strong) transparent;
  scrollbar-width: thin;
  top: 0;
  transform: translateX(102%);
  transition: opacity .22s ease, transform .28s ease;
  -webkit-overflow-scrolling: touch;
  width: min(750px, 100vw);
  z-index: 2147483647;
}

.bsc-configurator.is-drawer-open .bsc-steps-scroll {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.bsc-drawer-backdrop {
  background: rgba(48,42,40,.34);
  bottom: 0;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 2147483646;
}

.bsc-drawer-backdrop[hidden] {
  display: none;
}

.bsc-drawer-head {
  align-items: start;
  background: rgba(255,253,251,.96);
  border-bottom: 1px solid var(--bsc-line);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin: 0 calc(clamp(22px, 2.6vw, 34px) * -1) 20px;
  padding: 12px clamp(22px, 2.6vw, 34px);
  position: sticky;
  top: 0;
  z-index: 4;
  backdrop-filter: blur(10px);
}

.bsc-drawer-head h2 {
  font-size: var(--bsc-fs-xl);
  margin: 0;
}

.bsc-drawer-close {
  appearance: none;
  background: #fff;
  border: 1px solid var(--bsc-line);
  border-radius: 999px;
  color: var(--bsc-muted);
  cursor: pointer;
  font-size: var(--bsc-fs-xs);
  font-weight: 800;
  min-height: 34px;
  padding: 0 14px;
  transition: border-color .18s ease, color .18s ease;
}

.bsc-drawer-close:hover {
  border-color: var(--bsc-accent);
  color: var(--bsc-accent);
}

.bsc-quick-steps {
  display: grid;
  gap: clamp(12px, .85vw, 18px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bsc-quick-steps button {
  appearance: none;
  background: rgba(255,255,255,.74);
  border: 1px solid var(--bsc-line);
  border-radius: 12px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr clamp(56px, 3.9vw, 78px);
  column-gap: clamp(10px, .75vw, 16px);
  min-height: clamp(82px, 5.35vw, 108px);
  padding: clamp(12px, .9vw, 18px);
  text-align: left;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.bsc-quick-steps button:hover {
  border-color: var(--bsc-accent);
  box-shadow: 0 16px 34px rgba(62,49,42,.09);
  transform: translateY(-1px);
}

.bsc-quick-steps button:disabled {
  background: #f5f1ec;
  color: var(--bsc-subtle);
  cursor: not-allowed;
  opacity: .62;
  transform: none;
}

.bsc-quick-steps .bsc-quick-thumb {
  align-self: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  display: block;
  grid-column: 2;
  grid-row: 1 / span 2;
  height: clamp(56px, 3.9vw, 78px);
  justify-self: end;
  overflow: hidden;
  width: clamp(56px, 3.9vw, 78px);
  border-radius: 7px;
}

.bsc-quick-steps .bsc-quick-thumb[hidden] {
  display: none;
}

.bsc-quick-steps .bsc-quick-thumb img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.bsc-quick-steps span:not(.bsc-quick-thumb),
.bsc-quick-steps strong {
  display: block;
  grid-column: 1;
}

.bsc-quick-steps span:not(.bsc-quick-thumb) {
  color: var(--bsc-accent);
  font-size: var(--bsc-fs-xs);
  font-weight: 800;
  letter-spacing: .14em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.bsc-quick-steps strong {
  color: var(--bsc-ink);
  font-size: var(--bsc-fs-md);
  font-weight: 400;
  line-height: 1.25;
}

.bsc-step[hidden] {
  display: none;
}

.bsc-step {
  padding-bottom: 92px;
}

.bsc-drawer-footer {
  align-items: center;
  background: rgba(255,253,251,.97);
  border-top: 1px solid var(--bsc-line);
  bottom: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(84px, auto) 1fr minmax(170px, auto);
  margin: 20px calc(clamp(22px, 2.6vw, 34px) * -1) 0;
  padding: 12px clamp(22px, 2.6vw, 34px);
  position: sticky;
  z-index: 4;
  backdrop-filter: blur(10px);
}

.bsc-drawer-footer p {
  color: var(--bsc-muted);
  font-size: var(--bsc-fs-xs);
  line-height: 1.35;
  margin: 0;
}

.bsc-drawer-back,
.bsc-drawer-next {
  appearance: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 800;
  min-height: 42px;
  padding: 0 18px;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.bsc-drawer-back {
  background: #fff;
  border: 1px solid var(--bsc-line);
  color: var(--bsc-muted);
}

.bsc-drawer-back:hover {
  border-color: var(--bsc-line-strong);
  color: var(--bsc-ink);
}

.bsc-drawer-next {
  background: #e8e1da;
  border: 1px solid #ded4cb;
  color: #8f857c;
}

.bsc-drawer-next.is-ready {
  background: var(--bsc-accent);
  border-color: var(--bsc-accent);
  color: #fff;
}

.bsc-drawer-next.is-ready:hover {
  background: var(--bsc-accent-dark);
  border-color: var(--bsc-accent-dark);
}

.bsc-drawer-back:disabled,
.bsc-drawer-next:disabled {
  cursor: not-allowed;
  opacity: .72;
}

.bsc-step__head h3 {
  display: none;
}

.bsc-step__head p {
  display: none;
}

.bsc-step__head {
  display: none;
}

/* Premium selection cards */
.bsc-style-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bsc-style-pill,
.bsc-size-card,
.bsc-leg-card,
.bsc-swatch,
.bsc-chip-row button,
.bsc-cushion-options button,
.bsc-load,
.bsc-summary-cta {
  appearance: none;
  border: 1px solid var(--bsc-line);
  border-radius: 10px;
  color: var(--bsc-ink);
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
}

.bsc-style-pill {
  align-items: stretch;
  background: #fff;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr clamp(78px, 5vw, 108px);
  min-height: clamp(126px, 7.8vw, 164px);
  overflow: hidden;
  padding: 16px;
  position: relative;
  text-align: left;
}

.bsc-style-pill:hover,
.bsc-size-card:hover,
.bsc-leg-card:hover,
.bsc-swatch:hover {
  border-color: var(--bsc-line-strong);
  transform: translateY(-1px);
}

.bsc-style-pill.is-active,
.bsc-size-card.is-active,
.bsc-leg-card.is-active,
.bsc-swatch.is-active {
  border-color: var(--bsc-accent);
}

.bsc-style-pill__thumb {
  background: transparent;
  display: block;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  height: clamp(78px, 5vw, 108px);
  overflow: hidden;
  position: relative;
}

.bsc-style-pill__thumb img {
  display: block;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  transition: opacity .18s ease;
  width: 100%;
}

.bsc-style-pill__copy {
  display: grid;
  gap: 7px;
  grid-column: 1;
  grid-row: 1;
  padding: 0;
}

.bsc-style-pill strong {
  font-size: var(--bsc-fs-lg);
  font-weight: 400;
  line-height: 1;
}

.bsc-style-pill small {
  color: var(--bsc-muted);
  font-size: var(--bsc-fs-sm);
  line-height: 1.3;
}

.bsc-style-pill em {
  color: var(--bsc-brown);
  font-size: var(--bsc-fs-xs);
  font-style: normal;
  font-weight: 700;
  letter-spacing: .02em;
}

.bsc-size-grid,
.bsc-leg-grid {
  display: grid;
  gap: clamp(12px, .9vw, 18px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bsc-size-card {
  background: #fff;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr clamp(110px, 7.4vw, 115px);
  min-height: clamp(128px, 8.4vw, 170px);
  padding: clamp(16px, 1.1vw, 22px);
  position: relative;
  text-align: left;
}

.bsc-size-card__thumb {
  align-self: stretch;
  background: transparent;
  border-radius: 8px;
  display: block;
  grid-column: 2;
  grid-row: 1;
  min-height: clamp(104px, 6.9vw, 146px);
  overflow: hidden;
  position: relative;
}

.bsc-size-card__thumb img {
  display: block;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  transition: opacity .18s ease;
  width: 100%;
}

.bsc-style-pill__thumb.is-loading img,
.bsc-size-card__thumb.is-loading img {
  opacity: 0;
}

.bsc-thumb-spinner {
  display: none !important;
}

.bsc-size-card__copy {
  align-self: center;
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.bsc-size-card strong,
.bsc-size-card span,
.bsc-size-card em {
  display: block;
}

.bsc-size-card strong {
  font-size: calc(3px + var(--bsc-fs-md));
  line-height: 1.2;
  margin-bottom: 8px;
}

.bsc-size-card span,
.bsc-leg-card small {
  color: var(--bsc-muted);
  font-size: var(--bsc-fs-sm);
  line-height: 1.35;
}

.bsc-size-card em {
  color: var(--bsc-accent);
  font-size: var(--bsc-fs-sm);
  font-style: normal;
  font-weight: 800;
  margin-top: 9px;
}

.bsc-summary-cta {
  background: linear-gradient(135deg, var(--bsc-accent), var(--bsc-accent-dark));
  border-color: var(--bsc-accent);
  box-shadow: 0 12px 24px rgba(112,70,95,.18);
  color: #fff;
  font-weight: 800;
  min-height: 52px;
  padding: 0 22px;
}

.bsc-summary-cta:hover {
  background: linear-gradient(135deg, var(--bsc-accent-dark), #432636);
  border-color: var(--bsc-accent-dark);
  box-shadow: 0 16px 28px rgba(112,70,95,.24);
}

.bsc-load {
  background: #fff;
  font-weight: 700;
  min-height: 52px;
  padding: 0 22px;
}

.bsc-load:hover {
  border-color: var(--bsc-line-strong);
  background: var(--bsc-soft);
}

.bsc-summary-cta:disabled {
  background: #e8e1da;
  border-color: #ded4cb;
  box-shadow: none;
  color: #8f857c;
  cursor: not-allowed;
}

/* Fabric search and swatches */
.bsc-fabric-curation {
  display: none;
}

.bsc-fabric-curation span {
  color: var(--bsc-accent);
  display: block;
  font-size: var(--bsc-fs-xs);
  font-weight: 800;
  letter-spacing: .14em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.bsc-fabric-curation p {
  color: var(--bsc-muted);
  font-size: var(--bsc-fs-sm);
  line-height: 1.45;
  margin: 0;
}

.bsc-filters {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}

.bsc-filters input {
  background: #fff;
  border: 1px solid var(--bsc-line);
  border-radius: 10px;
  min-height: 50px;
  padding: 0 16px;
}

.bsc-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bsc-chip-row button,
.bsc-cushion-options button {
  align-items: center;
  background: #fff;
  border-color: var(--bsc-line);
  display: inline-flex;
  font-size: var(--bsc-fs-sm);
  font-weight: 700;
  gap: 8px;
  justify-content: center;
}

.bsc-colour-row button:hover {
  transform: translateY(-1px);
}

.bsc-showing {
  font-size: var(--bsc-fs-sm);
  margin: 0 0 16px;
}

.bsc-swatches-wrap {
  position: relative;
}

.bsc-swatches {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  transition: opacity .18s ease, filter .18s ease;
}

.bsc-swatches.is-loading {
  filter: blur(.4px);
  opacity: .38;
  pointer-events: none;
}

.bsc-swatches-loading {
  align-items: center;
  background: rgba(255,253,251,.76);
  border-radius: 10px;
  display: flex;
  inset: 0;
  justify-content: center;
  position: absolute;
  z-index: 2;
}

.bsc-swatches-loading[hidden],
.bsc-load[hidden] {
  display: none;
}

.bsc-swatch {
  display: flex;
  flex-direction: column;
  padding: 0 0 9px;
  text-align: left;
}

.bsc-swatch__image img {
  display: block;
}

.bsc-swatch strong {
  text-transform: capitalize;
}

.bsc-swatch__actions {
  opacity: 0;
  position: absolute;
  right: 7px;
  top: 7px;
  transition: opacity .18s ease;
}

.bsc-swatch:hover .bsc-swatch__actions,
.bsc-swatch:focus-visible .bsc-swatch__actions {
  opacity: 1;
}

.bsc-swatch__zoom {
  display: inline-flex;
}

.bsc-swatch__zoom svg {
  display: block;
  fill: currentColor;
  height: 17px;
  width: 17px;
}

.bsc-load {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
  width: 100%;
}

.bsc-spinner {
  animation: bsc-spin .7s linear infinite;
  border: 2px solid rgba(48,42,40,.2);
  border-radius: 999px;
  border-top-color: var(--bsc-ink);
  display: inline-block;
  height: 16px;
  width: 16px;
}

html.bsc-fabric-lightbox-lock,
body.bsc-fabric-lightbox-lock {
  overflow: hidden;
}

.bsc-fabric-lightbox {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  padding: clamp(18px, 4vw, 48px);
  pointer-events: none;
  position: fixed;
  transition: opacity .22s ease;
  z-index: 1300;
}

.bsc-fabric-lightbox[hidden] {
  display: none;
}

.bsc-fabric-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.bsc-fabric-lightbox__backdrop {
  appearance: none;
  background: rgba(48,42,40,.48);
  border: 0;
  inset: 0;
  position: absolute;
}

.bsc-fabric-lightbox__dialog {
  background: var(--bsc-panel);
  border: 1px solid var(--bsc-line);
  border-radius: 18px;
  max-height: min(590px, 72vh);
  max-width: min(760px, 92vw);
  overflow: hidden;
  position: relative;
  transform: translateY(10px) scale(.985);
  transition: transform .22s ease;
  width: 100%;
}

.bsc-fabric-lightbox.is-open .bsc-fabric-lightbox__dialog {
  transform: translateY(0) scale(1);
}

.bsc-fabric-lightbox__close {
  appearance: none;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--bsc-line);
  border-radius: 999px;
  color: var(--bsc-ink);
  cursor: pointer;
  font-size: var(--bsc-fs-xs);
  font-weight: 800;
  min-height: 34px;
  padding: 0 14px;
  position: absolute;
  right: 14px;
  text-transform: uppercase;
  top: 14px;
  z-index: 2;
}

.bsc-fabric-lightbox__image {
  background: #f8f4ef;
  display: block;
  height: min(525px, 62vh);
  overflow: hidden;
  position: relative;
}

.bsc-fabric-lightbox__image img,
.bsc-fabric-lightbox__image span {
  cursor: zoom-in;
  display: block;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transform-origin: center;
  transition: transform .18s ease, opacity .18s ease;
  width: 100%;
}

.bsc-fabric-lightbox__image img.is-zooming,
.bsc-fabric-lightbox__image span.is-zooming {
  cursor: zoom-out;
  transform: scale(1.8);
}

@keyframes bsc-spin {
  to { transform: rotate(360deg); }
}

/* Legs and cushion styling */
.bsc-leg-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bsc-leg-card {
  align-items: center;
  background: #fff;
  display: grid;
  justify-items: center;
  min-height: 132px;
  padding: 16px 14px;
  position: relative;
  text-align: center;
}

.bsc-leg-card__image {
  align-items: center;
  display: flex;
  height: 42px;
  justify-content: center;
  border-radius: 8px;
}

.bsc-leg-card__image img {
  max-height: 42px;
  max-width: 72px;
  object-fit: contain;
  border-radius: 6px;
}

.bsc-leg-card strong {
  font-size: var(--bsc-fs-sm);
  line-height: 1.15;
}

.bsc-cushion-panel {
  background: linear-gradient(135deg, rgba(244,237,241,.62), rgba(250,247,243,.9));
  border: 1px solid var(--bsc-line);
  border-radius: 12px;
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  transition: border-color .18s ease, background .18s ease;
}

.bsc-cushion-panel.is-guided {
  background: rgba(244,237,241,.95);
  border-color: var(--bsc-accent);
}

.bsc-cushion-panel > span {
  color: var(--bsc-accent);
  font-size: var(--bsc-fs-xs);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.bsc-cushion-options {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-height: none;
  overflow: visible;
  padding-right: 4px;
}

.bsc-cushion-options button {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 28px 1fr;
  min-height: 42px;
  padding: 7px 9px;
  text-align: left;
}

.bsc-cushion-options button:first-child {
  align-items: center;
  display: flex;
  grid-column: 1 / -1;
  justify-content: center;
  white-space: nowrap;
}

.bsc-cushion-options span {
  border-radius: 999px;
  display: block;
  height: 28px;
  overflow: hidden;
  width: 28px;
}

.bsc-cushion-options span img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.bsc-cushion-options strong {
  font-size: var(--bsc-fs-xs);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

/* Purchase summary */
.bsc-price-bar {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  gap: clamp(16px, 1.2vw, 24px);
  margin: 0;
  padding: clamp(24px, 2.4vw, 44px);
  position: relative;
  z-index: 1;
}

.bsc-summary-head {
  border-bottom: 1px solid var(--bsc-line);
  padding-bottom: 18px;
}

.bsc-summary-head h1 {
  font-size: var(--bsc-fs-xxl);
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
  text-align: left;
}

.bsc-price-bar__total {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}

.bsc-price-bar__total span {
  flex-basis: 100%;
}

.bsc-price-bar__total strong {
  font-size: var(--bsc-fs-xl);
  font-weight: 400;
  line-height: 1;
}

.bsc-price-bar.is-price-ready .bsc-price-bar__total strong {
  font-size: var(--bsc-fs-xl);
}

.bsc-price-bar__total small {
  color: var(--bsc-muted);
}

.bsc-price-bar p {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
}

.bsc-price-bar p span {
  background: #fff;
  border: 1px solid var(--bsc-line);
  border-radius: 999px;
  color: var(--bsc-accent);
  font-size: var(--bsc-fs-xs);
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.2;
  padding: 6px 10px;
  text-transform: uppercase;
}

.bsc-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bsc-trust-list li {
  color: var(--bsc-muted);
  font-size: var(--bsc-fs-sm);
  line-height: 1.25;
  padding-left: 14px;
  position: relative;
  white-space: nowrap;
}

.bsc-trust-list li::before {
  background: var(--bsc-accent);
  border-radius: 999px;
  content: "";
  height: 5px;
  left: 0;
  position: absolute;
  top: .45em;
  width: 5px;
}

.bsc-delivery-note {
  border-top: 1px solid var(--bsc-line);
  font-size: var(--bsc-fs-sm);
  line-height: 1.35;
  padding-top: 12px;
}

.bsc-panel-accordions {
  border-bottom: 1px solid var(--bsc-line);
  border-top: 1px solid var(--bsc-line);
}

.bsc-panel-accordions details {
  border-bottom: 1px solid var(--bsc-line);
}

.bsc-panel-accordions details:last-child {
  border-bottom: 0;
}

.bsc-panel-accordions summary {
  color: var(--bsc-ink);
  cursor: pointer;
  font-size: var(--bsc-fs-sm);
  font-weight: 800;
  list-style: none;
  padding: 13px 0;
  position: relative;
}

.bsc-panel-accordions summary::-webkit-details-marker {
  display: none;
}

.bsc-panel-accordions summary::after {
  color: var(--bsc-accent);
  content: "+";
  position: absolute;
  right: 0;
  top: 13px;
}

.bsc-panel-accordions details[open] summary::after {
  content: "-";
}

.bsc-panel-accordions p {
  color: var(--bsc-muted);
  font-size: var(--bsc-fs-sm);
  line-height: 1.45;
  margin: -4px 0 13px;
}

.bsc-cushion-agreement {
  align-items: flex-start;
  background: rgba(255,255,255,.74);
  border: 1px solid var(--bsc-line);
  border-radius: 10px;
  color: var(--bsc-muted);
  cursor: pointer;
  display: flex;
  gap: 11px;
  line-height: 1.45;
  padding: 14px;
}

.bsc-cushion-agreement[hidden] {
  display: none;
}

.bsc-cushion-agreement input {
  accent-color: var(--bsc-accent);
  flex: 0 0 auto;
  height: 18px;
  margin: 2px 0 0;
  width: 18px;
}

.bsc-cushion-agreement span {
  color: var(--bsc-muted);
  display: block;
  font-size: var(--bsc-fs-sm);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-transform: none;
}

.bsc-summary-cta {
  font-size: var(--bsc-fs-md);
  min-height: clamp(56px, 3.7vw, 72px);
  width: 100%;
}

.bsc-message {
  color: var(--bsc-muted);
  margin: 0;
  min-height: 24px;
  padding: 8px 0 0;
}

.bsc-message:empty {
  display: none;
}

@media (max-width: 1180px) {
  .bsc-configurator {
    column-gap: clamp(18px, 2vw, 28px);
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    margin: 20px auto;
    max-width: min(96vw, 1180px);
    width: 96%;
  }

  .bsc-preview-pane {
    position: sticky;
    top: 18px;
  }

  .bsc-preview-card__media {
    min-height: clamp(360px, 42vw, 520px);
  }

  .bsc-preview__image {
    max-height: none;
  }

  .bsc-control-pane {
    border-left: 0;
    border-top: 0;
    position: sticky;
    top: 18px;
  }

  .bsc-price-bar {
    padding: clamp(18px, 2vw, 26px);
  }

}

@media (max-width: 860px) {
  .bsc-configurator {
    column-gap: 14px;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr);
    max-width: min(96vw, 860px);
    width: 96%;
  }

  .bsc-preview-card__media {
    min-height: clamp(300px, 41vw, 390px);
    padding: 8px;
  }

  .bsc-preview__image {
    max-height: none;
  }

  .bsc-preview-gallery button {
    height: clamp(74px, 9.8vw, 92px);
    width: clamp(100px, 13vw, 124px);
  }

  .bsc-price-bar {
    gap: 14px;
    padding: 18px;
  }

  .bsc-summary-head h1 {
    font-size: var(--bsc-fs-xl);
  }

  .bsc-price-bar__total strong,
  .bsc-price-bar.is-price-ready .bsc-price-bar__total strong {
    font-size: var(--bsc-fs-xxl);
  }

  .bsc-quick-steps {
    gap: 10px;
  }

  .bsc-quick-steps button {
    grid-template-columns: 1fr 46px;
    min-height: 78px;
    padding: 10px 12px;
  }

  .bsc-quick-steps .bsc-quick-thumb {
    height: 40px;
    width: 45px;
  }
}

@media (max-width: 640px) {
  .bsc-configurator {
    background: transparent;
    grid-template-columns: 1fr;
    margin: 0;
    max-width: 100%;
    width: 100%;
  }

  .bsc-preview-pane {
	position: relative;
    top:unset;
    background: transparent;
    margin-bottom: 14px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0;
    width: 100vw;
  }

  .bsc-control-pane {
    padding: 0;
  }

  .bsc-steps-scroll {
    bottom: 0;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 18px;
    top: 0;
  }

  .bsc-drawer-head {
    background: rgba(255,253,251,.97);
    margin: 0 -18px 18px;
    padding: 10px 18px;
    position: sticky;
    top: 0;
    z-index: 4;
  }

  .bsc-drawer-head h2 {
    font-size: var(--bsc-fs-lg);
  }

  .bsc-drawer-footer {
    gap: 8px;
    grid-template-columns: auto 1fr;
    margin: 18px -18px 0;
    padding: 10px 18px;
  }

  .bsc-drawer-footer p {
    display: none;
  }

  .bsc-drawer-next {
    grid-column: 2;
  }

  .bsc-drawer-back[hidden] + p + .bsc-drawer-next {
    grid-column: 1 / -1;
  }

  .bsc-preview-copy h2 {
    font-size: var(--bsc-fs-xxl);
  }

  .bsc-preview-card {
    border-radius: 0;
    min-height: 280px;
    padding: 0;
  }

  .bsc-preview-card__media {
    background: transparent;
    border: 0;
    border-radius: 0;
    height: min(58vw, 300px);
    min-height: 260px;
    padding: 0;
  }

  .bsc-preview__image {
    height: 100%;
    max-height: none;
    max-width: 100%;
    object-fit: cover;
    width: 100%;
  }

  .bsc-preview-gallery {
    margin-top: 14px;
    padding: 0 16px 4px;
  }

  .bsc-preview-gallery button {
    height: 68px;
    width: 92px;
  }

  .bsc-preview-gallery img {
    height: 100%;
    object-fit: cover;
    width: 100%;
  }

  .bsc-preview-caption {
    bottom: 12px;
    border-radius: 8px;
    font-size: 12px;
    max-width: calc(100% - 112px);
    padding: 7px 10px;
  }

  .bsc-preview-arrow {
    display: flex;
    height: 34px;
    width: 34px;
  }

  .bsc-preview-arrow[hidden] {
    display: none;
  }

  .bsc-preview-arrow--prev {
    left: 10px;
  }

  .bsc-preview-arrow--next {
    right: 10px;
  }

  .bsc-style-list,
  .bsc-size-grid,
  .bsc-cushion-options {
    grid-template-columns: 1fr;
  }

  .bsc-leg-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bsc-swatches {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bsc-swatch__actions {
    opacity: 1;
  }

  .bsc-fabric-lightbox {
    padding: 14px;
  }

  .bsc-sample-lightbox__dialog--image-only,
  .bsc-fabric-lightbox__dialog {
    border-radius: 14px;
    max-height: none;
    max-width: min(440px, calc(100vw - 36px));
  }

  .bsc-sample-lightbox__dialog--image-only .bsc-sample-lightbox__image,
  .bsc-fabric-lightbox__image {
    aspect-ratio: 1.35;
    height: auto;
    max-height: 42vh;
    min-height: 0;
  }

  .bsc-sample-lightbox__image img,
  .bsc-sample-lightbox__image span,
  .bsc-fabric-lightbox__image img,
  .bsc-fabric-lightbox__image span {
    height: 100%;
    object-position: center;
    transform: none;
  }

  .bsc-sample-lightbox__image img.is-zooming,
  .bsc-sample-lightbox__image span.is-zooming,
  .bsc-fabric-lightbox__image img.is-zooming,
  .bsc-fabric-lightbox__image span.is-zooming {
    transform: scale(1.8);
  }

  .bsc-style-pill {
    grid-template-columns: 1fr 68px;
    min-height: 112px;
  }

  .bsc-style-pill__thumb {
    height: 68px;
  }

  .bsc-style-pill strong {
    font-size: var(--bsc-fs-lg);
  }

  .bsc-style-pill small {
    font-size: var(--bsc-fs-sm);
  }

  .bsc-size-card {
    grid-template-columns: 1fr 86px;
    min-height: 106px;
  }

  .bsc-size-card__thumb {
    min-height: 78px;
  }

  .bsc-size-card strong {
    font-size: var(--bsc-fs-md);
  }

  .bsc-price-bar {
    border-radius: 12px 12px 0 0;
    margin: 0 -22px;
    padding: 16px 20px;
    position: sticky;
    bottom: 0;
    z-index: 5;
  }


  .bsc-summary-head h1 {
    text-align: left;
  }

  .bsc-trust-list {
    grid-template-columns: 1fr;
  }

  .bsc-preview-proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 14px;
  }

  .bsc-preview-proof li:nth-child(2) {
    border-right: 0;
  }

}

@media (max-width: 430px) {
  .bsc-preview-pane {
    padding: 0;
  }

  .bsc-control-pane {
    padding: 0;
  }

  .bsc-style-pill {
    grid-template-columns: 1fr 64px;
  }

  .bsc-style-pill__thumb {
    height: auto;
  }

  .bsc-swatches {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bsc-leg-grid {
    grid-template-columns: 1fr;
  }
}
label.bsc-sample-sort {
    display: none;
}