﻿.wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.salesPlan__wrapper {
    background-color: #f7f7f8;
}

.breadcrumb {
    display: flex;
    color: #666666;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.breadcrumb-item a {
    color: #666666;
}

.breadcrumb-productName {
    align-items: center;
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    margin: 0 8px;
    color: #BCBCBC;
}

.breadcrumb-item + .breadcrumb-item::after {
    content: ">";
    margin: 0 8px;
    color: #BCBCBC;
}

.comboProduct__description {
    padding-top: 20px;
    padding-bottom: 20px;
    background-color: #fff;
    display: flex;
    align-items: center;
}

.comboProduct__description img {
    max-width: 100px;
    margin-right: 10px;
}

.comboProduct__description__text {
    width: 100%;
}

.comboProduct__description__title {
    margin-bottom: 10px;
    color: #333;
    font-size: 24px;
}

.comboProduct__description__content {
    font-weight: 600;
    margin-right: 60px;
    color: #666666;
}

.comboProduct__description__more {
    display: none;
}

.comboProduct__share {
    min-width: 91px;
    font-weight: 500;
    padding: 7px 20px;
    background: #FFFFFF;
    border: 1px solid #BCBCBC;
    border-radius: 30px;
    font-size: 14px;
    color: #666666;
}

.comboProduct__share:before {
    content: url(images/share-m.png);
    vertical-align: -15%;
    margin-right: 5px;
}

.salesPlan__list {
    padding-top: 20px;
    background-color: #f7f7f8;
    padding-bottom: 40px;
}

.comboProduct__content {
    padding-top: 20px;
    margin-bottom: 40px;
}

.faq__container {
    padding-top: 20px;
    margin-bottom: 40px;
}

.salesPlan__list__title,
.faq__container__title {
    display: flex;
    align-items: center;
    margin-top: 24px;
    margin-bottom: 24px;
    color: #333;
}

.faq__container__title::before,
.salesPlan__list__title::before {
    display: block;
    content: "";
    width: 5px;
    height: 25px;
    background-color: red;
    margin-right: 8px;
}

.cardList__container {
    width: 100%;
    position: relative;
    display: flex;
    gap: 15px;
}

.productContent__section {
    width: 73.4%;
    margin-right: 20px;
    overflow: hidden;
    max-width: 845px;
}

.productContent__section h1 {
    font-size: 26px;
    color: #C00;
    line-height: 1.3;
}

.productContent__section h2{
    font-size: 22px;
    color: #F60;
    line-height: 1.5;
    margin-bottom: .5em;
}

.productContent__section p {
    margin-bottom: .5em;
    line-height: 1.7;
}

.comboProduct__img {
    padding: 5px;
    background: #FFF;
    border: solid 1px #EEE;
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
}

.cardList__wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 142px;
    height: 100%;
    width: 26.6%;
}

.redBar--hidden .cardList__wrapper {
    top: 70px;
}

.cardList__wrapper--preSale {
    /* EDWEB-22057：預熱右欄寬度對齊常態（320/1200），使卡片延伸到最右邊 */
    width: 26.6%;
}

/* EDWEB-22081：非 CMoney 平台的預熱期沿用 22057 前右欄寬度 */
.cardList__wrapper.cardList__wrapper--preSaleLegacy {
    width: 23.3%;
}

.presale__container {
    display: flex;
    flex-direction: column;
    padding: 20px 12px;
    border-radius: 4px;
    border: 1px solid #E7E7E7;
    background-color: #262626;
    gap: 4px;
}

.presale__row {
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    color: #FFFFFF;
    display: flex;
    align-items: center;
}

.purchaseBar__presaleUnit,
.presale__unit {
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.presale__unit--none {
    display: none;
}

.purchaseBar__presaleUnit--none {
    display: none;
}

.presale__number {
    font-weight: 600;
    font-size: 18px;
    line-height: 32px;
    margin: 0 4px;
    background-color: #3F3F3FA1;
    color: #E69A00;
    display: inline-block;
    min-width: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.presale__innerText,
.purchaseBar__presaleInnerText {
    padding: 0 4px;
    opacity: 0;
}

.purchaseBar__presaleInnerText.flip-animation,
.presale__innerText.flip-animation {
    display: inline-block;
    animation: flipDown 0.6s ease-in-out;
}

@keyframes flipDown {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.presale__subtext {
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    color: #FFFFFF;
}

.subtext--loading {
    background-color: #3F3F3FA1;
    border-radius: 16px;
    width: 75%;
    min-height: 16px;
}

.recoCard__header {
    background: #191919;
    color: #fff;
    padding: 10px;
    border-top-right-radius: 6px;
    border-top-left-radius: 6px;
    font-weight: bold;
}

.card__container {
    display: flex;
    flex-direction: column;
}

.card__content {
    height: 100px;
    margin-bottom: 10px;
    border: 2px solid #E7E7E7;
    padding: 10px;
    border-radius: 6px;
    box-sizing: border-box;
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* EDWEB-22081：此 class 現僅由「舊預熱樣式」（非 CMoney 平台）輸出，
   高度沿用 22057 前的固定 80px（卡內只有標題 + 定價，不會溢出）；
   CMoney 平台的新預熱樣式不再輸出此 class，改走一般狀態的 .card__content */
.card__content--preSale {
    height: 80px;
}

.first-card {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.card__content__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-weight: bold;
    margin-bottom: 5px;
    flex-shrink: 0;
}

.card__content__title--preSale {
    font-weight: 600;
    font-size: 14px;
    line-height: 18px;
    color: #191919;
}

.card__content__priceContainer {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    align-items: flex-end;
}

.card__cost {
    display: flex;
    gap: 8px;
    align-items: center;
    flex: 1 1 0;
    min-width: 0;
    flex-wrap: wrap;
}

.card__content__price {
    font-size: 22px;
    color: #e60000;
    font-weight: bold;
}

.card__content__oldPrice {
    font-size: 14px;
    text-decoration: line-through;
    color: #999;
    white-space: nowrap;
}

.card__content__oldPrice--preSale {
    text-decoration: none;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    color: #4c4c4c;
}

.purchaseBtn {
    background-color: #fff;
    width: 28px;
    height: 28px;
    gap: 10px;
    border-radius: 4px;
    border: 1px solid #E21E2880;
    cursor: pointer;
}

.purchaseBtn:hover {
    background-color: #FCE9EA;
}

/* EDWEB-22057：🛒 按鈕加入購物車後 disabled 狀態 */
.purchaseBtn:disabled,
.purchaseBtn--added {
    background-color: #F2F2F2;
    border-color: #E7E7E7;
    opacity: 0.6;
    cursor: not-allowed;
}

.purchaseBtn:disabled:hover,
.purchaseBtn--added:hover {
    background-color: #F2F2F2;
}

.shoppingCart {
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.faq__item {
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
    cursor: pointer;
}

.faq__item__question {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq__item__answer {
    font-size: 14px;
    display: none;
    margin-top: 20px;
    color: #555;
}

.faq__item__url {
    position: absolute;
    bottom: 0;
    right: 0;
}

.faq__toggleBtn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #333;
}

.wrapper__nav {
    position: sticky;
    top: 72px;
    left: 0;
    background-color: #fff;
    z-index: 1;
}

.redBar--hidden .wrapper__nav {
    top: 0;
}

.section__nav {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    font-size: 15px;
    color: #5B5B5B;
    border-bottom: 1px solid #ddd;
    gap: 45px;
}

.section__nav a {
    color: inherit;
    padding: 10px 0;
    transition: color 0.3s;
    border-bottom: 1px solid transparent;
}

.section__nav a:hover,
.section__nav a.active {
    font-weight: bold;
    color: #000000;
    border-bottom: 1px solid #000000;
}

.salesPlan__list__container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 每行 4 个 plan */
    gap: 24px;
    box-sizing: border-box;
}

.salesPlan__content {
    display: flex;
    height: 410px;
    flex-direction: column;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    /* 讓 header 與 body 共用單一圓角輪廓，不再各自顯示獨立圓角 */
    overflow: hidden;
}

.salesPlan__content--highlight {
    border: 2px solid #f00;
    border-radius: 9px;
}

.recoSalesPlan__header {
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px 20px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    background: linear-gradient(180deg, rgba(85, 85, 85, 0.333333) -171.87%, #000000 100%);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.salesPlan__context:first-child {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.salesPlan__context {
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #fff;
}

.combProduct__text {
    color: #7c7c7c;
    margin-bottom: 5px;
}

.product__category {
    margin-bottom: 5px;
}

.salesPlan__content__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    max-width: 252.67px;
    overflow-wrap: break-word;
    overflow: hidden;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.salesPlan__content__description {
    overflow: auto;
    color: #555;
    text-align: left;
    height: 195px;
}

.salesPlan__list__container .salesPlan__content:first-child .salesPlan__content__description {
    height: 175px;
}

.salesPlan__content__description::-webkit-scrollbar {
    width: 6px;
    height: 50px;
}

.salesPlan__content__description::-webkit-scrollbar-thumb {
    border-radius: 100px;
    border: 2px solid #D9D9D9;
    background-color: #D9D9D9;
}

.salesPlan__content__description::-webkit-scrollbar-track {
    background: #fff;
}

.product__category {
    display: flex;
    align-items: center;
    font-weight: bolder;
}

.product__category::before {
    display: block;
    content: "";
    width: 2px;
    height: 15px;
    background-color: #555555;
    margin-right: 5px;
}

.salesPlan__content__description ul {
    list-style-type: none;
    padding: 0;
    /* EDWEB-22092：分類（軟體／影音／講座）之間距離 20px（設計標註） */
    margin-bottom: 20px;
}

.salesPlan__content__description li {
    color: #666666;
    /* EDWEB-22092：同一分類內商品列之間距離 4px（設計標註），與下方分隔線的
       padding-bottom 對稱，使分隔線落在兩列正中間 */
    margin-bottom: 4px;
}

/* EDWEB-22092：同一商品類型的品項之間加分隔線，與手機版卡片(.drawer__description)一致。
   最後一項不畫線，避免與下一個分類標題之間出現多餘橫線。 */
.salesPlan__content__description .product__category__details .salesPlan__content__description__item {
    padding-bottom: 4px;
    border-bottom: 1px solid #EEE;
}

.salesPlan__content__description .product__category__details .salesPlan__content__description__item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.salesPlan__footer {
    display: flex;
    margin-top: auto;
    align-content: center;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: space-around;
}

.salesPlan__content__price-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
    width: 100%;
}

.salesPlan__content__price {
    font-size: 26px;
    color: #e60000;
    font-weight: bold;
}

.salesPlan__content__oldPrice {
    font-size: 12px;
    text-decoration: line-through;
    color: #999;
}

.salesPlan__content__oldPrice--preSale {
    text-decoration: none;
    color: #777777;
    font-weight: 600;
    font-size: 20px;
    line-height: 28px;
}

.salesPlan__purchaseBtn {
    height: 44px;
    cursor: pointer;
    padding: 8px 16px;
    margin-top: 5px;
    border: none;
    border-radius: 4px;
    background-color: #e60000;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
}

.salesPlan__purchaseBtn:hover {
    background-color: #4e595c;
    transition: 0.7s;
}

.salesPlan__purchaseBtn--disabled {
    background-color: #E7E7E7;
    color: #BCBCBC;
}

.salesPlan__purchaseBtn--disabled:hover {
    background-color: #E7E7E7;
    color: #BCBCBC;
    cursor: not-allowed;
}

/* EDWEB-22057：預熱加車按鈕 disabled 期間（首屏預設鎖定，等進頁購物車查詢結果）呈灰色不可點 */
.salesPlan__purchaseBtn:disabled,
.purchaseBar__button--presale:disabled {
    background-color: #E7E7E7;
    color: #BCBCBC;
    cursor: not-allowed;
}

.salesPlan__purchaseBtn:disabled:hover,
.purchaseBar__button--presale:disabled:hover {
    background-color: #E7E7E7;
    color: #BCBCBC;
}

.salesplan__content__details {
    display: none;
}

/*授權天數標籤、講座日期、時間*/
.authDay__label,
.showDateTime__label {
    color: #2187D7;
    background-color: #F0F9FF;
    padding: 3px;
}

/*訂閱型標籤*/
/* EDWEB-22092：
   - 配色依 UI 改版（文字 #F5442D／底 #FEECEA）
   - tag 內含續訂價後文字變長，依 Figma 註記「單行文字尾端若放不下完整的 tag，
     該 tag 整個換到下一行」→ inline-block + nowrap，不在 tag 內部斷字 */
.subscription__label {
    color: #F5442D;
    background-color: #FEECEA;
    padding: 3px;
    display: inline-block;
    white-space: nowrap;
}

/*贈品標籤*/
.freebie__label {
    color: #E58E00;
    background-color: #FFF1D2;
    padding: 3px;
}

/* EDWEB-22092：四種子項目標籤高度統一 20px。
   上下 padding 歸零、改由 line-height 讓文字垂直置中；
   訂閱型為了「整塊折行不斷字」必須是 inline-block，故四者一律 inline-block。 */
.authDay__label,
.showDateTime__label,
.freebie__label,
.subscription__label {
    display: inline-block;
    height: 20px;
    line-height: 20px;
    padding: 0 3px;
    box-sizing: border-box;
}

.goTopButton__container {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 100px;
    z-index: 1000;
}

.goTopButton {
    display: inline-block;
    width: 44px;
    height: 44px;
    margin: 0 16px 0 auto;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #FFF;
    border-radius: 50%;
    filter: drop-shadow(0px 0px 8px rgba(0, 0, 0, 0.1));
}

.arrowToTop {
    padding: 9px;
}

.purchaseBar {
    display: none;
}

.purchaseBar__button {
    display: none;
}

.drawer {
    display: none;
}

.drawer__close{
    display: none;
}

.overlay {
    display: none;
    background: #00000080;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
}

/* ===== EDWEB-22088：手機版多方案漏斗（桌機一律隱藏，僅 max-width:768px 啟用） ===== */

/* 吸底 bar 兩態切換；需 !important 才能覆蓋 JS 寫入的 inline display */
.purchaseBar__hidden {
    display: none !important;
}

.purchaseBar__browse {
    display: none;
}

.purchaseBar__browseButton {
    display: none;
}

.drawer__nav {
    display: none;
}

/* 現省：依 Figma「方案卡牌情境盤點」僅手機方案卡顯示（WEB/方案介紹 未定義現省） */
.salesPlan__content__saving {
    display: none;
}

/* EDWEB-22057：加入購物車 Toast（紅 bar 下方置中，可堆疊；成功綠 / 失敗紅） */
/* 容器：固定於紅 bar 下方置中，垂直堆疊多個 toast（top 由 JS 依紅 bar 底部動態設定） */
.combo-toast-container {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1000000;
    pointer-events: none;
}

.combo-toast {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    white-space: nowrap;
    max-width: 90vw;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.combo-toast--show {
    opacity: 1;
    transform: translateY(0);
}

.combo-toast__icon {
    font-size: 16px;
    flex-shrink: 0;
}

.combo-toast__text {
    color: #303133;
}

.combo-toast--success {
    background-color: #f0f9eb;
    border: 1px solid #e1f3d8;
}

.combo-toast--success .combo-toast__icon {
    color: #21A42E;
}

.combo-toast--error {
    background-color: #fef0f0;
    border: 1px solid #fde2e2;
}

.combo-toast--error .combo-toast__icon {
    color: #E4393C;
}

/* ===================== */
/* 卡片狀態 — 導購卡 header */
/* ===================== */
.card__header {
    padding: 8px 10px;
    font-weight: bold;
    font-size: 13px;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    /* 與 .card__content 的 2px border 對齊，避免 header 與 body 寬度落差造成階梯 */
    box-sizing: border-box;
    border: 2px solid transparent;
    border-bottom: 0;
}

.card__header--limited {
    background-color: #E21E28;
    color: #fff;
    border-color: #E21E28;
}

.card__header--regular {
    background-color: #191919;
    color: #fff;
    border-color: #191919;
}

.card__content--hasHeader {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-top: 0;
}

/* 限時優惠 — 導購卡價格區 */
.card__cost--limited {
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
}

/* EDWEB-22057：預熱小卡限時樣式 → 售價/折自成一行、定價與現省同一行（比照 Figma），僅影響預熱卡 */
.card__content--preSale .card__cost--limited {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 8px;
    row-gap: 2px;
}

.card__content--preSale .card__cost--limited .card__price-row {
    flex-basis: 100%;
}

/* EDWEB-22057：預熱小卡現省文字與定價同色（比照 Figma 的灰色） */
.card__content--preSale .card__content__saving {
    color: #999;
}

/* 限時優惠 — 導購卡需要更多垂直空間（售價列 + 折數 Tag + 定價刪除線 + 現省金額） */
.card__content[data-card-state="0"] {
    height: auto;
    min-height: 100px;
}

.card__price-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.card__content__price--limited {
    color: #E21E28;
}

.card__content__price--noOffer {
    color: #2187D7;
    font-size: 22px;
    font-weight: bold;
}

.card__discount-tag {
    background-color: #f18a2b;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

.card__content__saving {
    color: #E21E28;
    font-size: 12px;
    font-weight: 600;
}

/* ===================== */
/* 卡片狀態 — 商品卡 header */
/* ===================== */
.salesPlan__header {
    padding: 10px 20px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

.salesPlan__header--limited {
    background-color: #E21E28;
    color: #fff;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.3);
}

.salesPlan__header--regular {
    background: linear-gradient(180deg, rgba(85, 85, 85, 0.333333) -171.87%, #000000 100%);
    color: #fff;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.5);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.salesPlan__content__price--limited {
    color: #E21E28;
}

.salesPlan__discount-tag {
    background-color: #f18a2b;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    vertical-align: middle;
}

.salesPlan__content__price--noOffer {
    color: #2187D7;
    font-size: 26px;
    font-weight: bold;
}

/* 商品卡有 header 時，調整內容區域高度 */
.salesPlan__content:has(.salesPlan__header) .salesPlan__content__description {
    height: 175px;
}

/* ===================== */
/* PC 版限時優惠倒數區 */
/* ===================== */
.campaign-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    background-color: #191919;
    color: #fff;
}

.campaign-countdown__label {
    font-weight: bold;
    font-size: 18px;
    white-space: nowrap;
}

.campaign-countdown__timer {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    font-size: 18px;
}

.campaign-countdown__unit {
    display: inline-flex;
    align-items: center;
}

.campaign-countdown__unit--none {
    display: none;
}

.campaign-countdown__number {
    display: inline-block;
    min-width: 40px;
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    line-height: 40px;
    margin: 0 4px;
    padding: 0 6px;
    background-color: #3F3F3F;
    color: #E69A00;
    border-radius: 4px;
}

/* ===================== */
/* MB 版限時優惠購物 bar */
/* ===================== */
.purchaseBar--campaign {
    display: none;
}

.purchaseBar__campaignContainer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 16px;
    box-sizing: border-box;
}

.purchaseBar__campaignRow {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.purchaseBar__campaignLabel {
    font-weight: bold;
    font-size: 12px;
    color: #fff;
}

.purchaseBar__campaignTimer {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.purchaseBar__campaignUnit {
    display: inline-flex;
    align-items: center;
}

.purchaseBar__campaignUnit--none {
    display: none;
}

.purchaseBar__campaignNumber {
    display: inline-block;
    min-width: 22px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    line-height: 24px;
    margin: 0 2px;
    padding: 0 2px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.purchaseBar__button--campaign {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    background-color: #fff;
    color: #E21E28;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
}

.purchaseBar__button--campaign:hover {
    background-color: #FCE9EA;
}

html {
    scroll-behavior: smooth;
}

/*橫放平板*/
@media (max-width: 1200px) {
    .wrapper {
        width: 100%;
        max-width: 1200px;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .section__nav {
        padding: 0 20px;
        box-sizing: border-box;
    }

    .salesPlan__list__container {
        grid-template-columns: repeat(3, 1fr); /* 每行 3 个 plan */
    }

    .goTopButton__container {
        bottom: 44px;
        right: 0px;
    }

    .cardList__wrapper--preSale {
        /* EDWEB-22057：對齊常態右欄寬度，預熱卡延伸到最右邊 */
        width: 26.6%;
    }

    /* EDWEB-22081：非 CMoney 平台的預熱期沿用 22057 前右欄寬度 */
    .cardList__wrapper.cardList__wrapper--preSaleLegacy {
        width: 32%;
    }
}

/*直立平板*/
@media (max-width: 991px) {
    .wrapper {
        width: 100%;
        max-width: 991px;
        margin: 0 auto;
    }

    .salesPlan__list__container {
        grid-template-columns: repeat(2, 1fr); /* 每行 2 个 plan */
    }

    .goTopButton__container {
        bottom: 15px;
        right: 5px;
    }
}

/*平版*/
@media (max-width: 1024px) and (min-width: 769px) {
    .salesPlan__list__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/*手機*/
@media (max-width: 768px) {
    .wrapper {
        position: relative;
        max-width: 768px;
    }

    /* 手機版隱藏 PC 倒數區 */
    .campaign-countdown {
        display: none;
    }

    .wrapper__nav {
        top: 60px;
    }

    .redBar--hidden .wrapper__nav {
        top: 0;
    }

    .comboProduct__description {
        display: flex;
        align-items: flex-start;
        margin-top: 40px;
        padding: 0;
    }

        .comboProduct__description img {
            width: 48px;
            height: 48px;
            margin-right: 15px;
        }

    .read__more {
        display: flex;
        align-items: flex-end;
    }

    .comboProduct__description__content.show__more {
        -webkit-line-clamp: unset;
        display: block;
        overflow: visible;
    }

    .comboProduct__description__title {
        font-size: 18px;
        font-weight: bold;
        margin: 0;
    }

    .comboProduct__description__content {
        font-size: 14px;
        margin: 10px 0 0 0;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .comboProduct__description__more {
        display: block;
        float: right;
        clear: both;
        white-space: nowrap;
        cursor: pointer;
        background: none;
        border: none;
        color: #007bff;
        font-size: 14px;
    }

    .comboProduct__share {
        position: absolute;
        height: 24px;
        top: -35px;
        right: -20px;
        background-color: #fff;
        border: none;
        cursor: pointer;
        padding: 5px 10px;
        font-size: 14px;
        z-index: 10;
    }

    .section__nav {
        margin-top: 15px;
        gap: 25px;
    }

    .goTopButton__container {
        bottom: 120px;
        right: -5px;
    }

    .productContent__section {
        margin-right: 0;
        width: auto;
    }

    .cardList__section {
        width: 100%;
        max-width: 1200px;
        display: none;
    }

    .cardList__wrapper {
        display: none;
    }

    .salesPlan__list__container {
        grid-template-columns: 1fr; /* 每行 1 个 plan */
        gap: 0;
    }

    .salesPlan__context:first-child {
        border: 1px solid #ccc;
    }

    .salesPlan__content {
        height: fit-content;
        min-height: 120px;
        border: none;
        box-shadow: none;
        margin-bottom: 24px;
    }

        /* .salesPlan__content:first-child {
            height: fit-content;
            min-height: 160px;
        } */

    .salesPlan__content--preSale {
        height: auto;
    }

        .salesPlan__content--preSale:first-child {
            height: auto;
        }

    .salesPlan__content__oldPrice--preSale {
        font-size: 16px;
    }

    .recoSalesPlan__header {
        background: #000;
        color: #fff;
        padding: 10px;
        border-top-right-radius: 6px;
        border-top-left-radius: 6px;
        font-weight: bold;
        text-align: left;
    }

        .recoSalesPlan__header::before {
            margin-right: 3px;
            content: '🔥'
        }

    .salesPlan__content__title {
        margin: 0;
        max-width: 350px;
        overflow-wrap: break-word;
    }

    .salesPlan__content__description {
        display: none;
    }

    .salesPlan__content__price-container {
        width: auto;
    }

    .salesPlan__context {
        border: 1px solid #ccc;
        padding: 10px;
        border-radius: 6px;
        box-sizing: border-box;
        text-align: left;
    }

    .combProduct__text {
        display: none;
    }

    .salesPlan__footer {
        display: flex;
        margin-top: auto;
        flex-direction: row;
        border-top: none;
        justify-content: space-between;
        align-items: flex-end;
    }

    .salesPlan__purchaseBtn {
        display: none;
    }

    .salesplan__content__details {
        display: block;
        width: 70px;
        color: #0D71BF;
        font-size: 14px;
        line-height: 1.85;
        border: none;
        background: none;
    }

    .faq__item {
        font-size: larger;
        padding: 20px 0;
        margin-bottom: auto;
    }

    .faq__item__answer {
        font-size: medium;
    }

    .faq__item__url {
        font-size: small;
    }

    .purchaseBar {
        height: 105px;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #fff;
        border-top: 1px solid #ddd;
        padding: 10px;
        z-index: 1000;
        display: flex;
        justify-content: space-between;
        flex-direction: column;
        box-sizing: border-box;
    }

    .purchaseBar--preSale {
        /* EDWEB-22057：加入「搶先加入購物車」CTA 後改為自適應高度；依 Figma 毛玻璃 blur 10px */
        height: auto;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        background: #26262699;
        padding: 8px 16px;
        border-top: 0;
    }

    /* EDWEB-22057：預熱期手機購物 Bar CTA（依 Figma 200x44 紅色按鈕，與開賣時間同列靠右）
       用 .purchaseBar--preSale .purchaseBar__button 提高特異性，覆蓋 .purchaseBar__button 的 width:130px */
    .purchaseBar--preSale .purchaseBar__button {
        width: 55%;
        height: 44px;
        flex-shrink: 0;
        padding: 8px 16px;
        font-size: 16px;
        font-weight: 600;
        line-height: 24px;
        white-space: nowrap;
    }

    .purchaseBar--campaign {
        display: flex;
        height: auto;
        min-height: 60px;
        /* 半透明深灰 + backdrop blur 毛玻璃 */
        background: #26262699;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 0;
        padding: 0;
        /* spec：無圓角、直角延伸到視窗邊 */
        border-radius: 0;
    }

    /* MB 倒數區「上：毛玻璃倒數列（居中）、下：紅色立即購買（左右留邊）」 */
    .purchaseBar--campaign .purchaseBar__campaignContainer {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        /* container 左右 padding 讓按鈕不貼邊 */
        padding: 10px 12px 12px;
        gap: 10px;
    }

    .purchaseBar--campaign .purchaseBar__campaignRow {
        flex-direction: row;
        align-items: center;
        /* spec：整列水平居中 */
        justify-content: center;
        gap: 8px;
        padding: 0;
    }

    .purchaseBar--campaign .purchaseBar__campaignLabel {
        font-size: 16px;
        font-weight: 600;
        color: #fff;
        white-space: nowrap;
    }

    .purchaseBar--campaign .purchaseBar__campaignTimer {
        gap: 4px;
        font-size: 18px;
        font-weight: 600;
        color: #fff;
    }

    .purchaseBar--campaign .purchaseBar__campaignNumber {
        background-color: #3F3F3F;
        /* spec：時間數字為橘黃色 #E69A00（與既有預購倒數同色系） */
        color: #E69A00;
        min-width: 36px;
        height: 36px;
        line-height: 36px;
        font-size: 22px;
        font-weight: bold;
        border-radius: 4px;
        padding: 0 6px;
        margin: 0 4px 0 0;
    }

    .purchaseBar--campaign .purchaseBar__campaignUnit {
        display: inline-flex;
        align-items: center;
        font-size: 18px;
        color: #fff;
    }

    .purchaseBar--campaign .purchaseBar__button--campaign {
        /* spec：按鈕不貼邊，由 container padding 控制左右間距；自身稍微圓角 */
        width: 100%;
        background-color: #E21E28;
        color: #fff;
        border-radius: 4px;
        padding: 12px 24px;
        font-size: 18px;
        font-weight: bold;
        text-align: center;
    }

    .purchaseBar--campaign .purchaseBar__button--campaign:hover {
        background-color: #C81621;
    }

    .purchaseBar__presaleContainer {
        display: flex;
        justify-content: space-around;
        flex-direction: column;
        gap: 8px;
        height: 100%;
    }

    .purchaseBar__presaleRow {
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 600;
        color: #FFFFFF;
        font-size: 16px;
        line-height: 24px;
    }

    .purchaseBar__presaleUnit {
        gap: 8px;
    }

    /* 依 Figma：秒的單位字級較小 */
    .purchaseBar__presaleUnit[data-countdown="seconds"] {
        font-size: 14px;
        line-height: 20px;
    }

    .purchaseBar__presaleNumber {
        display: inline-block;
        width: 32px;
        box-sizing: border-box;
        padding: 2px 0;
        font-weight: 600;
        font-size: 20px;
        line-height: 28px;
        background-color: rgba(38, 38, 38, 0.4);
        color: #FFAB23;
        border-radius: 4px;
        text-align: center;
        position: relative;
        overflow: hidden;
    }

    /* 方案名稱（隨使用者選擇連動），單行超出以刪節號截斷；
       min-height 保住行高：名稱尚未帶入（無方案）時 Bar 高度不變，抽屜 bottom 128px 才對得齊 */
    .purchaseBar__presaleName {
        width: 100%;
        min-height: 20px;
        font-weight: 600;
        font-size: 14px;
        line-height: 20px;
        color: #FFFFFF;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* 開賣時間（左）+ CTA（右）同列 */
    .purchaseBar__presaleFooter {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 48px;
        width: 100%;
    }

    .purchaseBar__presaleSubtext {
        flex: 1;
        min-width: 0;
        font-weight: 400;
        font-size: 12px;
        line-height: 1.5;
        color: #FFFFFF;
    }

    /* ===== EDWEB-22081：非 CMoney 平台的預熱期沿用 22057 前的手機 Bar 樣式 =====
       只覆蓋 22057 動過的宣告，CMoney 平台（無 --preSaleLegacy）維持現行新樣式不變 */
    .purchaseBar--preSale.purchaseBar--preSaleLegacy {
        height: 82px;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .purchaseBar--preSaleLegacy .purchaseBar__presaleRow {
        gap: 0;
        font-size: 18px;
        line-height: 28px;
    }

    .purchaseBar--preSaleLegacy .purchaseBar__presaleUnit {
        /* 22057 前 .presale__unit 無 gap，數字框與單位字之間僅靠 presaleNumber 的 margin 0 4px */
        gap: 0;
    }

    .purchaseBar--preSaleLegacy .purchaseBar__presaleUnit[data-countdown="seconds"] {
        font-size: 18px;
        line-height: 28px;
    }

    .purchaseBar--preSaleLegacy .purchaseBar__presaleNumber {
        width: auto;
        min-width: 34px;
        padding: 0;
        margin: 0 4px;
        line-height: 36px;
        background-color: #3F3F3FA1;
        color: #E69A00;
    }

    .purchaseBar--preSaleLegacy .purchaseBar__presaleSubtext {
        /* 22057 前的開賣時間為容器直接子元素、非 footer 內的 flex:1 欄位 */
        flex: 0 1 auto;
        min-width: auto;
        font-size: 14px;
        line-height: 20px;
    }

    .purchaseBar .salesPlan__content__title {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        /* EDWEB-22092：吸底 bar 的方案名與下方價格列留 4px 間距。
           限定 .purchaseBar 底下，不影響方案卡使用同一 class 的標題。 */
        margin-bottom: 4px;
        /* 吸底 bar 的標題字級 16px，與瀏覽態商品名（.purchaseBar__browse__name）一致；
           全域 .salesPlan__content__title 的 20px 是方案卡的字級，套進 bar 會讓選了方案
           之後標題突然變大，長標題也更容易換行把 bar 撐高。 */
        font-size: 16px;
    }

    .price-container {
        display: flex;
        justify-content: center;
    }

    .purchaseBar__footer {
        display: flex;
        justify-content: space-between;
    }

    .purchaseBar__button {
        display: block;
        width: 130px;
        font-size: large;
        font-weight: bold;
        padding: 10px 20px;
        background-color: #E21E28;
        color: #fff;
        border: none;
        cursor: pointer;
        border-radius: 4px;
        /* EDWEB-22092：.price-container 改 flex:1 後，按鈕不可被壓縮 */
        flex-shrink: 0;
    }

    .drawer {
        display: block;
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
        transition: bottom 0.3s ease;
        z-index: 1000;
    }

    /* EDWEB-22092：抽屜底色改白（設計標註「選單底色應該是白色」）。
       預熱期 .open--preSale 不在本次範圍，維持原灰底。 */
    .drawer.open {
        background: #FFFFFF;
        top: unset;
        bottom: 65px;
    }

    .drawer.open--preSale {
        background: #F7F7F8;
        top: unset;
        /* EDWEB-22057：對齊 .purchaseBar--preSale 實際高度 128px =
           padding 8+8 + 倒數列 32(.purchaseBar__presaleNumber) + 方案名 20 + footer 44(CTA 高)
           + container gap 8x2；Bar 內容尺寸調整時此值需同步 */
        bottom: 128px;
    }

    /* EDWEB-22081：舊預熱樣式 Bar 為固定 82px（無方案名、無 CTA），抽屜貼齊值沿用 22057 前的 81px */
    .drawer.drawer--preSaleLegacy.open--preSale {
        bottom: 81px;
    }

    .drawer.open--campaign {
        /* EDWEB-22092：同 .drawer.open，抽屜底色改白 */
        background: #FFFFFF;
        top: unset;
        bottom: 110px;
    }

    .salesPlan__content__title.hidden {
        display: none;
    }

    .purchaseBar.collapsed {
        height: auto;
        transition: height 0.3s ease;
    }

    .drawer__close {
        display: block;
        margin: 5px 5px 12px 12px;
        cursor: pointer;
        background: none;
        border: none;
        font-size: 16px;
    }

    .drawer__content {
        padding: 10px 10px 0px 10px;
    }

    .drawer__content__header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .drawer__title {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .drawer__description {
        padding-left: 10px;
        font-size: 16px;
        max-height: 30vh;
        overflow-y: auto;
    }

    .product__category{
        margin-bottom: 5px;
    }

    .product__category::before {
        margin-right: 10px;
    }

    /* EDWEB-22088：抽屜內的商品品項文字加深（#7c7c7c → #4c4c4c）。
       抽屜內容是由 JS 取 .salesPlan__content__description 的 innerHTML 塞進 #DrawerDesc，
       外層 wrapper 未一併帶入，故 .salesPlan__content__description li 的 #666666 在抽屜中選不到，
       <li> 實際繼承本規則的顏色。 */
    .product__category__details {
        margin-bottom: 25px;
        color: #4c4c4c;
    }

    .salesPlan__content__description__item {
        margin-bottom: 10px;
        margin-left: 12px;
    }

    .salesPlan__content--highlight {
        border: 2px solid #f00;
        border-radius: 9px;
    }

    .salesPlan__content--highlight:first-child {
        border-left: 2px solid #E21E28;
        border-right: 2px solid #E21E28;
        border-bottom: 2px solid #E21E28;
        border-radius: 8px 8px 9px 9px;
    }

    .salesPlan__content--highlight:first-child .recoSalesPlan__header {
        background: #E21E28;
        color: #FFF;
    }

    /* ==================================================================
       EDWEB-22088：手機版多方案漏斗
       ================================================================== */

    /* ---- 吸底 bar 高度：92px 為下限，不寫死 ----
       92px 是 Figma component 實測值（瀏覽態與已選方案態皆同），但寫死 height 會在
       商品名換行、價格列在窄螢幕退回堆疊等「內容多一點」的情況把內容壓扁／裁掉，
       故改為 min-height 打底、實際高度交給內容決定（同時覆蓋 .purchaseBar 的 height:105px）。
       抽屜底緣與高度已由 openSheet() 量測 bar 實際高度後以 inline style 寫入，
       下方 .drawer--multiPlan 的 92px 僅為 fallback，bar 變高不會被蓋住。
       限時優惠多一列倒數、沿用 height:auto，不套此規則。 */
    .purchaseBar--multiPlan:not(.purchaseBar--campaign) {
        height: auto;
        min-height: 92px;
    }

    /* ---- 吸底 bar 瀏覽態（商品名 + 銷售價區間 + 選購方案(N)） ---- */
    .purchaseBar__browse {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        flex: 1;
    }

    .purchaseBar__browse__name {
        margin: 0;
        font-size: 16px;
        font-weight: bold;
        color: #262626;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .purchaseBar__browse__footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* 幣別只出現在開頭一次（NT$5,288~7,888），由伺服端 PriceRangeText 組字 */
    .purchaseBar__browse__priceRange {
        font-size: 18px;
        font-weight: bold;
        color: #E21E28;
    }

    /* 刻意不沿用 .purchaseBar__button class：該 class 會被 purchaseButtonClick 判定為加車按鈕 */
    .purchaseBar__browseButton {
        display: block;
        width: 153px;
        height: 44px;
        flex-shrink: 0;
        font-size: large;
        font-weight: bold;
        padding: 0;
        background-color: #E21E28;
        color: #fff;
        border: none;
        cursor: pointer;
        border-radius: 4px;
    }

    /* ---- 售價與定價同一排 ----
       原 .price-container 為 column-reverse（上下堆疊），Figma 為
       「NT$5,288 (定價 NT$16,888)」同一列，以 baseline 對齊兩種字級。
       EDWEB-22092：單一方案改與多方案一致（原先僅套用於 .purchaseBar--multiPlan）。
       預熱期購物 Bar 為 .purchaseBar__presaleContainer 結構，不含 .price-container，不受影響。 */
    /* 寬度不寫死：flex:1 吃掉「bar 寬 − 左右 padding − 按鈕 − gap」的剩餘空間
       （375 - 10*2 - 128 - 20 = 207，與設計量測一致，但隨畫面寬自適應） */
    .price-container {
        flex: 1;
        min-width: 0;
        flex-direction: row;
        align-items: baseline;
        justify-content: flex-start;
        gap: 4px;
    }

    .price-container .salesPlan__content__price {
        font-size: 18px;
        white-space: nowrap;
        /* EDWEB-22092：橫排後售價與定價共用一列寬度，售價為主要資訊不得被壓縮；
           空間不足時由定價（下方規則的 ellipsis）吸收。 */
        flex-shrink: 0;
    }

    .price-container .salesPlan__content__oldPrice {
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .purchaseBar__footer {
        align-items: center;
        gap: 20px;
    }

    /* ---- 「立即購買」128x44 ----
       比瀏覽態的「選購方案 (N)」(153px) 窄，是因為已選方案態左側多了「定價」，
       需讓出寬度；與 Sheet 是否展開無關。 */
    .purchaseBar--multiPlan .purchaseBar__button {
        width: 128px;
        height: 44px;
        flex-shrink: 0;
        padding: 0;
    }

    /* 限時優惠的 CTA 原為 width:100%（獨立一列），多方案改與一般狀態同尺寸 */
    .purchaseBar--campaign.purchaseBar--multiPlan .purchaseBar__button--campaign {
        width: 128px;
        height: 44px;
        flex-shrink: 0;
        padding: 0;
    }

    /* ---- 方案卡片間距 gap 8 ----
       EDWEB-22088：以 --multiPlan 限定，避免把單一方案與預熱期的
       gap 0 / margin-bottom 24px 一併改掉（code review 指出的樣式外溢）。 */
    .salesPlan__list__container--multiPlan {
        gap: 8px;
    }

    /* margin-bottom 改由 container 的 gap 8px 負責。
       另移除 min-height:120px —— 一般方案卡實際只有 104px，會被撐高而在卡片下緣
       產生 16px 幽靈空白，看起來像間距不一致（推薦卡 136px 超過門檻故無此現象）。
       卡高改為內容決定（Figma：一般 104 / 推薦 136 / 限時優惠 156）。
       預熱期舊樣式卡（--preSale）維持原本高度規則不動。 */
    .salesPlan__list__container--multiPlan .salesPlan__content {
        margin-bottom: 0;
    }

    .salesPlan__list__container--multiPlan .salesPlan__content:not(.salesPlan__content--preSale) {
        min-height: 0;
    }

    /* EDWEB-22088：依 Figma 改為純黑，移除漸層與陰影。
       原本寫在 @media 外，連桌機的「本期推薦方案」header 一起改掉；
       依 code review M10 先收斂到手機版，再補上 --multiPlan scope，
       避免手機的單一方案與預熱期（非 legacy）header 也被改成純黑。 */
    .salesPlan__list__container--multiPlan .salesPlan__header--regular {
        background: #000000;
        box-shadow: none;
        text-shadow: none;
    }

    /* ---- 卡片 header 與內容貼合：有 header 時內容上緣不得有圓角／重複邊框 ----
       EDWEB-22088（code review 第三輪）：以下卡片版面規則一律加 --multiPlan scope，
       否則單一方案與預熱期的卡片也會被改（實測：header 圓角 3→6px、上框線 1px→0、
       footer flex-end/wrap→center/nowrap、price-container flex-grow 0→1）。 */
    .salesPlan__list__container--multiPlan .salesPlan__header {
        border-radius: 6px 6px 0 0;
    }

    .salesPlan__list__container--multiPlan .salesPlan__context {
        border-top: none;
        border-radius: 0 0 6px 6px;
    }

    /* 無 header 的卡片（一般方案）context 為第一個子元素 → 四角圓角 + 完整邊框 */
    .salesPlan__list__container--multiPlan .salesPlan__context:first-child {
        border-top: 1px solid #ccc;
        border-radius: 6px;
    }

    /* ---- 價格／定價／查看商品同一列 ---- */
    .salesPlan__list__container--multiPlan .salesPlan__footer {
        flex-wrap: nowrap;
        align-items: center;
    }

    .salesPlan__list__container--multiPlan .salesPlan__content__price-container {
        flex: 1;
        min-width: 0;
    }

    .salesplan__content__details {
        flex-shrink: 0;
    }

    /* ---- 方案卡「選取」態：Figma 粉底 #FCE9EA + 紅框 #E21E28 ---- */
    /* 選取樣式改由內層 .salesPlan__context 呈現，移除 22088 前套在外層的紅框避免雙重邊框 */
    .salesPlan__list__container--multiPlan .salesPlan__content--highlight,
    .salesPlan__list__container--multiPlan .salesPlan__content--highlight:first-child {
        border: none;
        border-radius: 0;
    }

    .salesPlan__list__container--multiPlan .salesPlan__content--highlight .salesPlan__context {
        background: #FCE9EA;
        border-color: #E21E28;
    }

    /* ---- 方案卡左側 radio ----
       以 ::before 繪製，不更動伺服端輸出的 HTML；
       內容區左側預留空間，radio 垂直置中於卡片內容。
       EDWEB-22088（code review）：
       1. 以 --multiPlan 限定 —— 單一方案與預熱期只有一張卡，長出單選圈沒有語意
       2. 必須同時列出 :first-child —— 無 header 的卡片（cardState 2、legacy 預熱）
          其 .salesPlan__context 為 :first-child，base 的
          `.salesPlan__context:first-child { padding: 12px 10px }`（特異性 0-2-0）
          會蓋掉這裡的 padding-left，radio 就會疊在標題與價格上 */
    .salesPlan__list__container--multiPlan .salesPlan__context,
    .salesPlan__list__container--multiPlan .salesPlan__context:first-child {
        position: relative;
        padding-left: 44px;
    }

    .salesPlan__list__container--multiPlan .salesPlan__context::before {
        content: '';
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        width: 20px;
        height: 20px;
        box-sizing: border-box;
        border: 1px solid #CCCCCC;
        border-radius: 50%;
        background: #FFFFFF;
    }

    /* 選取態：紅色外框 + 白色內圈 + 紅色圓心（radio checked） */
    .salesPlan__list__container--multiPlan .salesPlan__content--highlight .salesPlan__context::before {
        border-color: #E21E28;
        background: #E21E28;
        box-shadow: inset 0 0 0 4px #FFFFFF;
    }

    /* 「本期推薦方案」header 由黑轉紅；「限時優惠」header 本來就是紅，不需覆寫。
       EDWEB-22088（code review 第三輪）：--highlight 由無條件綁定的卡片點擊監聽加上，
       單一方案與預熱期照樣會觸發；此規則為本分支新增，未加 scope 會讓那些頁面
       點一下卡片 header 就從漸層黑變純紅（master 無此行為）。 */
    .salesPlan__list__container--multiPlan .salesPlan__content--highlight .salesPlan__header--regular {
        background: #E21E28;
        color: #FFF;
    }

    /* ---- 方案卡字級／版面對齊 Figma「SPEC : 方案卡牌」 ---- */
    .salesPlan__list__container--multiPlan .salesPlan__header {
        text-align: left;
        font-size: 14px;
    }

    .salesPlan__list__container--multiPlan .salesPlan__content .salesPlan__content__title {
        font-size: 14px;
        font-weight: bold;
    }

    .salesPlan__list__container--multiPlan .salesPlan__content .salesPlan__content__price {
        font-size: 24px;
    }

    /* 伺服端對 cardState == 0 一律輸出「現省」（無方案數條件），維持全域不加 scope */
    .salesPlan__content__saving {
        display: block;
        font-size: 12px;
        color: #E21E28;
    }

    /* 限時優惠卡的價格列有 售價 / 折數Tag / 定價 / 現省 四項，
       343px 卡寬放不下需換行（Figma：售價+折數Tag 一列，定價+現省 一列） */
    .salesPlan__list__container--multiPlan .salesPlan__content__price-container {
        flex-wrap: wrap;
    }

    /* ---- Bottom Sheet ----
       依 Figma component 實測：抽屜 395px、下方吸底 bar 92px（合計 487.2）。
       兩者皆為固定值，不隨畫面高度換算比例。
       以 .drawer--multiPlan 限定，避免影響單一方案與預熱期原有的自適應高度抽屜。 */
    /* 左上／右上圓角 8px */
    .drawer--multiPlan {
        border-radius: 8px 8px 0 0;
        overflow: hidden;
    }

    /* 一般狀態用 .open、限時優惠用 .open--campaign（預熱不套用多方案流程，故不含 --preSale） */
    .drawer--multiPlan.open,
    .drawer--multiPlan.open--campaign {
        box-sizing: border-box;
        overflow: hidden;
        /* EDWEB-22092：抽屜 + 吸底 bar 合計為視窗高度的 60%。
           此處以一般狀態 bar 的最小高度 92px 估算；bar 實際高度由內容決定
           （限時優惠多一列倒數、商品名換行等會更高），
           實際高度由 openSheet() 量測後以 inline style 覆蓋。 */
        height: calc(60vh - 92px);
        /* 極矮畫面時退讓，避免蓋到紅 bar 以上 */
        max-height: calc(100vh - 92px);
    }

    /* 以 bar 最小高度 92px 打底；bar 實際高度為 auto，底緣一律由 openSheet() 量測後以 inline style 覆蓋 */
    .drawer--multiPlan.open {
        bottom: 92px;
    }

    /* 內容區以 flex 撐滿抽屜剩餘高度並自行捲動，不用 magic number 算 max-height */
    .drawer--multiPlan .drawer__content {
        display: flex;
        flex-direction: column;
        height: 100%;
        box-sizing: border-box;
    }

    .drawer--multiPlan .drawer__content__header {
        flex-shrink: 0;
    }

    /* ---- Sheet header：兩列結構（Figma Bottom Sheet/組合商品/查看商品，總高 80px） ---- */
    .drawer--multiPlan .drawer__content {
        padding: 8px 16px 0;
    }

    .drawer--multiPlan .drawer__content__header {
        display: block;
    }

    /* 上列：✕ 靠右，高 32px */
    .drawer__closeRow {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        height: 32px;
    }

    .drawer--multiPlan .drawer__close {
        margin: 0;
        padding: 0;
        width: 24px;
        height: 24px;
        font-size: 16px;
        line-height: 1;
        color: #777777;
    }

    /* 下列：28x28 圓形箭頭 + 2 行方案名，高 44px，與上列間距 4px */
    .drawer__titleRow {
        display: flex;
        align-items: center;
        gap: 12px;
        height: 44px;
        margin-top: 4px;
    }

    .drawer--multiPlan .drawer__nav {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 28px;
        height: 28px;
        padding: 0;
        border: 1px solid #E0E0E0;
        border-radius: 50%;
        background: #fff;
        color: #262626;
        font-size: 16px;
        line-height: 1;
        cursor: pointer;
    }

    .drawer--multiPlan .drawer__nav:disabled {
        color: #CCCCCC;
        border-color: #EEEEEE;
        cursor: default;
    }

    /* 方案名 16px / line-height 22px，最多 2 行（Figma 標題框 279x44） */
    .drawer--multiPlan .drawer__title {
        flex: 1;
        min-width: 0;
        margin: 0;
        font-size: 16px;
        line-height: 22px;
        font-weight: bold;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }

    /* 內容區與 header 間距 16px（Figma 內容 y=96 = header 80 + 16）；
       撐滿抽屜剩餘高度並自行捲動，覆蓋原本的 max-height:30vh */
    .drawer--multiPlan .drawer__description {
        flex: 1;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
        padding-left: 0;
        margin-top: 16px;
    }

    /* ---- 商品內容 UI 與卡牌一致：字號 14px + 品項之間加分隔線
       （Figma「商品頁與購物車顯示軟體續訂價」批次 A；不分方案數皆套用） ---- */
    .drawer__description {
        font-size: 14px;
    }

    .drawer__description .salesPlan__content__description__item {
        padding-bottom: 8px;
        border-bottom: 1px solid #EEE;
    }

    .drawer__description .product__category__details .salesPlan__content__description__item:last-child {
        border-bottom: none;
    }
}

/* ===================================================== */
/* EDWEB-22092（code review N2）：極窄螢幕的吸底 bar 價格版面           */
/* ===================================================== */
/* 已選方案態的售價與定價改同一列後（12.1 #4，PM 要求單一方案比照多方案），
   375px 以下寬度不足以並排：實測 320px 時定價需要 102px、實得僅 55px，
   會被 ellipsis 截成「(定價:…」，金額整段看不到。
   售價已加 flex-shrink:0 保住，但定價仍會失去可讀性，故此區間退回堆疊版面；
   375px 起維持 Figma 的同列版面（該寬度實測餘裕為 0，再窄即不可行）。 */
@media (max-width: 374px) {
    .price-container {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 0;
    }

    .price-container .salesPlan__content__oldPrice {
        overflow: visible;
        text-overflow: clip;
    }
}
