.colored-toast {
    width: min(23rem, calc(100vw - 2rem)) !important;
    padding: 0.9rem 1rem !important;
    border: 1px solid rgba(18, 55, 47, 0.10) !important;
    border-radius: 1rem !important;
    background: rgba(255, 255, 255, 0.97) !important;
    color: #12372f !important;
    box-shadow: 0 18px 50px rgba(4, 28, 22, 0.22) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden !important;
}

.colored-toast .colored-toast-title {
    margin: 0 0 0 0.7rem !important;
    padding: 0 !important;
    color: #173f35 !important;
    font-family: "Space Grotesk", sans-serif !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    text-align: left !important;
}

.colored-toast .colored-toast-icon {
    width: 2.35rem !important;
    min-width: 2.35rem !important;
    height: 2.35rem !important;
    margin: 0 !important;
    border-width: 2px !important;
    font-size: 0.5rem !important;
}

.colored-toast.swal2-icon-error {
    border-left: 4px solid #e05265 !important;
}

.colored-toast.swal2-icon-error .colored-toast-icon {
    border-color: rgba(224, 82, 101, 0.32) !important;
    background: #fff0f2 !important;
    color: #d94258 !important;
}

.colored-toast.swal2-icon-error .swal2-x-mark-line-left,
.colored-toast.swal2-icon-error .swal2-x-mark-line-right {
    top: 1.02rem !important;
    left: 0.55rem !important;
    width: 1.25rem !important;
    height: 2px !important;
    border-radius: 999px !important;
    background-color: #d94258 !important;
}

.colored-toast.swal2-icon-error .swal2-x-mark-line-left {
    transform: rotate(45deg) !important;
}

.colored-toast.swal2-icon-error .swal2-x-mark-line-right {
    transform: rotate(-45deg) !important;
}

.colored-toast.swal2-icon-error .swal2-x-mark {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
}

.colored-toast .swal2-icon-content {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.35rem !important;
    line-height: 1 !important;
}

.colored-toast.swal2-icon-warning {
    border-left: 4px solid #e8a23b !important;
}

.colored-toast.swal2-icon-warning .colored-toast-icon {
    border-color: rgba(232, 162, 59, 0.38) !important;
    background: #fff8e9 !important;
    color: #c47c12 !important;
}

.colored-toast.swal2-icon-success {
    border-left: 4px solid #2e9b72 !important;
}

.colored-toast.swal2-icon-success .colored-toast-icon {
    border-color: rgba(46, 155, 114, 0.32) !important;
    background: #eaf8f2 !important;
    color: #28785f !important;
}

.colored-toast.swal2-icon-info,
.colored-toast.swal2-icon-question {
    border-left: 4px solid #3c8ca5 !important;
}

.colored-toast.swal2-icon-info .colored-toast-icon,
.colored-toast.swal2-icon-question .colored-toast-icon {
    border-color: rgba(60, 140, 165, 0.32) !important;
    background: #edf8fb !important;
    color: #337f96 !important;
}

.colored-toast .colored-toast-progress {
    height: 3px !important;
    background: rgba(40, 120, 95, 0.34) !important;
}

.colored-toast.swal2-icon-error .colored-toast-progress {
    background: rgba(224, 82, 101, 0.45) !important;
}

.colored-toast.swal2-icon-warning .colored-toast-progress {
    background: rgba(232, 162, 59, 0.48) !important;
}

.toast-enter {
    animation: toast-slide-in 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.toast-exit {
    animation: toast-slide-out 0.22s ease-in forwards;
}

@keyframes toast-slide-in {
    from {
        opacity: 0;
        transform: translate3d(1rem, -0.5rem, 0) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes toast-slide-out {
    to {
        opacity: 0;
        transform: translate3d(1rem, -0.35rem, 0) scale(0.97);
    }
}

@media (max-width: 480px) {
    div:where(.swal2-container).swal2-top-end {
        padding: 0.75rem !important;
    }

    .colored-toast {
        width: 100% !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .toast-enter,
    .toast-exit {
        animation-duration: 0.01ms !important;
    }
}
