.regent-toasts {
    top: 14px;
    right: 14px;
    width: min(390px, calc(100vw - 28px));
    padding: 0;
    gap: 10px;
}

.regent-toast {
    width: 100%;
    min-height: 88px;
    margin: 0;
    border: 1px solid transparent;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 55px rgba(15, 23, 42, .16);
    color: #253047;
    animation: regent-notification-in .28s cubic-bezier(.22, 1, .36, 1);
    transition: opacity .2s ease, transform .2s ease;
}

.regent-toast-success {
    border-color: #b9e7cc;
    background: linear-gradient(135deg, #f3fcf7 0%, #edfaf3 100%);
    --toast-accent: #12824b;
    --toast-icon-bg: #dff5e8;
}

.regent-toast-error,
.regent-toast-warning {
    border-color: #f4c1c5;
    background: linear-gradient(135deg, #fff6f6 0%, #fff0f1 100%);
    --toast-accent: #d92d3a;
    --toast-icon-bg: #ffe0e3;
}

.regent-toast-info {
    border-color: #bfd7fa;
    background: linear-gradient(135deg, #f5f9ff 0%, #edf5ff 100%);
    --toast-accent: #2467d6;
    --toast-icon-bg: #deebff;
}

.regent-toast-content {
    align-items: center;
    gap: 14px;
    min-height: 88px;
    padding: 16px 48px 17px 16px;
    color: #253047;
}

.regent-toast-auto-close .regent-toast-content {
    padding-bottom: 22px;
}

.regent-toast-icon {
    width: 38px;
    height: 38px;
    margin: 0;
    border: 0;
    background-color: var(--toast-icon-bg);
    background-size: 17px 17px;
    color: var(--toast-accent);
}

.regent-toast-success-icon,
.regent-toast-error-icon,
.regent-toast-warning-icon,
.regent-toast-info-icon {
    filter: none;
}

.regent-toast-success-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312824b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E");
}

.regent-toast-error-icon,
.regent-toast-warning-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d92d3a' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 7v6'/%3E%3Cpath d='M12 17h.01'/%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3C/svg%3E");
}

.regent-toast-info-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232467d6' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 11v6'/%3E%3Cpath d='M12 7h.01'/%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3C/svg%3E");
}

.regent-toast-context {
    min-width: 0;
    min-height: 42px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.regent-toast-title {
    margin: 0 0 3px;
    color: var(--toast-accent);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
}

.regent-toast-text {
    margin: 0;
    color: #596579;
    font-size: 12px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.regent-toast-close {
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .72);
    color: var(--toast-accent);
}

.regent-toast-close::before {
    content: "×";
    display: grid;
    height: 100%;
    place-items: center;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
}

.regent-toast-close-icon {
    background-image: none;
}

.regent-toast-progress {
    height: 4px;
    border-radius: 0 999px 999px 0;
    background: var(--toast-accent);
    opacity: .88;
}

.regent-toast.close-animation {
    right: auto;
    opacity: 0;
    transform: translateX(18px) scale(.98);
}

@keyframes regent-notification-in {
    from { opacity: 0; transform: translateY(-10px) scale(.98); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 575.98px) {
    .regent-toasts {
        top: 10px;
        right: 10px;
        width: calc(100vw - 20px);
    }

    .regent-toast-content {
        padding: 16px 44px 18px 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .regent-toast { animation: none; transition-duration: .01ms; }
}
