.global-toast-container {
    position: fixed;

    top: 25px;
    right: 25px;

    z-index: 999999;

    display: flex;
    flex-direction: column;

    gap: 12px;

    width: min(400px, calc(100vw - 30px));
}


.global-toast {
    position: relative;

    display: flex;
    align-items: center;

    gap: 12px;

    min-height: 65px;

    padding: 14px 16px;

    background: #fff;

    border-radius: 12px;

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.15);

    border-left: 5px solid;

    opacity: 0;

    transform: translateX(40px);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;

    overflow: hidden;
}


.global-toast.show {
    opacity: 1;
    transform: translateX(0);
}


.global-toast.hide {
    opacity: 0;
    transform: translateX(40px);
}


.global-toast-icon {
    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-size: 17px;
}


.global-toast-message {
    flex: 1;

    font-size: 14px;
    font-weight: 500;

    line-height: 1.45;

    color: #263238;
}


.global-toast-close {
    border: 0;

    background: transparent;

    color: #777;

    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    border-radius: 50%;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.global-toast-close:hover {
    background: #f1f3f5;
    color: #222;
}


/* =========================================================
   SUCCESS
   ========================================================= */

.global-toast.toast-success {
    border-left-color: #16a34a;
}

.global-toast-success .global-toast-icon {
    background: #dcfce7;
    color: #16a34a;
}


/* =========================================================
   DANGER
   ========================================================= */

.global-toast.toast-danger {
    border-left-color: #dc2626;
}

.global-toast-danger .global-toast-icon {
    background: #fee2e2;
    color: #dc2626;
}


/* =========================================================
   WARNING
   ========================================================= */

.global-toast.toast-warning {
    border-left-color: #f59e0b;
}

.global-toast-warning .global-toast-icon {
    background: #fef3c7;
    color: #d97706;
}


/* =========================================================
   INFO
   ========================================================= */

.global-toast.toast-info {
    border-left-color: #0ea5e9;
}

.global-toast-info .global-toast-icon {
    background: #e0f2fe;
    color: #0284c7;
}


/* Progress */
.global-toast-progress {
    position: absolute;

    left: 0;
    bottom: 0;

    height: 3px;
    width: 100%;

    background: currentColor;

    opacity: 0.25;

    transform-origin: left;

    animation: globalToastProgress 4s linear forwards;
}


@keyframes globalToastProgress {

    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }

}


/* Mobile */
@media (max-width: 576px) {

    .global-toast-container {
        top: 15px;
        right: 15px;
        left: 15px;

        width: auto;
    }

    .global-toast {
        transform: translateY(-20px);
    }

    .global-toast.show {
        transform: translateY(0);
    }

    .global-toast.hide {
        transform: translateY(-20px);
    }

}