/* Colours, type and holly taken from Angela's printed Christmas menu */
:root {
  --page: #e8e1d6;       /* the menu's outer paper */
  --paper: #f7f4ee;      /* the menu's inner card */
  --green: #4c754a;      /* item names */
  --forest: #2f4b2f;     /* deep green for the band and footer */
  --sage: #96b88c;
  --red: #c42929;        /* the title */
  --brown: #9a6a3c;
  --ink: #3b3a35;
  --muted: #77736a;
  --line: #ddd5c6;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .18 0 0 0 .07 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  /* names the orders page uses */
  --pine: var(--green); --pine-dark: #3d5f3b; --berry: var(--red); --berry-dark: #a32020; --cream: var(--page);
  --gold: #c9a24a; --shadow: 0 1px 3px rgba(0, 0, 0, .08); --radius: 6px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper) var(--grain); color: var(--ink); font: 500 17px/1.6 Quicksand, "Avenir Next", system-ui, sans-serif; }
img { max-width: 100%; display: block; }
h1, h2, h3, legend, .serif { font-family: "Young Serif", Georgia, serif; font-weight: 400; line-height: 1.15; margin: 0; }
a { color: var(--green); }
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; color: inherit; }
.hand { font-family: Caveat, "Bradley Hand", cursive; font-weight: 700; }
.holly { position: absolute; pointer-events: none; user-select: none; }
.paper { background: var(--paper) var(--grain); }

/* ---------- hero: Angela's menu card beside a big photo ---------- */
.hero { display: grid; grid-template-columns: minmax(380px, 5fr) 7fr; min-height: min(92vh, 860px); background: var(--page) var(--grain); }
.hero-card { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 90px 48px 70px; }
.hero-card .holly.tl { width: 320px; left: -46px; top: -34px; }
.logo { border-radius: 50%; margin-bottom: 22px; position: relative; box-shadow: 0 3px 14px rgba(80, 50, 20, .15); }
.hero h1 { color: var(--red); letter-spacing: -.01em; font-size: clamp(44px, 5.4vw, 76px); position: relative; }
.hero h1 span { display: block; }
.dates-line { margin: 18px 0 0; position: relative; font-size: 18px; }
.closed { background: var(--forest); color: #fff; padding: 6px 16px; margin: 0 0 16px; position: relative; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 22px; margin-top: 30px; position: relative; }
.btn-order { background: var(--red); color: #fff; text-decoration: none; font-weight: 700; padding: 14px 30px; border-radius: 3px; box-shadow: 0 3px 0 #9b1f1f; }
.btn-order:hover { background: #ad2323; }
.btn-order:active { transform: translateY(2px); box-shadow: 0 1px 0 #9b1f1f; }
.link-order { font-weight: 600; text-underline-offset: 4px; }
.hero-photo { position: relative; margin: 0; overflow: hidden; background: #d9d0c2; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* gift tag: price labels, like a tag tied to a present */
.gift-tag {
  position: absolute; display: flex; flex-direction: column; align-items: flex-start; gap: 0;
  background: #fffaf1; color: var(--ink); padding: 10px 18px 10px 34px; line-height: 1.15;
  clip-path: polygon(18px 0, 100% 0, 100% 100%, 18px 100%, 0 50%);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .18));
}
.gift-tag::before { content: ""; position: absolute; left: 12px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: #c9bda9; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35); }
.gift-tag.big { left: 28px; bottom: 34px; transform: rotate(-3deg); padding: 14px 24px 14px 40px; }
.gift-tag.big .hand { color: var(--red); font-size: 24px; }
.gift-tag.big a { color: var(--green); font-weight: 700; font-size: 20px; text-decoration: none; }
.gift-tag.big .price { color: var(--ink); font-size: 26px; }
.price-tag { top: 16px; right: -4px; transform: rotate(5deg); font-family: Caveat, cursive; font-weight: 700; font-size: 30px; color: var(--red); padding: 4px 18px 4px 32px; }
.price-tag small { font-size: 20px; color: var(--muted); margin-left: 4px; }

/* ---------- the cakes ---------- */
.menu { padding: 84px 32px 90px; }
.sec-title { text-align: center; color: var(--green); font-size: clamp(32px, 4vw, 46px); margin-bottom: 44px; }
.sec-title::after { content: ""; display: block; width: 74px; height: 3px; margin: 16px auto 0; background: var(--red); border-radius: 2px; }
.sec-title.light { color: #f4efe3; text-align: left; margin-bottom: 26px; }
.sec-title.light::after { margin-left: 0; background: var(--sage); }
.cake-grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 44px; }
.cake { display: flex; flex-direction: column; }
.cake-photo { position: relative; aspect-ratio: 5 / 4; min-height: 0; background: #e6dccb; }
.cake-photo .gift-tag { z-index: 1; }
.cake-photo .frame { position: absolute; inset: 0; overflow: hidden; box-shadow: 0 10px 24px rgba(70, 45, 20, .16); }
.cake-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cake:hover .cake-photo img { transform: scale(1.04); }
.cake h3 { color: var(--green); font-size: 28px; margin: 26px 0 8px; }
.cake p { margin: 0 0 18px; color: #4a4740; }
.cake .qty { align-self: flex-start; margin-top: auto; }
.cake.wide { grid-column: 1 / -1; display: grid; grid-template-columns: 7fr 5fr; gap: 44px; align-items: center; }
.cake.wide .cake-photo { aspect-ratio: 4 / 3; }
.cake.wide h3 { font-size: 36px; margin-top: 0; }
.cake.wide .quote { font-size: 18.5px; }
.cake.wide .qty { margin-top: 6px; }

/* quantity: − 0 + */
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--green); background: #fff; border-radius: 3px; }
.qty button { width: 46px; height: 44px; border: 0; background: none; color: var(--green); font-size: 22px; cursor: pointer; line-height: 1; }
.qty button:hover { background: #eef3ec; }
.qty button:disabled { color: #c4c0b8; cursor: default; background: none; }
.qty output { min-width: 36px; text-align: center; font-weight: 700; }
.qty.has { background: var(--green); }
.qty.has button, .qty.has output { color: #fff; }
.qty.has button:hover { background: rgba(255, 255, 255, .12); }

/* ---------- additional menu: deep green band ---------- */
.band { position: relative; overflow: hidden; background: var(--forest) var(--grain); color: #ece6d8; padding: 84px 32px; }
.band .holly.br { width: 280px; right: -36px; bottom: -36px; opacity: .95; }
.band-inner { position: relative; max-width: 1060px; margin: 0 auto; display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.band-inner.no-photo { grid-template-columns: minmax(0, 720px); justify-content: center; }
.band-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 10px solid #f7f4ee; transform: rotate(-2deg); box-shadow: 0 14px 30px rgba(0, 0, 0, .3); }
.dotted { list-style: none; padding: 0; margin: 0; }
.dotted li { display: grid; grid-template-columns: 1fr auto; gap: 4px 18px; align-items: center; padding: 13px 0; }
.dotted .row { display: flex; align-items: baseline; gap: 8px; font-size: 19px; }
.dotted .nm { flex: none; max-width: 70%; color: #fff; }
.dotted .dots { flex: 1; border-bottom: 2px dotted rgba(150, 184, 140, .7); transform: translateY(-5px); min-width: 20px; }
.dotted .pr { flex: none; white-space: nowrap; color: #fff; font-weight: 700; }
.dotted .deal { grid-column: 1; color: #f2c46d; font-family: Caveat, cursive; font-size: 22px; font-weight: 700; margin-top: -6px; }
.dotted .qty { grid-row: 1 / span 2; grid-column: 2; border-color: rgba(255, 255, 255, .55); background: transparent; }
.dotted .qty button, .dotted .qty output { color: #fff; }
.dotted .qty button:hover { background: rgba(255, 255, 255, .1); }
.dotted .qty button:disabled { color: rgba(255, 255, 255, .3); }
.dotted .qty.has { background: var(--red); border-color: var(--red); }

/* ---------- order slip ---------- */
.order { padding: 90px 20px 100px; scroll-margin-top: 0; }
.slip {
  position: relative; max-width: 720px; margin: 0 auto; background: #fff; padding: 46px 48px 40px;
  box-shadow: 0 16px 40px rgba(70, 45, 20, .14);
}
.slip::before, .slip::after {   /* torn, scalloped edges like a page from an order book */
  content: ""; position: absolute; left: 0; right: 0; height: 12px;
  background: radial-gradient(circle at 10px 12px, transparent 8px, #fff 8.5px) 0 0 / 20px 12px repeat-x;
}
.slip::before { top: -12px; }
.slip::after { bottom: -12px; transform: scaleY(-1); }
.slip .sec-title { margin-bottom: 28px; }
.none { text-align: center; color: var(--muted); }
.summary { width: 100%; border-collapse: collapse; margin-bottom: 6px; }
.summary td, .summary th { padding: 11px 0; border-bottom: 1px dashed var(--line); text-align: left; font-weight: 400; vertical-align: middle; }
.summary td:last-child { text-align: right; white-space: nowrap; }
.summary .q { width: 1%; padding-right: 14px; white-space: nowrap; color: var(--muted); }
.summary .deal { display: block; color: var(--red); font-family: Caveat, cursive; font-size: 19px; font-weight: 700; line-height: 1; }
.summary tfoot th, .summary tfoot td { border-bottom: 0; border-top: 2px solid var(--ink); font-weight: 700; font-size: 22px; padding-top: 14px; }
fieldset { border: 0; margin: 34px 0 0; padding: 0; }
legend { color: var(--green); font-weight: 700; font-size: 22px; padding: 0; margin-bottom: 12px; }
label { display: block; margin-bottom: 14px; font-weight: 600; font-size: 16px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.soft { color: var(--muted); font-weight: 400; }
input:not([type=checkbox]):not([type=radio]), textarea, select {
  display: block; width: 100%; margin-top: 6px; padding: 12px 13px; font-size: 16px; font-family: inherit; font-weight: 500;
  border: 1px solid #cfc6b6; border-radius: 3px; background: #fdfcf9;
}
input:focus, textarea:focus, select:focus, button:focus-visible, a:focus-visible, .day:focus-within { outline: 2px solid var(--green); outline-offset: 2px; }
.opt-row { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.opt-row input { width: 20px; height: 20px; margin: 4px 0 0; flex: none; accent-color: var(--green); }
.days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.day {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0; padding: 12px 6px; min-height: 66px;
  border: 1.5px solid #d9cfbd; border-radius: 3px; background: #fdfcf9; cursor: pointer; font-weight: 600; text-align: center; line-height: 1.25;
}
.day input { position: absolute; opacity: 0; pointer-events: none; }
.day .wd { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.day .left { color: var(--red); font-family: Caveat, cursive; font-size: 19px; font-weight: 700; line-height: 1; margin-top: 2px; }
.day.taken { opacity: .5; cursor: not-allowed; text-decoration: line-through; }
.day:has(input:checked) { border-color: var(--green); background: var(--green); color: #fff; }
.day:has(input:checked) .wd, .day:has(input:checked) .left { color: #fff; }
.note { color: var(--muted); font-size: 15px; margin: 10px 0 0; }
.center { text-align: center; }
.error { background: #f9e3e1; color: #8e1c1c; padding: 10px 12px; border-radius: 3px; }
.pay {
  display: block; width: 100%; margin-top: 26px; padding: 16px; border: 0; border-radius: 3px; background: var(--red); color: #fff;
  font-weight: 700; font-size: 20px; cursor: pointer; box-shadow: 0 3px 0 #9b1f1f;
}
.pay:hover { background: #ad2323; }
.pay:active { transform: translateY(2px); box-shadow: 0 1px 0 #9b1f1f; }
.pay:disabled { background: #cfa9a6; box-shadow: none; cursor: wait; }

/* ---------- footer ---------- */
.foot { background: var(--forest) var(--grain); color: #e9e2d2; text-align: center; padding: 56px 20px calc(70px + env(safe-area-inset-bottom)); }
.foot img { margin: 0 auto 6px; border-radius: 50%; }
.foot .big { font-size: 40px; color: #fff; margin: 0; }
.foot p { margin: 4px 0; }
.foot a { color: #fff; font-weight: 700; }

/* bottom bar when something is chosen: a little gift tag */
.tray {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: max(14px, env(safe-area-inset-bottom)); z-index: 10;
  display: flex; gap: 14px; align-items: center; padding: 8px 8px 8px 14px; border-radius: 14px;
  background: #fffaf1; color: var(--ink); text-decoration: none; width: max-content; max-width: calc(100% - 24px);
  border: 2px dashed rgba(196, 41, 41, .55); outline: 4px solid #fffaf1; box-shadow: 0 10px 26px rgba(60, 35, 15, .28);
  font-family: Caveat, "Bradley Hand", cursive; font-weight: 700;
}
.tray-text { font-size: 27px; line-height: 1; white-space: nowrap; }
.tray .tray-go { background: var(--red); color: #fff; font-size: 25px; line-height: 1; padding: 9px 16px 10px; border-radius: 10px; white-space: nowrap; }

/* shared bits for the thank-you, test-payment and orders pages */
.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 3px; padding: 11px 20px; font-weight: 700; cursor: pointer; text-decoration: none; min-height: 44px; }
.btn-red { background: var(--red); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-ghost { background: #fff; color: var(--green); border: 1px solid var(--green); }
.btn-wide { width: 100%; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: var(--paper); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { border-radius: 50%; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand b { color: var(--green); font-size: 19px; }
.brand small { color: var(--muted); font-size: 13px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--green); }
.hint { color: var(--muted); font-size: 15px; }
.paper-card, .thanks .paper { max-width: 560px; margin: 32px auto; }
.paper:not(section) { max-width: 560px; margin: 40px auto; padding: 40px 28px; background: #fff; text-align: center; position: relative; box-shadow: 0 16px 40px rgba(70, 45, 20, .14); }
.paper h1 { color: var(--red); font-size: 40px; margin: 10px 0; position: relative; }
.paper .code { font-weight: 700; letter-spacing: .06em; }
.paper ul { list-style: none; padding: 0; margin: 18px 0; text-align: left; }
.paper li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.status { display: inline-block; padding: 4px 12px; font-weight: 700; border-radius: 3px; position: relative; }
.status.paid { background: #e2ece0; color: var(--pine-dark); }
.status.wait { background: #f6ecd6; color: #6e4b00; }
.status.bad { background: #f9e3e1; color: #8e1c1c; }
.demo-flag { background: #f6ecd6; color: #6e4b00; padding: 10px 14px; font-weight: 700; margin-bottom: 16px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { order: -1; aspect-ratio: 4 / 3; }
  .hero-card { padding: 54px 22px 50px; }
  .hero-card .holly.tl { width: 210px; left: -44px; top: -30px; }
  .logo { width: 92px; height: 92px; margin-bottom: 16px; }
  .gift-tag.big { left: 14px; bottom: 18px; padding: 10px 18px 10px 34px; }
  .gift-tag.big .hand { font-size: 20px; }
  .gift-tag.big a { font-size: 17px; }
  .gift-tag.big .price { font-size: 22px; }
  .menu { padding: 60px 18px 64px; }
  .cake-grid { grid-template-columns: 1fr; gap: 54px; }
  .cake.wide { grid-template-columns: 1fr; gap: 0; }
  .cake.wide h3 { font-size: 30px; margin-top: 26px; }
  .band { padding: 60px 20px 70px; }
  .band-inner { grid-template-columns: 1fr; gap: 40px; }
  .band-photo { max-width: 360px; margin: 0 auto; }
  .band .holly.br { width: 190px; right: -30px; bottom: -30px; }
  .order { padding: 60px 12px 80px; }
  .slip { padding: 36px 20px 30px; }
  .two { grid-template-columns: 1fr; }
  .days { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cake-photo img { transition: none; }
}

/* ================= interactive pieces ================= */
.hero { position: relative; }
.hero-card > *:not(.holly), .gift-tag { z-index: 3; }
.snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.page-snow { position: fixed; z-index: 50; }
.band > .band-inner { z-index: 3; }

/* holly moves a little, like it is hanging */
.holly.tl { transform-origin: 0 0; animation: sway 7s ease-in-out infinite alternate; }
.holly.br { transform-origin: 100% 100%; animation: sway 8s ease-in-out infinite alternate-reverse; }
@keyframes sway { from { rotate: -1.4deg; } to { rotate: 1.6deg; } }

/* countdown: little tear-off calendar pages */
.countdown { position: relative; margin-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cd-label { color: var(--red); font-size: 24px; }
.cd-cells { display: flex; gap: 8px; }
.cd { display: flex; flex-direction: column; align-items: center; min-width: 62px; background: #fff; border-top: 7px solid var(--red); padding: 6px 6px 5px; box-shadow: 0 3px 8px rgba(70, 45, 20, .12); }
.cd b { font-size: 28px; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.cd i { font-style: normal; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

.share {
  position: relative; display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; border: 0; background: none; cursor: pointer;
  color: var(--green); font-weight: 700; padding: 6px 2px; border-bottom: 2px dotted var(--sage);
}
.share:hover { color: var(--forest); border-bottom-color: var(--green); }
.tag-link { border: 0; background: none; padding: 0; color: var(--green); font: inherit; font-weight: 700; font-size: 20px; cursor: pointer; text-align: left; text-decoration: underline; text-decoration-color: var(--sage); text-underline-offset: 4px; }

.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 70;
  background: var(--forest); color: #fff; padding: 12px 18px; border-radius: 3px; font-weight: 600; box-shadow: 0 8px 22px rgba(0, 0, 0, .25);
  max-width: calc(100% - 28px); width: max-content; text-align: center; animation: rise .25s ease-out;
}
@keyframes rise { from { opacity: 0; translate: 0 10px; } }

.proof { text-align: center; color: var(--red); font-size: 27px; margin: -26px 0 6px; }
.tap-hint { text-align: center; color: var(--muted); font-size: 15px; margin: 0 0 30px; }

/* cake photos open the big view */
.cake-photo .frame { border: 0; padding: 0; cursor: zoom-in; display: block; background: none; }
.zoom {
  position: absolute; left: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .9); color: var(--forest); font-size: 18px; opacity: 0; transition: opacity .2s ease;
}
.cake:hover .zoom, .frame:focus-visible .zoom { opacity: 1; }
@media (hover: none) { .zoom { opacity: .9; } }

.quick {
  width: min(1000px, calc(100% - 28px)); max-height: calc(100vh - 40px); padding: 0; border: 0; background: var(--paper) var(--grain);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .4); overflow: hidden;
}
.quick[open] { display: grid; grid-template-columns: 3fr 2fr; animation: pop .22s ease-out; }
@keyframes pop { from { opacity: 0; transform: scale(.97); } }
.quick::backdrop { background: rgba(28, 24, 16, .72); backdrop-filter: blur(3px); }
.q-photo { position: relative; min-height: 420px; background: #e6dccb; touch-action: pan-y; }
.q-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.q-photo .price-tag { top: 20px; right: -4px; }
.q-nav {
  position: absolute; top: 50%; translate: 0 -50%; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; z-index: 2;
  background: rgba(255, 255, 255, .9); color: var(--forest); font-size: 30px; line-height: 1; box-shadow: 0 3px 10px rgba(0, 0, 0, .2);
}
.q-nav.prev { left: 14px; } .q-nav.next { right: 14px; }
.q-close { position: absolute; top: 10px; right: 10px; z-index: 3; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); font-size: 26px; cursor: pointer; color: var(--ink); }
.q-text { padding: 46px 36px 36px; display: flex; flex-direction: column; justify-content: center; overflow-y: auto; }
.q-count { color: var(--red); font-size: 22px; margin: 0; }
.q-text h3 { color: var(--green); font-size: 32px; margin: 4px 0 12px; }
.q-text p { margin: 0 0 22px; }
.q-buy { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.q-buy .btn-order { border: 0; cursor: pointer; font-size: 17px; }

/* flying photo and berry burst */
.ghost { position: fixed; left: 0; top: 0; width: 70px; height: 70px; border-radius: 50%; object-fit: cover; z-index: 90; pointer-events: none; border: 3px solid #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); }
.berry { position: fixed; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; z-index: 90; pointer-events: none; }

/* tray with little photos */
.tray-thumbs { display: flex; }
.tray-thumbs img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; margin-left: -12px; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .2); }
.tray-thumbs img:first-child { margin-left: 0; }

/* order steps */
.steps { list-style: none; display: flex; justify-content: center; gap: 0; padding: 0; margin: -6px 0 30px; counter-reset: s; }
.steps li { counter-increment: s; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 15px; font-weight: 600; }
.steps li + li::before { content: ""; width: 28px; height: 2px; background: var(--line); margin: 0 10px; }
.steps li > span, .steps li { white-space: nowrap; }
.steps li::after { order: -1; }
.steps li { position: relative; }
.steps li.done { color: var(--green); }
.steps li.now { color: var(--red); }
.steps li.done::marker { content: none; }

/* calendar */
.cal { display: flex; flex-direction: column; gap: 18px; }
.cal-title { margin: 0 0 8px; font-family: Caveat, cursive; font-size: 28px; font-weight: 700; color: var(--red); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-wd { text-align: center; font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .08em; }
.cal-day { position: relative; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 3px; line-height: 1.1; margin: 0; }
.cal-day.off { color: #c4bba9; font-size: 15px; }
.cal-day.xmas { color: var(--red); font-weight: 700; }
.cal-day.xmas::after { content: "Christmas"; font-family: Caveat, cursive; font-size: 14px; }
.cal-day.open { background: #fff; border: 1.5px dashed var(--green); cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.cal-day.open:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(70, 45, 20, .14); }
.cal-day input { position: absolute; opacity: 0; pointer-events: none; }
.cal-day b { font-size: 19px; }
.cal-day small { font-family: Caveat, cursive; font-size: 16px; font-weight: 700; color: var(--green); }
.cal-day.taken { opacity: .45; cursor: not-allowed; text-decoration: line-through; border-style: solid; border-color: var(--line); }
.cal-day.taken:hover { transform: none; box-shadow: none; }
.cal-day:has(input:checked) { background: var(--green); border-style: solid; color: #fff; }
.cal-day:has(input:checked) small { color: #fff; }
.cal-day:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: 2px; }
.cal-day.open small:not(:empty) { text-transform: none; }

/* deal nudge in the order */
.summary tr.nudge td { border-bottom: 1px dashed var(--line); padding-top: 0; }
.summary tr.nudge td[colspan] { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; white-space: normal;
  background: #fff4e0; padding: 8px 10px; margin: 0 0 8px; color: #7a4d12; font-size: 15px; }
.summary tr.nudge button { flex: none; border: 1.5px solid var(--green); background: #fff; color: var(--green); font-weight: 700; border-radius: 3px; padding: 6px 12px; cursor: pointer; }
.summary tr.nudge button:hover { background: var(--green); color: #fff; }

@media (max-width: 900px) {
  .quick[open] { grid-template-columns: 1fr; max-height: calc(100vh - 24px); overflow-y: auto; }
  .q-photo { min-height: 0; aspect-ratio: 1 / 1; }
  .q-text { padding: 22px 20px 26px; }
  .q-text h3 { font-size: 26px; }
  .cd { min-width: 54px; }
  .cd b { font-size: 24px; }
  .steps li + li::before { width: 14px; margin: 0 6px; }
  .steps li { font-size: 14px; }
  .cal-grid { gap: 4px; }
  .cal-day { min-height: 50px; }
  .cal-day b { font-size: 16px; }
  .cal-day small { font-size: 14px; }
  .cal-day.xmas::after { font-size: 11px; }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .holly.tl, .holly.br, .toast, .quick[open] { animation: none; }
  .cal-day.open { transition: none; }
}

/* order progress on the thank-you page */
.track { list-style: none; display: flex; justify-content: space-between; padding: 0; margin: 22px 0 6px; position: relative; }
.track::before { content: ""; position: absolute; left: 12%; right: 12%; top: 13px; height: 3px; background: var(--line); }
.track li { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); font-weight: 600; }
.track li::before { content: ""; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--line); box-sizing: border-box; }
.track li.done::before { background: var(--green); border-color: var(--green); }
.track li.now { color: var(--red); }
.track li.now::before { border-color: var(--red); background: var(--red); box-shadow: 0 0 0 5px rgba(196, 41, 41, .15); }
.track li.done:not(.now) { color: var(--green); }

/* type: Young Serif for names, prices and numbers; Quicksand for reading; Caveat for little notes */
.cake h3, .q-text h3, .sec-title, .dotted .pr, .summary tfoot, .total-row b, .cd b, .cal-day b, .gift-tag.big a, .tag-link, .brand b, .kpi b, .order .amt {
  font-family: "Young Serif", Georgia, serif; font-weight: 400;
}
.btn-order, .pay, .btn, .link-order, .share, legend, label { font-weight: 700; }
.dotted .nm { font-weight: 600; }
.cake p, .q-text p { font-weight: 500; }

/* ---- fixes from the independent check ---- */
.dotted li { grid-template-columns: minmax(0, 1fr) auto; }
.dotted .nm { flex: 0 1 auto; min-width: 0; max-width: none; }
.tray-thumbs, .tray-thumbs img { flex: none; }
.link-order { display: inline-flex; align-items: center; min-height: 44px; }
.foot a { display: inline-block; padding: 10px 4px; }
.tag-link { padding: 6px 0; }
.band :focus-visible, .band .qty button:focus-visible { outline-color: #fff; }
@media (max-width: 900px) {
  .dotted li { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; padding: 14px 0; border-bottom: 1px dashed rgba(150, 184, 140, .35); }
  .dotted .row { grid-column: 1 / -1; flex-wrap: wrap; }
  .dotted .deal { grid-column: 1; grid-row: 2; align-self: center; margin-top: 0; }
  .dotted .qty { grid-column: 2; grid-row: 2; }
}
@media (max-width: 420px) {
  .tray { gap: 10px; padding-left: 10px; }
  .tray-thumbs img:nth-child(n+3) { display: none; }
  .tray-text { font-size: 24px; }
  .tray .tray-go { font-size: 22px; padding: 8px 12px 9px; }
}

/* ---- second-check fixes and ideas from the design study ---- */
.qty .qty-add { display: none; width: auto; height: 44px; padding: 0 18px; font-weight: 700; font-size: 16px; color: #fff; background: var(--red); border-radius: 2px; }
.qty .qty-add:hover { background: #ad2323; }
.qty:not(.has) { border-color: var(--red); }
.qty:not(.has) .qty-add { display: block; }
.qty:not(.has) .qty-less, .qty:not(.has) output, .qty:not(.has) .qty-more { display: none; }
.dotted .qty:not(.has) { border-color: var(--red); background: var(--red); }
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 12px !important; }
.fact { font-weight: 700; color: var(--green); font-size: 15px; }
.fact + .fact::before { content: "· "; color: var(--muted); }
.chip { font-size: 13px; font-weight: 700; color: #7a4d12; background: #fff1d8; border: 1px solid #f0d6a6; border-radius: 3px; padding: 1px 8px; }
.q-when { color: var(--green); font-weight: 700; font-size: 15px; }
.pay-ways { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 14px 0 0; }
.pay-ways span { font-size: 13px; font-weight: 700; color: var(--ink); border: 1px solid var(--line); border-radius: 3px; padding: 3px 8px; background: #fff; }
.pay-ways span:first-child { color: #7b2d8b; border-color: #d9c2df; }
.tray-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; }
.tray .tray-go { flex: none; }
@media (max-width: 380px) { .tray-thumbs { display: none; } }

/* ---- third-check fixes ---- */
.q-close { z-index: 5; }
@media (max-width: 900px) { .q-photo .price-tag { top: 64px; } }
.tray-text { display: flex; flex-direction: column; line-height: 1.05; }
.tray-text small { font-size: 18px; color: var(--green); }
.tray-text small:empty { display: none; }
