/* Lori Christmas Gift Box. Uses the book page tokens. */

.xmas-hero,
.xmas-inside,
.xmas-urgency {
  padding: 32px 20px 48px;
}

.xmas-hero {
  padding-top: calc(var(--header-h) + 20px);
}

.xmas-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
}

.xmas-freeship-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 8px 14px;
  border: 1px solid rgba(213, 190, 118, 0.55);
  border-radius: 999px;
  background: rgba(213, 190, 118, 0.14);
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.xmas-cta-note {
  margin: 14px 0 0;
  max-width: 34rem;
  color: var(--cream);
  font-size: 0.98rem;
  line-height: 1.5;
}

.xmas-cta-note strong {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.xmas-cta-note--compact {
  margin: 0;
  flex: 1 1 100%;
  order: 3;
  color: var(--bg-navy);
  font-size: 0.92rem;
}

.xmas-cta-note--compact strong {
  color: var(--red);
}

.xmas-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.xmas-hero h1,
.xmas-section h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--cream-light);
}

.xmas-hero h1 {
  font-size: clamp(2.1rem, 8vw, 3.6rem);
  max-width: 14ch;
}

.xmas-lead {
  margin-top: 16px;
  max-width: 38rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--cream);
}

.xmas-holiday {
  margin-top: 14px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--gold);
}

.xmas-fine-print {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.xmas-start {
  margin-top: 18px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--gold);
}

.xmas-start s {
  margin-left: 8px;
  color: var(--cream-muted);
  font-size: 0.95rem;
}

.xmas-hero__cta {
  margin-top: 22px;
}

.xmas-photo {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.xmas-photo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(68vh, 620px);
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  background: var(--bg-deep);
}

.xmas-photo figcaption {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.xmas-points {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}

.xmas-points li {
  padding: 14px 16px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: var(--panel-surface);
  color: var(--cream-light);
}

.xmas-band {
  background: var(--cream-light);
  color: var(--text-dark);
  padding: 40px 20px 48px;
}

.xmas-band h2,
.xmas-band .xmas-kicker {
  color: var(--text-dark);
}

.xmas-band .xmas-kicker {
  color: var(--red);
}

#build {
  scroll-margin-top: var(--header-h);
  padding: 12px 16px 20px;
}

#build .xmas-wrap {
  max-width: 1480px;
}

.xmas-builder {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: calc(100svh - var(--header-h) - 108px);
  max-height: calc(100svh - var(--header-h) - 108px);
  padding: 72px 18px 18px;
  border-radius: 22px;
  background: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(15, 36, 68, 0.04),
    inset 0 18px 40px rgba(15, 36, 68, 0.08);
  max-width: 100%;
  overflow-x: clip;
}

.xmas-lights {
  position: absolute;
  top: 4px;
  left: 10px;
  right: 10px;
  height: 64px;
  pointer-events: none;
  z-index: 2;
}

.xmas-lights svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.xmas-scene {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 25%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 0 0 22px 22px;
}

.xmas-scene svg {
  display: block;
  width: 100%;
  height: 100%;
}

.xmas-builder__choices,
.xmas-builder__photo {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: 100%;
}

.xmas-builder h2 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  max-width: none;
}

.xmas-builder__choices {
  min-height: 0;
  overflow-x: clip;
  overflow-y: auto;
}

.xmas-step {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  min-width: 0;
  max-width: 100%;
  min-inline-size: 0;
}

.xmas-step--pending {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.xmas-step--pending.is-shown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.xmas-step legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
}

.xmas-step__num {
  display: inline-grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--bg-navy);
  color: var(--cream-light);
  font-size: 0.8rem;
}

.xmas-options {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.xmas-options--two {
  grid-template-columns: 1fr 1fr;
}

.xmas-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(15, 36, 68, 0.16);
  border-radius: 12px;
  background: #fff;
  color: var(--text-dark);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.xmas-option[aria-pressed="true"] {
  border-color: var(--bg-navy);
  box-shadow: inset 0 0 0 2px var(--bg-navy);
}

.xmas-plus {
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--red);
}

.xmas-builder .xmas-build__bar {
  position: relative;
  z-index: 2;
  margin-top: 4px;
  padding: 6px 0;
  min-height: 52px;
  border-radius: 16px;
  background: #fff;
}

.xmas-builder .xmas-build__price {
  min-height: 3.5rem;
}

.xmas-builder [data-xmas-price] {
  display: block;
  min-height: 1.6rem;
}

.xmas-builder .xmas-save {
  min-height: 1.3em;
}

.xmas-builder .xmas-save[hidden] {
  display: block;
  visibility: hidden;
}

.xmas-builder__photo {
  flex: 1 1 0;
  min-height: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.xmas-builder__photo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: 20px;
  animation: xmas-bob 8s ease-in-out infinite;
}

.xmas-flake {
  animation: xmas-fall 7s ease-in-out infinite;
}

@keyframes xmas-fall {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

@keyframes xmas-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .xmas-builder__photo img {
    animation: none;
  }

  .xmas-flake {
    animation: none;
  }

  .xmas-step--pending {
    transition: none;
  }
}

@media (max-width: 899px) {
  .xmas-builder {
    height: auto;
    max-height: none;
  }

  .xmas-builder__choices {
    overflow-x: clip;
    overflow-y: visible;
  }

  .xmas-builder__photo {
    flex: none;
    width: 100%;
  }

  .xmas-builder__photo img {
    width: 100%;
    height: auto;
    max-height: none;
  }
}

@media (min-width: 900px) {
  .xmas-builder {
    display: grid;
    grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
    align-items: stretch;
    gap: 28px;
    padding: 76px max(56px, calc((100% - 920px) / 2)) 32px;
  }

  .xmas-builder__choices {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-x: clip;
    overflow-y: auto;
  }

  .xmas-builder__photo {
    height: 100%;
    min-height: 0;
  }

  .xmas-builder__photo img {
    max-width: 100%;
    max-height: 100%;
  }
}

.xmas-build__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
}

.xmas-build__price {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--bg-navy);
}

.xmas-build__price s {
  margin-left: 8px;
  color: rgba(15, 36, 68, 0.45);
  font-size: 1rem;
}

.xmas-save {
  display: block;
  margin-top: 2px;
  color: var(--red);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
}

.xmas-section h2 {
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  max-width: 18ch;
}

.xmas-inside .xmas-lead,
.xmas-urgency .xmas-lead {
  color: var(--cream);
}

.xmas-book {
  display: grid;
  gap: 18px;
  margin-top: 28px;
  align-items: center;
}

.xmas-book__frame {
  position: relative;
}

.xmas-book__shots {
  position: relative;
  aspect-ratio: 1;
  border-radius: 18px;
  overflow: hidden;
  background: #f6f1e8;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.xmas-book__shots img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.xmas-book__shots img.is-on {
  opacity: 1;
}

.xmas-book__switch {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 2;
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 22px rgba(15, 36, 68, 0.18);
  transform: translateX(-50%);
  backdrop-filter: blur(8px);
}

.xmas-book__switch button {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: transparent;
  color: var(--text-dark);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.xmas-book__switch button[aria-pressed="true"] {
  background: var(--bg-navy);
  color: var(--cream-light);
}

.xmas-book__copy h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.2;
  color: var(--cream-light);
}

.xmas-book__copy p {
  margin-top: 12px;
  color: var(--cream);
  line-height: 1.6;
}

.xmas-book__copy [data-xmas-book-copy] {
  display: none;
}

.xmas-book__copy [data-xmas-book-copy].is-on {
  display: block;
}

.xmas-book__more {
  display: inline-block;
  margin-top: 16px;
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}

.xmas-kit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.xmas-kit a {
  color: inherit;
  text-decoration: none;
}

.xmas-kit img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  background: #f6f1e8;
}

.xmas-kit h3 {
  margin-top: 10px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--cream-light);
}

.xmas-kit p {
  margin-top: 6px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--cream-muted);
}

@media (min-width: 800px) {
  .xmas-book {
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
    gap: 28px;
  }

  .xmas-kit {
    grid-template-columns: repeat(4, 1fr);
  }
}

.xmas-reasons {
  margin-top: 18px;
  padding-left: 1.1rem;
}

.xmas-reasons li + li {
  margin-top: 8px;
}

.xmas-faq details {
  border-top: 1px solid rgba(15, 36, 68, 0.15);
  padding: 14px 0;
}

.xmas-faq details:last-child {
  border-bottom: 1px solid rgba(15, 36, 68, 0.15);
}

.xmas-faq summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.05rem;
}

.xmas-faq details p {
  margin-top: 8px;
  color: rgba(15, 36, 68, 0.78);
}

.xmas-sticky {
  display: none;
}

.xmas-sticky__ship {
  display: block;
  margin-top: 2px;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.xmas-urgency .xmas-cta-note {
  color: var(--cream);
}

.xmas-urgency .xmas-cta-note strong {
  color: var(--gold);
}

@media (min-width: 800px) {
  .xmas-hero__grid,
  .xmas-split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 36px;
    align-items: center;
  }

  .xmas-photo {
    margin-top: 0;
  }

  .xmas-points {
    grid-template-columns: repeat(3, 1fr);
  }
}
