/* Gift cards: the page, the card art, the home band, the little nudge. */
.advs-gc { position: relative; overflow: hidden; width: 100%; max-width: 520px; aspect-ratio: 1.586; border-radius: 20px; padding: clamp(18px, 3.4vw, 30px); display: flex; flex-direction: column; justify-content: space-between; color: #fff; background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--advs-accent) 55%, transparent), transparent 60%), var(--advs-night, #0b0b0b); box-shadow: 0 24px 50px -22px rgba(0,0,0,.55), 0 2px 0 rgba(255,255,255,.06) inset; transform: rotate(-2deg); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.advs-gc:hover { transform: rotate(0) translateY(-3px); }
.advs-gc__top { display: flex; align-items: center; gap: 12px; }
.advs-gc__top img { width: 52px; height: 52px; border-radius: 50%; }
.advs-gc__word { font-family: var(--advs-display); font-weight: 800; font-size: clamp(22px, 3.6vw, 30px); letter-spacing: .04em; line-height: 1.1; }
.advs-gc__mid { display: flex; flex-direction: column; gap: 4px; }
.advs-gc__kind { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.7); font-weight: 700; }
.advs-gc__amt { font-family: var(--advs-display); font-weight: 800; font-size: clamp(48px, 9vw, 76px); line-height: 1.05; }
.advs-gc__amt span { display: none; }
.advs-gc__amt span.is-def { display: inline; }
.advs-gift__top:has(input[name="variation_id"]:checked) .advs-gc__amt span.is-def { display: none; }
.advs-gc__code { font-family: ui-monospace, Menlo, monospace; font-size: clamp(12px, 2.4vw, 15px); letter-spacing: .12em; color: rgba(255,255,255,.55); padding-bottom: 12px; }
.advs-gc .advs-stripe { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; }

.advs-gift { display: grid; gap: clamp(44px, 6vw, 80px); }
.advs-gift__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.advs-gift__art { display: grid; gap: 26px; justify-items: start; position: sticky; top: 110px; }
.advs-gift__lede { font-size: 18px; line-height: 1.55; color: var(--advs-muted); max-width: 46ch; margin: 0; }
.advs-gift__form { display: grid; gap: 18px; padding: clamp(20px, 3vw, 32px); border-radius: 18px; background: #fff; border: 1px solid var(--advs-line); }
.advs-gift__form label { display: grid; gap: 7px; font-weight: 700; color: var(--advs-heading); font-size: 15px; }
.advs-gift__form label small { font-weight: 500; color: var(--advs-muted); font-size: 13.5px; line-height: 1.4; }
.advs-gift__form input[type="text"], .advs-gift__form textarea, .advs-gift__bal input[type="text"] { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 8px; border: 1px solid rgba(var(--advs-ink), .25); background: #fff; font: inherit; font-weight: 500; color: var(--advs-text); }
.advs-gift__form textarea { min-height: 96px; resize: vertical; }
.advs-gift__form input:focus-visible, .advs-gift__form textarea:focus-visible, .advs-gift__bal input:focus-visible { outline: 3px solid var(--advs-accent-text); outline-offset: 1px; }
.advs-gift__amounts { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.advs-gift__amounts legend { font-weight: 700; color: var(--advs-heading); font-size: 15px; padding: 0; margin-bottom: 10px; }
.advs-gift__amounts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.advs-gift__amounts label { display: inline-flex; align-items: center; justify-content: center; min-width: 88px; min-height: 52px; padding: 0 18px; border-radius: 8px; border: 2px solid rgba(var(--advs-ink), .18); font-family: var(--advs-display); font-weight: 800; font-size: 24px; cursor: pointer; transition: border-color .15s, background-color .15s, color .15s; }
.advs-gift__amounts label:hover { border-color: var(--advs-accent-text); }
.advs-gift__amounts input:checked + label { background: var(--advs-accent); border-color: var(--advs-accent); color: var(--advs-on-accent); }
.advs-gift__amounts input:focus-visible + label { outline: 3px solid var(--advs-accent-text); outline-offset: 2px; }
.advs-gift__form .advs-btn { width: 100%; }
.advs-gift__fine { margin: 0; font-size: 14px; color: var(--advs-muted); text-align: center; }
.advs-gift__err { margin: 0; padding: 12px 14px; border-radius: 8px; background: #FDECEA; color: #8A1C12; font-weight: 600; }

.advs-gift__steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: g; }
.advs-gift__steps li { counter-increment: g; padding: 22px; border-radius: 16px; background: #fff; border: 1px solid var(--advs-line); }
.advs-gift__steps li::before { content: counter(g); display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 14px; border-radius: 50%; background: var(--advs-accent); color: var(--advs-on-accent); font-family: var(--advs-display); font-weight: 800; font-size: 20px; }
.advs-gift__steps strong { display: block; font-size: 19px; color: var(--advs-heading); margin-bottom: 6px; }
.advs-gift__steps p { margin: 0; color: var(--advs-muted); line-height: 1.5; }

.advs-gift__bal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; padding: clamp(22px, 4vw, 40px); border-radius: 18px; background: #fff; border: 1px solid var(--advs-line); }
.advs-gift__bal p { color: var(--advs-muted); margin: 8px 0 0; line-height: 1.5; }
.advs-gift__bal form { display: grid; gap: 12px; }
.advs-gift__bal label { display: grid; gap: 7px; font-weight: 700; color: var(--advs-heading); font-size: 15px; }
.advs-gift__res { margin: 0 !important; font-weight: 700; }
.advs-gift__res.is-ok { color: #11693A !important; }
.advs-gift__res.is-err { color: #8A1C12 !important; }

.advs-gift__faq details { border-top: 1px solid var(--advs-line); padding: 16px 0; }
.advs-gift__faq details:last-child { border-bottom: 1px solid var(--advs-line); }
.advs-gift__faq summary { cursor: pointer; font-weight: 700; font-size: 18px; color: var(--advs-heading); }
.advs-gift__faq p { margin: 10px 0 0; color: var(--advs-muted); line-height: 1.6; max-width: 70ch; }

/* Home band */
.advs-giftband__in { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding: clamp(24px, 4vw, 48px); border-radius: 22px; background: var(--advs-surface); border: 1px solid var(--advs-line); }
.advs-giftband__art { display: flex; justify-content: center; }
.advs-giftband__txt p { color: var(--advs-muted); font-size: 18px; line-height: 1.55; margin: 14px 0 22px; max-width: 52ch; }

.advs-giftnudge { margin: 14px 0 0; font-size: 15px; color: var(--advs-muted); }
.advs-giftnudge a { color: var(--advs-accent-text) !important; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 860px) {
	.advs-gift__top, .advs-giftband__in, .advs-gift__bal { grid-template-columns: minmax(0, 1fr); }
	.advs-gift__art { position: static; justify-items: center; }
	.advs-gift__lede { text-align: center; }
	.advs-gift__steps { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .advs-gc, .advs-gc:hover { transform: none; transition: none; } }
