/* «Чеки» on the checkout and the subscription tab: the receipt address or its form. */
.receipt-email, .receipt-email-form { border-radius: 24px; background: var(--surface-card); }
.receipt-email { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; }
.receipt-email p { display: grid; gap: 4px; min-width: 0; }
.receipt-email-label { color: var(--muted); font-size: 14px; }
.receipt-email strong { overflow-wrap: anywhere; font-size: 17px; font-weight: 600; }
.receipt-email.is-empty strong { color: #bdbdbd; }
.receipt-email .secondary-button { flex: none; min-height: 42px; }

/* the field a step lighter than the card, not a dark hole in it */
.receipt-email-form { display: grid; gap: 16px; padding: 20px 24px; }
.receipt-email-form input { border-color: transparent; background: #2a2a2a; }
.receipt-email-form input:focus { outline: none; border-color: #555; background: #303030; }
.receipt-email-form .form-error { margin-top: -6px; padding-block: 0; font-size: 14px; line-height: 1.45; }
.receipt-email-hint { margin-top: -6px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.receipt-email-actions { display: flex; flex-wrap: wrap; gap: 10px; }
/* muting is the rare way out, so it stands apart from cancel and save */
.receipt-email-mute { margin-right: auto; }
.receipt-email.is-muted strong { color: #bdbdbd; }

/* a payment refused for want of an address: the field and its message turn yellow, the field glows once */
.receipt-email-form.is-needed .form-error { color: var(--accent); }
.receipt-email-form.is-needed input[aria-invalid="true"] { border-color: rgba(255, 209, 102, .55); }
.receipt-email-form .is-flashing { animation: receipt-email-flash 1.2s ease; }
@keyframes receipt-email-flash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 209, 102, 0); }
  35% { box-shadow: 0 0 0 5px rgba(255, 209, 102, .16); }
}

@media (max-width: 540px) {
  .receipt-email { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .receipt-email-form .is-flashing { animation: none; }
}
