/* customModal.css — 统一弹窗组件
 * 替代 shopcart.css / billinginfo.css 中重复的 #confirmModal / .modal-* 定义。
 * 使用 customModal- 前缀，避免与 Bootstrap 的 .modal-* 同名冲突（全局引入时不污染 Bootstrap 弹窗）。
 * 宽度两档：默认 514px（短内容）；容器加 .customModal--wide 时 700px（CA Notice 等长文）。
 */

.customModal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: customModalFadeIn 0.25s ease;
}

.customModal-content {
    position: relative;
    background-color: #fff;
    margin: 15% auto;
    padding: 25px 25px 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 514px; /* 默认窄屏：Remove from cart / Remove Premium Support / emailVerification */
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
}

/* 宽屏修饰：CA Notice / caQuoteConfirmModal 等长文弹窗 */
.customModal--wide .customModal-content {
    max-width: 700px;
}

.customModal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
    z-index: 1;
}
.customModal-close::before,
.customModal-close::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 2px;
    background-color: currentColor;
}
.customModal-close::before {
    transform: rotate(45deg);
}
.customModal-close::after {
    transform: rotate(-45deg);
}
.customModal-close:hover {
    background-color: #f0f0f0;
    color: #333;
    transform: rotate(90deg);
}

.customModal-title {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    padding-right: 30px;
}

.customModal-body {
    color: #333;
    line-height: 1.5;
    margin-bottom: 5px;
    padding: 0;
    font-size: 14px;
}

.customModal-body-footer {
    margin-top: 10px;
}

.customModal-footer {
    text-align: right;
    margin-top: 25px;
}

.customModal-cancel {
    padding: 8px 22px;
    margin-right: 12px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-decoration: none; /* 兼容 billinfo 中 <a class="btn-cancel"> 链接形态（Learn More） */
    display: inline-block;
}
.customModal-cancel:hover {
    background: #e8e8e8;
    border-color: #ccc;
}

.customModal-confirm {
    padding: 8px 22px;
    background: #005bac;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}
.customModal-confirm:hover {
    background: #64bffd;
}

@keyframes customModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
