/* 名称：toast.css */
/* 功能：全局提示（Toast）样式 */
/* 版权：qiekn.cn 启肯网络 */

.global-toast {
    position: fixed;
    z-index: 2147483647;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 9px;
    width: max-content;
    min-height: 62px;
    box-sizing: border-box;
    max-width: min(300px, calc(100vw - 32px));
    padding: 19px 20px;
    border-radius: 12px;
    color: #fff;
    font: 16px/1.5 "Microsoft YaHei", sans-serif;
    box-shadow: 0 18px 42px color-mix(in srgb, var(--theme) 32%, transparent);
    opacity: 0;
    transform: translate(-50%, -58%) scale(.96);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease
}

.global-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1)
}

.global-toast.success {
    background: linear-gradient(135deg, var(--theme-dark), var(--theme))
}

.global-toast.error {
    background: linear-gradient(135deg, #b94e4e, #d76a6a);
    box-shadow: 0 18px 42px rgba(185, 78, 78, .28)
}

.global-toast-icon {
    width: 18px;
    height: 18px;
    flex: none;
    display: grid;
    place-items: center;
    border: 1.5px solid rgba(255, 255, 255, .78);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    line-height: 1
}

.global-toast-text {
    flex: 0 1 auto;
    min-width: 6em;
    max-width: 14em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 400
}

.global-toast.is-wide .global-toast-text {
    max-width: min(520px, calc(100vw - 90px));
    overflow: visible;
    white-space: normal;
    word-break: break-word
}