
/* =========================================
   Base Toast
========================================= */

.custom-toast {
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.toast-content {
    position: relative;

    display: flex;
    align-items: center;

    width: 100%;
    min-width: 340px;
    max-width: 420px;

    padding: 17px 18px;

    border-radius: 18px;

    box-sizing: border-box;

    color: #ffffff;

    border: 1px solid;

    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.28),
        0 8px 18px rgba(0, 0, 0, 0.12);
}


/* =========================================
   Icon
========================================= */

.toast-icon {
    flex: 0 0 44px;

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-right: 13px;

    border-radius: 13px;

    font-size: 21px;
    font-weight: 800;

    box-sizing: border-box;
}

.toast-icon span {
    line-height: 1;
}


/* =========================================
   Message
========================================= */

.toast-message {
    flex: 1;
    min-width: 0;

    padding-right: 28px;
}

.toast-title {
    margin-bottom: 4px;

    font-size: 14px;
    line-height: 18px;

    font-weight: 700;
    letter-spacing: 0.2px;
}

.toast-text {
    font-size: 13px;
    line-height: 19px;

    font-weight: 400;

    word-break: break-word;

    opacity: 0.86;
}


/* =========================================
   Close Button
========================================= */

.toast-close {
    position: absolute;

    top: 10px;
    right: 11px;

    width: 25px;
    height: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;
    outline: none;

    background: transparent;

    color: currentColor;

    font-size: 20px;
    line-height: 1;

    cursor: pointer;

    opacity: 0.55;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.toast-close:hover {
    opacity: 1;
    transform: scale(1.08);
}


/* =========================================
   SUCCESS
========================================= */

.toast-success {
    background:
        linear-gradient(
            135deg,
            #052e16 0%,
            #14532d 55%,
            #166534 100%
        );

    border-color: rgba(74, 222, 128, 0.28);
}

.toast-success .toast-icon {
    background: rgba(34, 197, 94, 0.18);

    border: 1px solid rgba(74, 222, 128, 0.25);

    color: #4ade80;

    box-shadow:
        inset 0 0 18px rgba(34, 197, 94, 0.08),
        0 0 18px rgba(34, 197, 94, 0.08);
}

.toast-success .toast-title {
    color: #86efac;
}

.toast-success .toast-text {
    color: #dcfce7;
}


/* =========================================
   WARNING
========================================= */

.toast-warning {
    background:
        linear-gradient(
            135deg,
            #422006 0%,
            #78350f 55%,
            #92400e 100%
        );

    border-color: rgba(251, 191, 36, 0.32);
}

.toast-warning .toast-icon {
    background: rgba(245, 158, 11, 0.18);

    border: 1px solid rgba(251, 191, 36, 0.28);

    color: #fbbf24;

    box-shadow:
        inset 0 0 18px rgba(245, 158, 11, 0.08),
        0 0 18px rgba(245, 158, 11, 0.08);
}

.toast-warning .toast-title {
    color: #fcd34d;
}

.toast-warning .toast-text {
    color: #fef3c7;
}


/* =========================================
   ERROR
========================================= */

.toast-error {
    background:
        linear-gradient(
            135deg,
            #450a0a 0%,
            #7f1d1d 55%,
            #991b1b 100%
        );

    border-color: rgba(248, 113, 113, 0.34);
}

.toast-error .toast-icon {
    background: rgba(239, 68, 68, 0.18);

    border: 1px solid rgba(248, 113, 113, 0.30);

    color: #f87171;

    box-shadow:
        inset 0 0 18px rgba(239, 68, 68, 0.08),
        0 0 18px rgba(239, 68, 68, 0.08);
}

.toast-error .toast-title {
    color: #fca5a5;
}

.toast-error .toast-text {
    color: #fee2e2;
}


/* =========================================
   Responsive
========================================= */

@media (max-width: 480px) {
    .toast-content {
        min-width: 0;
        width: calc(100vw - 30px);

        padding: 15px;
    }

    .toast-icon {
        flex-basis: 40px;

        width: 40px;
        height: 40px;

        margin-right: 11px;
    }

    .toast-title {
        font-size: 13px;
    }

    .toast-text {
        font-size: 12px;
        line-height: 18px;
    }
}
