/* Product page redesign — Phase 1.6 (hover lift, accordion polish). */

/* ================================================================
   Images: never crop. JCOGS preset already does contain-fit; CSS
   reinforces. (Memory: feedback_image_cropping)
   ================================================================ */
.cs-product-page .cs-img,
.cs-product-page picture img,
.cs-product-page .cs-gallery__slide img,
.cs-product-page .cs-card-slim img,
.cs-product-page .cs-gallery__thumb img {
  object-fit: contain !important;
  object-position: center;
}

/* Expand-section image: contained inside aspect-[4/3] frame, never cropped.
   Force the grid wrapper to a single 1fr×1fr track so percentages on the
   child resolve against the cell size (default `auto` tracks size to content
   and would let portrait images blow past the frame). */
.cs-product-page .cs-expand-image {
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
}
.cs-product-page .cs-expand-image picture,
.cs-product-page .cs-expand-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ================================================================
   Listing-card hover (canonical pattern: translateY(-8px) + shadow + soft border)
   from search-results.scss:385-410. Reused on:
   - Gallery thumbs
   - Gallery main frame card
   - YMAL slim cards
   - DYP accordion rows
   Use a class so it composes cleanly with peer/checked states.
   ================================================================ */
.cs-lift {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
              box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
              border-color 0.3s ease;
}
.cs-lift:hover,
.cs-lift:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  border-color: #d6cfc1; /* stone-soft */
}

/* ================================================================
   Gallery thumbs — small lift + zoom inside on hover
   ================================================================ */
/* Give the thumbs rail room for the -8px lift + shadow without clipping. */
.cs-gallery__thumbs {
  padding: 12px 12px 24px;
  scrollbar-width: thin;
}
.cs-gallery__thumbs::-webkit-scrollbar { width: 6px; height: 6px; }
.cs-gallery__thumbs::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.15); border-radius: 3px; }

.cs-gallery__thumb {
  background: #fff !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
              box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
              border-color 0.3s ease;
}
.cs-gallery__thumb:hover,
.cs-gallery__thumb:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  border-color: #d6cfc1;
}
.cs-gallery__thumb img,
.cs-gallery__thumb picture img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 8s ease-out;
  display: block;
}
.cs-gallery__thumb:hover img,
.cs-gallery__thumb:focus img {
  transform: scale(1.06) rotate(0.5deg);
}
.cs-gallery__thumb--active {
  border-color: #abc578 !important;
  box-shadow: 0 0 0 2px #abc578;
}

/* ================================================================
   Main gallery frame — listing-card hover (lift + shadow + border)
   ================================================================ */
.cs-gallery__frame > div {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
              box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
              border-color 0.3s ease;
}
.cs-gallery__frame:hover > div,
.cs-gallery__frame:focus-within > div {
  transform: translateY(-8px);
  border-color: #d6cfc1;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.cs-gallery__slide {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 4%;
}
/* Suite frame is much wider than product frame, so 4% reads as excessive
   whitespace. Tighten on suite specifically so the image fills the card. */
[data-cs-gallery-suite] .cs-gallery__slide { padding: 1.5%; }
.cs-gallery__slide picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.cs-gallery__slide picture img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  transition: transform 8s ease-out;
}
.cs-gallery__frame:hover .cs-gallery__slide[aria-hidden="false"] picture img,
.cs-gallery__frame:hover .cs-gallery__slide:not([aria-hidden]) picture img,
.cs-gallery__frame:focus-within .cs-gallery__slide[aria-hidden="false"] picture img,
.cs-gallery__frame:focus-within .cs-gallery__slide:not([aria-hidden]) picture img {
  transform: scale(1.06) rotate(0.5deg);
}

/* ================================================================
   DYP — accordion CSS-locked at md+
   ================================================================ */
details[data-cs-accordion-item] {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: #fff;
  margin-bottom: 8px;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
              box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
              border-color 0.3s ease;
}
details[data-cs-accordion-item] summary::-webkit-details-marker { display: none; }
details[data-cs-accordion-item] summary { list-style: none; cursor: pointer; }
details[data-cs-accordion-item][open] > summary .cs-dyp__chevron {
  transform: rotate(180deg);
}

@media (max-width: 767px) {
  details[data-cs-accordion-item]:hover,
  details[data-cs-accordion-item]:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    border-color: #abc578;
  }
}

@media (min-width: 768px) {
  details[data-cs-accordion-item].cs-accordion-item--static > summary {
    pointer-events: none;
    cursor: default;
  }
  details[data-cs-accordion-item].cs-accordion-item--static > summary .cs-dyp__chevron {
    display: none;
  }
}

/* DYP summary inner padding */
.cs-dyp__summary {
  padding: 14px 16px;
}

/* (Legacy summary > span > span:first-child + [data-cs-label-text] rules removed —
   they pre-dated the new accordion design and conflicted with .cs-dyp__label-title
   / .cs-dyp__label-value rules below. Source of truth is now the new .cs-dyp__label-*
   block, which applies uniformly to both real and placeholder rows.) */

.cs-dyp__sections .form-row:not([data-cs-accordion-item]):not(.cs-dyp__section--placeholder):not(.cs-dyp__section--static) {
  padding: 12px 16px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  margin-bottom: 8px;
}

/* ================================================================
   Wood swatch strip — actual woods inside opened section
   ================================================================ */
.cs-wood-strip {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 2px 12px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.cs-wood-strip .cs-swatch {
  flex: 0 0 88px;
  scroll-snap-align: start;
}
.cs-wood-strip .cs-swatch > span:first-of-type {
  width: 88px;
  height: 88px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.cs-wood-strip img {
  border-radius: 6px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cs-swatch input.tw-peer:focus-visible + span {
  outline: 2px solid #abc578;
  outline-offset: 2px;
}
.cs-swatch input.tw-peer:checked + span {
  border-color: #abc578 !important;
  box-shadow: 0 0 0 2px #abc578;
}

/* ================================================================
   Tabs — outlined hover, brand-green active underline
   ================================================================ */
.cs-tabs__tab {
  position: relative;
  background: transparent;
  border: 1px solid transparent;
  color: #6b6c68;
  font-family: "Gotham", Arial, Helvetica, sans-serif;
  font-weight: 500;
  letter-spacing: 0.08em;
  border-radius: 6px 6px 0 0;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.cs-tabs__tab:hover,
.cs-tabs__tab:focus-visible {
  color: #4e4f4b;
  background: rgba(171, 197, 120, 0.08);
  border-color: rgba(171, 197, 120, 0.4);
  outline: none;
}
.cs-tabs__tab--active {
  color: #4e4f4b;
}
.cs-tabs__tab--active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 3px;
  background: #abc578;
  border-radius: 2px 2px 0 0;
}

.cs-tabs__panel { transition: opacity 250ms ease-out; }
.cs-tabs--mode-tabs .cs-tabs__panel:not(.cs-tabs__panel--active) { display: none; }
.cs-tabs--mode-accordion .cs-tabs__panel [data-cs-tab-body] { display: none; }
.cs-tabs--mode-accordion .cs-tabs__panel--open [data-cs-tab-body] { display: block; padding: 16px 4px 24px; }
.cs-tabs--mode-accordion .cs-tabs__panel--open [data-cs-accordion-summary] svg { transform: rotate(180deg); }

/* Mobile accordion summaries inside tab panels (h3 with data-cs-accordion-summary).
   Hidden on md+ via tw-sr-only utility. On mobile they're the disclosure rows. */
.cs-tabs [data-cs-accordion-summary] {
  font-family: "Gotham", Arial, Helvetica, sans-serif !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #4e4f4b !important;
  background: #fff;
  border-radius: 0;
  margin: 0 !important;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.cs-tabs [data-cs-accordion-summary]:focus-visible {
  background: rgba(171, 197, 120, 0.08);
  color: #63773a !important;
  outline: none;
}
@media (hover: hover) {
  .cs-tabs [data-cs-accordion-summary]:hover {
    background: rgba(171, 197, 120, 0.08);
    color: #63773a !important;
  }
}
.cs-tabs [data-cs-accordion-summary] svg {
  transition: transform 0.25s ease;
}
.cs-tabs__panel--open > [data-cs-accordion-summary] svg {
  transform: rotate(180deg);
}

/* ================================================================
   Sticky bar
   ================================================================ */
.cs-sticky-bar.cs-sticky-bar--visible { transform: translateY(0) !important; }

/* Lift floating buttons (back-to-top + LiveChat) above the bar on mobile
   so they don't cover it. Offsets track the bar's real height via the
   --cs-sticky-bar-h var set in cs-sticky-cta.js. Desktop puts the bar at
   the top (md:), so no collision there. */
:root { --cs-sticky-bar-h: 0px; }

@media (max-width: 767px) {
  /* Teaser banner up (z 1190) would otherwise cover the bar (z 50): stack above it. */
  body.csnl-teaser-up .cs-sticky-bar {
    bottom: var(--cs-teaser-h, 0px);
    transition: transform .3s ease-out, bottom .35s ease;
  }
  body.cs-sticky-bar-active #back-to-top {
    bottom: calc(20px + var(--cs-sticky-bar-h));
  }
  body.cs-sticky-bar-active #chat-widget-container {
    bottom: var(--cs-sticky-bar-h) !important;
    transition: bottom .3s ease-out;
  }
}

/* ================================================================
   Strip carousel — track scrollbar hidden, arrows edge-aligned
   with permanent shadow + green hover (matches home rotator).
   ================================================================ */
[data-cs-strip] { position: relative; }

/* Hide native scrollbar on the snap track + give the lift transform
   symmetric vertical breathing room (so the top border + shadow don't
   get clipped, and the strip's geometric center matches the card's). */
[data-cs-strip-track] {
  scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;    /* old Edge */
  padding-top: 24px !important;
  padding-bottom: 24px !important;
}
[data-cs-strip-track]::-webkit-scrollbar { display: none; }

/* Edge-aligned circular nav buttons */
.cs-strip__btn {
  background: #fff !important;
  border: 1px solid rgba(0, 0, 0, 0.05);
  color: #4e4f4b;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease,
              visibility 0.3s ease,
              background-color 0.25s ease,
              color 0.25s ease,
              transform 0.25s ease,
              box-shadow 0.25s ease;
}
.cs-strip__btn:hover,
.cs-strip__btn:focus-visible {
  background: #abc578 !important;
  color: #2f302d !important;
  border-color: #abc578;
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  outline: none;
}
/* Center the arrow horizontally on the strip's left/right border (=left edge
   of card 1 / right edge of card N when fully visible). Vertically align to
   the IMAGE center via JS-set --cs-strip-y (cs-strip.js measures first item's
   image area on mount + resize + after image load). Fallback: 35% of strip. */
[data-cs-strip] [data-cs-strip-prev],
[data-cs-strip] [data-cs-strip-next] {
  top: var(--cs-strip-y, 35%) !important;
}
[data-cs-strip] [data-cs-strip-prev] {
  left: 0;
  transform: translate(-50%, -50%);
}
[data-cs-strip] [data-cs-strip-next] {
  right: 0;
  transform: translate(50%, -50%);
}
[data-cs-strip] [data-cs-strip-prev]:hover,
[data-cs-strip] [data-cs-strip-prev]:focus-visible {
  transform: translate(-50%, -50%) scale(1.05);
}
[data-cs-strip] [data-cs-strip-next]:hover,
[data-cs-strip] [data-cs-strip-next]:focus-visible {
  transform: translate(50%, -50%) scale(1.05);
}
@media (max-width: 767px) {
  [data-cs-strip] [data-cs-strip-prev] { left: 8px; transform: translateY(-50%); }
  [data-cs-strip] [data-cs-strip-next] { right: 8px; transform: translateY(-50%); }
  [data-cs-strip] [data-cs-strip-prev]:hover,
  [data-cs-strip] [data-cs-strip-prev]:focus-visible,
  [data-cs-strip] [data-cs-strip-next]:hover,
  [data-cs-strip] [data-cs-strip-next]:focus-visible {
    transform: translateY(-50%) scale(1.05);
  }
}
.cs-strip__btn--disabled,
.cs-strip__btn[aria-disabled="true"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  cursor: not-allowed;
}

/* ================================================================
   YMAL / In-set slim cards — listing-card hover (full card lift)
   ================================================================ */
.cs-card-slim {
  position: relative;
  display: flex;
  align-items: stretch;
}
.cs-card-slim > a {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none !important;
  color: #4e4f4b;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
              box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
              border-color 0.3s ease;
  padding: 0 0 16px;
  width: 100%;
  height: 100%;
}
.cs-card-slim > a:hover,
.cs-card-slim > a:focus-visible {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  border-color: #d6cfc1;
  text-decoration: none !important;
  color: #4e4f4b;
  outline: none;
}
.cs-card-slim > a > div:first-of-type {
  background: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: hidden;
  transition: none;
  padding: 12px;
}
.cs-card-slim > a:hover > div:first-of-type,
.cs-card-slim > a:focus > div:first-of-type {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}
/* Same grid-template trick as cs-expand-image: force the inner grid wrapper
   to a single 1fr track so picture/img height:100% clamps to the frame. */
.cs-card-slim > a > div > span {
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
}
.cs-card-slim picture,
.cs-card-slim picture img,
.cs-card-slim img {
  transition: transform 8s ease-out;
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  display: block;
}
.cs-card-slim > a:hover picture img,
.cs-card-slim > a:hover img,
.cs-card-slim > a:focus picture img,
.cs-card-slim > a:focus img {
  transform: scale(1.06) rotate(0.5deg);
}
.cs-card-slim h3 {
  font-family: "SinaNovaRegular", Georgia, "Times New Roman", serif !important;
  font-weight: 400 !important;
  font-size: 16px !important;          /* YMAL tw-text-base */
  line-height: 1.4 !important;
  color: #4e4f4b !important;           /* YMAL tw-text-brand-charcoal */
  text-decoration: none !important;
  text-transform: none !important;
  margin: 10px 16px 4px !important;
  text-align: center;
  flex: 1 1 auto;
}
@media (min-width: 768px) {
  .cs-card-slim h3 { font-size: 18px !important; }  /* YMAL md:tw-text-lg */
}
.cs-card-slim > a:hover h3,
.cs-card-slim > a:focus h3 {
  text-decoration: none !important;
  color: #4e4f4b !important;
}
.cs-card-slim p {
  margin: 0 16px !important;
  text-align: center;
  /* Match YMAL price exactly (Gotham 14px). !important guards against the
     landing page's `.home p { font-family:SinaNova; font-size:20px }` leak. */
  font-family: "Gotham", Arial, Helvetica, sans-serif !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  color: #6b6c68 !important;
  margin-top: auto !important;
}
.cs-card-slim p span {
  font-family: "Gotham", Arial, Helvetica, sans-serif !important;
  font-size: 14px !important;
  color: #63773a !important;
  font-weight: 600 !important;
}

/* YMAL section breathing room above strip */
.cs-ymal header { margin-bottom: 0.5rem; }
.cs-ymal [data-cs-strip] { overflow: visible; }
/* Listing cards in the YMAL strip: give the scroller vertical room so the
   hover lift + shadow (.cs-search__card--listing) isn't clipped by overflow-x. */
.cs-ymal [data-cs-strip-track] {
  margin-top: -16px;
  margin-bottom: -40px;
  padding-top: 20px;
  padding-bottom: 48px;
  scrollbar-width: none;
}
.cs-ymal [data-cs-strip-track]::-webkit-scrollbar { display: none; }
.cs-ymal [data-cs-strip-track] > .cs-search__card { height: auto; }
.cs-ymal .cs-search__card-media picture { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.cs-ymal .cs-search__card-media picture img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }

/* In-article / landing carousel heading (now an <h4>): centered with a gap
   below before the strip. */
.cs-strip-block__title {
  text-align: center;
  margin-bottom: 1.75rem;
}

/* Hide the horizontal scrollbar on the carousel strips (still scrollable via
   drag/arrows). Overrides the inline `scrollbar-width: thin` on the track. */
[data-cs-strip-track] {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
[data-cs-strip-track]::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* ================================================================
   Carousel on non-white sections — wrap the strip (NOT the title) in
   one rounded white panel so cards read as a single unit (no per-card
   boxing / gaps on cream). The .cs-strip-panel wrapper sits below the
   title; only it gets the panel chrome. Cards stay transparent inside.
   White sections get no panel (cards already sit on white).
   ================================================================ */
:is(.color-egg-white, .color-beige) .cs-strip-panel {
  background: #fff;
  border-radius: 16px;
  /* Wide gutter so the edge-centered prev/next arrows (anchored to the
     strip edges, half-button = 24px) sit fully inside with breathing room. */
  padding: 24px 52px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}
@media (max-width: 767px) {
  /* Arrows hide on mobile (md:tw-grid) — tighten the panel gutter. */
  :is(.color-egg-white, .color-beige) .cs-strip-panel {
    padding: 18px 16px;
  }
}
/* Arrows: straddle the panel's left/right border (horizontally centered on it)
   when the panel is live. They anchor to [data-cs-strip], which is inset by the
   panel's 52px gutter — pull them back out to the border. Vertical centering on
   the image (--cs-strip-y) is untouched. */
:is(.color-egg-white, .color-beige) .cs-strip-panel [data-cs-strip-prev] {
  left: -52px;
}
:is(.color-egg-white, .color-beige) .cs-strip-panel [data-cs-strip-next] {
  right: -52px;
}
/* Cards sit transparent on the panel at rest; on hover they pop to white and
   inherit the base YMAL lift (translateY + shadow + stone border + image zoom). */
:is(.color-egg-white, .color-beige) .cs-strip-panel .cs-card-slim > a {
  background: transparent;
}
:is(.color-egg-white, .color-beige) .cs-strip-panel .cs-card-slim > a:hover,
:is(.color-egg-white, .color-beige) .cs-strip-panel .cs-card-slim > a:focus-visible {
  background: #fff;
}
/* The scroll track is overflow:auto, which clips the hover lift/shadow/side
   borders at the panel edges (on md the mobile -mx-4 buffer is removed). Re-add
   a buffer via padding + compensating negative margin so the hover decoration
   renders outside the card box without shifting card positions or the gutter. */
@media (min-width: 768px) {
  :is(.color-egg-white, .color-beige) .cs-strip-panel [data-cs-strip-track] {
    padding: 12px 18px 30px;
    margin-left: -18px;
    margin-right: -18px;
    scroll-padding-left: 18px;
  }
}

/* ================================================================
   Stars
   ================================================================ */
/* Gold row overlays the grey row; its inline width (0–100%) shows the rating. */
.cs-stars { display: inline-block; position: relative; line-height: 1; letter-spacing: 1px; white-space: nowrap; }
.cs-stars__inner { position: absolute; top: 0; left: 0; overflow: hidden; white-space: nowrap; letter-spacing: 1px; color: #f5b20a; }
.cs-stars__outer { letter-spacing: 1px; color: rgba(0, 0, 0, 0.15); }

/* Shared .cs-prose typography lives in imports/prose.scss (main.css). */

/* ================================================================
   Cart drawer
   ================================================================ */
.cs-cart-drawer[aria-hidden="true"] { pointer-events: none; }

/* ================================================================
   Hide thumbnail-row legacy outputs
   ================================================================ */
.cs-dyp .thumbnail.tw-hidden { display: none; }

/* ================================================================
   Suite single-review card (embeds/suite-review)
   Option B: centered hero quote on cream background
   ================================================================ */
.cs-suite-review {
  background: #fcf8f1;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  text-align: center;
  padding: 24px 28px 32px;
  margin: 0;
}
.cs-suite-review__mark {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-style: normal;
  font-weight: 700;
  font-size: 72px;
  line-height: 0.6;
  height: 28px;
  color: #63773a;
  opacity: 0.55;
  margin: 0 0 8px;
  user-select: none;
}
.cs-suite-review__body {
  font-family: "SinaNovaRegular", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 20px;
  line-height: 1.6;
  color: rgba(78, 79, 75, 0.95);
  max-width: 56ch;
  margin: 0 auto 22px;
  padding: 0;
  border: 0;
}
@media (min-width: 768px) {
  .cs-suite-review { padding: 32px 32px 40px; }
  .cs-suite-review__body { font-size: 22px; }
  .cs-suite-review__mark { font-size: 88px; height: 34px; margin-bottom: 10px; }
}
.cs-suite-review__rule {
  display: block;
  width: 48px;
  height: 1px;
  background: #63773a;
  opacity: 0.4;
  margin: 0 auto 12px;
}
.cs-suite-review__name {
  display: block;
  font-family: "Gotham", Arial, Helvetica, sans-serif;
  font-style: normal;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(78, 79, 75, 0.8);
}
@media (max-width: 480px) {
  .cs-suite-review { padding: 20px 20px 26px; }
  .cs-suite-review__body { font-size: 18px; }
}

/* ================================================================
   Reviews — clean cs-review markup (no legacy yotpo classes)
   Card with listing-card hover lift, semantic typography
   ================================================================ */
.cs-reviews > .cs-review:first-of-type,
.cs-reviews > .cs-reviews__fallback,
.cs-reviews > .tw-grid {
  margin-top: 2.5rem;
}
.cs-reviews__fallback > .cs-review:first-child {
  margin-top: 0;
}

/* Product page: the first three reviews show, the rest wait behind "Show more reviews"
   (cs-reviews-more.js adds .is-expanded). Their lazy images stay unloaded until revealed. */
.cs-reviews__list:not(.is-expanded) > .cs-review:nth-child(n+4) { display: none; }
.cs-reviews__more { display: flex; justify-content: center; margin-top: 2rem; }
/* Three or fewer reviews: no button. Browsers without :has() drop this rule; the script removes it there. */
.cs-reviews:not(:has(.cs-reviews__list > .cs-review:nth-child(4))) .cs-reviews__more { display: none; }
.cs-reviews__more-btn { border-style: none; cursor: pointer; }
.cs-reviews__list > .cs-review:focus { outline: none; }

.cs-review {
  display: block;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  padding: 20px;
  margin: 0 0 16px;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
              box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
              border-color 0.3s ease;
}
.cs-review:hover,
.cs-review:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  border-color: #d6cfc1;
}

/* Header row: avatar + byline + date */
.cs-review__header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

/* Avatar */
.cs-review__avatar {
  position: relative;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #abc578;
  color: #2f302d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Gotham", Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  text-transform: uppercase;
  user-select: none;
}
.cs-review__avatar-letter {
  display: block;
  margin: 0;
  padding: 0;
  text-align: center;
  line-height: 1;
}
.cs-review__avatar-check {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #63773a;
  border: 2px solid #fff;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.cs-review__avatar-check svg {
  width: 10px;
  height: 10px;
  display: block;
}

/* Byline column (name + chip + product link + stars) */
.cs-review__byline {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cs-review__name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  line-height: 1.3;
}
.cs-review__name {
  font-family: "Gotham", Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #4e4f4b;
}
.cs-review__chip {
  font-family: "Gotham", Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #55672f; /* #63773a is 4.47:1 on the tinted chip */
  background: rgba(171, 197, 120, 0.18);
  border-radius: 999px;
  padding: 3px 9px;
  line-height: 1;
  white-space: nowrap;
}
.cs-review__product {
  font-family: "Gotham", Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #6b6c68;
  margin: 0;
  line-height: 1.4;
}
.cs-review__product a {
  color: #63773a;
  font-weight: 500;
  text-decoration: none;
}
.cs-review__product a:hover { color: #63773a; text-decoration: underline; }

/* Stars row */
.cs-review__stars {
  display: inline-block;
  font-size: 16px;
  letter-spacing: 2px;
  color: #f5b20a;
  line-height: 1;
}
.cs-review__stars .yotpo-stars { display: inline-flex; gap: 1px; }
.cs-review__stars .yotpo-icon,
.cs-review__stars .rating-star {
  display: inline-block;
  width: auto;
  height: auto;
  background-image: none;
  font-size: 16px;
  line-height: 1;
  margin: 0;
  padding: 0;
  float: none;
  font-style: normal;
}
.cs-review__stars .yotpo-icon-star::before { content: "★"; color: #f5b20a; display: inline-block; }
.cs-review__stars .yotpo-icon-empty-star::before { content: "★"; color: rgba(0, 0, 0, 0.18); display: inline-block; }
.cs-review__stars .yotpo-icon-half-star::before {
  content: "★";
  display: inline-block;
  background: linear-gradient(90deg, #f5b20a 50%, rgba(0, 0, 0, 0.18) 50%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.cs-review__stars .sr-only {
  position: absolute;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Date */
.cs-review__date {
  flex: 0 0 auto;
  font-family: "Gotham", Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: #6b6c68;
  white-space: nowrap;
  margin-left: auto;
}

/* Body */
.cs-review__body {
  padding-left: 52px;
}
@media (max-width: 600px) {
  .cs-review__body { padding-left: 0; }
}
.cs-review__title {
  font-family: "SinaNovaRegular", Times, serif;
  font-weight: 700;
  font-size: 18px;
  color: #4e4f4b;
  line-height: 1.3;
  margin: 0 0 8px;
}
.cs-review__content {
  font-family: "Gotham", Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(78, 79, 75, 0.9);
}
.cs-review__content p { margin: 0 0 0.75em; }
.cs-review__content p:last-child { margin-bottom: 0; }
.cs-review__content * {
  font-family: "Gotham", Arial, Helvetica, sans-serif !important;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(78, 79, 75, 0.9);
  font-style: normal;
}

/* Image */
.cs-review__image-link {
  display: inline-block;
  margin-top: 14px;
  cursor: zoom-in;
  text-decoration: none;
}
.cs-review__image-frame {
  display: block;
  width: 160px;
  height: 160px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
              box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
              border-color 0.3s ease;
}
.cs-review__image-link:hover .cs-review__image-frame,
.cs-review__image-link:focus-visible .cs-review__image-frame {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  border-color: #d6cfc1;
}
.cs-review__image-frame picture,
.cs-review__image-frame img {
  width: 100% !important;
  height: 100% !important;
  display: block;
}
.cs-review__image-frame img {
  object-fit: cover !important;
  transition: transform 6s ease-out;
}
.cs-review__image-link:hover .cs-review__image-frame img,
.cs-review__image-link:focus-visible .cs-review__image-frame img {
  transform: scale(1.06);
}

/* ============================================================
   Hero meta — price block tabular numerals
   ============================================================ */
.cs-price-block #js-price {
  font-feature-settings: "tnum" 1, "lnum" 1;
}

/* ============================================================
   Wood swatches — material samples crop to fill tile
   (defeats global .cs-product-page picture img { object-fit: contain !important })
   ============================================================ */
.cs-product-page .cs-swatch picture img,
.cs-product-page .cs-swatch img {
  object-fit: cover !important;
  width: 100% !important;
  height: 100% !important;
}

/* ============================================================
   DYP option chips — fallback selected state
   (belt-and-suspenders if Tailwind peer-checked variants fail)
   ============================================================ */
.cs-dyp .option-select:checked + span {
  background-color: #abc578;
  border-color: #abc578;
  color: #2f302d;
}
.cs-dyp .cs-swatch .option-select:checked + span {
  background-color: transparent;
  box-shadow: 0 0 0 2px #abc578;
  border-color: #abc578;
}

/* ============================================================
   Hide stashed Bootstrap-style modal source markup
   (cs-modal.js clones content into its own overlay)
   ============================================================ */
.cs-product-page .modal,
body > .modal {
  display: none !important;
}

/* ============================================================
   DYP — accordion rows (legacy-inspired single-open w/ check)
   Replaces the prior open-everywhere grid layout.
   ============================================================ */
.cs-dyp__sections > details.cs-dyp__section,
.cs-dyp__sections > details[data-cs-accordion-item],
.cs-dyp__sections > .cs-dyp__section--placeholder,
.cs-dyp__sections > .cs-dyp__section--static {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 0;
  margin-bottom: 10px;
  transition:
    border-color 250ms ease,
    box-shadow 300ms cubic-bezier(0.165, 0.84, 0.44, 1),
    transform 300ms cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
}
.cs-dyp__sections > .cs-dyp__section--static .cs-dyp__summary { cursor: default; }
.cs-dyp__sections > .cs-dyp__section--static.is-selected {
  border-color: rgba(99, 119, 58, 0.45);
  background: #fdfcf6;
}

/* Placeholder row (e.g. Wood Finish before wood is chosen) — greyed,
   no hover, no Options button. */
.cs-dyp__sections > .cs-dyp__section--placeholder {
  background: #fafaf7;
}
/* Muted text instead of opacity: 0.6 on the row, which put the
   "Choose a wood type first" hint at 1.7:1. */
.cs-dyp__sections > .cs-dyp__section--placeholder .cs-dyp__label-title {
  color: #6b6c68;
}
.cs-dyp__sections > .cs-dyp__section--placeholder:hover {
  border-color: rgba(0,0,0,0.08);
  box-shadow: none;
  transform: none;
}
.cs-dyp__sections > .cs-dyp__section--placeholder .cs-dyp__check {
  background: #f0f0eb;
  border-color: rgba(0,0,0,0.12);
}
.cs-dyp__sections > .cs-dyp__section--placeholder .cs-dyp__check svg {
  display: none;
}
.cs-dyp__sections > .cs-dyp__section--placeholder .cs-dyp__label-value {
  color: #6b6c68;
  font-style: italic;
}
.cs-dyp__sections > .cs-dyp__section--placeholder .cs-dyp__summary {
  cursor: default;
}
.cs-dyp__sections > details.cs-dyp__section:hover,
.cs-dyp__sections > details[data-cs-accordion-item]:hover {
  border-color: rgba(99, 119, 58, 0.35);
  box-shadow: 0 6px 22px -10px rgba(0, 0, 0, 0.10);
  transform: translateY(-1px);
}
.cs-dyp__sections > details[open] {
  border-color: #abc578;
  box-shadow: 0 10px 32px -12px rgba(99, 119, 58, 0.25);
}
.cs-dyp__sections > details[data-cs-accordion-item].is-selected {
  border-color: rgba(99, 119, 58, 0.45);
  background: #fdfcf6;
}

/* Summary row: check icon + label + Options pill */
.cs-dyp__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  user-select: none;
}
.cs-dyp__summary::-webkit-details-marker { display: none; }
.cs-dyp__summary::marker { content: ''; }

.cs-dyp__check {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.18);
  background: #fff;
  display: grid;
  place-items: center;
  transition: background-color 200ms ease, border-color 200ms ease;
}
.cs-dyp__check svg {
  width: 14px;
  height: 14px;
  color: #fff;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.is-selected .cs-dyp__check {
  background: #abc578;
  border-color: #abc578;
}
.is-selected .cs-dyp__check svg {
  opacity: 1;
  transform: scale(1);
}

.cs-dyp__label {
  flex: 1 1 auto;
  min-width: 0;
}
.cs-dyp__label-title {
  display: block;
  font-family: "Gotham", Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4e4f4b;
}
.cs-dyp__label-value {
  display: block;
  margin-top: 2px;
  font-family: "Gotham", Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: #63773a;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cs-dyp__label-value:empty::before {
  content: "Choose\2026";
  color: #6b6c68;
  font-weight: 400;
  font-style: italic;
}

.cs-dyp__cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 6px;
  background: #fcf8f1;
  border: 1px solid #e5ddd0;
  font-family: "Gotham", Arial, Helvetica, sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(78, 79, 75, 0.85);
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
.cs-dyp__sections > details:hover .cs-dyp__cta,
.cs-dyp__sections > details[open] .cs-dyp__cta {
  background: #abc578;
  border-color: #abc578;
  color: #2f302d;
}
.cs-dyp__cta svg {
  width: 13px;
  height: 13px;
  transition: transform 240ms cubic-bezier(0.4, 0, 0.2, 1);
}
.cs-dyp__sections > details[open] .cs-dyp__cta svg {
  transform: rotate(180deg);
}

/* Body slide-open animation via grid-template-rows */
.cs-dyp__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 280ms cubic-bezier(0.4, 0, 0.2, 1);
}
.cs-dyp__sections > details[open] > .cs-dyp__body {
  grid-template-rows: 1fr;
}
.cs-dyp__body > .cs-dyp__body-inner {
  overflow: hidden;
  min-height: 0;
  padding: 0 16px 16px;
}

/* Helper italic line below body (e.g. "Unsure? View samples.") */
.cs-dyp__hint {
  font-family: "Gotham", Arial, Helvetica, sans-serif;
  font-style: italic;
  font-size: 13px;
  color: #6b6c68;
  text-align: center;
  margin: 8px 0 0;
}
.cs-dyp__hint a { color: #63773a; text-decoration: underline; text-underline-offset: 3px; }
.cs-dyp__hint a:hover { color: #4e4f4b; }

/* DYP footer — product title + dynamic ID + price + CTA */
.cs-dyp__footer-meta {
  flex: 1 1 auto;
  min-width: 0;
}
.cs-dyp__footer-title {
  font-family: "SinaNovaRegular", Times, serif;
  font-size: 20px;
  line-height: 1.2;
  color: #4e4f4b;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cs-dyp__footer-pid {
  font-family: "Gotham", Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #6b6c68;
  margin: 4px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cs-dyp__footer-price {
  font-family: "SinaNovaRegular", Times, serif;
  font-size: 24px;
  font-weight: 600;
  color: #63773a;
  margin: 0;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

/* Quantity stepper — bigger, bolder, matches site button family */
.cs-dyp__qty {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  border: 1px solid #e5ddd0;
  background: #fcf8f1;
  overflow: hidden;
}
.cs-dyp__qty button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: transparent;
  color: #4e4f4b;
  border: 0;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}
.cs-dyp__qty button:hover {
  background: #abc578;
  color: #2f302d;
}
.cs-dyp__qty input {
  width: 48px;
  height: 44px;
  text-align: center;
  border: 0;
  background: transparent;
  font-family: "Gotham", Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: #4e4f4b;
  appearance: textfield;
  -moz-appearance: textfield;
}
.cs-dyp__qty input::-webkit-outer-spin-button,
.cs-dyp__qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.cs-dyp__qty input:focus {
  outline: none;
}

/* DYP submit button (Add to Cart / Update Cart Item) */
.cs-dyp__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  background: #abc578;
  color: #2f302d; /* white on #abc578 was 1.9:1 */
  font-family: "Gotham", Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
  white-space: nowrap;
}
.cs-dyp__submit:hover { background: #63773a; color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(99, 119, 58, 0.55); }
.cs-dyp__submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.cs-dyp__submit svg { width: 16px; height: 16px; }
a.cs-dyp__submit { text-decoration: none; }
a.cs-dyp__submit:hover { color: #fff; text-decoration: none; }
.cs-dyp__submit--sm { padding: 8px 16px; font-size: 12px; letter-spacing: 0.07em; border-radius: 6px; }
.cs-dyp__submit--sm svg { width: 12px; height: 12px; }

/* Sticky-bar Customize (secondary) — matches primary height + lift behavior */
.cs-sticky-customize {
  padding: 14px 22px;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}
.cs-sticky-customize:hover,
.cs-sticky-customize:focus-visible {
  text-decoration: none;
  border-color: #abc578;
  color: #63773a;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.18);
}
/* Icon-only secondary (DYP footer Email a Specialist) — square, same 48px height */
.cs-sticky-customize--icon { padding: 16px; }

/* Cart drawer "Continue shopping" — text-only, gains lift+shadow on hover */
.cs-cart-drawer__keep {
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, color 180ms ease, background-color 180ms ease;
}
.cs-cart-drawer__keep:hover,
.cs-cart-drawer__keep:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.18);
  background-color: #fcf8f1;
}

/* Wood swatch grid — card-style chooser, harmonized with size/stain tiles */
.cs-wood-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  padding: 14px 6px 22px;
  align-items: stretch;
}
.cs-wood-row > .cs-swatch {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  cursor: pointer;
  flex: none;
  min-width: 0;
  max-width: none;
  padding: 10px 10px 12px;
  background: #fff;
  border: 1px solid #e5ddd0;
  border-radius: 8px;
  transition: transform 200ms ease,
              box-shadow 200ms ease,
              background-color 180ms ease,
              border-color 180ms ease;
}
.cs-wood-row > .cs-swatch:hover,
.cs-wood-row > .cs-swatch:focus-within {
  transform: translateY(-2px);
  border-color: #abc578;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.18);
}
.cs-wood-row > .cs-swatch:has(.option-select:checked) {
  background: #fcf8f1;
  border-color: #63773a;
  box-shadow: 0 0 0 2px #63773a;
}
.cs-wood-row .cs-swatch__tile {
  aspect-ratio: 5 / 3;
  border: none;
  background: #fcf8f1;
}
.cs-wood-row .cs-swatch:hover .cs-swatch__tile,
.cs-wood-row .cs-swatch:focus-within .cs-swatch__tile {
  transform: none;
  border-color: transparent;
}
.cs-wood-row .cs-swatch .option-select:checked + .cs-swatch__tile {
  box-shadow: none;
  border-color: transparent;
}
.cs-wood-row .cs-swatch__badge {
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  z-index: 1;
}
.cs-wood-row .cs-swatch__badge svg { width: 11px; height: 11px; }
.cs-wood-row .cs-swatch .option-select:checked ~ .cs-swatch__badge {
  opacity: 1;
  transform: scale(1);
}
.cs-wood-row .cs-swatch__name {
  font-size: 11px;
  margin-top: 6px;
  color: rgba(78, 79, 75, 0.9);
  line-height: 1.25;
}
.cs-wood-row .cs-swatch__name [data-cs-label-name] {
  display: block;
  font-weight: 500;
}
.cs-wood-row .cs-swatch__price {
  font-family: "Gotham", Arial, Helvetica, sans-serif;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: #6b6c68;
  margin-top: 2px;
}
.cs-wood-row > .cs-swatch:has(.option-select:checked) .cs-swatch__price {
  color: #63773a;
}
.cs-dyp .cs-wood-row .cs-swatch .option-select:checked + .cs-swatch__badge {
  background-color: #abc578;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  border-color: transparent;
  color: #2f302d;
}
.cs-swatch__tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.1);
  background: #fcf8f1;
  transition: border-color 180ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.cs-swatch:hover .cs-swatch__tile,
.cs-swatch:focus-within .cs-swatch__tile {
  border-color: #abc578;
  transform: translateY(-1px);
}
.cs-swatch .option-select:checked + .cs-swatch__tile {
  box-shadow: 0 0 0 2px #63773a;
  border-color: #63773a;
}
.cs-swatch__badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #abc578;
  color: #2f302d;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 180ms ease, transform 240ms cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.cs-swatch__badge svg { width: 12px; height: 12px; }
.cs-swatch .option-select:checked + .cs-swatch__tile .cs-swatch__badge {
  opacity: 1;
  transform: scale(1);
}
.cs-swatch__name {
  display: block;
  text-align: center;
  margin-top: 6px;
  font-family: "Gotham", Arial, Helvetica, sans-serif;
  font-size: 10px;
  line-height: 1.2;
  color: rgba(78, 79, 75, 0.85);
  word-break: break-word;
  hyphens: auto;
}
.cs-swatch__price {
  display: block;
  font-size: 9px;
  color: #6b6c68;
  margin-top: 1px;
}
.cs-product-page .cs-wood-row .cs-swatch__tile picture img,
.cs-product-page .cs-wood-row .cs-swatch__tile img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}
.cs-product-page .cs-common-grid .cs-swatch__tile picture img,
.cs-product-page .cs-common-grid .cs-swatch__tile img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  display: block;
  transition: transform 8s ease-out;
}
.cs-product-page .cs-common-grid .cs-swatch:hover .cs-swatch__tile img {
  transform: scale(1.06) rotate(0.5deg);
}

/* Common-option swatch grid (Edge / Base / Leg / Hardware / etc.) — gallery-thumb tiles */
.cs-common-grid {
  padding: 4px 2px 4px;
}
.cs-product-page .cs-common-grid {
  max-width: 540px;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .cs-product-page .cs-common-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 960px;
    gap: 2.5rem;
  }
}
.cs-common-grid .cs-swatch {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  cursor: pointer;
}
.cs-common-grid .cs-swatch__tile {
  position: relative;
  width: 100%;
  aspect-ratio: auto;
  min-height: 150px;
  padding: 18px;
  border-radius: 6px;
  overflow: visible;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  display: grid;
  place-items: center;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
              box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
              border-color 0.3s ease;
}
.cs-common-grid .cs-swatch:hover .cs-swatch__tile,
.cs-common-grid .cs-swatch:focus-within .cs-swatch__tile {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  border-color: #d6cfc1;
}
.cs-common-grid .cs-swatch .option-select:checked + .cs-swatch__tile {
  border-color: #abc578;
  box-shadow: 0 0 0 2px #abc578;
}

/* Hide the underlying radio inputs in tile/swatch grids regardless of any
   legacy CSS that may force them to display block in the cart form context. */
.cs-size-grid input.option-select,
.cs-common-grid input.option-select,
.cs-wood-row input.option-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Size grid — card-style tile chooser, harmonized with .cs-swatch visuals */
.cs-size-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  padding: 6px 4px 14px;
}
.cs-size-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e5ddd0;
  border-radius: 8px;
  transition: transform 200ms ease,
              box-shadow 200ms ease,
              background-color 180ms ease,
              border-color 180ms ease;
}
.cs-size-chip-wrap:hover .cs-size-tile,
.cs-size-chip-wrap:focus-within .cs-size-tile {
  transform: translateY(-2px);
  border-color: #abc578;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.18);
}
.cs-size-chip-wrap .option-select:checked + .cs-size-tile {
  background: #fcf8f1;
  border-color: #63773a;
  box-shadow: 0 0 0 2px #63773a;
}
.cs-size-chip-wrap .option-select:focus-visible + .cs-size-tile {
  outline: 2px solid #abc578;
  outline-offset: 2px;
}
.cs-size-tile__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1.15;
}
.cs-size-tile__dim {
  font-family: "SinaNovaRegular", Times, serif;
  font-size: 17px;
  font-weight: 600;
  color: #2f3130;
  letter-spacing: 0.01em;
}
.cs-size-tile__price {
  font-family: "Gotham", Arial, Helvetica, sans-serif;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #6b6c68;
}
.cs-size-chip-wrap .option-select:checked + .cs-size-tile .cs-size-tile__price {
  color: #63773a;
}
.cs-size-tile__badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #abc578;
  color: #2f302d;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 180ms ease, transform 240ms cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.cs-size-tile__badge svg { width: 11px; height: 11px; }
.cs-size-chip-wrap .option-select:checked + .cs-size-tile .cs-size-tile__badge {
  opacity: 1;
  transform: scale(1);
}

/* Text-fill fallback inside a swatch tile when {common_image} is absent */
.cs-swatch__text {
  display: block;
  padding: 6px 4px;
  text-align: center;
  font-family: "Gotham", Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #4e4f4b;
  line-height: 1.2;
  word-break: break-word;
  hyphens: auto;
}

/* Stain swatch grid (Wood Finish) — thumbnails in a scrollable container.
   Top/bottom edges fade via mask-image so content appears to slide under. */
.cs-stain-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
  padding: 14px 6px 22px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.2) transparent;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, black 18px, black calc(100% - 24px), transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, black 18px, black calc(100% - 24px), transparent 100%);
}
.cs-stain-strip::-webkit-scrollbar { width: 8px; }
.cs-stain-strip::-webkit-scrollbar-track { background: transparent; }
.cs-stain-strip::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.18);
  border-radius: 4px;
  border: 2px solid #fff;
}
.cs-stain {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  cursor: pointer;
  padding: 10px 10px 12px;
  background: #fff;
  border: 1px solid #e5ddd0;
  border-radius: 8px;
  transition: transform 200ms ease,
              box-shadow 200ms ease,
              background-color 180ms ease,
              border-color 180ms ease;
}
.cs-stain:hover,
.cs-stain:focus-within {
  transform: translateY(-2px);
  border-color: #abc578;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.18);
}
.cs-stain:has(.option-select:checked) {
  background: #fcf8f1;
  border-color: #63773a;
  box-shadow: 0 0 0 2px #63773a;
}
.cs-stain .option-select:focus-visible ~ .cs-stain__tile {
  outline: 2px solid #abc578;
  outline-offset: 2px;
}
.cs-stain__tile {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 3;
  border-radius: 4px;
  overflow: hidden;
  background: #fcf8f1;
  display: grid;
  place-items: center;
}
.cs-stain__badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #abc578;
  color: #2f302d;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 180ms ease, transform 240ms cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 1;
}
.cs-stain__badge svg { width: 11px; height: 11px; }
.cs-stain .option-select:checked ~ .cs-stain__badge {
  opacity: 1;
  transform: scale(1);
}
.cs-product-page .cs-stain__tile picture img,
.cs-product-page .cs-stain__tile img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block;
}
.cs-stain__samples {
  font-family: "Gotham", Arial, Helvetica, sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #63773a;
  text-align: center;
  padding: 0 4px;
  line-height: 1.2;
}
.cs-stain__name {
  display: block;
  font-family: "Gotham", Arial, Helvetica, sans-serif;
  font-size: 11px;
  text-align: center;
  margin-top: 6px;
  color: rgba(78, 79, 75, 0.9);
  line-height: 1.25;
  word-break: break-word;
  hyphens: auto;
}
.cs-stain__name [data-cs-label-name] {
  display: block;
  font-weight: 500;
}
.cs-stain__upcharge {
  display: block;
  font-family: "Gotham", Arial, Helvetica, sans-serif;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: #6b6c68;
  margin-top: 2px;
}
.cs-stain:has(.option-select:checked) .cs-stain__upcharge {
  color: #63773a;
}

/* Inline validation: row red border + glow + error message */
details.cs-dyp__section.has-error,
.cs-dyp__sections > details[data-cs-accordion-item].has-error {
  border-color: #d04949 !important;
  box-shadow: 0 0 0 3px rgba(208, 73, 73, 0.12), 0 6px 18px -8px rgba(208, 73, 73, 0.35);
}
details.cs-dyp__section.has-error .cs-dyp__check,
.cs-dyp__sections > details[data-cs-accordion-item].has-error .cs-dyp__check {
  border-color: #d04949;
  background: #fff;
}
details.cs-dyp__section.has-error .cs-dyp__check svg {
  display: none;
}
details.cs-dyp__section.has-error .cs-dyp__check::before {
  content: "!";
  font-family: "Gotham", Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #c23b3b;
  line-height: 1;
}

.cs-dyp__error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #fdf0f0;
  border: 1px solid rgba(208, 73, 73, 0.25);
  color: #b53939;
  font-family: "Gotham", Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.4;
}
.cs-dyp__error svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  color: #c23b3b;
}

/* ================================================================
   Reviews listing page (amish-furniture-reviews)
   Reuses the .cs-review card (hover lift, avatar, stars) from the
   product page. Adds: page wrapper, filter toolbar, grid wrapper,
   and the per-card product link.
   ================================================================ */
.cs-reviews__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 16px 64px;
}

/* Grid of cards — zero the card's stacked margin; rows equal-height */
.cs-reviews-grid .cs-review { margin: 0; }

/* Per-card product link (hidden when a review has no related product) */
.cs-review__product:empty { display: none; }

/* Filter toolbar — category select + photo toggle + submit */
.cs-reviews-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 20px;
  max-width: 64rem;
  margin: 0 auto 2.5rem;
  padding: 18px 22px;
  background: #fcf8f1;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
}
.cs-reviews-filter__field {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cs-reviews-filter > label,
.cs-reviews-filter__field > label {
  margin: 0;
  font-family: "Gotham", Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b6c68;
  white-space: nowrap;
}
/* Category dropdown — native select mirroring the checkout select styling
   (bordered box + centered chevron + green focus ring). No jcf on this page,
   so the native control renders directly. */
.cs-reviews-filter select {
  font-family: "Gotham", Arial, Helvetica, sans-serif;
  font-size: 15px;
  color: #4e4f4b;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  min-width: 240px;
  height: 44px;
  margin: 0;
  box-sizing: border-box;
  padding: 0 38px 0 14px;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234e4f4b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
  cursor: pointer;
}
.cs-reviews-filter select:focus {
  outline: none;
  border-color: #abc578;
  box-shadow: 0 0 0 3px rgba(171, 197, 120, 0.18);
}

/* "Has Image" — JCF-proof toggle pill (<button> + hidden input) */
.cs-reviews-filter__toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 18px;
  margin: 0;
  cursor: pointer;
  font-family: "Gotham", Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4e4f4b;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 999px;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
.cs-reviews-filter__toggle:hover { border-color: #abc578; color: #63773a; }
.cs-reviews-filter__toggle:focus-visible {
  outline: none;
  border-color: #abc578;
  box-shadow: 0 0 0 3px rgba(171, 197, 120, 0.18);
}
.cs-reviews-filter__toggle-box {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: #fff;
  border: 1.5px solid rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  transition: border-color 180ms ease;
}
.cs-reviews-filter__toggle-box svg {
  width: 12px;
  height: 12px;
  color: #63773a;
  opacity: 0;
  transition: opacity 150ms ease;
}
.cs-reviews-filter__toggle.is-active {
  background: #abc578;
  border-color: #abc578;
  color: #2f302d;
}
.cs-reviews-filter__toggle.is-active .cs-reviews-filter__toggle-box { border-color: #fff; }
.cs-reviews-filter__toggle.is-active .cs-reviews-filter__toggle-box svg { opacity: 1; }

@media (max-width: 600px) {
  .cs-reviews-filter {
    flex-direction: column;
    align-items: stretch;
  }
  .cs-reviews-filter__field { justify-content: space-between; }
  .cs-reviews-filter select { min-width: 0; flex: 1 1 auto; width: 100%; }
  .cs-reviews-filter__toggle { justify-content: center; }
  .cs-reviews-filter button[type="submit"] { width: 100%; }
}

/* Skeleton cards shown in the grid while a page/filter is fetched.
   Each shimmer block also carries the global .skeleton-box class (main.css). */
[data-cs-reviews-results].is-loading { cursor: progress; }
.cs-review--skel {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  padding: 20px;
}
.cs-review--skel .cs-review__header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.cs-review--skel .sk-avatar { width: 40px; height: 40px; border-radius: 50%; flex: 0 0 40px; }
.cs-review--skel .sk-lines { flex: 1 1 auto; }
.cs-review--skel .sk-line { height: 12px; border-radius: 4px; margin-bottom: 8px; }
.cs-review--skel .sk-line.w-40 { width: 40%; }
.cs-review--skel .sk-line.w-60 { width: 60%; }
.cs-review--skel .sk-line.w-90 { width: 90%; }
.cs-review--skel .sk-line.w-75 { width: 75%; }
.cs-review--skel .sk-body { padding-left: 52px; }
@media (max-width: 600px) { .cs-review--skel .sk-body { padding-left: 0; } }
.cs-review--skel .sk-img { width: 160px; height: 160px; border-radius: 6px; margin-top: 14px; }

