/* 購物流程（購物車、結帳、付款、訂單完成）2026-11-19 新設計
   顏色、按鈕、選單共用 front.css；結帳 2026-11-20 改用 WooCommerce 標準流程 */

.th-shop {
  --ink: #0f2340; --ink-2: #40536d; --soft: #56697f; --soft-head: #7385a0;
  --blue: #2e64a4; --sky: #5d89b9; --sky-deep: #3f6d9f; --mist: #e9f0f7; --paper: #f6f9fc;
  --line: rgba(15, 35, 64, .09); --r-xl: 32px; --r-lg: 24px; --ease: cubic-bezier(.16, 1, .3, 1); --gutter: clamp(16px, 4vw, 56px);
  background: var(--paper);
  font-family: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  color: var(--ink);
}
.th-shop .site-content, .th-shop .site-content > .container, .th-shop .content-wrapper, .th-shop .site-main { padding: 0 !important; margin: 0 !important; max-width: none !important; }
.th-topbar { position: relative; z-index: 20; }

/* 標題＋步驟條 */
.th-shophead { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; padding: clamp(24px, 4vw, 48px) 0 clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--line); margin-bottom: clamp(24px, 3vw, 40px); }
.th-shophead__title { font-size: clamp(1.875rem, 3vw, 2.75rem); font-weight: 500; letter-spacing: .02em; color: var(--ink); margin: 0; }
.th-steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.th-steps li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; font-size: .875rem; color: var(--soft); background: #fff; border: 1px solid var(--line); }
.th-steps__n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--mist); color: var(--ink-2); font-size: .8125rem; }
.th-steps .is-now { background: var(--ink); border-color: var(--ink); color: #fff; }
.th-steps .is-now .th-steps__n { background: #fff; color: var(--ink); }
.th-steps .is-done { color: var(--ink-2); }
.th-steps .is-done .th-steps__n { background: var(--blue); color: #fff; }

/* WooCommerce 提示訊息 */
.th-shop :where(.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice) {
  margin: 0 0 16px; padding: 14px 18px; border-radius: 14px; border: 0; list-style: none;
  background: var(--mist); color: var(--ink); font-size: .9375rem; line-height: 1.7;
}
.th-shop :where(.woocommerce-message, .woocommerce-info, .woocommerce-error) { border: 0 !important; }
.th-shop :where(.woocommerce-message, .woocommerce-info, .woocommerce-error):focus { outline: none; }
.th-shop .woocommerce-error { background: #fdecec; color: #8a1f1f; }
.th-shop :where(.woocommerce-message, .woocommerce-info, .woocommerce-error)::before { display: none; }
.th-shop :where(.woocommerce-message, .woocommerce-info) a { color: var(--blue); font-weight: 500; }

/* ---------- 購物車 ---------- */
.th-cart { padding-bottom: clamp(64px, 8vw, 120px); }
.th-cart__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: clamp(20px, 3vw, 40px); align-items: start; }
.th-cart__list { display: grid; gap: 10px; }
.th-line {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto 120px 40px; align-items: center; gap: 18px;
  padding: 14px 16px 14px 14px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line);
}
.th-line__pic { display: block; width: 96px; aspect-ratio: 1; border-radius: 16px; background: #e3eaf2; overflow: hidden; }
.th-line__pic img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.th-line__info { display: grid; justify-items: start; gap: 3px; min-width: 0; text-align: left; }
.th-line__series { font-size: .8125rem; color: var(--soft); }
.th-line__name { font-size: 1rem; font-weight: 500; line-height: 1.5; color: var(--ink); }
.th-line__name:hover { color: var(--blue); }
.th-line__attrs { font-size: .8125rem; color: var(--ink-2); }
.th-line__unit { font-size: .875rem; color: var(--soft); }
.th-line__sub { text-align: right; font-size: 1.0625rem; font-weight: 500; color: var(--ink); }
.th-line__del { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--soft); transition: background-color .3s var(--ease), color .3s var(--ease); }
.th-line__del:hover { background: #fdecec; color: #b42318; }
.th-line__del svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* 數量（商品頁也有同一個樣式，這裡購物車用） */
.th-cart .th-qty { display: inline-flex; align-items: center; height: 44px; border-radius: 12px; border: 1px solid rgba(15, 35, 64, .16); background: #fff; }
.th-cart .th-qty button { width: 38px; height: 100%; border: 0; cursor: pointer; font-size: 1.0625rem; text-align: center; background-color: transparent !important; color: var(--ink) !important; }
.th-cart .th-qty input { width: 40px; height: 100%; border: 0; text-align: center; font: 500 .9375rem 'Sora', sans-serif; color: var(--ink); background: transparent; -moz-appearance: textfield; padding: 0; }
.th-cart .th-qty input::-webkit-outer-spin-button, .th-cart .th-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* 總計卡 */
.th-sum { position: sticky; top: calc(var(--th-stick, 0px) + 16px); display: grid; gap: 16px; padding: 22px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.th-sum__title { margin: 0; font-size: 1.125rem; font-weight: 500; color: var(--ink); }
.th-sum__coupon { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.th-sum__coupon input { min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(15, 35, 64, .16); font: inherit; font-size: .9375rem; color: var(--ink); background: var(--paper); }
.th-sum__coupon input:focus { outline: 2px solid var(--blue); outline-offset: 1px; background: #fff; }
.th-shop .th-sum__coupon .th-pill { min-height: 46px; padding: 0 18px; background-color: transparent !important; color: var(--blue) !important; }
.th-shop .th-sum__coupon .th-pill:hover { background-color: var(--blue) !important; color: #fff !important; }
.th-sum__rows { display: grid; gap: 10px; margin: 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.th-sum__rows > div { display: flex; justify-content: space-between; gap: 16px; font-size: .9375rem; }
.th-sum__rows dt { color: var(--ink-2); }
.th-sum__rows dd { margin: 0; color: var(--ink); text-align: right; }
.th-sum__rows dd:not(.th-num) { font-size: .8125rem; color: var(--soft); max-width: 13em; }
.th-sum__coupon-line a { margin-left: 6px; font-size: .8125rem; color: var(--blue); }
.th-sum__total { display: flex; justify-content: space-between; align-items: baseline; }
.th-sum__total span { font-size: 1rem; color: var(--ink-2); }
.th-sum__total strong { font-size: 1.75rem; font-weight: 500; color: var(--ink); }
.th-sum__go { min-height: 54px; border-radius: 14px; font-size: 1.0625rem; }
.th-shop .th-sum__update { justify-self: center; padding: 4px 8px; border: 0; cursor: pointer; font-size: .8125rem; text-decoration: underline; text-underline-offset: 3px; background-color: transparent !important; color: var(--soft) !important; }
.th-sum .th-more { justify-self: center; margin: 0; font-size: .9375rem; }
.th-empty { display: grid; justify-items: center; gap: 16px; padding: clamp(48px, 8vw, 96px) 20px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); text-align: center; color: var(--ink-2); }
.th-empty__title { font-size: 1.375rem; font-weight: 500; color: var(--ink); margin: 0; }

/* ---------- 結帳（2026-11-20 重寫：WooCommerce 標準結帳，woocommerce/checkout/form-checkout.php、review-order.php） ---------- */
.th-co { padding-bottom: clamp(64px, 8vw, 120px); }
.th-co__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: clamp(20px, 3vw, 40px); align-items: start; }
.th-co__grid > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
.th-co__main { display: grid; gap: 16px; }
.th-co__card, .th-co__side { padding: clamp(20px, 2.4vw, 28px); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.th-co__side { position: sticky; top: calc(var(--th-stick, 0px) + 16px); display: grid; gap: 16px; }
.th-co__title { margin: 0; font-size: 1.125rem; font-weight: 500; color: var(--ink); }
.th-co__hint { margin: 6px 0 18px; font-size: .875rem; color: var(--soft); }
.th-co__sub { margin: 0 0 10px; font-size: .9375rem; font-weight: 500; color: var(--ink); }
.th-co__note { background: #fff8e8; border-color: #f3dfb2; }
.th-co__note p { margin: 8px 0 0; font-size: .9375rem; line-height: 1.8; color: var(--ink-2); }

/* 欄位：woocommerce_form_field 產生的 p.form-row */
.th-co__fields { display: grid; gap: 16px; }
.th-co__fields + .th-co__fields { margin-top: 16px; }
.th-co .form-row { display: grid; gap: 6px; margin: 0; padding: 0; }
.th-co .form-row label { font-size: .875rem; color: var(--ink-2); }
.th-co .form-row .required { color: #b42318; text-decoration: none; border: 0; }
.th-co .form-row .optional { color: var(--soft); font-size: .8125rem; }
.th-co .form-row :where(input.input-text, textarea) { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(15, 35, 64, .16); background: var(--paper); font: inherit; font-size: 1rem; color: var(--ink); box-sizing: border-box; }
.th-co .form-row textarea { min-height: 96px; resize: vertical; }
.th-co .form-row :where(input.input-text, textarea):focus { outline: 2px solid var(--blue); outline-offset: 1px; background: #fff; border-color: transparent; }
.th-co .form-row.woocommerce-invalid :where(input.input-text, textarea) { border-color: #b42318; background: #fff; }
.th-co .form-row .checkout-inline-error-message { margin: 0; font-size: .8125rem; color: #b42318; }

/* 右邊：訂單、運送、付款 */
.th-co__review { display: grid; gap: 16px; }
.th-co__items { display: grid; margin: 0; padding: 0; list-style: none; }
.th-co__item { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: .9375rem; line-height: 1.6; color: var(--ink); }
.th-co__item:first-child { border-top: 0; padding-top: 0; }
.th-co__name small, .th-co__name .variation { display: block; font-size: .8125rem; color: var(--soft); }
.th-co__name .variation { display: flex; gap: 4px; margin: 0; }
.th-co__name .variation :where(dt, dd, p) { margin: 0; }
.th-co__qty { color: var(--soft); }
.th-co__item > .th-num { white-space: nowrap; }
.th-co .th-sum__rows { padding-bottom: 0; border-bottom: 0; }
.th-co .th-sum__rows > div { display: flex; justify-content: space-between; gap: 12px; }
.th-co__shiptable, .th-co__shiptable :where(tbody, tr, td) { display: block; width: 100%; border: 0; padding: 0; margin: 0; }
.th-co__shiptable th { display: none; }
.th-co :where(#shipping_method, .wc_payment_methods) { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.th-co :where(#shipping_method li, .wc_payment_method) { position: relative; margin: 0; padding: 0; }
.th-co :where(#shipping_method li, .wc_payment_method) > input[type=radio] { position: absolute; left: 16px; top: 18px; width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
.th-co :where(#shipping_method li, .wc_payment_method) > label {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 54px; padding: 12px 16px 12px 46px; border-radius: 14px; cursor: pointer;
  background: var(--paper); border: 1px solid rgba(15, 35, 64, .12); font-size: .9375rem; line-height: 1.5; color: var(--ink); transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.th-co :where(#shipping_method li, .wc_payment_method) > label:hover { border-color: rgba(46, 100, 164, .45); }
.th-co :where(#shipping_method li, .wc_payment_method) > input:checked + label { background: #fff; border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue) inset; }
.th-co :where(#shipping_method li, .wc_payment_method) > input:focus-visible + label { outline: 2px solid var(--blue); outline-offset: 2px; }
.th-co #shipping_method input[type=hidden] + label { padding-left: 16px; cursor: default; }
.th-co #shipping_method .amount { white-space: nowrap; color: var(--ink-2); font-family: 'Sora', 'Noto Sans TC', sans-serif; }
.th-co .wc_payment_method label img { max-height: 24px; width: auto; }
.th-co .payment_box { padding: 10px 16px 2px; font-size: .875rem; line-height: 1.7; color: var(--ink-2); background: none; }
.th-co .payment_box::before { display: none; }
.th-co .payment_box p { margin: 0; }
.th-co #payment { display: grid; gap: 14px; padding-top: 16px; border-top: 1px solid var(--line); background: none; }
.th-co #payment .place-order { display: grid; gap: 12px; margin: 0; padding: 0; }
.th-co .woocommerce-privacy-policy-text p { margin: 0; font-size: .8125rem; line-height: 1.7; color: var(--soft); }
.th-co .woocommerce-privacy-policy-text a { color: var(--blue); }
.th-co #place_order {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; border-radius: 14px; border: 0; cursor: pointer;
  font: 500 1.0625rem 'Noto Sans TC', sans-serif; letter-spacing: .06em; background: var(--ink); color: #fff; transition: background-color .3s var(--ease);
}
.th-co #place_order:hover { background: var(--blue); }
.th-co #place_order:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.th-co .blockUI.blockOverlay { border-radius: var(--r-lg); }
.th-co__pause p:not(.th-empty__title) { margin: 0; max-width: 34em; text-align: center; line-height: 1.8; color: var(--ink-2); }
.th-co__pause a.th-num { color: var(--blue); }

/* ---------- 訂單完成（woocommerce/checkout/thankyou.php；商品明細跟會員中心共用 .th-acc__*） ---------- */
.th-ty { display: grid; gap: 16px; }
.th-ty__help { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.th-ty__help li { padding: 20px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.th-ty__help h3 { margin: 0 0 6px; font-size: 1rem; font-weight: 500; color: var(--ink); }
.th-ty__help p { margin: 0; font-size: .875rem; line-height: 1.7; color: var(--ink-2); }
.th-ty__links { margin: 0; font-size: .9375rem; color: var(--soft); }
.th-ty__links a { color: var(--blue); }

/* ---------- 會員中心（2026-11-20 重寫，page-my-account.php） ---------- */
.th-acc { padding-bottom: clamp(64px, 8vw, 120px); }
.th-acc__grid { margin-top: clamp(24px, 3vw, 36px); display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.th-acc__nav { position: sticky; top: calc(var(--th-stick, 0px) + 16px); display: grid; gap: 4px; padding: 10px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.th-acc__nav a { display: flex; align-items: center; min-height: 46px; padding: 0 16px; border-radius: 14px; color: var(--ink-2); font-size: .9375rem; text-decoration: none; }
.th-acc__nav a:hover { background: var(--mist); color: var(--ink); }
.th-acc__nav a[aria-current] { background: var(--ink); color: #fff; }
.th-acc__nav .th-acc__out { margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0 0 14px 14px; color: var(--soft); }
.th-acc__main { min-width: 0; display: grid; gap: 22px; padding: clamp(20px, 3vw, 32px); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.th-acc__main h2 { margin: 0; font-size: 1.25rem; font-weight: 500; color: var(--ink); }
.th-acc__main h3 { margin: 0 0 8px; font-size: 1rem; font-weight: 500; color: var(--ink); }
.th-acc__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.th-acc__note { margin: 0; font-size: .875rem; color: var(--soft); }
.th-acc__more, .th-acc__back { font-size: .9375rem; color: var(--blue); text-decoration: none; }
.th-acc__more:hover, .th-acc__back:hover { text-decoration: underline; text-underline-offset: 4px; }
.th-acc__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.th-acc__stats li { display: grid; gap: 4px; padding: 18px 20px; border-radius: 18px; background: var(--paper, #f6f9fc); border: 1px solid var(--line); }
.th-acc__stats b { font-size: 1.75rem; font-weight: 500; color: var(--ink); }
.th-acc__stats span { font-size: .875rem; color: var(--soft); }
.th-acc__sec { display: grid; gap: 14px; }
.th-acc__orders { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.th-acc__order { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto 120px 16px; align-items: center; gap: 14px; min-height: 64px; padding: 10px 16px; border-radius: 16px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .25s var(--ease), background-color .25s var(--ease); }
.th-acc__order:hover { border-color: rgba(46, 100, 164, .35); background: var(--mist); }
.th-acc__oid { font-size: .9375rem; color: var(--ink-2); }
.th-acc__osum { display: grid; min-width: 0; }
.th-acc__osum b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; font-size: .9375rem; }
.th-acc__osum small { font-size: .8125rem; color: var(--soft); }
.th-acc__amt { justify-self: end; font-weight: 500; }
.th-acc__go { color: var(--soft); font-size: 1.25rem; }
.th-acc__tag { justify-self: start; display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; font-size: .8125rem; background: var(--mist); color: var(--ink-2); white-space: nowrap; }
.th-acc__tag.is-ok { background: #e3f6ec; color: #167048; }
.th-acc__tag.is-warn { background: #fff2dc; color: #8f5600; }
.th-acc__tag.is-blue { background: var(--mist); color: var(--blue); }
.th-acc__tag.is-bad { background: #fde9e9; color: #b42318; }
.th-acc__empty { display: grid; justify-items: center; gap: 14px; padding: 40px 20px; border-radius: 18px; background: var(--paper, #f6f9fc); color: var(--ink-2); text-align: center; }
.th-acc__empty p { margin: 0; }
.th-acc__help { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 22px; border-radius: 18px; background: var(--mist); }
.th-acc__help p { margin: 4px 0 0; font-size: .9375rem; color: var(--ink-2); }
.th-acc__pager { display: flex; align-items: center; justify-content: center; gap: 14px; }
.th-acc__pay { padding: 16px 18px; border-radius: 16px; background: #fff8e8; border: 1px solid #f3dfb2; font-size: .9375rem; }
.th-acc__items { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.th-acc__items li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.th-acc__pic { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--paper, #f6f9fc); }
.th-acc__pic img { width: 100%; height: 100%; object-fit: cover; }
.th-acc__items a, .th-acc__items b { display: block; color: var(--ink); font-weight: 500; text-decoration: none; }
.th-acc__items a:hover { color: var(--blue); }
.th-acc__series, .th-acc__meta { display: block; font-size: .8125rem; color: var(--soft); }
.th-acc__qty { color: var(--ink-2); }
.th-acc__totals { display: grid; gap: 8px; margin: 0; padding: 16px 18px; border-radius: 16px; background: var(--paper, #f6f9fc); }
.th-acc__totals div { display: flex; justify-content: space-between; gap: 12px; }
.th-acc__totals dt { color: var(--ink-2); }
.th-acc__totals dd { margin: 0; color: var(--ink); }
.th-acc__totals .is-total { padding-top: 10px; border-top: 1px solid var(--line); font-size: 1.125rem; font-weight: 500; }
.th-acc__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.th-acc__box { padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); }
.th-acc__box p { margin: 0 0 8px; line-height: 1.8; color: var(--ink-2); }
.th-acc__form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.th-acc__field { display: grid; gap: 6px; }
.th-acc__field.is-wide, .th-acc__pw, .th-acc__actions { grid-column: 1 / -1; }
.th-acc__field span { font-size: .875rem; color: var(--ink-2); }
.th-acc__field input { min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(15, 35, 64, .16); background: var(--paper, #f6f9fc); color: var(--ink); font: inherit; font-size: 1rem; box-sizing: border-box; width: 100%; }
.th-acc__field input:focus { outline: 2px solid var(--blue); outline-offset: 1px; background: #fff; }
.th-acc__pw { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; margin: 4px 0 0; padding: 18px; border-radius: 16px; border: 1px solid var(--line); }
.th-acc__pw legend { padding: 0 6px; font-size: .9375rem; color: var(--ink); }
.th-acc__actions { display: flex; justify-content: flex-end; }
@media (max-width: 900px) {
  .th-acc__grid { grid-template-columns: minmax(0, 1fr); }
  .th-acc__nav { position: static; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; scrollbar-width: none; }
  .th-acc__nav .th-acc__out { margin: 0; border: 0; border-radius: 14px; }
  .th-acc__order { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "sum amt" "id tag"; row-gap: 4px; }
  .th-acc__osum { grid-area: sum; }
  .th-acc__amt { grid-area: amt; }
  .th-acc__oid { grid-area: id; font-size: .8125rem; }
  .th-acc__tag { grid-area: tag; justify-self: end; }
  .th-acc__go { display: none; }
  .th-acc__items li { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .th-acc__items .th-acc__qty { display: none; }
  .th-acc__form, .th-acc__pw { grid-template-columns: minmax(0, 1fr); }
  .th-acc__stats li { padding: 14px; }
  .th-acc__stats b { font-size: 1.375rem; }
}

/* 需安裝商品的結帳提示（外掛用行內樣式插入，這裡改回同一套顏色） */
.th-shop .installation-notice { border: 0 !important; border-radius: 16px !important; background: var(--mist) !important; color: var(--ink-2) !important; font-size: .9375rem !important; margin-bottom: 20px !important; }
.th-shop .installation-notice strong { color: var(--ink); font-weight: 500; }
.th-shop .payment_box { background: transparent !important; margin: 0 !important; }

/* 頁尾：跟首頁一樣的霧藍圓角 */
.th-shop .site-footer { margin: 12px; border-radius: 32px; background: #3f6d9f; padding: 56px 24px 32px; }
.th-shop .site-footer a { color: #fff; }
.th-shop .site-footer .footer-divider { background: rgba(255, 255, 255, .22); }
.th-shop .site-footer .copyright, .th-shop .site-footer .copyright p { color: #fff; }

@media (max-width: 960px) {
  .th-cart__grid, .th-co__grid { grid-template-columns: 1fr; }
  .th-sum, .th-co__side { position: static; }
  .th-ty__help { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .th-shop { --gutter: 20px; }
  .th-shophead { align-items: start; }
  .th-steps li { padding: 4px 10px 4px 4px; font-size: .8125rem; }
  .th-steps__n { width: 22px; height: 22px; }
  .th-line { grid-template-columns: 76px minmax(0, 1fr) auto; grid-template-areas: "pic info del" "qty qty sub"; gap: 12px 14px; }
  .th-line__pic { grid-area: pic; width: 76px; }
  .th-line__info { grid-area: info; }
  .th-line__qty { grid-area: qty; justify-self: start; }
  .th-line__sub { grid-area: sub; align-self: center; }
  .th-line__del { grid-area: del; align-self: start; width: 36px; height: 36px; }
  .th-sum { padding: 18px; }
  .th-shop .site-footer { margin: 8px; border-radius: 24px; }
}
