/**
 * XingCMS Toast提示样式 - 最高优先级
 * 此文件必须在所有模板CSS之后加载
 */

/* 使用多级选择器确保最高优先级 */
.front-toast,
body > .front-toast,
body div.front-toast,
div.front-toast[class*="front-toast"],
[class*="front-toast"].front-toast {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0.8) !important;
    padding: 18px 40px !important;
    border-radius: 12px !important;
    color: #fff !important;
    font-size: 16px !important;
    z-index: 999999 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    text-align: center !important;
    min-width: 200px !important;
    max-width: 80% !important;
    line-height: 1.5 !important;
    display: block !important;
    pointer-events: auto !important;
}

.front-toast.show,
body > .front-toast.show,
body div.front-toast.show,
div.front-toast.show[class*="front-toast"],
[class*="front-toast"].front-toast.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate(-50%, -50%) scale(1) !important;
}

.front-toast.toast-success,
body > .front-toast.toast-success {
    background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%) !important;
}

.front-toast.toast-error,
body > .front-toast.toast-error {
    background: linear-gradient(135deg, #ff4d4f 0%, #ff7875 100%) !important;
}

.front-toast.toast-warning,
body > .front-toast.toast-warning {
    background: linear-gradient(135deg, #faad14 0%, #ffc53d 100%) !important;
}

.front-toast.toast-info,
body > .front-toast.toast-info {
    background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%) !important;
}
