/* Email recovery shares the customer-flow palette and each template's typography. */
.checkout-recovery {
    bottom: auto;
    height: 100%;
    padding: 24px;
    background: rgba(9, 24, 19, .56);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}
.checkout-recovery .flow-panel {
    box-sizing: border-box;
    width: 100%;
    max-width: 440px;
    max-height: 100%;
    padding: 30px 30px 16px;
    border-radius: 30px;
    background: var(--flow-bg);
    box-shadow: 0 32px 100px rgba(3, 21, 13, .25), inset 0 1px 0 rgba(255, 255, 255, .4);
    text-align: left;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
.checkout-recovery .flow-close {
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: var(--flow-soft);
}
.recovery-symbol {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 24px;
    border: 1px solid rgba(24, 122, 63, .12);
    border-radius: 20px;
    background: linear-gradient(135deg, #edf8ef, #eaf2f9);
    color: #187443;
    box-shadow: 0 5px 16px rgba(17, 87, 51, .06), inset 0 1px 0 rgba(255, 255, 255, .8);
}
.recovery-symbol svg { width: 32px; height: 32px; }
.checkout-recovery svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.checkout-recovery .flow-eyebrow { margin: 0 0 10px; font-size: 10px; letter-spacing: .14em; }
.checkout-recovery .flow-title { margin-bottom: 10px; font-size: 29px; line-height: 1.12; }
.checkout-recovery .recovery-description { margin-bottom: 25px; max-width: 300px; font-size: 15px; }
.recovery-form { margin: 0; }
.recovery-label { display: block; margin: 0 0 9px; color: var(--flow-ink); font-size: 13px; font-weight: 700; }
.recovery-field {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 56px;
    padding: 0 16px;
    border: 1px solid var(--flow-line);
    border-radius: 16px;
    background: var(--flow-soft);
    transition: border-color .16s ease, box-shadow .16s ease;
}
.recovery-field > svg { width: 21px; height: 21px; flex: 0 0 21px; color: var(--flow-muted); }
.recovery-field:focus-within { border-color: var(--flow-accent); box-shadow: 0 0 0 3px rgba(24, 122, 63, .12); }
.recovery-field input {
    display: block;
    min-width: 0;
    width: 100%;
    height: 54px;
    padding: 0;
    border: 0;
    border-radius: 0;
    outline: none;
    background: transparent;
    color: var(--flow-ink);
    caret-color: var(--flow-accent);
    font: inherit;
    font-size: 16px;
    line-height: 1.5;
    -webkit-appearance: none;
    -webkit-user-select: text;
    user-select: text;
}
.recovery-field input::placeholder { color: var(--flow-muted); opacity: .8; }
.recovery-field input:read-only { cursor: progress; }
.recovery-error { margin: 10px 0 0; color: #b33232; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.recovery-error:empty { margin: 0; }
[data-recovery-state="error"] .recovery-field { border-color: #bf4242; }
.checkout-recovery .recovery-submit {
    gap: 12px;
    min-height: 54px;
    margin: 14px 0 0;
    padding: 14px 18px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 7px 16px rgba(20, 111, 75, .16);
    transition: transform .16s ease, box-shadow .16s ease;
}
.recovery-submit svg { width: 20px; height: 20px; flex: 0 0 20px; stroke-width: 2; }
.recovery-submit:active:not(:disabled) { transform: translateY(1px); box-shadow: 0 3px 8px rgba(20, 111, 75, .12); }
.checkout-recovery .recovery-submit:disabled { opacity: 1; }
.recovery-submit:disabled svg { display: none; }
.recovery-submit:disabled::after {
    content: '';
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    box-sizing: border-box;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: recovery-spin .8s linear infinite;
}
[data-recovery-state="success"] .recovery-submit::after {
    width: 16px;
    height: 9px;
    flex-basis: 16px;
    margin-top: -5px;
    border: 0;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    border-radius: 0;
    transform: rotate(-45deg);
    animation: none;
}
.recovery-note { margin: 11px 0 0; color: var(--flow-muted); font-size: 12px; line-height: 1.5; text-align: center; }
.recovery-support { margin-top: 25px; padding-top: 19px; border-top: 1px solid var(--flow-line); }
.recovery-support p { margin: 0; color: var(--flow-muted); font-size: 12px; line-height: 1.5; }
.recovery-support-button, .recovery-back {
    display: flex;
    align-items: center;
    border: 0;
    background: transparent;
    color: var(--flow-accent);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.recovery-support-button { justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; text-align: left; }
.recovery-support-button svg { width: 17px; height: 17px; flex: 0 0 17px; }
.recovery-back { justify-content: center; min-height: 44px; margin: 5px auto 0; padding: 8px 20px; }
.recovery-back { color: var(--flow-muted); font-size: 13px; font-weight: 600; }
.recovery-support-button:focus-visible, .recovery-back:focus-visible {
    outline: 3px solid #368bfa;
    outline-offset: 3px;
}
@keyframes recovery-spin { to { transform: rotate(360deg); } }
@media (max-width: 550px) {
    .checkout-recovery { align-items: end; padding: 12px 12px max(12px, env(safe-area-inset-bottom, 0px)); }
    .checkout-recovery .flow-panel { padding: 26px 24px 12px; border-radius: 28px; }
    .checkout-recovery .flow-title { font-size: 27px; }
    .recovery-symbol { margin-bottom: 22px; }
}
@media (max-width: 350px) {
    .checkout-recovery .flow-panel { padding-right: 19px; padding-left: 19px; }
    .checkout-recovery .flow-title { font-size: 25px; }
    .recovery-support-button { font-size: 13px; }
}
@media (max-height: 600px) {
    .recovery-symbol { display: none; }
    .checkout-recovery .flow-eyebrow { min-height: 29px; margin-right: 44px; }
    .checkout-recovery .recovery-description { margin-bottom: 18px; }
    .recovery-support { margin-top: 18px; padding-top: 12px; }
}
@media (prefers-color-scheme: dark) {
    .checkout-recovery .flow-panel {
        box-shadow: 0 32px 100px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .04);
    }
    .recovery-symbol {
        border-color: #345c46;
        background: linear-gradient(135deg, #203d2c, #1c3540);
        color: #84e2a5;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    }
    .recovery-field:focus-within { box-shadow: 0 0 0 3px rgba(100, 217, 139, .12); }
    .recovery-error { color: #ffb0a9; }
    [data-recovery-state="error"] .recovery-field { border-color: #e68781; }
}
@media (prefers-reduced-motion: reduce) {
    .checkout-recovery *, .checkout-recovery *::after { animation: none !important; transition: none !important; }
}
