/* 成功页面样式 */
.qop-success {
    text-align: center;
    padding: 30px;
    margin: 50px auto;
    max-width: 400px;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.qop-number {
    font-size: 64px;
    font-weight: bold;
    color: #34C759;
    margin: 20px 0;
}

.qop-table, .qop-orderid {
    font-size: 16px;
    color: #666;
    margin-top: 10px;
}

.qop-btn {
    margin-top: 30px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
}

/* Modal 基础样式 */
#qop-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); 
    /* 强制提高 Z-index 至最高优先级 */
    z-index: 2147483647 !important; 
    display: flex;
    align-items: center; 
    justify-content: center; 
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    overflow: hidden; 
}
#qop-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}
#qop-modal-content {
    background-color: #fff;
    padding: 25px 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    /* 确保内容可滚动，不会被顶部或底部遮挡 */
    max-height: 90vh; 
    overflow-y: auto; 
    /* 确保内容在 Z 轴上也在最上面 */
    z-index: 2147483647 !important; 
}
#qop-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 28px;
    cursor: pointer;
    border: none;
    background: transparent;
    color: #999;
}
#qop-modal-content h3 {
    margin-top: 0;
    padding-right: 30px; 
}

/* ======== 针对 Orderable 侧边栏的强制隐藏兜底规则 (解决界面遮挡) ======== */
/* 利用 body.orderable-open 类来识别侧边栏打开状态 */
body.orderable-open .orderable-flyout-cart {
    /* 强制降低其层级和透明度，确保弹窗可见 */
    z-index: 0 !important;
    opacity: 0 !important;
    /* 强制使其移出视图或隐藏 */
    transform: translateX(100%) !important;
    visibility: hidden !important; 
    pointer-events: none !important; /* 确保它不能被点击 */
}