/* ============================================================
   批量询盘弹层样式 (batch_inquiry.js 配套)
     三种通知效果(全局配置-产品-批量询盘-触发效果)共用一份基础样式:
       1) center   居中弹窗: 选规格弹窗 + "Successfully added" 成功弹窗
       2) dropdown 下拉通知: 右上角固定面板(已加入产品列表 + 查看询盘列表)
       3) flash    闪动提示: 按钮闪烁 + 按钮下方出现 "View Quote List" 文字链
   弹层 DOM 由 batch_inquiry.js 按需创建、关闭时移除, 不占页面静态结构。
   按钮本身的颜色/字号/圆角来自全局配置(列表页 listBtn* / 详情页 detailBtn*,
   由模块内联样式输出), 这里只管弹层与闪动动画。
   ============================================================ */

/* ---------- 遮罩 + 居中弹窗(选规格 / 成功提示共用) ---------- */
.batch_inquiry_mask {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 99990;
}
.batch_inquiry_modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 560px;
    max-width: calc(100vw - 32px);
    max-height: 84vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 12px;
    padding: 26px 32px 30px;
    box-sizing: border-box;
    z-index: 99991;
}
.batch_inquiry_close {
    position: absolute;
    right: 16px;
    top: 14px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}
/* 关闭按钮: 两条伪元素线画 ×, 免依赖图标文件 */
.batch_inquiry_close::before,
.batch_inquiry_close::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 13px;
    width: 20px;
    height: 2px;
    background: #1d1d1d;
}
.batch_inquiry_close::before { transform: rotate(45deg); }
.batch_inquiry_close::after { transform: rotate(-45deg); }

/* 选规格弹窗 */
.batch_inquiry_title {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1d;
    padding-right: 32px;
}
.batch_inquiry_name {
    margin-top: 16px;
    font-size: 24px;
    line-height: 1.3;
    color: #1d1d1d;
}
.batch_inquiry_sku {
    margin-top: 10px;
    font-size: 13px;
    color: #8a94a6;
}
.batch_attr_group { margin-top: 18px; }
.batch_attr_name {
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1d;
}
.batch_attr_value {
    margin-left: 8px;
    font-weight: 400;
    color: #8a94a6;
}
.batch_attr_pills {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.batch_pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border: 1px solid #bbbbbb;
    border-radius: 20px;
    font-size: 14px;
    color: #1d1d1d;
    cursor: pointer;
    user-select: none;
    background: #ffffff;
}
.batch_pill:hover { border-color: #1f2328; }
.batch_pill.active {
    border-color: #1f2328;
    box-shadow: 0 0 0 1px #1f2328;
}
/* 图片型选项: 圆形小图 + 文字(与详情页规格 pill 同一形态) */
.batch_pill .batch_pill_pic {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    margin-right: 6px;
}
.batch_submit_btn {
    margin-top: 26px;
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    background: #1d1d1d;
    color: #ffffff;
    font-size: 15px;
    cursor: pointer;
}
.batch_submit_btn:hover { opacity: 0.85; }

/* 成功弹窗(center) */
.batch_inquiry_modal.batch_inquiry_success { width: 700px; }
.batch_success_row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 26px;
}
.batch_success_title {
    font-size: 22px;
    color: #1d1d1d;
}
.batch_success_icon {
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #22ab67;
    position: relative;
}
.batch_success_icon::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 6px;
    width: 7px;
    height: 11px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.batch_success_btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 26px 0 12px;
}
.batch_success_btns a {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 26px;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
}
.batch_btn_ghost {
    border: 1px solid #1d1d1d;
    color: #1d1d1d;
    background: #ffffff;
}
.batch_btn_ghost:hover { background: #f5f5f5; }
/* View Quote List: 黑底白字加粗(设计稿批量询盘2.png)。color/background 带 !important:
   弹层挂在 .deco-module 内, 站点主题 css 里元素选择器之外的 a 颜色规则(继承/层级更高)
   会把这两个值顶掉, 实测出现"按钮不是白字", 这里钉死 */
.batch_btn_primary {
    border: 1px solid #1d1d1d;
    color: #ffffff !important;
    background: #1d1d1d !important;
    font-weight: 600;
}
.batch_btn_primary:hover { opacity: 0.85; }

/* ---------- 下拉通知(右上角面板) ---------- */
.batch_dropdown {
    position: fixed;
    top: 16px;
    right: 22px;
    width: 390px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
    padding: 24px;
    box-sizing: border-box;
    z-index: 99991;
}
.batch_dropdown_head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    color: #1d1d1d;
    padding-right: 28px;
}
.batch_dropdown_list {
    flex: 1;
    overflow-y: auto;
    margin-top: 12px;
}
.batch_dropdown_item {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
.batch_dropdown_item:last-child { border-bottom: none; }
.batch_dropdown_item .batch_item_img {
    flex: none;
    width: 64px;
    height: 64px;
    object-fit: contain;
}
.batch_dropdown_item .batch_item_info { flex: 1; min-width: 0; }
.batch_dropdown_item .batch_item_name {
    font-size: 15px;
    line-height: 1.35;
    color: #1d1d1d;
    word-break: break-word;
}
.batch_dropdown_item .batch_item_price {
    margin-top: 6px;
    font-size: 15px;
    color: #1d1d1d;
}
.batch_dropdown_item .batch_item_spec {
    margin-top: 4px;
    font-size: 13px;
    color: #8a94a6;
}
.batch_dropdown_foot { margin-top: 14px; }
.batch_dropdown_foot a {
    display: block;
    padding: 13px;
    border-radius: 10px;
    background: #1d1d1d;
    color: #ffffff;
    font-size: 15px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.batch_dropdown_foot a:hover { opacity: 0.85; }

/* ---------- 闪动提示 ---------- */
/* 按钮脉冲: 只动 box-shadow 不动背景色 —— 按钮底色来自全局配置(内联样式),
   动画期间被 keyframe 覆盖松手后跳变, 用光圈扩散表达"闪动"更稳 */
@keyframes batch_flash_pulse {
    0% { box-shadow: 0 0 0 0 rgba(240, 208, 64, 0.75); }
    100% { box-shadow: 0 0 0 12px rgba(240, 208, 64, 0); }
}
.batch_quote_btn.batch_flash { animation: batch_flash_pulse 0.8s ease-out 4; }
.batch_view_link {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: #1d1d1d;
    text-align: center;
    text-decoration: underline;
    cursor: pointer;
}

/* ---------- 移动端 ---------- */
@media screen and (max-width: 1000px) {
    .batch_inquiry_modal {
        padding: 20px 18px 24px;
    }
    .batch_inquiry_name { font-size: 18px; }
    .batch_inquiry_modal.batch_inquiry_success { width: 560px; }
    .batch_success_title { font-size: 18px; }
    .batch_success_btns { flex-wrap: wrap; }
    .batch_dropdown {
        top: 10px;
        right: 16px;
        padding: 18px;
    }
    .batch_dropdown_head { font-size: 16px; }
}
