/* DIY Scrapbook product page — scoped to #dsb-page + .dsb-* class prefix.
   Cloned from the AI Photo Book page layout (same structure/sizes/fonts),
   recolored to the dusty-rose + terracotta scrapbook theme. */

/* Lift the warm-cream page background to <html>/<body> so it covers the
   strip behind the fixed inset header and the area around the footer. */
html,
body {
  background: #fdf6f0;
}

/* Brand vars at :root too — the sticky CTA bar lives OUTSIDE #dsb-page, so
   without this its var(--dsb-*) resolve to nothing (button renders white). */
:root {
  --dsb-accent: #d97056;
  --dsb-accent-deep: #b9543c;
  --dsb-cta-ink: #fff6f0;
  --dsb-ink: #1a1a1a;
}

#dsb-page {
  --dsb-bg: #fdf6f0;
  --dsb-ink: #1a1a1a;
  --dsb-ink-soft: #555;
  --dsb-accent: #d97056;
  --dsb-accent-deep: #b9543c;
  --dsb-card: #ffffff;
  --dsb-line: #f0e6da;
  --dsb-radius: 16px;
  /* Warm cream — used in place of pure white on accent surfaces so the
     button/CTA text feels brand-coherent against the orange gradient. */
  --dsb-cta-ink: #fff6f0;
  background: transparent;
  color: var(--dsb-ink);
  padding: 0;
  font-family: "poppins-medium", system-ui, -apple-system, sans-serif;
}

.dsb-section-header {
  text-align: center;
  margin: 0 15px 24px;
}

.dsb-section-title {
  font-family: poppins-bold;
  font-style: italic;
  font-size: 18px;
  color: var(--dsb-accent-deep);
  text-align: center;
  margin: 0 0 10px;
}

.dsb-section-sub {
  color: var(--dsb-ink-soft);
  font-size: 14px;
  margin: 0;
}

/* HERO — splashbook-compact spacing */
.dsb-hero {
  text-align: center;
  padding: 10px 15px;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dsb-hero-badge {
  display: inline-block;
  background: #fff;
  border: 1px solid #f0cabb;
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--dsb-accent-deep);
  margin-bottom: 6px;
  box-shadow: 0 2px 8px rgba(217, 112, 86, 0.10);
  letter-spacing: 0.2px;
}

.dsb-hero-title {
  font-family: "poppins-bold", sans-serif;
  font-size: clamp(24px, 5.4vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 8px;
  letter-spacing: -1px;
}

.dsb-hero-highlight {
  background: linear-gradient(120deg, var(--dsb-accent), #e8896f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dsb-hero-subtitle {
  color: #666;
  font-size: 11px;
  line-height: 1.4;
  max-width: 520px;
  margin: 0 auto;
}

.dsb-hero-trust-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  row-gap: 3px;
  padding: 6px 10px;
  width: fit-content;
  max-width: 100%;
  margin-top: 8px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  flex-wrap: wrap;
  box-sizing: border-box;
}

.dsb-hero-trust-item {
  font-size: 10px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 3px;
  line-height: 1;
}

.dsb-hero-trust-icon {
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.dsb-hero-trust-divider {
  color: #ccc;
  font-size: 11px;
  font-weight: 300;
}

.dsb-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--dsb-ink-soft);
  margin-bottom: 22px;
}

.dsb-trust-divider {
  opacity: 0.4;
}

.dsb-hero-cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* CTA buttons */
.dsb-cta-btn {
  border: 0;
  cursor: pointer;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.15s, box-shadow 0.15s;
  font-family: inherit;
}

.dsb-cta-btn:active {
  transform: scale(0.97);
}

.dsb-cta-primary {
  background: linear-gradient(135deg, var(--dsb-accent), var(--dsb-accent-deep));
  color: var(--dsb-cta-ink);
  box-shadow: 0 6px 20px rgba(217, 112, 86, 0.32);
}

.dsb-cta-large {
  padding: 16px 36px;
  font-size: 17px;
}

.dsb-cta-note {
  font-size: 12px;
  color: var(--dsb-ink-soft);
}

/* GALLERY (Embla) — splashbook-style edge-to-edge with peek */
.dsb-product-images {
  padding: 0;
}

.dsb-gallery-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  /* anchor for the overlaid flip controls */
}

.dsb-gallery-viewport {
  width: 100%;
  overflow: visible;
}

.dsb-gallery-track {
  display: flex;
  align-items: center;
  /* don't stretch photo slides to the tall flipbook slide —
                          keeps their 3/4 aspect ratio (like Splashbook) */
  touch-action: pan-y;
  will-change: transform;
}

.dsb-gallery-slide {
  /* Match Splashbook's product-image size (fixed 300×380 on mobile). */
  flex: 0 0 300px;
  width: 300px;
  height: 380px;
  min-width: 0;
  background: #f4ece1;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  margin-right: 8px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.dsb-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 900px) {
  .dsb-gallery-slide {
    flex: 0 0 calc(50% - 5px);
    width: calc(50% - 5px);
    height: auto;
    aspect-ratio: 3 / 4;
    margin-right: 10px;
    border-radius: 16px;
  }
}

/* ─── 3D wire-O flipbook slide (Scrapbook-style 2-page spread, image faces) ─── */
.dsb-gallery-slide.dsb-flip-slide {
  flex: 0 0 92%;
  width: 92%;
  aspect-ratio: auto;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Centre the book BEFORE Embla loads. Embla's deferred unpkg script can land
     hundreds of ms late on a slow phone; until then this first slide sits at
     flex-start (left) and the book visibly jumps to centre the moment Embla
     inits — the "sudden movement to centre on load". (100%-92%)/2 = 4% left
     margin pre-centres it (margin, not padding, so the slide's 92% flex-basis
     is unchanged → exact centre). Removed the instant Embla initialises
     (.embla-ready, added synchronously BEFORE Embla measures, so the margin
     doesn't skew Embla's own slide offsets). */
  margin-left: 4%;
  /* Extra bottom room holds the flip controls right under the book (mobile has
     plenty of space since the book is much shorter than the photo slides). */
  padding: 16px 0 46px;
  /* Lift above neighbour slides + don't clip, so a turning page renders ON TOP
     of the adjacent image instead of disappearing behind it. */
  overflow: visible;
  z-index: 2;
}

/* Drop the pre-Embla centring margin the instant Embla initialises. The JS adds
   .embla-ready to the track synchronously RIGHT BEFORE EmblaCarousel() measures,
   so Embla sees margin-left:0 and centres slide-0 itself → symmetric peek on BOTH
   sides. Without this the 4% margin stays, Embla measures the slide already shoved
   ~16px right, and the book centres off — peek shows only on the right. */
.dsb-gallery-track.embla-ready .dsb-flip-slide {
  margin-left: 0;
}

@media (min-width: 900px) {

  /* Desktop: at 92% the book nearly fills the row, leaving no room for its
     drop-shadow (it got clipped) or the controls. Narrow it so the shadow can
     fade softly + the controls sit below, all within the row height. */
  .dsb-gallery-slide.dsb-flip-slide {
    flex: 0 0 78%;
    width: 78%;
    padding: 14px 0 14px;
  }
}

.dsb-flip {
  position: relative;
  /* Fill the slide width so the gap to the neighbouring image is just the
     slide margin (same spacing as image↔image), not an extra inner gutter. */
  width: 100%;
  aspect-ratio: 3 / 2;
  perspective: 2200px;
}

.dsb-flip-shadow {
  position: absolute;
  inset: 88% -6% -12% -6%;
  background: radial-gradient(ellipse at center, rgba(31, 26, 20, 0.30), transparent 70%);
  filter: blur(6px);
  z-index: 0;
}

/* Scoped under .dsb-flip to beat the global `.dsb-gallery-slide img` rule
   (which would otherwise cover-stretch the tall wire-O binding to fill). */
.dsb-flip .dsb-flip-spine {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: auto;
  height: 100%;
  transform: translateX(-50%);
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
  z-index: 30;
  pointer-events: none;
  transition: left 1.05s cubic-bezier(.4, .05, .2, 1);
}

/* When the book is CLOSED only one page shows (half the slide) — centre it so
   the other half isn't an empty gap before the next slide. The coil tracks the
   page's binding edge: closed-cover page sits at 25–75% (coil ~26%), back cover
   likewise (coil ~74%); the open spread fills both halves (coil centred). */
/* Keyed on data-FOLD (set immediately on flip) not data-state (swapped 525ms
   later), so the book recenters AT THE SAME TIME it turns — not late. Duration
   matches the page turn (1.05s) so move + turn stay in sync. */
.dsb-flip[data-fold="cover"] .dsb-flip-spine {
  left: 26%;
}

.dsb-flip[data-fold="back"] .dsb-flip-spine {
  left: 74%;
}

.dsb-flip-pages {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 1.05s cubic-bezier(.4, .05, .2, 1);
}

.dsb-flip[data-fold="cover"] .dsb-flip-pages {
  transform: translateX(-25%);
}

.dsb-flip[data-fold="back"] .dsb-flip-pages {
  transform: translateX(25%);
}

.dsb-flip-page {
  position: absolute;
  left: 50%;
  top: 0;
  width: 50%;
  height: 100%;
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform 1.05s cubic-bezier(.4, .05, .2, 1);
}

.dsb-flip-page.flipped {
  transform: rotateY(-176deg);
}

/* Instant snap (no animation) — used when resetting the book to its closed
   front cover so the loop-return doesn't visibly un-flip from the back. */
.dsb-flip.dsb-flip-instant .dsb-flip-page,
.dsb-flip.dsb-flip-instant .dsb-flip-pages,
.dsb-flip.dsb-flip-instant .dsb-flip-spine {
  transition: none !important;
}

.dsb-flip .face {
  position: absolute;
  inset: 0;
  background: #f4ece1;
  border-radius: 2px 8px 8px 2px;
  box-shadow: inset 6px 0 14px -8px rgba(0, 0, 0, 0.28);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

.dsb-flip .face.back {
  transform: rotateY(180deg);
  border-radius: 8px 2px 2px 8px;
  box-shadow: inset -6px 0 14px -8px rgba(0, 0, 0, 0.28);
}

.dsb-flip .face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Prev/Next page-flip controls — sit in the empty space directly below the
   3D book (inside the flipbook slide). */
.dsb-flip-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  /* Inside the flip slide, pinned just under the book → moves WITH the book and
     adds no height (the slide is shorter than the photo slides). */
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  z-index: 6;
  /* above the book */
  pointer-events: none;
  /* the buttons catch taps, not the whole strip */
}

.dsb-flip-controls>* {
  pointer-events: auto;
}

.dsb-flip-ctrl {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: var(--dsb-ink, #2b2b2b);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, background 0.12s ease;
}

.dsb-flip-ctrl:active {
  transform: scale(0.92);
  background: #f6f1ea;
}

.dsb-flip-controls-hint {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #6b5b47;
  text-transform: uppercase;
  /* cream pill so it stays readable overlaid on the photo/book */
  background: rgba(255, 250, 243, 0.92);
  padding: 4px 10px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Thumbnails strip below the slider */
.dsb-gallery-thumbnails {
  display: flex;
  gap: 8px;
  padding: 12px 16px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.dsb-gallery-thumbnails::-webkit-scrollbar {
  display: none;
}

.dsb-gallery-thumbnail {
  flex: 0 0 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s, transform 0.15s;
  background: #eee;
}

.dsb-gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dsb-gallery-thumbnail.active {
  border-color: var(--dsb-accent);
  transform: translateY(-1px);
}

/* PRODUCT INFO — splashbook-style component re-skinned in orange */
.dsb-product-info {
  padding: 14px 10px 8px;
}

.dsb-sales-badge-wrap {
  margin-bottom: 8px;
}

.dsb-sales-badge {
  display: inline-block;
  padding: 4px 10px;
  font-weight: 600;
  background-color: #f2d8c8;
  color: #7a3c00;
  border-radius: 10px;
  font-size: 12px;
}

.dsb-product-title {
  font-family: "poppins-bold", sans-serif;
  letter-spacing: -1px;
  margin: 0;
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 600;
  line-height: 1.05;
  color: var(--dsb-ink);
}

.dsb-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin: 6px 0 4px;
  cursor: pointer;
}

.dsb-static-stars {
  color: #f5b400;
  font-size: 14px;
  margin-top: -2px;
  letter-spacing: 1px;
}

.dsb-rating-text-link {
  font-size: 13px;
  color: var(--dsb-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dsb-product-desc {
  font-size: 13px;
  color: #444;
  margin: 6px 0 12px;
  line-height: 1.5;
}

.dsb-coupon-wrapper {
  position: relative;
  margin: 10px 0;
}

.dsb-coupon-banner {
  background: #569730;
  padding: 8px 8px 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 12px;
  color: #fff;
  gap: 10px;
}

.dsb-coupon-left {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  min-width: 0;
}

.dsb-coupon-star-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.dsb-coupon-star-shape {
  fill: #fff;
  fill-rule: evenodd;
  clip-rule: evenodd;
}

.dsb-coupon-price-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.dsb-coupon-copy {
  margin: 0;
  font-size: 14px;
  white-space: nowrap;
}

.dsb-coupon-price {
  color: #fff;
  font-size: 22px;
  font-family: "poppins-bold", sans-serif;
  white-space: nowrap;
}

.dsb-coupon-button {
  background-color: #306412;
  color: #fff;
  border-radius: 11px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.dsb-coupon-button:active {
  transform: scale(0.96);
}

.dsb-coupon-code {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.dsb-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 4px;
  min-height: 40px;
}

.dsb-old-price {
  text-decoration: line-through;
  color: #888;
  font-size: 14px;
  padding-top: 2px;
}

.dsb-new-price {
  font-size: 22px;
  letter-spacing: -1px;
  font-weight: 700;
  font-family: "poppins-bold", sans-serif;
  color: var(--dsb-ink);
}

.dsb-save-pill {
  background: #117d02;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
}

.dsb-info-meta {
  font-size: 12px;
  color: var(--dsb-ink-soft);
  margin: 4px 0 16px;
  line-height: 1.5;
}

.dsb-info-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--dsb-accent-deep);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin: 12px 0 8px;
}

.dsb-info-cta {
  width: 100%;
  margin-top: 16px;
  border-radius: 15px;
  padding: 15px 10px;
  font-size: 14px;
  font-weight: 700;
}

.dsb-info-cta-note {
  text-align: center;
  font-size: 12px;
  color: var(--dsb-ink-soft);
  margin: 8px 0 0;
}

/* Inline how-it-works strip — one line, sits under the Upload CTA */
.dsb-how-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 8px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--dsb-ink-soft);
  letter-spacing: 0.01em;
}

.dsb-how-strip li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.dsb-how-strip .dsb-how-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--dsb-accent);
  color: var(--dsb-cta-ink);
  display: inline-grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
}

.dsb-how-strip .dsb-how-sep {
  flex: 1 1 12px;
  min-width: 8px;
  height: 1px;
  background: var(--dsb-line);
  align-self: center;
}

/* THEME CARDS — horizontal scroller (splashbook-style compact thumbnails) */
.dsb-info-label-under-slider {
  padding: 0 15px;
  margin: 14px 0 8px;
}

/* ── Step labels inside the uploader (1 Choose theme · 2 Add faces) ── */
.dsb-uploader-step {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.dsb-step-num {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--dsb-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.dsb-step-label {
  font-family: "poppins-bold", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--dsb-ink);
}

/* ── Theme selector — circular thumbnails below the gallery (Splashbook-style) ── */
.dsb-theme-cards {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 14px 15px 8px;
  margin: 0;
}

.dsb-theme-cards::-webkit-scrollbar {
  display: none;
}

.dsb-theme-option-card {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 72px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  position: relative;
  transition: transform 0.12s ease;
}

.dsb-theme-option-card:active {
  transform: scale(0.96);
}

.dsb-theme-option-image-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: #f3eadf;
  border: 2px solid transparent;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.dsb-theme-option-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dsb-theme-option-card.active .dsb-theme-option-image-wrap {
  border-color: var(--dsb-accent);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--dsb-accent);
}

.dsb-theme-option-title {
  font-size: 12px;
  line-height: 1.15;
  font-weight: 500;
  color: var(--dsb-ink);
  text-align: center;
  white-space: normal;
}

.dsb-theme-option-card.active .dsb-theme-option-title {
  font-weight: 700;
  color: var(--dsb-accent-deep);
}

/* POPULAR-style pink badge overlapping the top of the circle */
.dsb-theme-option-badge {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  background: #e6197a;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* DESKTOP TWO-COLUMN LAYOUT */
@media (min-width: 900px) {

  /* Global body has max-width: 800px which would clip the two-col layout
     to a narrow centred column. Splashbook overrides it the same way. */
  body {
    max-width: none !important;
  }

  .dsb-hero {
    display: none;
  }

  #dsb-page {
    display: grid;
    grid-template-columns: 1.3fr 1.1fr;
    gap: 0 36px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 15px 0;
    align-items: start;
  }

  #dsb-page>* {
    min-width: 0;
  }

  /* Left column = gallery + thumbnails. It STRETCHES to the right column's
     full height (both live in grid row 1), so the sticky inner has runway for
     the ENTIRE right-side scroll and releases right as the reviews row begins.
     No multi-row spanning, so it can't end early and leave a gap. */
  .dsb-product-images {
    grid-column: 1;
    grid-row: 1;
    align-self: stretch;
    padding: 0;
    min-height: 0;
  }

  /* Gallery + theme thumbnails stick together as one unit, confined to the
     left column so they never overlay the full-width reviews/FAQ below. */
  .dsb-product-images .dsb-images-sticky {
    position: sticky;
    top: 124px;
    /* ~24px breathing room below the sticky header (bottom ≈ 99px) */
    height: fit-content;
  }

  /* Right column: a single scrolling stack — info → UGC → testimonials →
     details/returns/support tabs. Being one grid item (not separate rows)
     guarantees the left column matches its full height. */
  .dsb-buy-col {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    padding: 0;
  }

  .dsb-product-info {
    padding: 0;
  }

  .dsb-buy-col>#ugcMount,
  .dsb-buy-col>#dsb-testimonialsSection,
  .dsb-buy-col>#dsb-infoTabsMount {
    margin-top: 24px;
    padding: 0;
  }

  /* Left-align titles inside the narrow rail */
  #dsb-testimonialsSection .dsb-section-title,
  #dsb-infoTabsMount .dsb-section-title,
  #ugcMount .dsb-section-title {
    text-align: left;
  }

  /* UGC strip is narrower in the rail — let cards shrink */
  #ugcMount .dsb-ugc-row {
    gap: 8px;
  }

  #ugcMount .dsb-ugc-card {
    flex: 0 0 calc((100% - 24px) / 4);
  }

  #dsb-page>.dsb-final-cta {
    grid-column: 1 / -1;
    margin-left: 0;
    margin-right: 0;
  }

  /* FAQ + Reviews span the FULL body width (matching the gallery/info row),
     not the narrower shared-widget defaults. */
  #dsb-page>.faq-section {
    grid-column: 1 / -1;
    max-width: none;
  }

  #dsb-page>.scrapbook-reviews {
    grid-column: 1 / -1;
    max-width: none;
    width: 100%;
  }

  /* 4 review cards per row (widget JS builds 4 masonry columns via data-columns="4") */
  #dsb-page #reviewsMount .reviews-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .dsb-reviews-wrap {
    margin-top: 24px;
  }

  .dsb-sticky-cta {
    display: none;
  }

  .dsb-themes-section {
    display: none;
  }

  /* picker now lives in product info column */
  /* "how it works" cards switch to a single column inside the narrower
     right column so they don't shrink awkwardly. */
  .dsb-how-section .dsb-how-steps {
    grid-template-columns: 1fr;
  }

  .dsb-how-section .dsb-section-title {
    text-align: left;
  }
}

/* THEMES */
.dsb-themes-section {
  margin: 40px 16px 32px;
}

.dsb-themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
}

/* THEME DROPDOWN (compact replacement for the grid on the product page) */
.dsb-theme-dropdown {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
}

.dsb-theme-select-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--dsb-card);
  border: 2px solid var(--dsb-line);
  border-radius: 14px;
  padding: 10px 14px;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  color: var(--dsb-ink);
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.dsb-theme-select-btn:hover {
  border-color: var(--dsb-accent);
}

.dsb-theme-select-btn[aria-expanded="true"] {
  border-color: var(--dsb-accent);
  box-shadow: 0 6px 18px rgba(217, 112, 86, 0.16);
}

.dsb-theme-select-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  background: #f0f0f0;
  display: none;
}

.dsb-theme-select-btn.has-selection .dsb-theme-select-thumb {
  display: block;
}

.dsb-theme-select-label {
  flex: 1;
  font-weight: 600;
  letter-spacing: -0.1px;
}

.dsb-theme-select-caret {
  font-size: 10px;
  color: var(--dsb-ink-soft);
  transition: transform 0.2s;
}

.dsb-theme-select-btn[aria-expanded="true"] .dsb-theme-select-caret {
  transform: rotate(180deg);
}

.dsb-theme-select-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 50;
  background: #fff;
  border: 1px solid var(--dsb-line);
  border-radius: 14px;
  list-style: none;
  margin: 0;
  padding: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  max-height: 320px;
  overflow-y: auto;
}

.dsb-theme-select-list[hidden] {
  display: none;
}

.dsb-theme-select-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.12s;
}

.dsb-theme-select-item:hover,
.dsb-theme-select-item:focus {
  background: #fff6f0;
  outline: none;
}

.dsb-theme-select-item img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.dsb-theme-select-item-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dsb-theme-select-item-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--dsb-ink);
}

.dsb-theme-select-item-badge {
  font-size: 11px;
  color: var(--dsb-accent-deep);
}

.dsb-theme-select-item.selected {
  background: #fbeee7;
}

.dsb-theme-select-item.selected::after {
  content: "✓";
  color: var(--dsb-accent);
  font-weight: 700;
  margin-left: 4px;
}

.dsb-theme-card {
  background: var(--dsb-card);
  border: 2px solid transparent;
  border-radius: var(--dsb-radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative;
}

.dsb-theme-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.dsb-theme-card.selected {
  border-color: var(--dsb-accent);
  box-shadow: 0 6px 18px rgba(217, 112, 86, 0.18);
}

.dsb-theme-img-wrap {
  aspect-ratio: 4/5;
  background: #eee;
  overflow: hidden;
}

.dsb-theme-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dsb-theme-meta {
  padding: 10px 12px;
}

.dsb-theme-title {
  font-weight: 600;
  font-size: 15px;
  margin: 0;
}

.dsb-theme-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
}

/* HOW IT WORKS */
.dsb-how-section {
  margin: 56px 16px 40px;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.dsb-how-section .dsb-section-title {
  text-align: center;
  margin-bottom: 28px;
}

.dsb-how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.dsb-how-step {
  background: var(--dsb-card);
  padding: 24px 20px;
  border-radius: var(--dsb-radius);
  border: 1px solid var(--dsb-line);
  position: relative;
}

.dsb-how-num {
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--dsb-accent);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.dsb-how-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.dsb-how-step h3 {
  font-size: 17px;
  margin: 0 0 6px;
  font-weight: 600;
}

.dsb-how-step p {
  font-size: 14px;
  color: var(--dsb-ink-soft);
  margin: 0;
  line-height: 1.5;
}

/* PHYSICAL PRODUCT REASSURANCE */
.dsb-physical-section {
  margin: 40px 16px;
}

.dsb-physical-card {
  max-width: 720px;
  margin: 0 auto;
  background: linear-gradient(135deg, #fff8e1, #fffde7);
  border: 1px solid #f7e7c2;
  border-radius: var(--dsb-radius);
  padding: 22px;
  display: flex;
  gap: 18px;
  align-items: center;
}

.dsb-physical-icon {
  font-size: 44px;
  flex-shrink: 0;
}

.dsb-physical-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
}

.dsb-physical-card p {
  margin: 0;
  font-size: 14px;
  color: #7a6a4d;
  line-height: 1.5;
}

/* FAQ */
.dsb-faqs-section {
  margin: 56px 16px 40px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.dsb-faqs-section .dsb-section-title {
  text-align: center;
  margin-bottom: 24px;
}

.dsb-faqs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dsb-faq-item {
  background: var(--dsb-card);
  border: 1px solid var(--dsb-line);
  border-radius: 12px;
  overflow: hidden;
}

.dsb-faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--dsb-ink);
  font-family: inherit;
}

.dsb-faq-q::after {
  content: "+";
  font-size: 22px;
  font-weight: 300;
  transition: transform 0.2s;
}

.dsb-faq-item.open .dsb-faq-q::after {
  transform: rotate(45deg);
}

.dsb-faq-a {
  padding: 0 18px;
  font-size: 14px;
  color: var(--dsb-ink-soft);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s, padding 0.3s;
}

.dsb-faq-item.open .dsb-faq-a {
  max-height: 500px;
  padding: 0 18px 18px;
}

/* FINAL CTA */
.dsb-final-cta {
  text-align: center;
  padding: 56px 24px 40px;
  margin: 40px 16px 0;
  background: linear-gradient(135deg, #fff6f0, #fff);
  border-radius: var(--dsb-radius);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.dsb-final-cta h2 {
  font-family: "poppins-bold", sans-serif;
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 8px;
}

.dsb-final-cta p {
  color: var(--dsb-ink-soft);
  margin: 0 0 22px;
}

/* STICKY MOBILE CTA */
.dsb-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.dsb-sticky-cta.visible {
  transform: translateY(0);
  pointer-events: auto;
}

.dsb-sticky-cta-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: white;
}

.dsb-sticky-delivery-row {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #000000;
  background: #c9ea12;
  padding: 5px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
}

.dsb-sticky-cta-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dsb-sticky-cta-theme {
  font-size: 12px;
  font-weight: 600;
  color: var(--dsb-ink);
}

.dsb-sticky-coupon-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 1px;
  flex-wrap: wrap;
}

.dsb-sticky-old-price-muted {
  text-decoration: line-through;
  color: #aaa;
  font-size: 12px;
}

.dsb-sticky-new-price {
  font-family: poppins-bold, system-ui, -apple-system, sans-serif;
  font-size: 18px;
  letter-spacing: -0.5px;
  color: var(--dsb-accent-deep);
}

.dsb-sticky-coupon-label {
  font-size: 10px;
  color: var(--dsb-accent-deep);
  font-weight: 700;
  background: #f5ddd2;
  padding: 2px 5px;
  border-radius: 5px;
}

.dsb-sticky-reassure {
  margin-top: 2px;
  font-size: 10px;
  font-weight: 600;
  color: #2e7d32;
  line-height: 1.2;
}

.dsb-sticky-cta-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 22px;
  background: var(--dsb-accent, #d97056);
  /* solid brand colour fill */
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 12px rgba(217, 112, 86, 0.28);
  font-family: inherit;
}

.dsb-sticky-cta-btn:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(217, 112, 86, 0.32);
}

.dsb-sticky-cta-btn svg {
  flex-shrink: 0;
  stroke: currentColor;
}

/* MODAL — bottom sheet on mobile, centered card on tablet+ */
.dsb-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1000;
  display: none;
  align-items: flex-end;
  justify-content: center;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.dsb-modal-overlay.show {
  display: flex;
}

.dsb-modal-card {
  background: #fff;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 24px 24px 0 0;
  padding: 18px 18px 32px;
  position: relative;
  animation: dsbSlideUp 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
  -webkit-overflow-scrolling: touch;
}

.dsb-modal-grab {
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background: #d8d8d8;
  margin: 0 auto 12px;
}

@media (min-width: 600px) {
  .dsb-modal-overlay {
    align-items: center;
  }

  .dsb-modal-card {
    border-radius: 24px;
    max-height: 88vh;
    padding: 24px 22px 32px;
  }

  .dsb-modal-grab {
    display: none;
  }
}

@keyframes dsbSlideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.dsb-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.05);
  border: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dsb-step {
  animation: dsbFade 0.3s;
}

@keyframes dsbFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

.dsb-step-title {
  font-family: "poppins-bold", sans-serif;
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 6px;
}

.dsb-step-emp {
  color: var(--dsb-accent);
}

.dsb-step-sub {
  color: var(--dsb-ink-soft);
  font-size: 14px;
  margin: 0 0 18px;
}

/* PHOTO UPLOAD — dual gender cards */
/* Her + Him sit side-by-side (compact) with a 2×2 photo grid — bigger, clearer
   thumbnails and roughly half the vertical footprint of the stacked layout. */
.dsb-genders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

/* Single couple-photo upload: one full-width card + single-column grid. */
.dsb-genders.dsb-genders-single {
  grid-template-columns: 1fr;
}

#dsb-refs-grid-couple {
  grid-template-columns: 1fr;
}

/* ── Shipping selector (exact Splashbook UX) ── */
.dsb-ship-section {
  margin: 14px 0 4px;
}

.dsb-ship-title {
  margin-top: 10px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--dsb-accent-deep, #b9543c);
  text-transform: uppercase;
  font-family: "poppins-bold", sans-serif;
}

.dsb-pincode-checker {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--dsb-line, #f0e6da);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 8px;
  background-color: white;
  justify-content: space-between;
}

.dsb-pincode-input-wrap {
  display: flex;
  width: 100%;
  align-items: center;
}

.dsb-pincode-location-icon {
  font-size: 14px;
  padding-left: 5px;
}

#dsb-pincode-input {
  border: none;
  outline: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--dsb-ink, #1a1a1a);
  background: transparent;
  width: 100%;
  padding: 6px 0 6px 6px;
}

.dsb-pincode-check-button {
  background: var(--dsb-accent, #d97056);
  border: none;
  color: #fff;
  font-weight: 500;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.dsb-pincode-error {
  font-size: 12px;
  color: #d60000;
  margin: 4px;
  display: none;
}

.dsb-ship-options {
  display: flex;
  gap: 3px;
}

.dsb-ship-card {
  flex: 1;
  border: 1px solid #e0e0e0;
  border-radius: 14px;
  padding: 6px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background-color: white;
}

.dsb-ship-card.selected {
  border-color: var(--ship-color, #7b3fe4);
  background: color-mix(in srgb, var(--ship-color, #7b3fe4) 20%, white);
}

.dsb-ship-date {
  font-family: "poppins-medium-italic", sans-serif;
  font-size: 12px;
}

.dsb-ship-meta {
  display: flex;
  gap: 8px;
  font-size: 11px;
}

.dsb-ship-spin {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(185, 84, 60, 0.25);
  border-radius: 50%;
  border-top-color: var(--dsb-accent, #d97056);
  animation: dsbShipSpin 1s ease-in-out infinite;
  margin: 0 auto;
}

@keyframes dsbShipSpin {
  to {
    transform: rotate(360deg);
  }
}

.dsb-gender-card {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 9px;
  display: flex;
  flex-direction: column;
}

.dsb-gender-card[data-gender="female"] {
  border-color: #ffd6e3;
  background: #fff7fa;
}

.dsb-gender-card[data-gender="male"] {
  border-color: #d8e4ff;
  background: #f5f8ff;
}

.dsb-gender-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
}

.dsb-gender-emoji {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.dsb-gender-meta {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  flex-wrap: wrap;
}

.dsb-gender-title {
  font-family: "poppins-bold", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--dsb-ink);
}

.dsb-gender-count {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--dsb-ink-soft);
  background: rgba(0, 0, 0, 0.05);
  border-radius: 999px;
  padding: 1px 7px;
}

.dsb-gender-count.full {
  color: #fff;
  background: var(--dsb-secondary, #2f9e44);
}

.dsb-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  margin: 0;
}

.dsb-photo-grid.dsb-gender-grid {
  grid-template-columns: repeat(2, 1fr);
}

.dsb-photo-cell {
  aspect-ratio: 1;
  background: #f5f5f5;
  border: 2px dashed #ddd;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #aaa;
  position: relative;
  overflow: hidden;
}

.dsb-photo-cell.filled {
  border-style: solid;
  border-color: var(--dsb-accent);
  background: #000;
}

.dsb-photo-cell img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dsb-photo-cell.uploading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><circle cx='12' cy='12' r='10' fill='none' stroke='%23ff5722' stroke-width='2' stroke-dasharray='15.7 15.7' stroke-linecap='round'><animateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='0.8s' repeatCount='indefinite'/></circle></svg>") center/24px no-repeat;
}

.dsb-photo-cell-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  border: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  z-index: 3;
}

.dsb-photo-cell-remove:active {
  transform: scale(0.9);
}

.dsb-step-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.dsb-step-back {
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--dsb-ink-soft);
  font-size: 14px;
  padding: 8px;
  font-family: inherit;
}

.dsb-step-actions .dsb-cta-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

/* "Add pictures" button — full-width pill above the action row */
.dsb-add-pictures-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 0 0 12px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--dsb-accent-deep);
  background: #faf1ea;
  border: 1.5px dashed #e3a98f;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.dsb-add-pictures-btn:hover {
  background: #f6e2d7;
  border-color: var(--dsb-accent);
}

.dsb-add-pictures-btn:active {
  transform: scale(0.98);
}

.dsb-add-pictures-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--dsb-accent);
  color: var(--dsb-cta-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

/* Progress UI shown while detection + upload runs */
.dsb-upload-progress {
  margin: 0 0 14px;
  padding: 10px 12px;
  background: #faf1ea;
  border: 1px solid #eec3b1;
  border-radius: 10px;
}

.dsb-upload-progress-text {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--dsb-accent-deep);
  margin: 0 0 6px;
}

.dsb-upload-progress-bar {
  width: 100%;
  height: 6px;
  background: #f3dccf;
  border-radius: 999px;
  overflow: hidden;
}

.dsb-upload-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--dsb-accent), var(--dsb-accent-deep));
  border-radius: 999px;
  transition: width 0.25s ease;
}

/* GENERATING SPINNER */
.dsb-gen-spinner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 4px solid rgba(217, 112, 86, 0.2);
  border-top-color: var(--dsb-accent);
  margin: 12px auto 18px;
  animation: dsbSpin 0.9s linear infinite;
}

@keyframes dsbSpin {
  to {
    transform: rotate(360deg);
  }
}

/* CROP MODAL (opens when 2+ faces detected on a ref upload) */
.dsb-crop-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  /* above the sticky header (z-index 9000) so it dims it too */
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.dsb-crop-overlay.show {
  display: flex;
}

.dsb-crop-card {
  background: #fff;
  width: 100%;
  max-width: 540px;
  max-height: 92vh;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dsb-crop-head {
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--dsb-line);
}

.dsb-crop-title {
  font-family: "poppins-bold", sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  min-width: 0;
}

/* Skip / Crop / Close actions in the header (replaces the bottom bar).
   Literal colors — the crop overlay lives outside #dsb-page, so the --dsb-*
   vars aren't in scope here. */
.dsb-crop-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.dsb-crop-btn {
  border: 1.5px solid #f0d9c8;
  background: #fff;
  color: #1a1a1a;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}

.dsb-crop-btn:active {
  transform: scale(0.96);
}

.dsb-crop-btn:hover {
  background: #f8f1ea;
}

.dsb-crop-btn-primary {
  background: #d97056;
  border-color: #d97056;
  color: #fff;
}

.dsb-crop-btn-primary:hover {
  background: #c25b40;
}

.dsb-crop-tool {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #f0d9c8;
  background: #fff;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}

.dsb-crop-tool:active {
  transform: scale(0.92);
}

.dsb-crop-tool:hover {
  background: #f8f1ea;
}

.dsb-crop-stage {
  position: relative;
  flex: 1;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
  touch-action: none;
}

.dsb-crop-stage img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

.dsb-crop-box {
  position: absolute;
  border: 2px solid #fff;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55);
  cursor: move;
  box-sizing: border-box;
}

/* "Crop like this" example guide — top-left of the crop stage */
.dsb-crop-guide {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(20, 16, 12, 0.72);
  color: #fff;
  padding: 7px 10px 7px 8px;
  border-radius: 10px;
  backdrop-filter: blur(3px);
  pointer-events: none;
  max-width: 70%;
}

.dsb-crop-guide svg {
  flex: 0 0 auto;
  border-radius: 5px;
}

.dsb-crop-guide span {
  font-size: 11.5px;
  line-height: 1.25;
  font-weight: 600;
}

.dsb-crop-handle {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #fff;
  border: 2px solid var(--dsb-accent);
  border-radius: 3px;
}

.dsb-crop-handle-nw {
  top: -8px;
  left: -8px;
  cursor: nwse-resize;
}

.dsb-crop-handle-ne {
  top: -8px;
  right: -8px;
  cursor: nesw-resize;
}

.dsb-crop-handle-sw {
  bottom: -8px;
  left: -8px;
  cursor: nesw-resize;
}

.dsb-crop-handle-se {
  bottom: -8px;
  right: -8px;
  cursor: nwse-resize;
}

.dsb-crop-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 15px;
  border-top: 1px solid var(--dsb-line);
}

/* PREVIEW REVEAL */
/* ── Carousel reveal: big image + horizontal thumb strip, full-viewport ── */
@keyframes dsbShimmer {
  0% {
    background-position: -150% 0;
  }

  100% {
    background-position: 250% 0;
  }
}

.dsb-rv-shimmer {
  background: linear-gradient(100deg, #ece3d4 30%, #f7f0e4 50%, #ece3d4 70%);
  background-size: 200% 100%;
  animation: dsbShimmer 1.3s linear infinite;
}

.dsb-reveal2 {
  display: flex;
  flex-direction: column;
  height: 100svh;
  gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  box-sizing: border-box;
}

.dsb-rv-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
}

.dsb-rv-back {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  font-size: 22px;
  line-height: 1;
  color: var(--dsb-ink);
  text-decoration: none;
  border-radius: 50%;
}

.dsb-rv-back:active {
  background: rgba(0, 0, 0, 0.06);
}

/* status now overlays the stage (header stays clean: just back + ref) */
.dsb-rv-status {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  background: rgba(20, 16, 12, 0.55);
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
  backdrop-filter: blur(3px);
}

.dsb-rv-status.hidden {
  display: none;
}

.dsb-rv-ref {
  flex: 0 0 auto;
  margin-left: auto;
  width: 34px;
  height: 44px;
  border-radius: 6px;
  overflow: hidden;
  background: #f0eadf;
  border: 1px solid var(--dsb-line, #eee);
}

.dsb-rv-ref img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dsb-rv-stage {
  flex: 1 1 0;
  min-height: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  overflow: hidden;
  background: #f4ece1;
}

.dsb-rv-stage.gen {}

/* shimmer applied to the img placeholder below */
.dsb-rv-main {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 14px;
  display: block;
}

.dsb-rv-main.blurred {
  filter: blur(22px);
  transform: scale(1.08);
}

.dsb-rv-stage.gen .dsb-rv-main {
  filter: blur(22px);
  transform: scale(1.08);
}

.dsb-rv-stage-lock {
  position: absolute;
  inset: auto 0 0 0;
  text-align: center;
  background: rgba(20, 16, 12, 0.55);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px;
}

.dsb-rv-thumbs {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px;
}

.dsb-rv-thumbs::-webkit-scrollbar {
  display: none;
}

.dsb-rv-thumb {
  position: relative;
  flex: 0 0 auto;
  width: 52px;
  height: 64px;
  border-radius: 9px;
  overflow: hidden;
  background: #ece3d4;
  cursor: pointer;
  border: 2px solid transparent;
}

.dsb-rv-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dsb-rv-thumb.locked img {
  filter: blur(7px);
  transform: scale(1.2);
}

.dsb-rv-thumb.gen img {
  opacity: 0.35;
}

.dsb-rv-thumb.gen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(236, 227, 212, 0) 30%, rgba(255, 255, 255, 0.65) 50%, rgba(236, 227, 212, 0) 70%);
  background-size: 200% 100%;
  animation: dsbShimmer 1.3s linear infinite;
}

.dsb-rv-thumb.active {
  border-color: var(--dsb-accent);
}

.dsb-rv-yours {
  position: absolute;
  top: 3px;
  left: 3px;
  z-index: 2;
  background: rgba(76, 175, 80, 0.95);
  color: #fff;
  font-size: 9px;
  padding: 1px 4px;
  border-radius: 5px;
}

.dsb-rv-lock {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

/* Order bar (Splashbook-style) */
.dsb-orderbar {
  flex: 0 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.dsb-orderbar-strip {
  background: #d7e84f;
  color: #2a2a1a;
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  padding: 6px 10px;
}

.dsb-orderbar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}

.dsb-orderbar-info {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

.dsb-orderbar-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--dsb-ink);
  line-height: 1.2;
  margin-bottom: 3px;
}

.dsb-orderbar-price {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.dsb-orderbar-price s {
  color: var(--dsb-ink-soft);
}

.dsb-orderbar-price b {
  font-size: 17px;
  color: var(--dsb-ink);
}

.dsb-orderbar-pill {
  background: #f3eafc;
  color: #7a3ea8;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.dsb-orderbar-btn {
  flex: 0 0 auto;
  background: var(--dsb-accent, #d97056);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(217, 112, 86, 0.3);
}

.dsb-orderbar-btn:active {
  transform: scale(0.97);
}

/* Desktop: bigger thumbs, capped width, centered */
@media (min-width: 768px) {
  .dsb-reveal2 {
    max-width: 820px;
    margin: 0 auto;
    padding: 16px 20px;
  }

  .dsb-rv-thumb {
    width: 76px;
    height: 96px;
  }

  .dsb-rv-status {
    font-size: 15px;
  }

  .dsb-orderbar-title {
    font-size: 15px;
  }

  .dsb-orderbar-btn {
    padding: 15px 28px;
    font-size: 16px;
  }
}

/* ═══════════════════════════════════════════════
   INLINE UPLOADER (on the product page, under price)
   ═══════════════════════════════════════════════ */
.dsb-inline-uploader {
  margin-top: 16px;
  padding: 14px 14px 16px;
  border: 1px solid var(--dsb-line);
  border-radius: 16px;
  background: linear-gradient(180deg, #fdf7f2 0%, #fff 60%);
  box-shadow: 0 2px 14px rgba(217, 112, 86, 0.06);
}

.dsb-inline-uploader-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.dsb-inline-uploader-title {
  font-family: "poppins-bold", sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--dsb-ink);
  margin: 0;
}

.dsb-inline-uploader-tips {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.dsb-inline-uploader-tips li {
  position: relative;
  padding-left: 20px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--dsb-ink-soft);
  margin-bottom: 5px;
}

.dsb-inline-uploader-tips li:last-child {
  margin-bottom: 0;
}

.dsb-inline-uploader-tips li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--dsb-accent-deep);
  font-weight: 700;
}

.dsb-inline-uploader-tips strong {
  color: var(--dsb-ink);
  font-weight: 600;
}

.dsb-inline-secure {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  color: #2e7d32;
  background: #eafbea;
  border-radius: 999px;
  padding: 4px 9px;
  white-space: nowrap;
}

.dsb-inline-uploader .dsb-info-cta {
  margin-top: 6px;
}

/* Muted = not-ready. Stays clickable (fires a toast) — no dead disabled. */
.dsb-cta-muted {
  filter: saturate(0.2);
  opacity: 0.7;
  box-shadow: none !important;
}

/* Trust row under the Generate Preview button */
.dsb-assurance-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 8px;
  text-align: center;
}

.dsb-assurance-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--dsb-ink-soft);
  white-space: nowrap;
}

/* Empty per-gender state: a single full-width upload button (no "+" grid) */
.dsb-photo-grid.dsb-grid-empty {
  display: block;
  flex: 1 1 auto;
}

.dsb-upload-gender-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  height: 100%;
  min-height: 104px;
  padding: 14px 8px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--dsb-accent-deep);
  background: #fff;
  border: 1.5px dashed #e3a98f;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.dsb-upload-gender-btn:hover {
  background: #faf1ea;
  border-color: var(--dsb-accent);
}

.dsb-upload-gender-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--dsb-accent);
  color: #fff;
  font-size: 17px;
  line-height: 1;
}

.dsb-gender-nudge {
  animation: dsbNudge 0.5s ease;
}

@keyframes dsbNudge {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-5px);
  }

  40%,
  80% {
    transform: translateX(5px);
  }
}

/* ═══════════════════════════════════════════════
   PREVIEW VIEW (URL = /ai-photobook/preview/{uploadID})
   ═══════════════════════════════════════════════ */
.dsb-preview-view {
  display: none;
}

.dsb-preview-view.show {
  display: block;
}

/* Full-screen takeover: hide the storefront chrome so the carousel fits the
   viewport with no page scroll. */
.dsb-preview-mode #dsb-page,
.dsb-preview-mode .dsb-sticky-cta,
.dsb-preview-mode #footer-placeholder,
.dsb-preview-mode #globalFooter,
.dsb-preview-mode #header-placeholder,
.dsb-preview-mode #header-skeleton {
  display: none !important;
}

.dsb-preview-mode,
.dsb-preview-mode body {
  overflow: hidden;
}

/* the global-header class adds body padding-top for the fixed nav; the nav is
   hidden in preview mode, so reclaim that space (was the gap + overflow). */
body.dsb-preview-mode {
  padding-top: 0 !important;
}

.dsb-preview-inner {
  margin: 0;
  padding: 0;
}

.dsb-preview-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dsb-accent-deep);
  text-decoration: none;
}

.dsb-preview-back:hover {
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════
   FULL-WIDTH SECTIONS (UGC, testimonials, tabs, FAQ)
   ═══════════════════════════════════════════════ */
.dsb-fullwidth-section {
  margin: 32px 0 0;
  padding: 0 10px;
}

/* UGC: mirrors Splashbook's UGC strip exactly — the row carries the 10px side
   inset + 14px scroll-padding; cards are 3.2-per-view, center-snapped. */
#ugcMount.dsb-fullwidth-section {
  padding: 0;
  margin-top: 14px;
}

.dsb-initially-hidden {
  display: none;
}

/* SECTION HEADER */
.dsb-section-title {
  font-family: "poppins-bold", sans-serif;
  font-size: clamp(22px, 3.6vw, 30px);
  font-weight: 600;
  color: var(--dsb-ink);
  text-align: center;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}

/* UGC ROW */
.dsb-ugc-wrapper {
  width: 100%;
}

.dsb-ugc-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  scroll-padding: 15px;
  padding: 0 10px;
  /* match the body's 15px side gutter */
}

.dsb-ugc-row::-webkit-scrollbar {
  display: none;
}

.dsb-ugc-card {
  position: relative;
  flex: 0 0 calc((100% - 20px) / 3.2);
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  scroll-snap-align: center;
  cursor: pointer;
  background: #111;
}

.dsb-ugc-card img,
.dsb-ugc-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dsb-ugc-card video {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.dsb-ugc-card.is-playing video {
  opacity: 1;
}

.dsb-ugc-card.is-playing img {
  opacity: 0;
}

/* Drop the #111 placeholder once the video has loaded and covers the card. */
.dsb-ugc-card.video-loaded {
  background: transparent;
}

/* UGC MODAL */
.dsb-ugc-modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  padding: 24px;
}

.dsb-ugc-modal-inner {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  background: #000;
  overflow: hidden;
}

.dsb-ugc-modal-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.dsb-ugc-modal-inner video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.dsb-ugc-modal-inner.video-ready video {
  opacity: 1;
}

.dsb-ugc-close {
  position: absolute;
  top: 30px;
  right: 30px;
  z-index: 10;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.6);
  color: #000;
  font-size: 18px;
  cursor: pointer;
}

/* TESTIMONIALS */
.dsb-testimonial-section {
  margin: 32px 0 0;
  padding: 0 15px;
}

.dsb-testimonial-slider {
  position: relative;
}

.dsb-testimonial-viewport {
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
  transition: height 280ms ease;
  touch-action: pan-y;
  cursor: grab;
}

.dsb-testimonial-viewport.is-dragging {
  cursor: grabbing;
}

.dsb-testimonial-viewport.is-dragging .dsb-testimonial-slide {
  user-select: none;
}

.dsb-testimonial-track {
  display: flex;
  transition: transform 320ms ease;
  will-change: transform;
  align-items: flex-start;
}

.dsb-testimonial-slide {
  position: relative;
  width: 100%;
  flex: 0 0 100%;
  padding: 15px 25px;
}

.dsb-testimonial-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.dsb-testimonial-name {
  font-family: "poppins-semibold";
  font-size: 14px;
  color: #111;
}

.dsb-testimonial-stars {
  color: #f5b400;
  font-size: 14px;
  letter-spacing: 1px;
}

.dsb-testimonial-date {
  color: #6f6f6f;
  font-size: 12px;
  white-space: nowrap;
}

.dsb-testimonial-text {
  font-size: 12px;
  line-height: 1.6;
  color: #222;
  margin: 0;
}

.dsb-testimonial-arrows {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.dsb-testimonial-arrow {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-80%);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid #f1d8c6;
  background: #fff;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  color: var(--dsb-accent-deep);
}

.dsb-testimonial-arrow-prev {
  left: -10px;
}

.dsb-testimonial-arrow-next {
  right: -10px;
}

.dsb-testimonial-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  height: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  width: calc((7 * 10px) + (6 * 6px));
  margin-left: auto;
  margin-right: auto;
  justify-content: flex-start;
}

.dsb-testimonial-dots::-webkit-scrollbar {
  display: none;
}

.dsb-testimonial-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: #e8d6c7;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex: 0 0 auto;
}

.dsb-testimonial-dot.active {
  width: 18px;
  border-radius: 10px;
  background: var(--dsb-accent);
}

.dsb-testimonial-dot[data-dist="1"] {
  transform: scale(0.9);
  opacity: 0.55;
}

.dsb-testimonial-dot[data-dist="2"] {
  transform: scale(0.75);
  opacity: 0.45;
}

.dsb-testimonial-dot[data-dist="3"] {
  transform: scale(0.6);
  opacity: 0.35;
}

/* INFO TABS */
.dsb-tabs-wrapper {
  padding: 6px;
  border-radius: 35px;
  background: #fff;
  border: 2px solid #eec3b1;
  margin: 0;
}

.dsb-tabs {
  position: relative;
  display: flex;
  background: #faf1ea;
  border-radius: 999px;
  padding: 6px;
}

.dsb-tab-slider {
  position: absolute;
  top: 6px;
  left: 6px;
  width: calc((100% - 12px) / 3);
  height: calc(100% - 12px);
  background: var(--dsb-accent);
  border-radius: 999px;
  transition: left 0.35s ease;
}

.dsb-tab-button {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--dsb-accent-deep);
  cursor: pointer;
  position: relative;
  z-index: 1;
  text-transform: capitalize;
  font-family: inherit;
}

.dsb-tab-button.active {
  color: #fff;
}

.dsb-tab-content {
  display: none;
  padding: 14px 8px 6px;
  font-size: 12px;
  line-height: 1.45;
  animation: dsbFade 0.25s ease;
}

.dsb-tab-content.active {
  display: block;
}

.dsb-tab-content p {
  margin: 0 0 8px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--dsb-ink);
}

.dsb-tab-details-indent {
  margin-left: 16px !important;
  font-size: 12px;
}

/* FAQ — re-skin shared FaqWidget tones to AI Photobook palette.
   Sizing/padding/centering left to the shared .faq-section rule so it matches
   Splashbook exactly. */
#dsb-page #faqMount .faq-main-title {
  display: none;
}

/* Tighten the gap to the Reviews section below (shared widget sets 50px). */
#dsb-page #faqMount {
  margin-bottom: 24px;
}

#dsb-page .faq-list {
  gap: 10px;
}

#dsb-page .faq-item {
  background: #fcf1ea;
  border: 1px solid #ecc6b0;
  border-radius: 14px;
}

#dsb-page .faq-question-text {
  font-weight: 700;
  color: var(--dsb-ink);
  font-size: 14px;
}

#dsb-page .faq-toggle-icon {
  color: var(--dsb-accent-deep);
}

#dsb-page .answer-content {
  color: #574535;
  font-size: 13px;
  line-height: 1.55;
}

/* DESKTOP — keep new sections inside the right column / full-width below gallery */
@media (min-width: 900px) {
  #dsb-page .dsb-fullwidth-section {
    grid-column: 1 / -1;
    padding: 0;
  }

  /* UGC, Testimonials, and the info-tabs (Details/Returns/Support) sit in
     the RIGHT column alongside the sticky gallery — beat the generic
     .dsb-fullwidth-section rule above via #id-on-#id specificity. */
  #dsb-page #ugcMount {
    grid-column: 2;
    grid-row: 4;
    margin: 14px 0 0;
    padding: 0;
  }

  #dsb-page #dsb-testimonialsSection {
    grid-column: 2;
    grid-row: 5;
    margin: 24px 0 0;
    padding: 0;
  }

  #dsb-page #dsb-infoTabsMount {
    grid-column: 2;
    grid-row: 6;
    margin: 24px 0 0;
    padding: 0;
  }

  /* The tabs-wrapper inside the right column doesn't need centering. */
  #dsb-page #dsb-infoTabsMount .dsb-tabs-wrapper {
    max-width: none;
    margin: 0;
  }

  .dsb-ugc-card {
    flex: 0 0 calc((100% - 60px) / 6.2);
  }

  .dsb-tabs-wrapper {
    max-width: 720px;
    margin: 0 auto;
  }

  #dsb-page #faqMount {
    margin-top: 32px;
  }
}

/* ─── Reviews widget — inherit scrapbook-style layout from reviews.css ──
   We only set --sb-* var mapping so the shared widget renders with the
   AI Photo Book palette. Layout/structure is owned by the shared CSS so
   every product page looks identical. */
:root,
body {
  --sb-ink: #1a1a1a;
  --sb-muted: #555;
  --sb-line: #f0e6da;
  --sb-card: #ffffff;
  --sb-shadow: 0 8px 22px rgba(30, 23, 15, 0.08);
  --sb-accent: #d97056;
  --sb-accent-deep: #b9543c;
  --sb-secondary: #2f9e44;
}

/* Mobile: align FAQ + footer to the body's 16px side gutter.
   FAQ inherits .faq-section padding:10px (too wide); footer panel uses a
   95vw formula (too narrow). Both scoped to this page only — the footer rule
   keys off the unique #dsb-page sibling so the shared/Splashbook footer is
   untouched. Desktop (>=900px) keeps its existing centred layout. */
@media (max-width: 899px) {
  #dsb-page #faqMount {
    padding-left: 10px;
    padding-right: 10px;
  }

  #dsb-page~#footer-placeholder .lp-footer-panel {
    width: calc(100vw - 20px);
  }
}

/* ── WhatsApp lock — replaces the uploader after 3 free previews are used ── */
.dsb-wa-lock {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 24px 18px;
}

.dsb-wa-lock-emoji {
  font-size: 34px;
  line-height: 1;
}

.dsb-wa-lock-title {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
}

.dsb-wa-lock-text {
  font-size: 14px;
  line-height: 1.5;
  color: #555;
  max-width: 340px;
}

.dsb-wa-lock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 6px;
  padding: 13px 24px;
  background: #25d366;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.dsb-wa-lock-btn:active {
  transform: translateY(1px);
}

.dsb-wa-lock-sub {
  font-size: 12px;
  color: #888;
}

/* ── Flat (square) header on the AI-Photobook page only ──
   This stylesheet is loaded ONLY on ai-photobook, so these overrides don't
   touch Splashbook's shared rounded header. */
.global-header-wrapper,
.global-header,
.global-subheader,
.header-skeleton-wrapper,
.header-skeleton-main,
.header-skeleton-subheader {
  border-radius: 0 !important;
}
/* ── "What's in the box" list — DIY buy block (replaces the AI inline
   uploader). The .dsb-box-* classes aren't in the cloned AI CSS, so style
   them here to match the dusty-rose theme. ── */
#dsb-page .dsb-box-title {
  font-family: poppins-bold;
  font-size: 14px;
  color: var(--dsb-ink);
  margin: 2px 0 10px;
}
#dsb-page .dsb-box-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#dsb-page .dsb-box-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--dsb-ink-soft);
  background: #fff;
  border: 1px solid var(--dsb-line);
  border-radius: 12px;
  padding: 10px 12px;
}
#dsb-page .dsb-box-icon {
  font-size: 16px;
  line-height: 1.35;
  flex: 0 0 auto;
}

/* ── Shared FAQ + Reviews widget theming ─────────────────────────────────────
   The shared faqs.css / reviews.css are themeable via CSS vars; their FALLBACKS
   are splashbook-pink (FAQ) and scrapbook-red/forest (Reviews). Scope the DIY
   dusty-rose + terracotta palette here on #dsb-page (the wrapper #faqMount +
   #reviewsMount mount under) so both widgets match the rest of the page. Only
   sets vars consumed by the shared CSS — does NOT touch the shared files. ── */
#dsb-page {
  /* FAQ (faqs.css) */
  --faq-border: #ecd2c6;          /* soft rose-tan card/heading line */
  --faq-heading-bg: #fdf1ec;      /* pale rose-cream heading band (light → dark title reads) */
  --faq-item-bg: #ffffff;         /* white question cards on the cream page */
  --faq-title-color: #b9543c;     /* deep terracotta question titles */

  /* Reviews (reviews.css) */
  --reviews-accent-alt: #b9543c;                              /* deep terracotta (color/border/bg) */
  --reviews-bar: #d97056;                                     /* terracotta rating-distribution bars */
  --reviews-cta-bg: linear-gradient(135deg, #d97056, #b9543c);/* matches the page's primary CTA (used as background:) */
  --reviews-cta-text: #ffffff;
  --reviews-pill-active-bg: #d97056;                          /* terracotta active filter pill (also used as border-color → solid) */
  --reviews-pill-active-text: #ffffff;
  --reviews-stars: #f5b400;                                   /* gold — matches the page's .dsb-static-stars; warm on cream */
  --reviews-summary-card-bg: #fffaf6;                         /* warm rose-cream summary card */
  --reviews-summary-card-border: #ecd2c6;                     /* rose line, matches --faq-border */
  --reviews-verified-bg: #b9543c;                             /* deep terracotta "verified" chip (white text per shared CSS) */
}
