/* Nyla 妮拉｜結帳頁（2026-11-11）：訂購商品卡 → ① 取貨門市 → ② 取貨人 → ③ 確認訂單。配色、字體沿用全站（site.css 的 --ny-*）。
   商品頁也載入這支：「立即購買」按鈕、放進購物車後的提示。 */

/* ---------- 訂購商品卡 ---------- */
.ny-co-top { margin: 0 0 26px; transition: opacity .2s; }
.ny-co-top.is-busy { opacity: .55; pointer-events: none; }
.ny-sum { padding: 16px; border: 1.5px solid var(--ny-line); border-radius: var(--ny-r); background: #fff; box-shadow: 0 6px 20px rgba(17,20,24,.06); }
.ny-sum__h { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 10px; font: 900 18px/1.3 var(--ny-font); }
.ny-sum__h span { font-size: 14px; font-weight: 500; color: var(--ny-mute); }
.ny-sum__list { list-style: none; margin: 0; padding: 0; }
.ny-sum__item { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 12px 0; border-top: 1px dashed var(--ny-line); }
.ny-sum__item:first-child { border-top: 0; padding-top: 2px; }
.ny-sum__img { display: block; width: 64px; height: 80px; object-fit: cover; border-radius: 10px; background: var(--ny-gray); }
.ny-sum__name { margin: 0; font: 800 15.5px/1.4 var(--ny-font); color: var(--ny-ink); }
.ny-sum__meta { margin: 3px 0 0; font-size: 14px; line-height: 1.5; color: var(--ny-mute); }
.ny-sum__meta b { color: var(--ny-ink2); }
.ny-sum__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 8px; }
.ny-qty { display: inline-flex; align-items: center; overflow: hidden; border: 1.5px solid var(--ny-line); border-radius: 10px; background: #fff; }
.ny-qty button { width: 38px; height: 40px; padding: 0; border: 0; background: var(--ny-gray); color: var(--ny-ink); font: 700 22px/1 var(--ny-font); cursor: pointer; touch-action: manipulation; }
.ny-qty button:disabled { color: #B9BEC6; cursor: default; }
.ny-qty output { min-width: 34px; text-align: center; font: 800 18px/1 var(--ny-font); }
.ny-sum__del { flex: none; white-space: nowrap; padding: 6px 2px; border: 0; background: none; color: var(--ny-mute); font: 500 14px/1 var(--ny-font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ny-sum__line { margin-left: auto; white-space: nowrap; font: 800 17px/1 var(--ny-font); color: var(--ny-ink); }
.ny-sum__total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 4px; padding-top: 12px; border-top: 1.5px solid var(--ny-ink); }
.ny-sum__total span { font-size: 15px; color: var(--ny-ink2); }
.ny-sum__total b { font: 900 28px/1.1 var(--ny-font); color: var(--ny-cobalt); }
.ny-sum__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.ny-sum__chips li { padding: 7px 12px; border-radius: 999px; background: var(--ny-gray); font: 700 14px/1.25 var(--ny-font); color: var(--ny-ink2); }
.ny-sum__chips li.is-ok::before { content: "✓"; margin-right: 6px; color: #1E9E5A; font-weight: 900; }
.ny-sum__chips li.is-todo { background: #EEF2FF; color: var(--ny-cobalt); }
.ny-easy { margin: 12px 0 0; padding: 12px 14px; border: 1.5px solid #CFE6D6; border-radius: 12px; background: #F0F8F2; }
.ny-easy__t { margin: 0; font: 900 16px/1.4 var(--ny-font); color: #1E7A47; }
.ny-easy__t::before { content: "✓"; margin-right: 6px; }
.ny-easy__d { margin: 4px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--ny-ink2); }
.ny-easy__d span { white-space: nowrap; }
.ny-sum__err { margin: 10px 0 0; font-size: 14.5px; font-weight: 700; color: var(--ny-red); }
.ny-sum__err:empty { display: none; }

/* ---------- 加購：第二件瑜伽褲、湊免運 ---------- */
.ny-offer { margin: 12px 0 0; padding: 14px 16px; border: 1.5px solid #C9D3FF; border-radius: var(--ny-r); background: #EEF2FF; }
.ny-offer__t { margin: 0; font: 900 16.5px/1.45 var(--ny-font); color: var(--ny-ink); }
.ny-offer__t b { color: var(--ny-cobalt); }
.ny-offer__d { margin: 3px 0 0; font-size: 14px; color: var(--ny-ink2); }
.ny-offer__label { margin: 12px 0 6px; font: 700 14px/1.3 var(--ny-font); color: var(--ny-ink2); }
.ny-offer__colors { display: flex; flex-wrap: wrap; gap: 8px; }
.ny-sw2 { width: 36px; height: 36px; padding: 3px; border: 2px solid transparent; border-radius: 999px; background: #fff; cursor: pointer; }
.ny-sw2 span { display: block; width: 100%; height: 100%; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.ny-sw2.is-on { border-color: var(--ny-ink); }
.ny-offer__sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.ny-pill { min-width: 52px; min-height: 42px; padding: 0 12px; border: 1px solid var(--ny-ink); border-radius: 10px; background: #fff; color: var(--ny-ink); font: 700 15px/1 var(--ny-font); cursor: pointer; touch-action: manipulation; }
.ny-pill.is-on { background: var(--ny-ink); color: #fff; }
.ny-pill:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.ny-pill small { display: block; margin-top: 2px; font-size: 10px; font-weight: 500; text-decoration: none; }
.ny-offer__add { display: block; width: 100%; min-height: 48px; margin-top: 12px; border: 0; border-radius: 12px; background: var(--ny-cobalt); color: #fff; font: 800 16px/1 var(--ny-font); cursor: pointer; touch-action: manipulation; }
.ny-offer__add:disabled { background: #A9B1C2; cursor: default; }
.ny-offer__list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.ny-offer__card { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 12px; border-radius: 12px; background: #fff; }
.ny-offer__card img { width: 64px; height: 80px; object-fit: cover; border-radius: 10px; background: var(--ny-gray); }
.ny-offer__name { margin: 0; font: 800 15px/1.4 var(--ny-font); }
.ny-offer__price { margin: 2px 0 8px; font: 800 16px/1 var(--ny-font); color: var(--ny-cobalt); }
.ny-offer__card .ny-offer__add { margin-top: 10px; min-height: 44px; font-size: 15px; }

/* ---------- ①②③ 段落標題 ---------- */
.woocommerce-checkout .kk-pick { margin: 0 0 26px; }
.woocommerce-checkout .kk-pick h3, .woocommerce-checkout .woocommerce-billing-fields > h3, .woocommerce-checkout #order_review_heading { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 900 20px/1.4 var(--ny-font); color: var(--ny-ink); }
.woocommerce-checkout .kk-pick h3::before, .woocommerce-checkout .woocommerce-billing-fields > h3::before, .woocommerce-checkout #order_review_heading::before { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 999px; background: var(--ny-cobalt); color: #fff; font: 800 15px/1 var(--ny-font); }
.woocommerce-checkout .kk-pick h3::before { content: "1"; }
.woocommerce-checkout .woocommerce-billing-fields > h3::before { content: "2"; }
.woocommerce-checkout #order_review_heading::before { content: "3"; }
.woocommerce-checkout #order_review_heading { margin-top: 10px; }
.woocommerce-checkout .woocommerce-additional-fields > h3 { display: none; }
.woocommerce-checkout .col2-set .col-2:not(:has(.form-row)) { display: none; }

/* ---------- 選填兩格：Email、備註各自一個框，平常收起來 ---------- */
.ny-more { margin: 16px 0 0; border: 1.5px solid var(--ny-line); border-radius: 12px; background: #fff; }
.ny-more + .ny-more { margin-top: 10px; }
.ny-more > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; list-style: none; cursor: pointer; font: 700 15.5px/1.45 var(--ny-font); color: var(--ny-ink); }
.ny-more > summary::-webkit-details-marker { display: none; }
.ny-more > summary small { white-space: nowrap; font-size: 13.5px; font-weight: 500; color: var(--ny-mute); }
.ny-more > summary::after { content: "＋"; flex: none; font: 400 22px/1 var(--ny-font); color: var(--ny-cobalt); }
.ny-more[open] > summary::after { content: "－"; }
.ny-more__in { padding: 0 16px 6px; }
.ny-more .form-row { margin-top: 0; padding-top: 0; }
.ny-more label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 手機驗證：還沒驗證就按下單時，按鈕閃兩下 ---------- */
.kk-pv__send.is-nudge { animation: nyNudge .55s ease-in-out 2; }
@keyframes nyNudge { 0%, 100% { transform: none; box-shadow: none; } 50% { transform: scale(1.06); box-shadow: 0 0 0 6px rgba(27,63,216,.25); } }

/* ---------- 下單沒成功的提示、確認訂單 ---------- */
.woocommerce-NoticeGroup-checkout .woocommerce-error { margin: 0 0 20px; padding: 14px 16px; border: 1px solid #F3C9C7; border-left: 4px solid var(--ny-red); border-radius: 12px; background: #FFF6F5; color: var(--ny-ink); font-size: 15.5px; line-height: 1.6; }
.woocommerce-NoticeGroup-checkout .woocommerce-error li { margin: 2px 0; font-weight: 700; }
.woocommerce-checkout-review-order-table .order-total th, .woocommerce-checkout-review-order-table .order-total td { font-size: 17px; font-weight: 900; }
.ny-agree { margin: 12px 0 0; text-align: center; font-size: 13.5px; line-height: 1.7; color: var(--ny-mute); }
.ny-agree a { color: var(--ny-cobalt); text-underline-offset: 2px; }

/* ---------- 商品頁：立即購買、放進購物車後的提示 ---------- */
.ny-buy-now { display: block; width: 100%; min-height: 56px; margin-top: 10px; border: 2px solid var(--ny-ink); border-radius: 12px; background: #fff; color: var(--ny-ink); font: 800 18px/1 var(--ny-font); cursor: pointer; touch-action: manipulation; }
.ny-buy-now:hover { background: var(--ny-lime); }
.ny-buy-now.is-off { opacity: .45; }
.woocommerce-message .ny-added { display: block; font-size: 15px; line-height: 1.55; }
.woocommerce-message .ny-added b { margin-right: 6px; }
.woocommerce-message .ny-added__acts { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.woocommerce-message .ny-added__go { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 12px; background: var(--ny-cobalt); color: #fff !important; font-weight: 800; text-decoration: none; }
.woocommerce-message .ny-added__cart { color: var(--ny-ink2); font-size: 14.5px; text-underline-offset: 3px; }

@media (min-width: 900px) {
  .ny-sum, .ny-offer { padding: 18px 20px; }
}

/* ---------- 購物車／結帳最上面的放心條（11/13）：推薦 7-11，退貨免運 ---------- */
.ny-trust { margin: 0 0 14px; padding: 12px 14px; border: 1.5px solid #CFE6D6; border-radius: 12px; background: #F0F8F2; }
.ny-trust__t { margin: 0; font: 900 16px/1.4 var(--ny-font); color: #1E7A47; }
.ny-trust__d { margin: 4px 0 0; font-size: 14.5px; line-height: 1.65; color: var(--ny-ink2); }
.ny-trust__d a { color: var(--ny-cobalt); font-weight: 700; white-space: nowrap; text-underline-offset: 3px; }
/* 購物車加購區（跟結帳頁同一個區塊） */
.ny-cart-offer { margin: 0 0 18px; transition: opacity .2s; }
.ny-cart-offer.is-busy { opacity: .55; pointer-events: none; }
.ny-cart-offer .ny-offer { margin-top: 0; }
