/** Toast **/
html,
.toaster {
    bottom: -70%;
    right: -45%;
    margin: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    max-width: 100%;
    max-height: 50vh;
    @media screen and (min-width: 768px) {
        max-width: 50%;
        max-height: unset;
    }
}

.notification {
    position: absolute;
    color: #ffffff;
    background-color: var(--bgOscuro);
    background-image: linear-gradient(125deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0) 50%);
    width: 100%;
    max-width: 100%;
    padding: 1rem;
    border-left: 0.25rem solid #ffffff;
    display: grid;
    grid-template-columns: 2rem 1fr;
    gap: 1rem;
}

.notification__headline {
    font-weight: bold;
    font-size: 1.4rem;
    text-align: left;
}

.notification__text {
    font-size: 1rem;
    text-align: left;
}

.notification__close {
    outline: 0;
    position: absolute;
    right: 0;
    top: 0;
    background: none;
    border: 0;
    color: #ffffff;
    padding: 0.75rem;
    cursor: pointer;
}

.notification__icon {
    display: flex; /* Activar flexbox */
    justify-content: center; /* Centrar horizontalmente */
    align-items: center; /* Centrar verticalmente */
    height: 100%;
}

.notification.--info {
    background-image: linear-gradient(125deg, rgba(0, 153, 204, 0.25), rgba(0, 153, 204, 0) 50%);
    border-color: #0099cc;
}

.notification.--success {
    background-image: linear-gradient(125deg, rgba(0, 126, 51, 0.25), rgba(0, 126, 51, 0) 50%);
    border-color: #007e33;
}

.notification.--error {
    background-image: linear-gradient(125deg, rgba(204, 0, 0, 0.25), rgba(204, 0, 0, 0) 50%);
    border-color: #cc0000;
}

.notification.--warning {
    background-image: linear-gradient(125deg, rgba(255, 136, 0, 0.25), rgba(255, 136, 0, 0) 50%);
    border-color: #ff8800;
}

@keyframes notification {
    0% {
        transform: translateY(calc(var(--offset) * 10px)) translateX(calc(var(--offset) * 10px)) translateY(100%);
        opacity: 0;
    }
    10%,
    90% {
        transform: translateY(calc(var(--offset) * 10px)) translateX(calc(var(--offset) * 10px));
        opacity: 1;
    }
    100% {
        transform: translateY(calc(var(--offset) * 10px)) translateX(calc(var(--offset) * 10px)) translateY(100%);
        opacity: 0;
    }
}
