/* cervical-clone overrides — styles for the single-ATC offer block + toast the
 * wire injects, plus a couple of scoped fixes. All selectors are under
 * #cervical-clone-root (or #cervical-toast) so nothing leaks into other pages.
 * Loaded after theme.scoped.css. Brand purple #4B3D8F (hover #3a2f78). */

/* ── Horizontal value-stack offer (brief 2026-05-26) ──────────────────────
 * [Cervical Pillow] + [Pillowcase] + [Sleep Mask] + [Ear Plugs] + [Bonnet] +
 * [Sleep Guide] thumbnails with "+" connectors, each with name / struck value
 * / price-or-FREE, then a TOTAL line, ships-by, and (under the ATC) a trust
 * row. Currency-aware values are injected by the wire. */
#cervical-clone-root .cervical-value-stack {
  margin: 4px 0 16px;
  font-family: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #1f2a44;
}

/* Clickable gallery: active-thumbnail outline. PageFly's slider JS wasn't
   ported, so CervicalCloneWire wires thumbnail clicks to swap the main image. */
#cervical-clone-root .cervical-thumb-active {
  outline: 2px solid #4B3D8F;
  outline-offset: 1px;
  border-radius: 6px;
}

#cervical-clone-root .cervical-vs-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 4px;
  padding: 14px 10px;
  background: #f7f5ff;
  border: 1px solid #e6e1f7;
  border-radius: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

#cervical-clone-root .cervical-vs-cell {
  flex: 0 0 auto;
  width: 84px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
}
/* Pin the price / FREE line to the bottom so it aligns across cells even when
 * the pillow omits its struck value (no compare-at). */
#cervical-clone-root .cervical-vs-price,
#cervical-clone-root .cervical-vs-free {
  margin-top: auto;
}
#cervical-clone-root .cervical-vs-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e6e1f7;
  box-shadow: 0 4px 12px -8px rgba(31, 26, 46, 0.45);
}
#cervical-clone-root .cervical-vs-thumb--empty {
  display: block;
}
#cervical-clone-root .cervical-vs-name {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  color: #2b2b3a;
  margin-top: 4px;
  min-height: 26px;
  display: flex;
  align-items: center;
}
#cervical-clone-root .cervical-vs-value {
  font-size: 11px;
  font-weight: 600;
  color: #9aa1ad;
  text-decoration: line-through;
  line-height: 1;
}
#cervical-clone-root .cervical-vs-price {
  font-size: 13px;
  font-weight: 800;
  color: #1f2a44;
  line-height: 1;
}
#cervical-clone-root .cervical-vs-free {
  font-size: 13px;
  font-weight: 900;
  color: #4b3d8f;
  letter-spacing: 0.02em;
  line-height: 1;
}
#cervical-clone-root .cervical-vs-plus {
  flex: 0 0 auto;
  align-self: center;
  font-size: 18px;
  font-weight: 800;
  color: #b3a9dd;
  padding-top: 22px;
  user-select: none;
}

#cervical-clone-root .cervical-vs-total {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
#cervical-clone-root .cervical-vs-total-label {
  font-size: 14px;
  font-weight: 800;
  color: #1f2a44;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
#cervical-clone-root .cervical-vs-total-was {
  font-size: 16px;
  font-weight: 600;
  color: #9aa1ad;
}
#cervical-clone-root .cervical-vs-total-now {
  font-size: 26px;
  font-weight: 900;
  color: #1f2a44;
  line-height: 1;
  letter-spacing: -0.01em;
}
#cervical-clone-root .cervical-vs-total-tag {
  font-size: 13px;
  font-weight: 800;
  color: #4b3d8f;
}

#cervical-clone-root .cervical-vs-ships {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #3a4252;
}
#cervical-clone-root .cervical-vs-ships b {
  color: #1f2a44;
  font-weight: 800;
}

/* Trust row under the Add-to-Cart button. */
#cervical-clone-root .cervical-vs-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 2px;
  font-size: 12.5px;
  font-weight: 700;
  color: #3a4252;
  font-family: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
}
#cervical-clone-root .cervical-vs-dot {
  color: #b3a9dd;
}

/* Small phones: WRAP the value-stack to multiple lines so all six items
 * (pillow + 5 gifts) are visible at once — no horizontal scroll/clipping. */
@media (max-width: 480px) {
  #cervical-clone-root .cervical-vs-row {
    flex-wrap: wrap;
    overflow-x: visible;
    justify-content: center;
    align-items: stretch;
    gap: 8px 2px;
    padding: 12px 8px;
  }
  #cervical-clone-root .cervical-vs-cell {
    width: 70px;
  }
  #cervical-clone-root .cervical-vs-thumb {
    width: 54px;
    height: 54px;
  }
  #cervical-clone-root .cervical-vs-plus {
    font-size: 15px;
    padding-top: 18px;
  }
  #cervical-clone-root .cervical-vs-total-now {
    font-size: 23px;
  }
  /* Section headings ("the difference is clear" / "we are original" /
     "Exclusively at lumuwala.com") render oversized on phones — scale the
     ported PageFly h3 heading down so it doesn't overflow the viewport. */
  #cervical-clone-root .pf-heading-1-h3 {
    font-size: clamp(20px, 6.4vw, 30px) !important;
    line-height: 1.25 !important;
  }
}

/* Add-to-Cart button — recolor the ported PageFly navy to lumuwala brand
 * purple #4B3D8F (hover #3a2f78), per brief. Scoped to the clone root so it
 * never touches other pages. !important beats the styled-component class. */
#cervical-clone-root button[name="add"],
#cervical-clone-root button[name="add"]:link,
#cervical-clone-root button[name="add"]:visited {
  background-color: #4b3d8f !important;
  background-image: none !important;
  color: #fff !important;
  border-color: #4b3d8f !important;
}
#cervical-clone-root button[name="add"]:hover,
#cervical-clone-root button[name="add"]:focus-visible {
  background-color: #3a2f78 !important;
  border-color: #3a2f78 !important;
}

/* Add-to-Cart busy/disabled state on the ported PageFly button. */
#cervical-clone-root button[name="add"][disabled] {
  opacity: 0.7;
  cursor: progress;
}

/* Toast (lives on <body>, outside the wrapper, so id-scoped). */
#cervical-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 99999;
  padding: 14px 22px;
  border-radius: 10px;
  font: 600 14px/1.35 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #fff;
  background: #1f2a44;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.28);
  max-width: 92vw;
  text-align: center;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
#cervical-toast[data-ok="0"] {
  background: #b23b3b;
}
