/* ==========================================================================
   SweetAlert2 — integración visual con UXPOS
   ========================================================================== */

.swal2-popup {
    font-family: inherit;
    border-radius: var(--pos-radius, 16px);
}

.swal2-title {
    font-size: 1.15rem;
    font-weight: 700;
}

.swal2-html-container {
    font-size: .95rem;
}

.swal2-styled.swal2-confirm,
.swal2-styled.swal2-cancel {
    border-radius: 10px;
    font-weight: 600;
}

.swal2-toast {
    border-radius: 12px;
    font-size: .9rem;
}

.swal2-timer-progress-bar {
    background: var(--pos-primary, #0071BC);
}

/* Modo oscuro: SweetAlert 2.11 no trae theme automático en este build. */
[data-bs-theme="dark"] .swal2-popup,
[data-bs-theme="dark"] .swal2-toast {
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    border: 1px solid var(--bs-border-color);
}

[data-bs-theme="dark"] .swal2-title {
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .swal2-html-container {
    color: var(--bs-secondary-color);
}

[data-bs-theme="dark"] .swal2-close {
    color: var(--bs-secondary-color);
}

[data-bs-theme="dark"] .swal2-close:hover {
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .swal2-timer-progress-bar {
    background: rgba(255, 255, 255, .18);
}

[data-bs-theme="dark"] .swal2-styled.swal2-cancel {
    background-color: #475569;
}
