.mt-toast-wrap {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 999999;
    width: min(390px, calc(100% - 32px));
    pointer-events: none;
}

.mt-toast {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #ffffff;
    border-radius: 20px;
    padding: 18px 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
    border: 1px solid rgba(0, 129, 148, 0.12);
    transform: translateY(24px);
    opacity: 0;
    transition: all 0.32s ease;
    pointer-events: auto;
    overflow: hidden;
    position: relative;
}

.mt-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.mt-toast::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 6px;
    height: 100%;
    background: #008194;
}

.mt-toast.mt-toast-error::before {
    background: #FF6853;
}

.mt-toast-icon {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    background: rgba(0, 129, 148, 0.11);
    color: #008194;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex: 0 0 auto;
}

.mt-toast-error .mt-toast-icon {
    background: rgba(255, 104, 83, 0.12);
    color: #FF6853;
}

.mt-toast-content {
    flex: 1;
    min-width: 0;
}

.mt-toast-title {
    font-size: 15px;
    font-weight: 900;
    color: #111827;
    margin-bottom: 4px;
}

.mt-toast-message {
    font-size: 14px;
    line-height: 1.55;
    color: #6B7280;
}

.mt-toast-close {
    border: 0;
    background: transparent;
    color: #6B7280;
    font-size: 22px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.mt-toast-close:hover {
    color: #111827;
}

.mt-toast-progress {
    position: absolute;
    left: 6px;
    bottom: 0;
    height: 4px;
    width: calc(100% - 6px);
    background: linear-gradient(90deg, #008194, #FF6853);
    animation: mtToastProgress 5s linear forwards;
}

@keyframes mtToastProgress {
    from {
        width: calc(100% - 6px);
    }

    to {
        width: 0;
    }
}

@media (max-width: 575px) {
    .mt-toast-wrap {
        left: 16px;
        right: 16px;
        bottom: 16px;
        width: auto;
    }

    .mt-toast {
        border-radius: 18px;
        padding: 16px;
    }
}
