/* Buttons, checkout sheets and the gift form, carried over from Snowfall and re-colored for Wilt. */
/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 2px solid transparent; border-radius: var(--radius-pill);
  font: 600 17px/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 160ms var(--ease-settle), background-color 160ms var(--ease-settle), box-shadow 160ms var(--ease-settle), color 160ms;
}
.btn svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-big { height: 58px; padding: 0 30px; font-size: 18px; }
.btn-small { height: 40px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-buy { background: var(--action); color: var(--on-action); box-shadow: 0 14px 34px rgba(63, 103, 67, 0.3), inset 0 -3px 0 rgba(0, 0, 0, 0.12); }
.btn-buy:hover { background: var(--action-hover); transform: translateY(-1px); }
.btn-buy:active { transform: translateY(1px); }
.btn-buy.is-disabled { cursor: not-allowed; }
.btn-ghost { border-color: var(--link); color: var(--link); background: transparent; }
.btn-ghost:hover { background: rgba(156, 194, 255, 0.1); }
.btn-line { height: 50px; padding: 0 22px; border-color: #2453B8; color: #2453B8; background: transparent; }
.btn-line:hover { background: #E2E9F4; }

.sheet-backdrop { position: fixed; inset: 0; z-index: 70; display: grid; place-items: end center; padding: 16px; background: rgba(44, 32, 24, 0.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet-backdrop[hidden] { display: none; }
@media (min-width: 640px) { .sheet-backdrop { place-items: center; } }
.sheet { position: relative; width: min(480px, 100%); padding: 32px 26px 24px; border-radius: 28px; background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow-card); animation: sheet-in 260ms var(--ease-settle); }
@keyframes sheet-in { from { transform: translateY(24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } }
.sheet h2 { margin: 0 0 8px; font-size: 34px; line-height: 1.1; }
.sheet-text { margin: 0 0 20px; color: var(--text-muted); }
.sheet-form { display: grid; gap: 12px; }
.sheet-form[hidden] { display: none; }
.sheet-form input { height: 54px; padding: 0 18px; border-radius: 16px; border: 2px solid transparent; background: var(--field); color: var(--night); font: 500 17px var(--font-body); }
.sheet-form input:focus { outline: none; border-color: var(--focus); }
.sheet-msg { margin: 14px 0 0; font-weight: 600; }
.sheet-msg.error { color: #B3261E; font-weight: 500; }
.sheet-fine { margin: 16px 0 0; font-size: 14px; color: var(--text-muted); }
.sheet-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(58, 46, 39, 0.06); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }
.sheet-close:hover { background: rgba(58, 46, 39, 0.08); }

/* --- Give Wilt (main.js) --- */
.sheet { max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }
.gift-form { display: grid; gap: 20px; }
.gift-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 16px; background: rgba(58, 46, 39, 0.06); }
.gift-modes label { position: relative; }
.gift-modes input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.gift-modes span { display: block; padding: 10px 8px; border-radius: 12px; text-align: center; font-size: 15px; font-weight: 600; color: var(--text-muted); transition: background 160ms, color 160ms; }
.gift-modes input:checked + span { background: var(--snow); color: var(--night); }
.gift-modes input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.gift-group { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.gift-group[hidden] { display: none; }
.gift-group legend { float: left; width: 100%; margin-bottom: 10px; padding: 0; font-size: 14px; font-weight: 600; }
.gift-group legend + * { clear: both; }
.gift-field { display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
.gift-field em { font-style: normal; font-weight: 400; color: var(--text-muted); }
.gift-form input[type="email"], .gift-field input, .gift-field textarea, .gift-when input[type="date"] { width: 100%; height: 50px; padding: 0 16px; border-radius: 14px; border: 2px solid transparent; background: var(--field); color: var(--night); font: 500 16px var(--font-body); }
.gift-field textarea { height: auto; padding: 12px 16px; line-height: 1.45; resize: vertical; }
.gift-form input:focus, .gift-form textarea:focus { outline: none; border-color: var(--focus); }
.gift-recipients { display: grid; gap: 8px; }
.gift-row { display: flex; gap: 8px; }
.gift-remove { flex: none; width: 50px; height: 50px; border: 0; border-radius: 14px; background: rgba(58, 46, 39, 0.06); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }
.gift-remove:hover { background: rgba(58, 46, 39, 0.08); }
.gift-recipients.single .gift-remove { display: none; }
.gift-add { justify-self: start; padding: 4px 0; border: 0; background: none; color: var(--link); font: 600 15px var(--font-body); cursor: pointer; }
.gift-add[hidden] { display: none; }
.gift-stepper { display: inline-flex; align-items: center; justify-self: start; gap: 6px; padding: 4px; border-radius: 16px; background: rgba(58, 46, 39, 0.06); }
.gift-stepper button { width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(58, 46, 39, 0.08); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }
.gift-stepper button:hover { background: rgba(58, 46, 39, 0.1); }
.gift-stepper output { min-width: 48px; text-align: center; font: 400 28px var(--font-display); }
.gift-hint { margin: 0; font-size: 14px; color: var(--text-muted); }
.gift-hint[hidden], .gift-when input[type="date"][hidden] { display: none; }
.gift-when label { display: flex; align-items: center; gap: 10px; font-size: 16px; cursor: pointer; }
.gift-when input[type="radio"] { width: 18px; height: 18px; margin: 0; accent-color: var(--action); }
.price-card .btn-line { margin-top: -8px; }

/* Phones: Buy pays right away; this line under it offers the link by email instead (main.js). */
.phone-hint { text-align: center; }
.phone-hint a { color: var(--link); font-weight: 600; }
.price-card .phone-hint { color: var(--text-muted); }
/* --- Secret Santa: the big button under the hero's Buy, its section, and its sheet --- */
.btn-santa { gap: 12px; background: var(--snow); color: var(--night); box-shadow: 0 14px 34px rgba(4, 9, 26, 0.35), inset 0 -3px 0 rgba(26, 43, 84, 0.12); }
.btn-santa svg, .santa .btn-buy svg { stroke: var(--knit); }
.santa .btn-buy svg { stroke: currentColor; }
.btn-santa:hover { background: #FFFFFF; transform: translateY(-1px); }
.btn-santa:active { transform: translateY(1px); }
.hero > .btn-santa { width: min(520px, 100%); height: 64px; font-size: 19px; animation-delay: 340ms; }

.santa { padding: 100px 0 90px; }
.santa-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.santa-copy { display: grid; gap: 18px; justify-items: start; }
.santa-title { margin: 0; padding-top: 0.08em; font-size: clamp(38px, 4.6vw, 64px); line-height: 1.02; color: #B9D0F5; background: var(--ice); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.santa .sub { color: #C3CEE2; }
.santa-list { list-style: none; margin: 6px 0 8px; padding: 0; display: grid; gap: 18px; }
.santa-list li { display: grid; grid-template-columns: 42px 1fr; gap: 16px; align-items: start; }
.santa-list h3 { margin: 4px 0 4px; font: 400 24px/1.1 var(--font-display); color: var(--snow); }
.santa-list p { margin: 0; font-size: 16px; line-height: 1.5; color: #C3CEE2; }
.santa-card { margin: 0; }
.santa-card img { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(58, 46, 39, 0.06); transform: rotate(-1.5deg); }
.santa-card figcaption { margin-top: 18px; font-size: 14px; color: var(--text-muted); text-align: center; }
@media (max-width: 900px) {
  .santa { padding: 70px 0 60px; }
  .santa-wrap { grid-template-columns: 1fr; gap: 40px; }
  .santa-card img { transform: none; }
}
@media (max-width: 640px) {
  .hero > .btn-santa { height: 58px; font-size: 17px; }
  .santa .btn-buy { width: 100%; }
}

.santa-steps { margin: 0 0 22px; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; color: var(--text-muted); }
.santa-steps b { color: var(--text); font-weight: 600; }
.gift-moment { display: flex; gap: 8px; }
.gift-moment input { flex: 1; min-width: 0; height: 50px; padding: 0 16px; border-radius: 14px; border: 2px solid transparent; background: var(--field); color: var(--night); font: 500 16px var(--font-body); }
.gift-moment input[type="time"] { flex: 0 0 130px; }
.gift-moment input[hidden] { display: none; }
.gift-form .gift-hint[hidden] { display: none; }
