/* =========================================================================
   UPKEEP 12 Days of Christmas page (/12-days-of-christmas).
   Pale misty winter-blue, blush/ballet pink, cream and ivory — matching
   the campaign graphics. Banner, popup and shared form/button styles live
   in twelve-days.js.
   ========================================================================= */
.t12 {
  --t12-sky: #dfe7ef;
  --t12-sky-deep: #c9d6e3;
  --t12-mist: #eef3f7;
  --t12-white: #ffffff;
  /* Soft blush from the poster (bows, dresses, wordmark). */
  --t12-pink: #e8b2bd;        /* main blush: buttons, accents, bows */
  --t12-pink-soft: #f4cdd5;   /* pale blush: fills, frosted tiles */
  --t12-ballet: #e8b2bd;
  --t12-blush-deep: #d98aa6;  /* clean cool pink: big headings, dates, countdown digits (decorative) */
  --t12-pink-text: #cf7499;   /* clean pink for larger italic accents (labels >=18px) */
  --t12-rose: #4a4a52;        /* soft cool charcoal: small text, labels, links */
  --t12-fine: #5b5b66;        /* fine print, cool grey (AA on every page tone) */
  --t12-ink: #4a4a52;         /* soft cool charcoal body text */
  background: linear-gradient(180deg, #eef3f7 0%, #dfe7ef 55%, #c9d6e3 100%);
  color: var(--t12-ink);
}
.t12 a:not(.upk-12d-btn) { color: var(--t12-rose); text-underline-offset: 3px; }
.t12 a:not(.upk-12d-btn):hover { color: #3f3f47; }
.t12-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Hero: her poster is the title. Desktop: poster left, countdown + copy right. Mobile: stacked. */
.t12-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(120px, 14vw, 160px) 0 clamp(36px, 5vw, 64px);
  background: linear-gradient(180deg, #e8eef4 0%, #dfe7ef 55%, #c9d6e3 100%);
}
.t12-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 3vw, 32px);
  max-width: 720px;
  text-align: center;
}
.t12-hero__copy { text-align: center; max-width: 560px; }
.t12-dates {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px);
  color: var(--t12-blush-deep);
  letter-spacing: 0.04em;
  margin: 0 0 10px;
}
.t12-lede { font-size: clamp(16px, 1.7vw, 19px); line-height: 1.55; color: var(--t12-ink); margin: 0 0 28px; }
.t12-count { position: relative; padding-top: 6px; }
.t12-count__bow { display: block; width: 64px; height: auto; margin: 0 auto 4px; filter: drop-shadow(0 4px 6px rgba(214,140,166,0.25)); position: relative; z-index: 2; }
.t12-count__label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--t12-pink-text);
  margin: 0 0 14px;
  position: relative; z-index: 2;
}
/* Snowfall canvas (twelve-days.js) — decorative, sits behind/around the tiles, never blocks clicks. */
.t12-snow { position: absolute; left: -48px; top: -20px; width: calc(100% + 96px); height: calc(100% + 150px); max-width: none; pointer-events: none; z-index: 1; }
.t12-countdown { position: relative; z-index: 2; display: flex; gap: clamp(8px, 1.4vw, 14px); margin: 0 auto 30px; min-height: 92px; justify-content: center; }
/* Frosted-ornament tiles */
.t12-unit {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: clamp(68px, 7.4vw, 92px); padding: 14px 8px 11px;
  background: linear-gradient(180deg, #ffffff 0%, #fce8ef 100%);
  border: 2px solid #fff;
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(232,178,189,0.7), 0 10px 22px rgba(214,140,166,0.18), inset 0 2px 6px rgba(255,255,255,0.9);
}
/* tiny ornament cap */
.t12-unit::before {
  content: ""; position: absolute; top: -7px; left: 50%; width: 14px; height: 8px; transform: translateX(-50%);
  background: linear-gradient(180deg, #f4cdd5, #e8b2bd); border-radius: 4px 4px 2px 2px; box-shadow: 0 1px 0 #fff;
}
.t12-unit b { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 4vw, 46px); line-height: 1; font-variant-numeric: tabular-nums; color: var(--t12-blush-deep); }
.t12-unit small { margin-top: 5px; font-family: var(--font-display); font-style: italic; font-size: 15px; letter-spacing: 0.02em; text-transform: lowercase; color: var(--t12-rose); }
.t12-live, .t12-ended { font-size: 17px; line-height: 1.5; margin: 0 0 28px; max-width: 640px; }
.t12-live { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border: 1px solid var(--t12-pink); background: #fff; }
.t12-live__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--t12-rose); box-shadow: 0 0 0 4px rgba(232,178,189,0.35); flex-shrink: 0; }
.t12-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.t12-hero__ctas [hidden] { display: none !important; }
.t12 [data-12d-only][hidden] { display: none !important; }

.t12-hero__photo { position: relative; width: 100%; max-width: 520px; }
/* Desktop: keep the poster clear of the Cherry "Pay over time" bubble (fixed bottom-right, ~290px wide). Page-only. */
@media (min-width: 801px) {
  .t12-hero__inner {
    display: grid; grid-template-columns: auto minmax(0, 1fr);
    align-items: center; justify-items: center;
    column-gap: clamp(32px, 5vw, 80px);
    max-width: 1180px;
  }
  .t12-hero__photo { max-width: clamp(300px, 40vw, 500px); width: auto; }
  .t12-hero .t12-hero__photo img { max-height: min(calc(100vh - 200px), 860px); margin-inline: 0; }
  .t12-hero__copy { max-width: 520px; }
  /* Keep the CTA row clear of the fixed Cherry "Pay over time" bubble (bottom-right, ~290x52). */
  .t12-hero__copy { padding-bottom: 24px; }
}
/* Tablet (801-1024px) also has the fixed Book / Text / Call bar (64px). */
@media (min-width: 801px) and (max-width: 1024px) {
  .t12-hero .t12-hero__photo img { max-height: calc(100vh - 260px); }
  .t12-hero__photo { max-width: 42vw; }
  .has-booking-bar .t12-hero { padding-bottom: calc(40px + 64px + env(safe-area-inset-bottom)); }
}
.t12-hero__photo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(86vh, 860px);
  object-fit: contain;
  margin-inline: auto;
  box-shadow: 0 24px 60px rgba(60, 72, 96, 0.18);
}

/* Sections */
.t12-section { position: relative; padding: clamp(48px, 7vw, 88px) 0; }
.t12-eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 2.2vw, 24px);
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--t12-pink-text);
  margin: 0 0 10px;
}
.t12-eyebrow--center { text-align: center; }
.t12-h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 3.8vw, 42px);
  line-height: 1.15;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  color: var(--t12-blush-deep);
  margin: 0 auto 14px;
  max-width: 860px;
}
.t12-h3 { font-family: var(--font-display); font-weight: 400; font-size: 30px; margin: 0 0 16px; color: var(--t12-blush-deep); }
.t12-note { text-align: center; font-size: 16px; line-height: 1.6; color: var(--t12-ink); max-width: 680px; margin: 0 auto 36px; }

/* Teaser grid — advent-calendar style: cut-out satin presents on the page background, small serif day + pink italic date, no card chrome.
   Square and wide boxes share one row height (container units), 4 columns on desktop, 2 on mobile. */
.t12-gifts {
  --t12-gap: clamp(14px, 2vw, 28px);
  --t12-cols: 4;
  container-type: inline-size;
  list-style: none; padding: 0; margin: 0 auto;
  display: grid; grid-template-columns: repeat(var(--t12-cols), minmax(0, 1fr));
  column-gap: var(--t12-gap); row-gap: clamp(22px, 3vw, 40px);
  max-width: 1080px;
}
.t12-gift { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.t12-gift--wide { grid-column: span 2; }
.t12-gift__img {
  display: block; width: 100%;
  height: calc((100cqi - (var(--t12-cols) - 1) * var(--t12-gap)) / var(--t12-cols));
  object-fit: contain;
  background: transparent;
}
.t12-gift__day {
  margin-top: 8px;
  font-family: var(--font-display); font-weight: 400;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--t12-rose); line-height: 1.2;
}
.t12-gift__date {
  margin-top: 2px;
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(17px, 1.8vw, 20px); letter-spacing: 0.02em;
  color: var(--t12-blush-deep); line-height: 1.2;
}

/* Revealed special cards */
.t12-cards { list-style: none; padding: 0; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; max-width: 1180px; align-items: start; }
.t12-card {
  position: relative;
  display: flex; flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(232, 178, 189, 0.55);
  box-shadow: 0 8px 24px rgba(214, 140, 166, 0.10);
  border-radius: 6px;
  overflow: hidden;
}
.t12-card.is-today { border: 2px solid var(--t12-pink); box-shadow: 0 0 0 4px rgba(232,178,189,0.28), 0 16px 40px rgba(214,140,166,0.14); }
.t12-card__img { display: block; width: 100%; height: auto; background: var(--t12-sky); }
.t12-card--has-art .t12-card__img { aspect-ratio: 9 / 16; object-fit: contain; background: var(--t12-sky-deep); }
.t12-card__present {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: transparent;
}
.t12-card__present--wide { aspect-ratio: 2 / 1; }
.t12-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.t12-card__today { align-self: flex-start; margin: 0 0 10px; padding: 4px 10px; background: var(--t12-pink); color: var(--t12-ink); font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.t12-card__day { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1.1; color: var(--t12-blush-deep); margin: 0 0 12px; }
.t12-card__day span { font-family: var(--font-display); font-style: italic; font-size: 20px; color: var(--t12-pink-text); letter-spacing: 0.02em; }
.t12-card__offers { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; align-content: start; flex: 1; }
.t12-card__offers li { position: relative; padding-left: 16px; font-size: 16px; line-height: 1.45; color: var(--t12-ink); }
.t12-card__offers li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; background: var(--t12-ballet); border-radius: 50%; }
.t12-card__note { font-size: 13px; color: var(--t12-fine); margin: -6px 0 14px; }
.t12-card__ask {
  align-self: flex-start;
  font-family: var(--font-body); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--t12-ink); background: transparent; border: 1px solid #e8b2bd; border-radius: 999px; padding: 11px 18px; min-height: 44px; cursor: pointer;
}
.t12-card__ask:hover, .t12-card__ask:focus-visible { background: var(--t12-pink); color: var(--t12-ink); border-color: var(--t12-pink); }
.t12-card__ask:focus-visible { outline: 2px solid var(--t12-rose); outline-offset: 2px; }
.t12-card--finale { background: linear-gradient(160deg, #f4cdd5 0%, #ffffff 55%, #ffffff 100%); border-color: var(--t12-pink); }
.t12-card--finale .t12-card__offers li { font-family: var(--font-display); font-size: 22px; line-height: 1.25; }
@media (min-width: 900px) {
  .t12-card--has-art { grid-column: span 2; flex-direction: row; align-items: stretch; }
  .t12-card--has-art .t12-card__img { width: 46%; max-width: 320px; height: auto; aspect-ratio: 9 / 16; flex-shrink: 0; }
  .t12-card--has-art .t12-card__body { justify-content: center; }
}

/* "See all 12 specials" poster — injected by JS after the reveal only */
.t12-all-days { margin: 8px auto 40px; max-width: 420px; }
.t12-all-days[hidden] { display: none !important; }
.t12-all-days img {
  display: block; width: 100%; height: auto;
  box-shadow: 0 24px 60px rgba(60, 72, 96, 0.16);
}
.t12-all-days figcaption { text-align: center; margin-top: 10px; font-size: 13px; color: var(--t12-fine); }


/* Forms — white panels, pink accents */
.t12-form-section { padding-top: 0; }
.t12-form-section--top { padding-top: clamp(24px, 4vw, 48px); }
.t12-form-card {
  max-width: 680px; margin: 0 auto;
  padding: clamp(28px, 5vw, 48px);
  background: #ffffff;
  border: 1px solid rgba(232, 178, 189, 0.6);
  box-shadow: 0 16px 40px rgba(214, 140, 166, 0.10);
  border-radius: 6px;
}
.t12-form-card .t12-note { margin-bottom: 24px; }
.t12-form { gap: 12px; }
.t12-form .upk-12d-btn { margin-top: 4px; }
.t12-fineprint { font-size: 12px; line-height: 1.5; color: var(--t12-fine); text-align: center; margin: 0; }
.t12-or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--t12-fine); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; }
.t12-or::before, .t12-or::after { content: ""; flex: 1; height: 1px; background: rgba(232, 178, 189, 0.6); }
.t12-thanks { text-align: center; outline: none; }
.t12-thanks .upk-12d-success { font-size: 17px; }

/* Terms */
.t12-terms { padding-top: 0; }
.t12-terms .container { max-width: 760px; border-top: 1px solid rgba(232, 178, 189, 0.6); padding-top: 32px; }
.t12-terms__note { text-align: center; font-size: 15px; line-height: 1.65; color: var(--t12-fine); margin: 0 auto; max-width: 640px; }
.t12-terms__note a { color: var(--t12-fine) !important; font-weight: 500; }

@media (max-width: 800px) {
  .t12-hero { padding: clamp(108px, 22vw, 140px) 0 36px; }
  .t12-hero__photo { max-width: 420px; }
  /* Leave room for the dates + lede above the fixed Book / Text / Call bar (64px). */
  .t12-hero__photo img { max-height: calc(100dvh - 380px); width: auto; max-width: 100%; box-shadow: 0 16px 40px rgba(60, 72, 96, 0.16); }
  .has-booking-bar .t12-hero { padding-bottom: calc(36px + 64px + env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
  .t12-cards { gap: 12px; }
  .t12-card__body { padding: 18px; }
  .t12-card__day { font-size: 27px; }
  .t12-unit { min-width: 66px; padding: 12px 4px 9px; border-radius: 16px; }
  .t12-unit small { font-size: 14px; }
  .t12-countdown { gap: 8px; min-height: 80px; }
  .t12-count__bow { width: 54px; }
}
@media (max-width: 640px) {
  .t12-gifts { --t12-cols: 2; }
  /* Only days 3 and 12 stay wide on mobile so the 2-column grid has no gaps and stays in day order. */
  .t12-gift--wide { grid-column: auto; }
  .t12-gift:nth-child(3), .t12-gift:nth-child(12) { grid-column: span 2; }
}
/* Short desktop/tablet screens: tighten the right column so the CTA stays clear of the Cherry bubble and the Book bar. */
@media (min-width: 801px) and (max-height: 760px) {
  .t12-count__bow { width: 44px; }
  .t12-lede { margin-bottom: 16px; }
  .t12-count__label { margin-bottom: 10px; }
  .t12-countdown { margin-bottom: 18px; }
}
