#toast-container {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 340px;
    width: calc(100% - 32px);
    pointer-events: none;
}

.toast-box {
    background-color: var(--toast-bg, #C3F3D7);
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    pointer-events: all;
    opacity: 0;
    transform: translateX(110%);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.toast-box.toast-show {
    opacity: 1;
    transform: translateX(0);
}

.toast-box.toast-hide {
    opacity: 0;
    transform: translateX(110%);
}

.toast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--toast-header-bg, #2FD573);
    padding: 6px 14px;
}

.toast-header p {
    margin: 0;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    font-family: system-ui, -apple-system, sans-serif;
}

.toast-close {
    background: none;
    border: none;
    outline: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #fff;
}

.toast-body {
    padding: 10px 14px;
}

.toast-body p {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--toast-text, #24AD5D);
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.45;
    word-break: break-word;
}

.toast-progress {
    height: 4px;
    background: transparent;
    position: relative;
}

.toast-progress-bar {
    position: absolute;
    inset: 0;
    background-color: var(--toast-header-bg, #2FD573);
    border-radius: 0 0 0 6px;
    animation: toast-progress-anim 5s linear forwards;
    transform-origin: left;
}

.toast-box.toast-paused .toast-progress-bar {
    animation-play-state: paused;
}

@keyframes toast-progress-anim {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}

@media (max-width: 480px) {
    #toast-container {
        top: 10px;
        right: 10px;
        max-width: calc(100% - 20px);
        width: calc(100% - 20px);
    }
}
