/**
 * 1688buyer Unified Toast Notification System - CMS
 * Position: Top-Right
 * Style: 1688 / Alibaba Design (Clean, Minimalist, Elevated, Matching Website Tokens)
 */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 360px;
    max-width: calc(100vw - 32px);
    pointer-events: none;
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.toast-item {
    pointer-events: auto;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px 13px;
    background-color: #ffffff !important;
    background: #ffffff !important;
    border-radius: 8px;
    box-shadow: 0 6px 18px 0 rgba(0, 0, 0, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
    border: 1px solid #eef0f3;
    overflow: hidden;
    box-sizing: border-box;
    cursor: default;
    user-select: none;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.28s cubic-bezier(0.215, 0.61, 0.355, 1),
                opacity 0.25s ease,
                max-height 0.25s ease,
                margin 0.25s ease,
                padding 0.25s ease;
    max-height: 200px;
    z-index: 1000000;
}

.toast-item.toast-visible {
    transform: translateX(0);
    opacity: 1 !important;
}

.toast-item.toast-hiding {
    transform: translateX(120%);
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    margin-bottom: -10px;
    padding-top: 0;
    padding-bottom: 0;
    border-color: transparent;
    box-shadow: none;
}

/* Icon Wrap - 20px clean badge */
.toast-icon-wrap {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.toast-icon-wrap svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* Content Area */
.toast-content {
    flex: 1;
    min-width: 0;
    padding-right: 12px;
}

.toast-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 2px 0;
    color: #111111;
}

.toast-message {
    font-size: 13px;
    line-height: 1.45;
    color: #555555;
    margin: 0;
    word-break: break-word;
}

/* Close Button */
.toast-close-btn {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: none;
    background: transparent;
    color: #b0b0b0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    margin-top: 0px;
    margin-right: -2px;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.toast-close-btn:hover {
    color: #333333;
    background-color: #f5f5f5;
}

.toast-close-btn svg {
    width: 12px;
    height: 12px;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .toast-container {
        top: 12px;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: 100%;
    }
    .toast-item {
        padding: 10px 12px 11px;
    }
}
