/*modal de confirmación*/
.modal-confirm-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    backdrop-filter: blur(2px);
}

.modal-confirm-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;
    pointer-events: none;
}

.modal-confirm {
    min-width: 400px;
    max-width: 500px;
    pointer-events: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: none;
    border-radius: 12px;
    border: 1px solid var(--surface-border, #dee2e6);
    overflow: hidden;
}

.modal-confirm-container.show .modal-confirm {
    display: block;
}

.modal-confirm .modal-body {
    padding: 2rem;
}

.bg-modalConf {
    background: var(--surface-elevated-bg, white);
}

/* ── Modal aviso error de receptor ─────────────────────────────────────────── */
.modal-receiver-error .modal-content {
    border: 2px solid #ffc107;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-receiver-error .modal-header {
    background: color-mix(in srgb, #ffc107 15%, transparent);
    border-bottom: 1px solid color-mix(in srgb, #ffc107 40%, transparent);
    border-radius: 10px 10px 0 0;
}

.modal-receiver-error .modal-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--surface-fg, #111827);
}

.modal-receiver-error .modal-body p {
    font-size: 14px;
    color: var(--surface-fg, #111827);
    margin-bottom: 0.75rem;
}

.modal-receiver-error .modal-footer {
    border-top: 1px solid color-mix(in srgb, #ffc107 40%, transparent);
    border-radius: 0 0 10px 10px;
}

/* Modal footer */

.modal-footer button{
    border-radius: 50rem !important;
}

/* Toast */
.toast-confirm-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    backdrop-filter: blur(2px);
}

.toast-confirm-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;
    pointer-events: none;
}

.toast-confirm {
    min-width: 400px;
    max-width: 500px;
    pointer-events: auto;
    border-radius: 1rem !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.toast-confirm .toast-body {
    padding: 2rem;
}

.toast-confirm .toast-body button {
   border-radius: 50rem;
}

.bg-toastConf {
    border: 3px solid var(--color-primary);
    background: var(--surface-bg);
}

@media (max-width: 576px) {
    .toast-confirm {
        min-width: 90vw;
    }
}