/* /gavekort/ (includes/giftcards.php; Kasper's sketches B and C of 24 Nov 2026): the form beside a live preview of the
   card, and after payment the card with its code. On the theme's own tokens and form components (the booking form's
   .booking__step, .date-option, .field, .check and .booking__summary). Loaded only on the page with [krb_gavekort]. */

/* The page's text sits in .prose (860px wide, children at most 72ch). The form needs the full width beside the card,
   so it is centred on the page at the theme's container width. */
.prose > .gift { max-width: none; width: min(1152px, calc(100vw - 2 * var(--gutter, 24px))); margin-left: calc(50% - min(576px, 50vw - var(--gutter, 24px))); }
/* The page head lines up with the form (giftcards.php puts the class on the body of the page with the form). */
.krb-giftcard-page .page-head.container--narrow { max-width: var(--container, 1200px); }
/* No hero photo: the lead follows right under the page title instead of the prose's usual 72px further down. */
.prose > .gift:first-child { margin-top: -40px; }

.gift__lead { max-width: 640px; font-size: 20px; color: var(--ink-soft); margin: 0 0 32px; }
.gift__title { font-size: clamp(32px, 4vw, 48px); margin: 0 0 16px; }
.prose .gift .gift__title { margin-top: 0; }
.gift .booking__errors { max-width: 760px; }

.gift__cols { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.gift__main { flex: 999 1 520px; min-width: 0; }
.gift__side { flex: 1 1 380px; min-width: 0; position: sticky; top: 96px; display: grid; gap: 16px; }
@media (max-width: 960px) { .gift__side { position: static; } }

/* 1. Amount: the date cards from the booking form, in a grid; "Andet beløb" takes the whole row. */
.gift__amounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.gift__amount .date-option__date { font-size: 20px; white-space: nowrap; }
.gift__amount .date-option__meta:empty { display: none; }
/* Two cards a row on phones: a little less padding, so "1.000 DKK" stays on one line. */
@media (max-width: 420px) {
	.gift__amount { padding: 14px; column-gap: 10px; }
	.gift__amount .date-option__date { font-size: 18px; }
}
.gift__amount--custom { grid-column: 1 / -1; }
.gift__custom { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 6px; }
/* The theme styles every input in a .date-option as its radio button; the amount field is a text field. */
.gift .gift__custom input { grid-row: auto; font: inherit; border: 1.5px solid var(--field-border); border-radius: 10px; padding: 9px 14px; background: var(--surface); color: var(--ink); height: auto; min-height: 46px; width: 160px; max-width: 100%; accent-color: auto; }
.gift .gift__custom input:focus { border-color: var(--green); outline: 2px solid var(--green); outline-offset: 0; }
.gift .field textarea { resize: vertical; min-height: 92px; }
.gift__help { margin: 10px 0 0; }
.gift .field > .field-help { font-weight: 400; }

/* The card: the printed gift card's colours, the same in night mode. */
.gift-card { position: relative; overflow: hidden; background: #1E4D43; color: #FFFFFF; border-radius: 20px; padding: 28px 30px 26px; box-shadow: 0 12px 32px var(--shadow); }
.gift-card::after { content: ""; position: absolute; right: -70px; bottom: -90px; width: 300px; height: 300px; border-radius: 50%; background: rgba(255, 255, 255, 0.06); }
.gift-card p { margin: 0; }
.gift-card .gift-card__brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 20px; margin-bottom: 22px; }
.gift-card__brand img { width: 34px; height: 34px; }
.gift-card .gift-card__eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; color: #B9C4BF; margin-bottom: 4px; }
.gift-card .gift-card__amount { font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: 1.05; margin-bottom: 12px; }
.gift-card .gift-card__to { font-size: 18px; margin-bottom: 6px; }
.gift-card__to:empty { display: none; }
.gift-card__msg { color: #DCE4E0; font-size: 16px; white-space: pre-line; max-width: 34ch; position: relative; z-index: 1; }
.gift-card__msg:empty { display: none; }
.gift-card .gift-card__code { display: inline-block; background: #FFFFFF; color: #111A17; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 20px; font-weight: 600; letter-spacing: 0.08em; padding: 8px 14px; border-radius: 10px; margin: 18px 0 14px; position: relative; z-index: 1; }
.gift-card__meta { font-size: 14px; color: #DCE4E0; position: relative; z-index: 1; }

.gift__caption { font-size: 15px; color: var(--ink-soft); margin: -4px 4px 0; }
.gift .booking__summary { margin: 0; }
.gift .check { margin: 0; font-size: 16px; }
.gift__cta { width: 100%; text-align: center; border: 0; cursor: pointer; font: inherit; font-weight: 600; min-height: 48px; }
.gift__cta:disabled { opacity: 0.55; cursor: not-allowed; }
.gift .gift__facts { list-style: none; margin: 0; padding: 0; font-size: 15px; color: var(--ink-soft); display: grid; gap: 6px; }
.gift .gift__facts li { display: flex; gap: 8px; align-items: flex-start; margin: 0; }
.gift__facts svg { flex: none; margin-top: 4px; color: var(--green); }

/* After payment (sketch C): the card and its buttons on the left, how it is used and what was paid on the right. */
.gift__cols--done { gap: 56px; }
.gift__card-col { flex: 1 1 440px; min-width: 0; max-width: 560px; }
.gift__info { flex: 999 1 380px; min-width: 0; }
.gift__card-col .gift-card { padding: 32px 34px 30px; }
.gift__card-col .gift-card .gift-card__amount { font-size: 48px; }
.gift__card-col .gift-card .gift-card__code { font-size: 24px; padding: 9px 16px; }
.gift__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 20px 0 0; }
.gift__copy { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--field-border); border: 0; cursor: pointer; font: inherit; font-weight: 600; min-height: 48px; }
.gift__copy:hover { box-shadow: inset 0 0 0 1.5px var(--green); }
.prose .gift .gift__info-title { font-size: 28px; margin: 0 0 20px; }
.gift .gift__steps { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 16px; }
.gift .gift__steps li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: start; margin: 0; }
.gift__num { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: #FFFFFF; background: #1E4D43; width: 32px; height: 32px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; }
.gift__info .booking__summary { background: var(--bg-soft); border: 0; margin: 0 0 18px; }
.gift__info .booking__summary-row dd { color: var(--ink); }
.gift__status { max-width: 760px; }
.gift .booking--confirmed { background: var(--bg-soft); }
.gift .section__title { font-size: clamp(32px, 4vw, 48px); margin-top: 0; }
.gift__status .gift__actions { margin-top: 8px; }

@media (max-width: 600px) {
	.gift__lead { font-size: 18px; }
	.gift-card { padding: 24px 22px 22px; }
	.gift-card .gift-card__amount, .gift__card-col .gift-card .gift-card__amount { font-size: 38px; }
	.gift__card-col .gift-card { padding: 24px 22px 22px; }
	.gift__card-col .gift-card .gift-card__code { font-size: 20px; }
	.gift__actions .button { width: 100%; text-align: center; }
}
