/* 管理端 SweetAlert 统一视觉：保留插件行为，仅覆盖展示与交互状态。 */
.sweet-overlay {
    background-color: rgba(16, 24, 40, .46);
}

.sweet-alert {
    width: 500px;
    margin-left: -250px;
    padding: 34px 36px 30px;
    border: 1px solid #e5e9ee;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(16, 24, 40, .18);
    box-sizing: border-box;
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

.sweet-alert h2 {
    margin: 22px 0 10px;
    color: #25313c;
    font-size: 24px;
    font-weight: 600;
    line-height: 34px;
}

.sweet-alert p {
    color: #7a8493;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
}

.sweet-alert .sa-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border: 0;
    box-sizing: border-box;
}

.sweet-alert .sa-icon.sa-warning {
    background: #fff7e8;
}

.sweet-alert .sa-icon.sa-warning .sa-body,
.sweet-alert .sa-icon.sa-warning .sa-dot {
    background-color: #f5a623;
}

.sweet-alert .sa-icon.sa-error {
    background: #fff1f0;
}

.sweet-alert .sa-icon.sa-error .sa-line {
    background-color: #ed5565;
}

.sweet-alert .sa-icon.sa-info {
    background: #eef6ff;
}

.sweet-alert .sa-icon.sa-info::before,
.sweet-alert .sa-icon.sa-info::after {
    background-color: #5b9bd5;
}

.sweet-alert .sa-icon.sa-success {
    background: #eaf8f4;
    overflow: hidden;
}

.sweet-alert .sa-icon.sa-success::before,
.sweet-alert .sa-icon.sa-success::after,
.sweet-alert .sa-icon.sa-success .sa-fix,
.sweet-alert .sa-icon.sa-success .sa-placeholder {
    display: none !important;
}

.sweet-alert .sa-icon.sa-success .sa-line {
    background-color: #1ab394;
}

.sweet-alert button {
    min-width: 160px;
    height: 44px;
    margin: 26px 5px 0;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 10px;
    background-color: #1ab394 !important;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 42px;
    box-shadow: none !important;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.sweet-alert button:hover {
    background-color: #159a80 !important;
}

.sweet-alert button:active {
    background-color: #12806c !important;
}

.sweet-alert button:focus {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(26, 179, 148, .2) !important;
}

.sweet-alert button.cancel {
    border-color: #d6dee8;
    background-color: #fff !important;
    color: #344054;
}

.sweet-alert button.cancel:hover {
    border-color: #aebdcb;
    background-color: #f8fafc !important;
}

.sweet-alert button.cancel:active {
    background-color: #f1f4f7 !important;
}

.sweet-alert button.cancel:focus {
    border-color: #aebdcb;
    box-shadow: 0 0 0 3px rgba(52, 64, 84, .12) !important;
}

.sweet-alert.show-input input {
    height: 40px;
    margin-top: 18px;
    border-color: #d6dee8;
    border-radius: 6px;
    color: #344054;
    font-size: 14px;
    box-shadow: 0 1px 2px rgba(31, 45, 61, .06);
}

.sweet-alert.show-input input:focus {
    border-color: #1ab394;
    box-shadow: 0 0 0 3px rgba(26, 179, 148, .14);
}

@media all and (max-width: 540px) {
    .sweet-alert {
        width: auto;
        margin-right: 0;
        margin-left: 0;
        padding: 28px 22px 24px;
    }

    .sweet-alert h2 {
        font-size: 22px;
        line-height: 32px;
    }

    .sweet-alert[data-has-cancel-button=true] button {
        width: calc(50% - 8px);
        min-width: 0;
        margin-right: 2px;
        margin-left: 2px;
        padding-right: 12px;
        padding-left: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sweet-alert,
    .sweet-alert .sa-icon,
    .sweet-alert .sa-icon * {
        animation: none !important;
        transition: none !important;
    }
}
