#ca-dialog,
#login-dialog {
    display: none;
}

#login-dialog.timeout-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

#login-dialog.timeout-overlay.is-open {
    display: flex;
}

.timeout-dialog {
    width: 420px;
    max-width: calc(100vw - 2rem);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.timeout-header {
    background: #f0ad4e;
    color: #fff;
    padding: 0.75rem 1rem;
    font-weight: 600;
}

.timeout-header h2 {
    margin: 0;
    font-size: 1.2rem;
}

.timeout-body {
    padding: 1.25rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
}

.timeout-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 0 1rem 1rem 1rem;
}

.timeout-btn {
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    background: #fff;
}

.timeout-btn-primary {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.timeout-btn-secondary {
    background: #fff;
    color: #6c757d;
}
