/* The dialog is outside the interactive circuit so it remains available offline. */
.reconnect-dialog {
    border: 1px solid #eadfd3;
    border-radius: 24px;
    padding: 0;
    width: min(440px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    max-height: min(90dvh, 680px);
    overflow: auto;
    color: var(--ink, #302a23);
    background: #fffdfa;
    box-shadow: 0 22px 70px rgba(48, 36, 26, .24);
}
.reconnect-dialog::backdrop { background: rgba(36, 30, 25, .48); }
.reconnect-card { padding: clamp(24px, 5vw, 36px); text-align: center; }
.reconnect-brand img { display: block; width: 146px; max-width: 55%; height: auto; margin: 0 auto; }
.reconnect-illustration { position: relative; display: grid; place-items: center; width: 92px; height: 92px; margin: 26px auto 24px; border-radius: 50%; background: #fff2e5; }
.reconnect-illustration img { width: 36px; height: 48px; object-fit: contain; }
.reconnect-spinner { position: absolute; inset: 3px; border: 3px solid #f5dbc2; border-top-color: #a65111; border-radius: 50%; animation: reconnect-spin 1.25s linear infinite; }
.reconnect-dialog[data-state="failed"] .reconnect-spinner,
.reconnect-dialog[data-state="rejected"] .reconnect-spinner,
.reconnect-dialog[data-state="paused"] .reconnect-spinner,
.reconnect-dialog[data-state="resume-failed"] .reconnect-spinner { animation: none; border-color: #efd8c1; }
.reconnect-copy h2 { margin: 0 0 10px; font-size: clamp(1.4rem, 3vw, 1.7rem); line-height: 1.2; letter-spacing: -.025em; }
.reconnect-copy p { margin: 0; color: #625a51; line-height: 1.6; }
.reconnect-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.reconnect-actions:not(:has(button:not([hidden]))) { display: none; }
.reconnect-actions button { width: 100%; min-height: 48px; }
.reconnect-actions button[hidden] { display: none; }
#components-reconnect-modal[open] ~ #billing-connection-status { display: none; }
@keyframes reconnect-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .reconnect-spinner { animation: none; } }
@media (max-height: 560px) { .reconnect-illustration { width: 68px; height: 68px; margin: 14px auto; } .reconnect-illustration img { width: 26px; height: 35px; } }
