.sbx-page [hidden] { display: none !important; }

.sbx-styles {
  padding: clamp(52px, 6vw, 84px) 0 clamp(48px, 5vw, 72px);
  background: #fbf9f5;
  border-bottom: 1px solid #ded7cb;
}

.sbx-styles > .wrap {
  width: min(1280px, calc(100% - 80px));
  margin-inline: auto;
  padding-inline: 0;
}

.sbx-styles-heading {
  max-width: 760px;
  margin-bottom: clamp(26px, 4vw, 44px);
}

.sbx-page #product-content .sbx-styles-heading h2 {
  margin: 12px 0 18px;
  color: #20271d;
  font-size: clamp(29px, 3.8vw, 48px);
  letter-spacing: -.045em;
}

.sbx-styles-heading > p:last-child {
  max-width: 64ch;
  color: #625f56;
  font-size: 16px;
  line-height: 1.8;
}

.sbx-style-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 32px);
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.sbx-style-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.sbx-style-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 2.3vw, 30px);
  min-width: 0;
  padding: clamp(22px, 2.4vw, 34px);
  background: #fff;
  border: 2px solid #ddd8ce;
  border-radius: 16px;
  cursor: pointer;
  transition: border-color .15s;
}

.sbx-style-card:hover { border-color: #a87962; }
.sbx-style-card:has(input:checked) { border-color: #a8462d; }
.sbx-style-card:has(input:focus-visible) { outline: 3px solid #253c2c; outline-offset: 4px; }

.sbx-style-card > input {
  position: absolute;
  z-index: 1;
  inset: 18px 18px auto auto;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #a8462d;
  cursor: pointer;
}

.sbx-style-photo {
  position: relative;
  display: block;
  min-width: 0;
  height: clamp(170px, 18vw, 248px);
  background: #fff;
}

.sbx-style-photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.sbx-style-card-copy { display: flex; flex-direction: column; min-width: 0; }

.sbx-style-format {
  padding-right: 20px;
  color: #8d3e28;
  font-size: 10px;
  line-height: 1.6;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.sbx-style-product {
  margin: 10px 0 6px;
  color: #20271d;
  font-size: clamp(22px, 2vw, 27px);
  line-height: 1.22;
  letter-spacing: -.035em;
}

.sbx-style-capacity { margin-bottom: 13px; color: #333c2f; font-size: 15px; line-height: 1.5; font-weight: 700; }
.sbx-style-description { color: #625f56; font-size: 13px; line-height: 1.75; }
.sbx-style-distinction { margin-top: 14px; padding-top: 12px; border-top: 1px solid #e6dfd4; color: #6e675b; font-size: 11px; line-height: 1.65; }
.sbx-style-select { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 17px; color: #a44027; font-size: 12px; font-weight: 700; }
.sbx-style-select-active, .sbx-style-card:has(input:checked) .sbx-style-select-idle { display: none; }
.sbx-style-card:has(input:checked) .sbx-style-select-active { display: inline; }

.sbx-page #product-content .sbx-style-shielding {
  max-width: 88ch;
  margin: 22px 0 0;
  padding-inline-start: 14px;
  border-inline-start: 2px solid #d7c7b7;
  color: #625f56;
  font-size: 13px;
  line-height: 1.7;
}

.sbx-page #product-content .sbx-desktop-options {
  display: grid;
  grid-template:
    "title title"
    "preview choices" / minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(26px, 3.3vw, 45px) clamp(26px, 5vw, 76px);
  margin: clamp(38px, 5.2vw, 74px) 0 0;
  padding: clamp(24px, 4.2vw, 58px);
  border: 1px solid #ded7cb;
  border-radius: 18px;
  background: #fff;
}

.sbx-page #product-content .sbx-desktop-options h3 {
  color: #20271d;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.16;
  letter-spacing: -.045em;
}

.sbx-desktop-options > h3 { grid-area: title; }
.sbx-page #product-content .sbx-config-choices > h3 { margin-bottom: 24px; }

.sbx-config-media { grid-area: preview; min-width: 0; }
.sbx-config-stage, .sbx-config-figure > #sbx-config-image {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
  margin-inline: auto;
}
.sbx-config-stage #sbx-config-image, .sbx-config-figure > #sbx-config-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 10px;
}

.sbx-config-figure figcaption {
  max-width: 55ch;
  margin: 14px auto 0;
  color: #625f56;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.sbx-config-angles { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 14px; }
.sbx-page #product-content .sbx-config-angles button {
  min-height: 44px;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #625f56;
  background: transparent;
  font: 600 12px/1.4 Poppins, Arial, sans-serif;
}
.sbx-page #product-content .sbx-config-angles button[aria-pressed="true"] { border-color: #d4d9ce; color: #243a2b; background: #f2f4ee; }
.sbx-config-angles button:focus-visible { outline: 2px solid #253c2c; outline-offset: 3px; }

.sbx-config-choices { grid-area: choices; min-width: 0; }
.sbx-config-choices fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.sbx-config-choices fieldset + fieldset { margin-top: 28px; }
.sbx-config-choices legend { padding: 0; margin: 0 0 10px; color: #333c2f; font-size: 15px; line-height: 1.5; font-weight: 700; }
.sbx-interior-choices { display: grid; gap: 9px; }
.sbx-finish-choices { display: flex; flex-wrap: wrap; gap: 8px; }

.sbx-interior-option, .sbx-finish-option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  border: 1px solid #ded7cb;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.sbx-interior-option { gap: 12px; padding: 12px 14px; }
.sbx-finish-option { position: relative; padding: 8px 11px; color: #3a3d35; font-size: 12px; font-weight: 600; }
.sbx-finish-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.sbx-finish-dot { width: 17px; height: 17px; flex: none; border: 1px solid #b5aa98; border-radius: 50%; background: var(--sbx-finish); }
.sbx-interior-option input { flex: none; width: 17px; height: 17px; margin: 0; accent-color: #a8462d; }
.sbx-interior-option strong, .sbx-interior-option span span { display: block; line-height: 1.55; }
.sbx-interior-option strong { color: #20271d; font-size: 14px; }
.sbx-interior-option span span { margin-top: 3px; color: #625f56; font-size: 12px; }

.sbx-interior-option:has(input:checked), .sbx-finish-option:has(input:checked) {
  border-color: #a8462d;
  background: #fff8f2;
}

.sbx-interior-option:has(input:focus-visible), .sbx-finish-option:has(input:focus-visible) {
  outline: 2px solid #253c2c;
  outline-offset: 3px;
}

.sbx-page #product-content .sbx-finish-note {
  margin: 12px 0 0;
  color: #625f56;
  font-size: 13px;
  line-height: 1.65;
}

.sbx-finish-note a {
  color: #913722;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sbx-style-explore { margin-top: 34px; padding-top: 22px; border-top: 1px solid #ded7cb; text-align: left; }
.sbx-page #product-content .sbx-style-status { margin: 0 0 8px; color: #35432d; font-size: 14px; font-weight: 700; }
.sbx-style-links { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 30px; }
.sbx-style-links a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 0; color: #9c3b24; font-size: 15px; font-weight: 650; line-height: 1.4; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.sbx-style-links a:hover { color: #20271d; }
.sbx-style-links a:focus-visible, .sbx-style-cart-link:focus-visible { outline: 3px solid #b5482b; outline-offset: 5px; }
.sbx-style-cart-link { display: inline-flex; align-items: center; gap: 16px; margin-top: 16px; padding: 14px 18px; background: #273a2b; border-radius: 6px; color: #fff; font-size: 14px; font-weight: 650; line-height: 1.6; text-decoration: none; }
.sbx-style-cart-link:hover { background: #3d533e; }

.sbx-cart-dialog { width: min(1050px, 94vw); max-width: 94vw; max-height: 94vh; border: 0; border-radius: 12px; padding: 48px 20px 20px; background: #fff; }
.sbx-cart-dialog::backdrop { background: #101510bf; }
.sbx-cart-dialog img { display: block; max-width: 100%; max-height: 78vh; width: auto; height: auto; margin: auto; object-fit: contain; }
.sbx-cart-dialog button { position: absolute; right: 13px; top: 10px; border: 1px solid #d9d3c8; border-radius: 5px; background: #fff; color: #222; font: 600 13px Poppins, Arial, sans-serif; padding: 7px 13px; cursor: pointer; }

.sbx-open-specifications { background: #f7f4ed; }
.sbx-open-specification-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); align-items: start; gap: clamp(24px, 5vw, 72px); }
.sbx-page #product-content .sbx-open-specifications h2 { max-width: 570px; margin: 12px 0 20px; color: #20271d; font-size: clamp(28px, 4vw, 50px); line-height: 1.12; letter-spacing: -.045em; }
.sbx-page #product-content .sbx-open-specifications h2 + p { margin: 0 0 22px; color: #625f56; line-height: 1.8; }
.sbx-open-facts { padding: 4px clamp(16px, 3vw, 27px); border: 1px solid #ded7cb; border-radius: 10px; background: #fff; }
.sbx-open-facts div { padding-block: 15px; }
.sbx-open-facts div + div { border-top: 1px solid #e6dfd4; }
.sbx-open-facts dt { color: #35432d; font-size: 13px; font-weight: 700; }
.sbx-page #product-content .sbx-open-facts dd { margin-top: 4px; color: #625f56; font-size: 13px; line-height: 1.6; }

@media (max-width: 1040px) and (min-width: 701px) {
  .sbx-style-card { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .sbx-style-photo { height: 190px; }
}

@media (max-width: 900px) {
  .sbx-styles > .wrap { width: calc(100% - 44px); }
  .sbx-page #product-content .sbx-desktop-options {
    grid-template: "title" "preview" "choices" / minmax(0, 1fr);
  }
  .sbx-config-stage, .sbx-config-figure > #sbx-config-image { max-width: 380px; }
}

@media (max-width: 700px) {
  .sbx-styles > .wrap { width: calc(100% - 36px); }
  .sbx-styles-heading > p:last-child { font-size: 14px; }
  .sbx-style-options, .sbx-open-specification-grid { grid-template-columns: minmax(0, 1fr); }
  .sbx-style-card { grid-template-columns: minmax(0, .63fr) minmax(0, 1fr); padding: 21px 16px; gap: 16px; }
  .sbx-style-card > input { inset: 12px 12px auto auto; width: 18px; height: 18px; }
  .sbx-style-photo { height: clamp(135px, 33vw, 200px); }
  .sbx-style-format { font-size: 9px; }
  .sbx-style-capacity { font-size: 14px; margin-bottom: 10px; }
  .sbx-style-description { font-size: 12px; }
  .sbx-style-distinction { font-size: 10px; }
  .sbx-style-select { margin-top: 12px; font-size: 11px; }
  .sbx-page #product-content .sbx-style-shielding { margin-top: 18px; font-size: 12px; }
  .sbx-page #product-content .sbx-desktop-options { padding: 23px 18px; }
  .sbx-style-links { column-gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .sbx-style-card { transition: none; }
}
