@charset "utf-8";

/* 产品询价清单的独立样式。 */
#quick-selection {
    /* 高于右侧客服浮层，避免清单按钮被遮挡并拦截点击。 */
    position: relative;
    z-index: 50;
    display: block;
    min-width: 0;
    margin: 0 0 28px;
    padding: 0;
    border: 1px solid #e0e0e0;
    border-top: 3px solid #222;
    border-radius: 5px;
    background: #fff;
    color: #333;
    overflow: hidden;
}
#quick-selection *, #quick-selection-status, .qs-toast { box-sizing: border-box; }
#quick-selection [hidden], .qs-toast[hidden] { display: none !important; }
#quick-selection button, .products .quick-selection-add { font-family: inherit; }
#quick-selection button { cursor: pointer; }
#quick-selection button:focus-visible, #quick-selection a:focus-visible, #quick-selection-status a:focus-visible, .products .quick-selection-add:focus-visible { outline: 2px solid #555; outline-offset: 3px; }
#quick-selection .qs-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; padding: 22px 24px; background: #f7f7f7; }
.qs-heading { display: flex; align-items: center; gap: 14px; min-width: 0; }
.qs-cart-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 46px; width: 46px; height: 46px; border: 1px solid #e0e0e0; border-radius: 50%; color: #444; background: #fff; }
.qs-cart-icon svg { width: 25px; height: 25px; }
.qs-eyebrow { display: block; margin-bottom: 5px; font-size: 10px; font-weight: 600; letter-spacing: 2px; color: #888; }
.qs-heading h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0; font-size: 21px; font-weight: 600; line-height: 1.5; }
.qs-heading-tag { padding: 2px 7px; border: 1px solid #dcdcdc; border-radius: 3px; color: #555; font-size: 11px; font-weight: 400; }
.qs-heading p { margin: 5px 0 0; color: #888; font-size: 12px; line-height: 1.7; }
.qs-header-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; margin-left: auto; }
.qs-counter { white-space: nowrap; font-size: 13px; color: #777; }
.qs-counter strong { color: #222; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.qs-counter-divider { margin: 0 6px; color: #ccc; }
.qs-text-button { padding: 6px 0; border: 0; background: transparent; color: #666; font-size: 13px; line-height: 1.5; text-decoration: none; }
.qs-text-button:hover { color: #000; }
.qs-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; padding: 10px 18px; border: 1px solid transparent; border-radius: 3px; font-size: 13px; line-height: 1.4; font-weight: 500; white-space: nowrap; transition: background .2s, border-color .2s; }
.qs-button-outline { border-color: #c9c9c9; color: #444; background: #fff; }
.qs-button-outline:hover { border-color: #888; background: #f2f2f2; }
.qs-button-primary { border-color: #2b2b2b; color: #fff; background: #2b2b2b; }
.qs-button-primary:hover { background: #000; border-color: #000; }
#quick-selection button:disabled, #quick-selection input:disabled { opacity: .45; cursor: not-allowed; }
.qs-chevron { width: 7px; height: 7px; margin: -3px 1px 0 5px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
[aria-expanded="true"] .qs-chevron { transform: translateY(3px) rotate(225deg); }
.qs-panel { border-top: 1px solid #e6e6e6; }
.qs-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 19px 24px 13px; }
.qs-list-heading h3 { font-size: 14px; font-weight: 600; }
.qs-list-heading > span { font-size: 12px; color: #999; }
.qs-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.qs-col-product { width: 39%; }
.qs-col-price { width: 15%; }
.qs-col-quantity { width: 21%; }
.qs-col-subtotal { width: 17%; }
.qs-col-remove { width: 8%; }
.qs-table th { padding: 11px 8px; border-top: 1px solid #ececec; border-bottom: 1px solid #ececec; background: #fafafa; color: #888; text-align: center; font-size: 12px; font-weight: 400; }
.qs-table th:first-child { padding-left: 24px; text-align: left; }
.qs-table td { padding: 17px 8px; border-bottom: 1px solid #ececec; vertical-align: middle; text-align: center; font-size: 13px; }
.qs-table td:first-child { padding-left: 24px; text-align: left; }
.qs-product { display: flex; align-items: center; gap: 13px; min-width: 0; }
.qs-product-picture { position: relative; display: flex; align-items: center; justify-content: center; flex: 0 0 66px; width: 66px; height: 66px; padding: 4px; border: 1px solid #e8e8e8; border-radius: 3px; background: #fff; overflow: hidden; }
.qs-product-picture img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.qs-product-picture span { font-size: 10px; color: #999; }
.qs-product-text { min-width: 0; }
.qs-product-brand { display: block; margin-bottom: 3px; color: #888; font-size: 10px; letter-spacing: .5px; overflow-wrap: anywhere; }
.qs-product-name { display: block; color: #333; font-size: 14px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.qs-product-model { display: block; margin-top: 5px; color: #999; font-size: 11px; overflow-wrap: anywhere; }
.qs-unit-price, .qs-line-total { white-space: nowrap; font-variant-numeric: tabular-nums; }
.qs-unit-price { color: #888; }
.qs-line-total { color: #222; font-weight: 600; }
.qs-quantity { display: inline-flex; height: 34px; border: 1px solid #ddd; border-radius: 3px; overflow: hidden; vertical-align: middle; }
.qs-quantity button { display: flex; align-items: center; justify-content: center; width: 28px; padding: 0; border: 0; color: #555; background: #f7f7f7; font-size: 17px; }
.qs-quantity button:hover { background: #ececec; }
.qs-quantity input { width: 45px; min-width: 0; padding: 0 2px; border: 0; border-left: 1px solid #e8e8e8; border-right: 1px solid #e8e8e8; border-radius: 0; color: #333; background: #fff; text-align: center; font-size: 13px; -moz-appearance: textfield; appearance: textfield; }
.qs-quantity input::-webkit-inner-spin-button, .qs-quantity input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.qs-quantity input:focus { outline: 2px solid #555; outline-offset: -2px; }
.qs-remove { color: #999; font-size: 12px; }
.qs-remove:hover { color: #222; }
.qs-summary { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding: 20px 24px; }
.qs-summary > div > span { font-size: 12px; color: #777; }
.qs-summary p { margin-top: 5px; font-size: 11px; line-height: 1.8; color: #999; }
.qs-summary-amount { display: flex; align-items: baseline; gap: 12px; margin-left: auto; }
.qs-summary-amount strong { color: #222; font-size: 25px; font-weight: 600; font-variant-numeric: tabular-nums; }
.qs-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding: 15px 24px; border-top: 1px solid #ececec; background: #fafafa; }
.qs-footer-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.qs-empty { display: flex; align-items: center; flex-direction: column; padding: 30px 16px; text-align: center; }
.qs-empty-symbol { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; margin-bottom: 12px; border: 1px dashed #d5d5d5; border-radius: 50%; color: #aaa; background: #fafafa; font-size: 28px; }
.qs-empty > strong { font-size: 15px; font-weight: 500; }
.qs-empty p { margin: 9px 0 18px; color: #999; font-size: 12px; line-height: 1.8; }
.qs-storage-warning { margin: 0; padding: 12px 18px; color: #555; background: #f5f5f5; font-size: 12px; line-height: 1.7; }
.products .quick-selection-add { clear: both; display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 40px; margin-top: 10px; padding: 9px 5px; border: 1px solid #d9d9d9; border-radius: 3px; color: #444; background: #f8f8f8; font-size: 13px; line-height: 1.5; cursor: pointer; transition: background .2s; }
.products .quick-selection-add:hover { border-color: #2b2b2b; background: #2b2b2b; color: #fff; }
.products .quick-selection-add.selected { border-color: #2b2b2b; color: #222; background: #ececec; }
.products .quick-selection-add.selected:hover { background: #e2e2e2; }
.products .quick-selection-add:disabled { opacity: .45; cursor: not-allowed; }
.qs-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

#quick-selection-status { position: relative; z-index: 50; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin: -14px 0 28px; padding: 12px 16px; border: 1px solid #e0e0e0; border-radius: 4px; background: #f7f7f7; color: #666; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
#quick-selection-status[hidden] { display: none !important; }
.qs-status-text { flex: 1 1 220px; min-width: 0; }
#quick-selection-status .qs-status-link { flex-shrink: 0; color: #222; text-decoration: underline; }
#quick-selection-status.is-sending, #quick-selection-status.is-success { border-color: #d0d0d0; color: #222; background: #f0f0f0; }
#quick-selection-status.is-error { border-color: #8f8f8f; color: #111; background: #e7e7e7; font-weight: 500; }
.qs-toast { position: fixed; z-index: 100000001; left: 50%; bottom: 35px; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 12px 22px; border-radius: 4px; background: rgba(20, 20, 20, .94); color: #fff; font-size: 13px; line-height: 1.8; text-align: center; box-shadow: 0 5px 20px rgba(0, 0, 0, .1); }

@media (max-width: 1080px) {
    #quick-selection .qs-header { padding: 18px; }
    .qs-header-actions { width: 100%; margin-left: 60px; }
    .qs-header-actions .qs-counter { margin-right: auto; }
    .qs-table td:first-child, .qs-table th:first-child { padding-left: 16px; }
    .qs-product-picture { flex-basis: 52px; width: 52px; height: 58px; }
    .qs-product { gap: 9px; }
    .qs-product-name { font-size: 13px; }
    .qs-quantity button { width: 24px; }
    .qs-quantity input { width: 37px; }
    .qs-unit-price, .qs-line-total { font-size: 12px; }
}
@media (max-width: 767px) {
    #quick-selection { margin-bottom: 19px; border-radius: 4px; }
    #quick-selection .qs-header { padding: 16px; gap: 15px; }
    .qs-cart-icon { flex-basis: 38px; width: 38px; height: 38px; }
    .qs-cart-icon svg { width: 22px; height: 22px; }
    .qs-heading { gap: 11px; }
    .qs-heading h2 { font-size: 18px; gap: 7px; }
    .qs-heading p { font-size: 11px; }
    .qs-eyebrow { font-size: 9px; margin-bottom: 3px; }
    .qs-header-actions { margin: 0; gap: 14px; }
    .qs-counter { font-size: 12px; }
    .qs-counter strong { font-size: 16px; }
    .qs-header-actions .qs-button { min-height: 36px; padding: 8px 11px; font-size: 12px; }
    .qs-list-heading { padding: 16px 16px 7px; }
    .qs-list-heading > span { font-size: 10px; }
    .qs-table, .qs-table tbody { display: block; width: 100%; }
    .qs-table colgroup, .qs-table thead { display: none; }
    .qs-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; margin: 0 16px; padding: 17px 0 12px; border-bottom: 1px solid #ececec; }
    .qs-table td, .qs-table td:first-child { display: block; padding: 0; border: 0; text-align: left; }
    .qs-table .qs-cell-product { grid-column: 1 / -1; margin-bottom: 5px; }
    .qs-product-picture { flex-basis: 62px; width: 62px; height: 62px; }
    .qs-product-name { font-size: 14px; }
    .qs-product-model { font-size: 11px; }
    .qs-table .qs-cell-price { grid-column: 1; grid-row: 2; }
    .qs-table .qs-cell-subtotal { grid-column: 1; grid-row: 3; }
    .qs-cell-price::before, .qs-cell-subtotal::before { content: attr(data-label); display: inline-block; min-width: 60px; margin-right: 8px; font-size: 11px; color: #999; }
    .qs-table .qs-cell-quantity { grid-column: 2; grid-row: 2 / 4; align-self: center; text-align: right; }
    .qs-quantity { height: 36px; }
    .qs-quantity button { width: 30px; }
    .qs-quantity input { width: 44px; font-size: 14px; }
    .qs-table .qs-cell-remove { grid-column: 1 / -1; text-align: right; }
    .qs-remove { padding: 4px 0; }
    .qs-summary { padding: 16px; gap: 10px; }
    .qs-summary > div:first-child { width: 100%; }
    .qs-summary-amount { margin-left: 0; width: 100%; justify-content: space-between; }
    .qs-summary-amount strong { font-size: 23px; }
    .qs-footer { padding: 14px 16px; gap: 18px; }
    .qs-footer-actions { width: 100%; justify-content: space-between; }
    .qs-footer-actions .qs-button { min-height: 42px; padding: 11px 20px; }
    .products .quick-selection-add { min-height: 40px; margin-top: 7px; font-size: 12px; }
    #quick-selection-status { margin-top: -8px; margin-bottom: 19px; padding: 10px 14px; }
    .qs-toast { bottom: 22px; width: max-content; font-size: 12px; padding: 10px 16px; }
}
