/* TimeGuard global modern-alert component. SweetAlert2 7.12.15 is the rendering authority. */
.swal2-container.tg-alert-container {
    z-index: 1060;
}

.swal2-container.tg-alert-container.swal2-shown {
    background-color: rgba(0, 0, 0, 0.4);
}

.swal2-popup.tg-alert-dialog {
    width: 370px !important;
    max-width: calc(100vw - 2rem) !important;
    padding: 1rem 1.15rem 1.05rem !important;
    color: var(--tg-color-text, #334e68);
    background: var(--tg-color-surface, #ffffff) !important;
    box-shadow: var(--tg-shadow-modal, 0 18px 48px rgba(15, 35, 52, 0.2)) !important;
}

.swal2-popup.tg-alert-dialog .swal2-icon {
    width: 56px;
    height: 56px;
    margin: 0.35rem auto 0.65rem;
    border-width: 3px;
    line-height: 56px;
}

.swal2-popup.tg-alert-dialog .swal2-icon.swal2-info,
.swal2-popup.tg-alert-dialog .swal2-icon.swal2-question,
.swal2-popup.tg-alert-dialog .swal2-icon.swal2-warning {
    margin: 0.35rem auto 0.65rem;
    font-size: 2.5rem;
    line-height: 56px;
}

.swal2-popup.tg-alert-dialog .swal2-title {
    margin: 0 0 0.35rem !important;
    color: var(--tg-color-text-strong, #17364d) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
}

.swal2-popup.tg-alert-dialog .swal2-content {
    color: var(--tg-color-text, #334e68) !important;
    font-size: 0.75rem !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
}

.swal2-popup.tg-alert-dialog .swal2-actions {
    margin: 0.7rem auto 0 !important;
}

.swal2-popup.tg-alert-dialog button.swal2-confirm.tg-btn,
.swal2-popup.tg-alert-dialog button.swal2-cancel.tg-btn {
    min-width: 104px;
    min-height: 40px;
    margin: 0 0.25rem;
    padding: 0.55rem 1rem;
    font-size: 0.75rem !important;
    line-height: 1.25 !important;
}

.swal2-popup.tg-alert-dialog button.swal2-confirm.tg-btn:focus-visible,
.swal2-popup.tg-alert-dialog button.swal2-cancel.tg-btn:focus-visible {
    outline: 0;
    box-shadow: var(--tg-focus-ring, 0 0 0 3px rgba(38, 132, 199, 0.22)) !important;
}

/* Preserve SweetAlert2 7.12.15 semantic icon identities under governed variant classes. */
.swal2-popup.tg-alert-dialog-success .swal2-icon.swal2-success,
.swal2-popup.tg-alert-dialog-error .swal2-icon.swal2-error {
    width: 80px;
    height: 80px;
    border-width: 4px;
    line-height: 80px;
    zoom: 0.7;
}

.swal2-popup.tg-alert-dialog-info .swal2-info {
    border-color: #9de0f6;
    color: #3fc3ee;
}

.swal2-popup.tg-alert-dialog-success .swal2-success {
    border-color: #a5dc86;
}

.swal2-popup.tg-alert-dialog-success .swal2-success [class^="swal2-success-line"] {
    background-color: #a5dc86;
}

.swal2-popup.tg-alert-dialog-success .swal2-success-circular-line-left,
.swal2-popup.tg-alert-dialog-success .swal2-success-circular-line-right,
.swal2-popup.tg-alert-dialog-success .swal2-success-fix {
    background-color: var(--tg-color-surface, #ffffff) !important;
}

.swal2-popup.tg-alert-dialog-warning .swal2-warning,
.swal2-popup.tg-alert-dialog-confirmation .swal2-warning {
    border-color: #facea8;
    color: #f8bb86;
}

.swal2-popup.tg-alert-dialog-error .swal2-error {
    border-color: #f27474;
}

.swal2-popup.tg-alert-dialog-error .swal2-error [class^="swal2-x-mark-line"] {
    background-color: #f27474;
}

@media (max-width: 359.98px) {
    .swal2-popup.tg-alert-dialog {
        padding: 0.85rem 0.8rem 0.9rem !important;
    }

    .swal2-popup.tg-alert-dialog .swal2-icon,
    .swal2-popup.tg-alert-dialog .swal2-icon.swal2-info,
    .swal2-popup.tg-alert-dialog .swal2-icon.swal2-question,
    .swal2-popup.tg-alert-dialog .swal2-icon.swal2-warning {
        width: 50px;
        height: 50px;
        margin: 0.25rem auto 0.55rem;
        line-height: 50px;
    }

    .swal2-popup.tg-alert-dialog .swal2-icon.swal2-info,
    .swal2-popup.tg-alert-dialog .swal2-icon.swal2-question,
    .swal2-popup.tg-alert-dialog .swal2-icon.swal2-warning {
        font-size: 2.25rem;
    }

    .swal2-popup.tg-alert-dialog-success .swal2-icon.swal2-success,
    .swal2-popup.tg-alert-dialog-error .swal2-icon.swal2-error {
        width: 80px;
        height: 80px;
        border-width: 4px;
        line-height: 80px;
        zoom: 0.625;
    }

    .swal2-popup.tg-alert-dialog .swal2-title {
        margin-bottom: 0.3rem !important;
        font-size: 0.95rem !important;
    }

    .swal2-popup.tg-alert-dialog .swal2-content {
        font-size: 0.72rem !important;
    }

    .swal2-popup.tg-alert-dialog .swal2-actions {
        margin-top: 0.65rem !important;
    }

    .swal2-popup.tg-alert-dialog button.swal2-confirm.tg-btn,
    .swal2-popup.tg-alert-dialog button.swal2-cancel.tg-btn {
        padding: 0.5rem 0.85rem;
        font-size: 0.72rem !important;
    }
}
