.toast-title {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: inherit;
    margin: 0;
    line-height: 1.45;
}

.toast-message {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    -ms-word-wrap: break-word;
    word-wrap: break-word;
    font-size: 14px;
    font-weight: 500;
    color: inherit;
    line-height: 1.45;
}
    .toast-message > div {
        max-height: calc(100vh - 80px);
        overflow: auto;
    }
    .toast-message a,
    .toast-message label {
        color: inherit;
    }

        .toast-message a:hover {
            color: inherit;
            text-decoration: none;
        }

.toast-close-button {
    position: relative;
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
    justify-self: start;
    float: none;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    color: #9CA3AF;
    -webkit-text-shadow: none;
    text-shadow: none;
    opacity: 1;
    background: transparent;
    border: none;
    padding: 0;
    margin-top: 1px;
    cursor: pointer;
}

    .toast-close-button:focus,
    .toast-close-button:hover {
        color: #6B7280;
        text-decoration: none;
        cursor: pointer;
        opacity: 1;
    }

button.toast-close-button {
    padding: 0;
    cursor: pointer;
    background: transparent;
    border: 0;
    -webkit-appearance: none;
    appearance: none;
}

.toast-top-center {
    top: 0;
    right: 0;
    width: 100%;
}

.toast-bottom-center {
    bottom: 0;
    right: 0;
    width: 100%;
}

.toast-top-full-width {
    top: 0;
    right: 0;
    width: 100%;
}

.toast-bottom-full-width {
    bottom: 0;
    right: 0;
    width: 100%;
}

.toast-top-left {
    top: 12px;
    left: 12px;
}

.toast-top-right {
    top: 12px;
    right: 12px;
}

.toast-bottom-right {
    right: 12px;
    bottom: 12px;
}

.toast-bottom-left {
    bottom: 12px;
    left: 12px;
}

#toast-container {
    position: fixed;
    z-index: 999999;
}

    #toast-container * {
        box-sizing: border-box;
    }

    #toast-container > div {
        position: relative;
        overflow: hidden;
        display: grid;
        grid-template-columns: 16px 18px minmax(0, 1fr);
        column-gap: 14px;
        align-items: center;
        margin: 0 0 12px;
        padding: 18px 20px;
        min-height: 60px;
        width: 356px;
        border-radius: 12px;
        border: none;
        background-image: none !important;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
        color: #0f172a;
        opacity: 1;
        font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
        transition: box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
        will-change: transform, opacity;
    }

        #toast-container > div::before {
            content: "";
            grid-column: 2;
            grid-row: 1 / span 2;
            width: 18px;
            height: 18px;
            background-position: center;
            background-repeat: no-repeat;
            background-size: 18px 18px;
            align-self: center;
        }

    #toast-container > :hover {
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
        transform: translateY(-1px);
        opacity: 1;
        cursor: pointer;
    }

    #toast-container > div > .toast-title,
    #toast-container > div > .toast-message {
        grid-column: 3;
    }

        #toast-container > div > .toast-title:empty,
        #toast-container > div > .toast-message:empty {
            display: none;
        }

        #toast-container > div > .toast-title + .toast-message {
            margin-top: 2px;
        }

    #toast-container > .toast-success {
        background-color: #f0fdf4;
        color: #16a34a;
    }

    #toast-container > .toast-error {
        background-color: #FEF2F2;
        color: #EF4444;
    }

    #toast-container > .toast-warning {
        background-color: #fff7ed;
        color: #ea580c;
    }

    #toast-container > .toast-info {
        background-color: #F1F5F9;
        color: #2563EB;
    }

    #toast-container > .toast-success::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9' fill='%2322C55E'/%3E%3Cpath d='M5.25 9.2l2.2 2.2 5.15-5.4' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    }

    #toast-container > .toast-error::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9' fill='%23EF4444'/%3E%3Cpath d='M9 5.1v4.5' stroke='white' stroke-width='1.8' stroke-linecap='round'/%3E%3Ccircle cx='9' cy='12.9' r='1' fill='white'/%3E%3C/svg%3E");
    }

    #toast-container > .toast-warning::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9' fill='%23F59E0B'/%3E%3Cpath d='M9 5.1v4.5' stroke='white' stroke-width='1.8' stroke-linecap='round'/%3E%3Ccircle cx='9' cy='12.9' r='1' fill='white'/%3E%3C/svg%3E");
    }

    #toast-container > .toast-info::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9' fill='%232563EB'/%3E%3Ccircle cx='9' cy='5.15' r='1.1' fill='white'/%3E%3Cpath d='M9 7.5v5.1' stroke='white' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
    }

    #toast-container.toast-bottom-center > div,
    #toast-container.toast-top-center > div {
        width: 356px;
        margin: auto;
    }

    #toast-container.toast-bottom-full-width > div,
    #toast-container.toast-top-full-width > div {
        width: 96%;
        margin: auto;
    }

.toast {
    background-color: transparent;
}

.toast-success {
    background-color: #f0fdf4;
}

.toast-error {
    background-color: #FEF2F2;
}

.toast-info {
    background-color: #F1F5F9;
}

.toast-warning {
    background-color: #fff7ed;
}

.toast-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    right: 0;
    background-color: rgba(15, 23, 42, 0.08);
    opacity: 1;
}

@media all and (max-width: 240px) {
    #toast-container > div {
        grid-template-columns: 14px 16px minmax(0, 1fr);
        column-gap: 10px;
        padding: 14px 16px;
        width: 11em;
    }

    #toast-container .toast-close-button {
        font-size: 16px;
    }
}

@media all and (min-width: 241px) and (max-width: 480px) {
    #toast-container > div {
        grid-template-columns: 14px 16px minmax(0, 1fr);
        column-gap: 12px;
        padding: 16px 16px;
        width: min(calc(100vw - 24px), 356px);
    }

    #toast-container .toast-close-button {
        font-size: 16px;
    }
}

@media all and (min-width: 481px) and (max-width: 768px) {
    #toast-container > div {
        width: min(calc(100vw - 24px), 356px);
    }
}
