/* Shared by admin and member layouts; colors are supplied by the active theme. */
.swal2-container.swal2-backdrop-show {
    background: rgb(0 0 0 / 65%) !important;
    backdrop-filter: blur(4px);
}
.swal2-container .swal2-popup,
.swal-overlay .swal-modal {
    background: var(--alert-bg) !important;
    color: var(--alert-text) !important;
    border: 1px solid var(--alert-border);
    border-radius: 18px;
    font-family: inherit;
    box-shadow: 0 20px 70px rgb(0 0 0 / 30%);
}
.swal2-popup .swal2-title,
.swal-modal .swal-title {
    color: var(--alert-text) !important;
    font-size: 1.35rem;
    line-height: 1.5;
}
.swal2-popup .swal2-html-container,
.swal2-popup .swal2-content,
.swal2-popup .swal2-input-label,
.swal2-popup .swal2-footer,
.swal-modal .swal-text {
    color: var(--alert-muted) !important;
    font-size: .9rem;
    line-height: 1.8;
}
.swal2-popup .swal2-footer { border-color: var(--alert-border); }
.swal2-popup .swal2-close { color: var(--alert-muted) !important; }
.swal2-popup .swal2-close:hover { color: var(--alert-text) !important; }
.swal2-popup .swal2-confirm,
.swal-modal .swal-button--confirm {
    background: var(--alert-primary) !important;
    color: var(--alert-on-primary) !important;
    border: 1px solid var(--alert-primary) !important;
    background-image: none !important;
}
.swal2-popup .swal2-cancel,
.swal-modal .swal-button--cancel {
    background: var(--alert-neutral) !important;
    color: var(--alert-text) !important;
    border: 1px solid var(--alert-border) !important;
    background-image: none !important;
}
.swal2-popup .swal2-deny,
.swal-modal .swal-button--danger {
    background: #b4233b !important;
    color: #fff !important;
    border: 1px solid #b4233b !important;
    background-image: none !important;
}
.swal2-popup .swal2-actions button,
.swal-modal .swal-button {
    border-radius: 9px;
    padding: .7em 1.4em;
    font-family: inherit;
    font-size: .85rem;
    font-weight: 600;
    box-shadow: none !important;
}
.swal2-popup .swal2-actions button:hover { filter: brightness(1.08); }
.swal2-popup .swal2-actions button:focus-visible,
.swal2-popup .swal2-close:focus-visible {
    outline: 2px solid var(--alert-primary);
    outline-offset: 3px;
}
.swal2-popup .swal2-input,
.swal2-popup .swal2-textarea,
.swal2-popup .swal2-select,
.swal-modal .swal-content__input {
    background: var(--alert-input-bg) !important;
    color: var(--alert-text) !important;
    border: 1px solid var(--alert-border) !important;
    border-radius: 8px;
    box-shadow: none !important;
}
.swal2-popup .swal2-input:focus,
.swal2-popup .swal2-textarea:focus,
.swal2-popup .swal2-select:focus { border-color: var(--alert-primary) !important; }
.swal2-popup input::placeholder,
.swal2-popup textarea::placeholder { color: var(--alert-muted) !important; opacity: 1; }
.swal2-popup .swal2-checkbox,
.swal2-popup .swal2-radio { background: transparent !important; color: var(--alert-text) !important; }
.swal2-popup input[type="checkbox"],
.swal2-popup input[type="radio"] { accent-color: var(--alert-primary); }
.swal2-popup .swal2-validation-message {
    background: var(--alert-input-bg) !important;
    color: var(--alert-text) !important;
}
.swal2-popup .swal2-success-circular-line-left,
.swal2-popup .swal2-success-circular-line-right,
.swal2-popup .swal2-success-fix,
.swal-modal .swal-icon--success::before,
.swal-modal .swal-icon--success::after,
.swal-modal .swal-icon--success__hide-corners { background: var(--alert-bg) !important; }
.swal2-container .swal2-popup.swal2-toast {
    border-radius: 12px;
    padding: 14px 18px;
}
.swal2-popup .swal2-timer-progress-bar {
    background: color-mix(in srgb, var(--alert-primary) 60%, transparent) !important;
}
.swal2-popup .swal2-loader {
    border-color: var(--alert-primary) transparent var(--alert-primary) transparent !important;
}
@media (max-width: 480px) {
    .swal2-container .swal2-popup { border-radius: 14px; }
    .swal2-popup .swal2-title { font-size: 1.2rem; }
}
