/* my-sweetalert-styles.css */


.swal2-title {
    font-size: 1.2rem !important;
    color: #333;
    margin-bottom: 0.5rem !important;
}

.swal2-content {
    font-size: 0.9rem !important;
}

/* 按钮样式 */
.swal2-actions {
    margin-top: 0.75rem !important;
}

.swal2-styled.swal2-confirm,
.swal2-styled.swal2-cancel {
    font-size: 0.9rem !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 6px !important;
}

.swal2-styled.swal2-confirm {
    background-color: #007bff !important;
    border: none;
}

.swal2-styled.swal2-cancel {
    background-color: #007bff !important;
    border: none;
}

.swal2-toast {
    /* * 注意：这个 max-width 样式和你 .swal2-small-popup 中的类似。
     * 如果你只使用 Toast，可以保留这个；如果你需要两种都用，
     * 它们不会冲突，因为 Toast 有自己的类名。
     */
    max-width: 450px;
    padding: 1rem;
    font-size: 0.9rem;
    border-radius: 25px !important;
}

/*
.swal2-icon {
    font-size: 0.8em !important;
    margin: 0.5rem auto !important;
}
*/

.swal2-html-container {
    /*
     * Toast 的内容容器类名是 .swal2-html-container，
     * 而你旧代码中的是 .swal2-content。
     * 你可以保留这两个，因为它们不冲突。
     */
    font-size: 1.1em;
    color: #666;
    line-height: 1.6;
}

/* Compact layout for error popups only */
.aiinked-swal-error-compact {
    width: min(360px, calc(100vw - 24px)) !important;
    padding: 0.85rem 0.95rem 0.9rem !important;
}

.aiinked-swal-error-compact .swal2-icon.swal2-error {
    width: 38px !important;
    height: 38px !important;
    font-size: 7.6px !important; /* 38 / 5 */
    margin: 0.35rem auto 0.25rem !important;
}


.aiinked-swal-error-compact .swal2-title {
    font-size: 1.05rem !important;
    margin-bottom: 0.35rem !important;
    line-height: 1.3 !important;
}

.aiinked-swal-error-compact .swal2-content,
.aiinked-swal-error-compact .swal2-html-container {
    font-size: 0.86rem !important;
    line-height: 1.4 !important;
    margin: 0.3rem 0 0 !important;
}

.aiinked-swal-error-compact .swal2-actions {
    margin-top: 0.55rem !important;
    gap: 0.4rem !important;
}

.aiinked-swal-error-compact .swal2-styled.swal2-confirm,
.aiinked-swal-error-compact .swal2-styled.swal2-cancel {
    font-size: 0.84rem !important;
    padding: 0.48rem 0.95rem !important;
}

/* Isolated video-failure modal: avoid Astra/theme style pollution */
body .swal2-container .swal2-popup.aiinked-video-failure-popup {
    width: min(420px, calc(100vw - 24px)) !important;
    max-width: 420px !important;
    padding: 26px 24px 20px !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    box-sizing: border-box !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

body .swal2-container .swal2-popup.aiinked-video-failure-popup .swal2-icon,
body .swal2-container .swal2-popup.aiinked-video-failure-popup .swal2-title,
body .swal2-container .swal2-popup.aiinked-video-failure-popup .swal2-close {
    display: none !important;
}

body .swal2-container .swal2-popup.aiinked-video-failure-popup .swal2-html-container.aiinked-video-failure-html {
    margin: 0 !important;
    padding: 0 !important;
    color: #333333 !important;
    overflow: visible !important;
}

body .swal2-container .swal2-popup.aiinked-video-failure-popup .aiinked-video-failure-modal {
    text-align: center !important;
}

body .swal2-container .swal2-popup.aiinked-video-failure-popup .aiinked-video-failure-modal__icon {
    width: 60px !important;
    height: 60px !important;
    margin: 0 auto 16px auto !important;
    color: #ff6b6b !important;
    display: block !important;
}

body .swal2-container .swal2-popup.aiinked-video-failure-popup .aiinked-video-failure-modal__title {
    margin: 0 0 16px 0 !important;
    font-size: 20px !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
    color: #333333 !important;
}

body .swal2-container .swal2-popup.aiinked-video-failure-popup .aiinked-video-failure-modal__desc {
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    color: #666666 !important;
    white-space: normal !important;
    word-break: break-word !important;
}

body .swal2-container .swal2-popup.aiinked-video-failure-popup .swal2-actions.aiinked-video-failure-actions {
    margin: 22px 0 0 0 !important;
    padding: 0 !important;
}

body .swal2-container .swal2-popup.aiinked-video-failure-popup .swal2-confirm.aiinked-video-failure-confirm {
    margin: 0 !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: #007aff !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    padding: 12px 36px !important;
    cursor: pointer !important;
    appearance: none !important;
    box-shadow: none !important;
}

body .swal2-container .swal2-popup.aiinked-video-failure-popup .swal2-confirm.aiinked-video-failure-confirm:hover {
    background: #005bb5 !important;
}
