/* Aftenlys: shared tokens, typography and one primary action per panel. */
.subscription-gifts { font-family: var(--font-ui); }
.gift-shell { max-width: 1180px; margin: 0 auto; padding: 0 40px 48px; }
.gift-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.gift-header .brand-text { font-family: var(--font-display); font-weight: 400; }
.gift-nav { display: flex; flex-wrap: wrap; gap: 8px; padding: 24px 0; }
.gift-nav a { padding: 12px 20px; border-radius: var(--radius-pill); color: var(--text-secondary); font-size: 14px; }
.gift-nav a[aria-current="page"], .gift-nav a:hover { background: var(--surface-raised); color: var(--text); }
.gift-panel { display: flex; flex-direction: column; gap: 16px; max-width: 720px; padding: 40px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); }
.gift-panel h1 { max-width: 18ch; margin: 0; font: 400 48px/1.1 var(--font-display); letter-spacing: 0; }
.gift-panel .eyebrow { margin: 0; }
.gift-panel form, #gift-receipt-content { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.gift-copy { max-width: 48ch; margin: 0; color: var(--text-secondary); font: 400 16px/1.65 var(--font-ui); text-wrap: pretty; }
.gift-meta, .gift-footer { max-width: 48ch; margin: 0; color: var(--text-muted); font: 400 13px/1.4 var(--font-ui); }
.gift-copy a, .gift-meta a, .gift-footer a { color: var(--accent-quiet); }
.gift-copy a:hover, .gift-meta a:hover, .gift-footer a:hover { text-decoration: underline; }
.gift-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: 100%; padding: 0; margin: 0; border: 0; }
.gift-options legend { margin-bottom: 12px; padding: 0; color: var(--text); font-size: 15px; }
.gift-options > .gift-copy { grid-column: 1 / -1; }
.gift-option { display: flex; align-items: center; gap: 12px; padding: 20px; border: 1px solid var(--border-strong); border-radius: var(--radius-tile); background: var(--surface-sunken); cursor: pointer; }
.gift-option:has(input:checked) { background: var(--surface-raised); border-color: var(--accent); }
.gift-option input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.gift-option span { display: flex; flex-direction: column; gap: 4px; }
.gift-option strong { font-size: 17px; font-weight: 500; }
.gift-option small { font-size: 13px; color: var(--text-secondary); }
.gift-field { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 48ch; font-size: 15px; }
.gift-field input { width: 100%; padding: 12px 16px; border: 1px solid var(--border-strong); border-radius: var(--radius-input); background: var(--surface-sunken); color: var(--text); }
.gift-message { margin: 0; max-width: 48ch; min-height: 24px; color: var(--text-secondary); font-size: 15px; font-weight: 500; text-wrap: pretty; }
.gift-message[data-state="error"] { color: var(--attention-red); }
.gift-message[data-state="success"] { color: var(--positive); }
.gift-code-row, .gift-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.gift-code { max-width: 100%; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-input); background: var(--surface-sunken); color: var(--text); font: 500 17px/1.5 var(--font-ui); letter-spacing: 0.14em; overflow-wrap: anywhere; user-select: all; }
.gift-qr { display: block; width: 200px; height: 200px; max-width: 100%; object-fit: contain; border: 1px solid var(--border); border-radius: var(--radius-input); }
.gift-footer { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 32px; }
.subscription-gifts :is(a, button, input):focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.subscription-gifts button:disabled { opacity: 0.6; cursor: default; }
@media (max-width: 600px) {
  .gift-shell { padding: 0 20px 32px; }
  .gift-panel { padding: 24px; }
  .gift-options { grid-template-columns: 1fr; }
  .gift-header { align-items: flex-start; flex-wrap: wrap; }
}
