/* =========================================================
   VUCE - TOASTS / MENSAJES
   ========================================================= */

#toast-container,
#toast-container.toast-top-right,
#toast-container.toast-top-center {
    position: fixed !important;
    top: 24px !important;
    left: 50% !important;
    right: auto !important;

    width: 100% !important;
    max-width: 100vw !important;

    margin: 0 !important;
    padding: 0 !important;

    transform: translateX(-50%) !important;
    z-index: 99999 !important;
}

/* Toast principal */

#toast-container .toast {
    --toast-color: #1769d1;
    --toast-light: #e8f1ff;

    position: relative !important;

    width: fit-content !important;
    max-width: calc(100vw - 32px) !important;
    min-width: 0 !important;

    box-sizing: border-box !important;

    margin: 0 auto 14px auto !important;
    padding: 22px 60px 22px 88px !important;

    overflow: hidden !important;

    background: #ffffff !important;
    background-image: none !important;

    border: 2px solid var(--toast-color) !important;
    border-radius: 15px !important;

    color: #34445a !important;

    font-family: 'Open Sans', sans-serif !important;

    box-shadow:
        0 12px 30px rgba(22, 42, 72, 0.16),
        0 2px 6px rgba(22, 42, 72, 0.08) !important;
}

/* Ícono */

#toast-container .toast::before {
    position: absolute !important;
    top: 50% !important;
    left: 20px !important;

    width: 52px !important;
    height: 52px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    transform: translateY(-50%) !important;

    border-radius: 50% !important;
    background: var(--toast-light) !important;
    color: var(--toast-color) !important;

    font-family: Arial, sans-serif !important;
    font-size: 30px !important;
    font-weight: 700 !important;
    line-height: 1 !important;

    pointer-events: none !important;
}

/* Texto */

#toast-container .toast-message {
    display: block !important;

    width: max-content !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #34445a !important;

    font-family: 'Open Sans', sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;

    text-align: left !important;

    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}

/* Título */

#toast-container .toast-message::before {
    display: block !important;

    margin: 0 0 4px 0 !important;

    color: var(--toast-color) !important;

    font-family: 'Open Sans', sans-serif !important;
    font-size: 21px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

/* X de cerrar */

#toast-container .toast > .toast-close-button {
    position: absolute !important;

    top: 12px !important;
    right: 14px !important;

    float: none !important;

    width: 28px !important;
    height: 28px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    background: transparent !important;

    color: #263238 !important;
    text-shadow: none !important;

    font-family: Arial, sans-serif !important;
    font-size: 30px !important;
    font-weight: 300 !important;
    line-height: 26px !important;
    text-align: center !important;

    cursor: pointer !important;
    z-index: 2 !important;
}

#toast-container .toast > .toast-close-button:hover {
    color: var(--toast-color) !important;
}

/* =========================================================
   ESTADOS
   ========================================================= */

#toast-container .toast-error {
    --toast-color: #d92d20;
    --toast-light: #fdebea;
}

#toast-container .toast-error::before {
    content: "!" !important;
}

#toast-container .toast-error .toast-message::before {
    content: "Error" !important;
}

#toast-container .toast-success {
    --toast-color: #138a45;
    --toast-light: #e6f7ed;
}

#toast-container .toast-success::before {
    content: "✓" !important;
}

#toast-container .toast-success .toast-message::before {
    content: "Éxito" !important;
}

#toast-container .toast-info {
    --toast-color: #1769d1;
    --toast-light: #e8f1ff;
}

#toast-container .toast-info::before {
    content: "i" !important;
}

#toast-container .toast-info .toast-message::before {
    content: "Información" !important;
}

#toast-container .toast-warning {
    --toast-color: #b87500;
    --toast-light: #fff4d6;
}

#toast-container .toast-warning::before {
    content: "!" !important;
}

#toast-container .toast-warning .toast-message::before {
    content: "Atención" !important;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 600px) {
    #toast-container,
    #toast-container.toast-top-right,
    #toast-container.toast-top-center {
        top: 12px !important;
        width: 100% !important;
    }

    #toast-container .toast {
        max-width: calc(100vw - 24px) !important;
        padding: 17px 48px 17px 66px !important;
        border-radius: 12px !important;
    }

    #toast-container .toast::before {
        left: 14px !important;

        width: 40px !important;
        height: 40px !important;

        font-size: 24px !important;
    }

    #toast-container .toast-message {
        width: auto !important;
        max-width: calc(100vw - 110px) !important;

        font-size: 14px !important;
        white-space: normal !important;
    }

    #toast-container .toast-message::before {
        font-size: 18px !important;
    }

    #toast-container .toast > .toast-close-button {
        top: 9px !important;
        right: 10px !important;
    }
}
/* =========================================================
   FIX TOASTR: NO BLOQUEAR CLICS DE LA PÁGINA
   ========================================================= */

#toast-container {
    pointer-events: none !important;
    background: transparent !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

/* El mensaje continúa funcionando y permite cerrar con la X */
#toast-container > .toast,
#toast-container > div {
    pointer-events: auto !important;
    position: relative !important;
}

/* Evita que pseudo-elementos bloqueen los elementos de la página */
#toast-container::before,
#toast-container::after {
    pointer-events: none !important;
    display: none !important;
}

#toast-container > .toast::before,
#toast-container > .toast::after,
#toast-container > div::before,
#toast-container > div::after {
    pointer-events: none !important;
}