/* LUMIÈRE Bump & Upsell — 结账 bump + 商品页 upsell（品牌一致，移动端适配） */

/* ── 商品页 upsell 区块（摘要列内，与 Add-Ons 同区） ── */
.lumiere-bu-upsells {
    margin-top: 2em;
    padding-top: 1.4em;
    border-top: 1px solid var(--lumiere-border, #e9e4dd);
}
.lumiere-bu-upsells-title {
    margin: 0 0 0.9em;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ast-global-color-2, #111);
}
/* 水平并排，超出宽度横向滑动（scroll-snap 吸附） */
.lumiere-bu-upsells-grid {
    display: flex;
    gap: 0.9em;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox 隐藏滚动条 */
    padding-bottom: 4px;
}
.lumiere-bu-upsells-grid::-webkit-scrollbar {
    display: none;
}
.lumiere-bu-upsell-card {
    flex: 0 0 150px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.lumiere-bu-upsell-thumb {
    display: block;
    overflow: hidden;
    border: 1px solid var(--lumiere-border, #e9e4dd);
}
.lumiere-bu-upsell-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
.lumiere-bu-upsell-info {
    display: flex;
    flex-direction: column;
    gap: 0.2em;
    align-items: flex-start;
    min-width: 0;
}
.lumiere-bu-upsell-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ast-global-color-2, #111);
    text-decoration: none;
    line-height: 1.3;
    margin-top: 0.5em;
}
.lumiere-bu-upsell-name:hover {
    color: var(--lumiere-rose, #c9a087);
}
.lumiere-bu-upsell-price {
    font-size: 0.78rem;
    font-weight: 500;
}
.lumiere-bu-upsell-price s {
    color: #999;
    font-weight: 400;
    margin-right: 0.4em;
}
.lumiere-bu-upsell-add {
    margin-top: 0.3em;
    padding: 0.45em 0.9em !important;
    font-size: 0.75rem !important;
}

/* ── 结账 bump 卡片 ── */
.lumiere-bu-bump {
    margin: 0 0 1.2em;
}
.lumiere-bu-bump-box {
    display: flex;
    align-items: center;
    gap: 1em;
    padding: 1em 1.2em;
    border: 1px solid var(--lumiere-border, #e9e4dd);
    border-left: 3px solid var(--lumiere-rose, #c9a087);
    background: var(--lumiere-sand, #faf8f5);
    cursor: pointer;
}
.lumiere-bu-bump-box input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--lumiere-rose, #c9a087);
}
.lumiere-bu-bump-media {
    flex: 0 0 64px;
    overflow: hidden;
    border: 1px solid var(--lumiere-border, #e9e4dd);
}
.lumiere-bu-bump-media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
.lumiere-bu-bump-body {
    display: flex;
    flex-direction: column;
    gap: 0.25em;
}
.lumiere-bu-bump-title {
    font-size: 0.95rem;
    font-weight: 600;
}
.lumiere-bu-bump-desc {
    font-size: 0.85rem;
    color: var(--ast-global-color-3, #3d3d3d);
}
.lumiere-bu-bump-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--lumiere-rose-dark, #b0896b);
}
.lumiere-bu-bump-price s {
    color: #999;
    font-weight: 400;
    margin-right: 0.4em;
}

/* ── upsell 变量商品属性选择弹层 ── */
.lumiere-bu-picker {
    position: fixed;
    inset: 0;
    z-index: 9996;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1em;
}
.lumiere-bu-picker-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, 0.5);
}
.lumiere-bu-picker-box {
    position: relative;
    width: min(360px, 92vw);
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    padding: 1.6em 1.6em 1.4em;
}
.lumiere-bu-picker-title {
    margin: 0 0 1em;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}
.lumiere-bu-picker-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    width: auto !important;
    font-size: 1.4rem !important;
    line-height: 1 !important;
    color: #666 !important;
    cursor: pointer;
}
.lumiere-bu-picker-field {
    display: block;
    margin-bottom: 0.8em;
}
.lumiere-bu-picker-field > span {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.3em;
}
.lumiere-bu-picker-field select {
    width: 100%;
    padding: 0.5em 0.6em;
    border: 1px solid var(--lumiere-border, #dcdcde);
    border-radius: 0;
    background: #fff;
    font-size: 0.9rem;
}
.lumiere-bu-picker-actions {
    display: flex;
    gap: 0.6em;
    justify-content: flex-end;
    margin-top: 0.4em;
}
/* 弹窗按钮：小尺寸，与主题小按钮一致 */
.lumiere-bu-picker-actions .button {
    padding: 0.4em 1.1em !important;
    font-size: 0.75rem !important;
    line-height: 1.4 !important;
    min-height: 0 !important;
}
/* 移动端：触控目标稍大 */
@media (max-width: 544px) {
    .lumiere-bu-picker-actions .button {
        padding: 0.55em 1.5em !important;
        font-size: 0.85rem !important;
    }
}

/* ── 移动端 ── */
@media (max-width: 544px) {
    .lumiere-bu-bump-box {
        padding: 0.8em;
        gap: 0.7em;
    }
    .lumiere-bu-bump-media {
        flex-basis: 52px;
    }
}
