/* ============================================================
   Basket (and the delivery choices on checkout) — NerdWare look.
   Templates: woocommerce/cart/*.php
   ============================================================ */

/* Layout: items left, summary right */
.woocommerce-cart .nw-page-shop .woocommerce { grid-template-columns: minmax(0, 1fr) 380px; gap: 26px; }
.nw-basket-form { background: #fff; border-radius: 22px; padding: 22px 24px 12px; box-shadow: 0 1px 0 var(--nw-line), 0 12px 30px rgba(11, 34, 57, .08); }

/* Nerd Coins box from the CardScan plugin */
.nw-basket-form .cardscan-points-checkout { margin: 0 0 16px; border-radius: 16px !important; }

.nw-basket-head { display: flex; justify-content: space-between; align-items: center; margin: 2px 2px 8px; font-weight: 800; color: var(--nw-muted); }
.nw-basket-head a { font-weight: 900; color: var(--nw-blue-dark); }

/* Item rows */
.nw-bitems { list-style: none; margin: 0; padding: 0; border: 0; }
.nw-bitem {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) auto 96px; align-items: center; gap: 16px;
  padding: 16px 4px; border-top: 1px solid var(--nw-line);
}
.nw-bitem:first-child { border-top: 0; }
.nw-bitem-pic img { width: 76px; height: 106px; object-fit: contain; border-radius: 8px; background: radial-gradient(circle at 50% 40%, #e8f6fd, #f4f9fd 70%); padding: 4px; }
.nw-bitem-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.nw-bitem-name { font-weight: 900; font-size: 1.05rem; color: var(--nw-navy); line-height: 1.25; }
a.nw-bitem-name:hover { color: var(--nw-blue-dark); }
.nw-bitem-sub { color: var(--nw-muted); font-weight: 700; font-size: .88rem; }
.nw-bitem-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.nw-bitem-tags .nw-tag { position: static; box-shadow: inset 0 0 0 1px var(--nw-line); }
.nw-bitem-each { color: var(--nw-muted); font-size: .85rem; font-weight: 700; }
.nw-bitem-meta { font-size: .85rem; color: var(--nw-muted); }
.nw-bitem-meta dl { margin: 0; }
a.nw-bitem-remove {
  align-self: flex-start; margin-top: 6px; display: inline-flex; align-items: center; gap: 5px; width: auto !important; height: auto !important;
  padding: 3px 0 !important; background: none !important; color: var(--nw-muted) !important; font-size: .82rem !important; font-weight: 800 !important; border-radius: 0 !important;
}
a.nw-bitem-remove span { font-size: .75rem; }
a.nw-bitem-remove:hover { color: var(--nw-red) !important; text-decoration: none; }
.nw-bitem-total { text-align: right; font-weight: 900; font-size: 1.2rem; color: var(--nw-navy); }

/* Quantity: −  1  +  (or "Only 1") */
.nw-bitem-only { display: inline-block; padding: 7px 12px; border-radius: 99px; background: #fff4e5; color: #b45309; font-weight: 900; font-size: .8rem; white-space: nowrap; }
.nw-stepper { display: inline-flex; align-items: center; border: 2px solid var(--nw-line); border-radius: 12px; overflow: hidden; background: #fff; }
.nw-stepper .quantity { margin: 0; }
.nw-stepper input.qty {
  width: 44px !important; padding: 8px 0 !important; border: 0 !important; border-radius: 0 !important; text-align: center; font-weight: 900; font-size: 1rem;
  -moz-appearance: textfield; appearance: textfield;
}
.nw-stepper input.qty::-webkit-outer-spin-button, .nw-stepper input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.nw-step { width: 36px; height: 38px; border: 0; background: var(--nw-bg); color: var(--nw-navy); font-size: 1.2rem; font-weight: 900; cursor: pointer; }
.nw-step:hover { background: var(--nw-aqua-soft); }

/* Coupon + update */
.nw-basket-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 4px 8px; border-top: 1px solid var(--nw-line); }
.nw-coupon summary { cursor: pointer; font-weight: 800; color: var(--nw-blue-dark); list-style: none; }
.nw-coupon summary::-webkit-details-marker { display: none; }
.nw-coupon-row { display: flex; gap: 8px; margin-top: 10px; }
.nw-coupon-row input { width: 200px; padding: 10px 12px; border: 2px solid var(--nw-line); border-radius: 10px; font-weight: 700; }
.nw-coupon-row .nw-btn { padding: 10px 18px; }
/* With JavaScript the basket updates by itself, so the button isn't needed. */
.nw-js .nw-update-basket { display: none; }
.nw-update-basket { padding: 9px 16px; border-radius: 10px; border: 2px solid var(--nw-line); background: #fff; font-weight: 800; color: var(--nw-navy); cursor: pointer; }

/* Summary card */
.cart-collaterals .nw-summary {
  position: sticky; top: 96px; background: #fff; border-radius: 22px; padding: 22px 22px 18px;
  box-shadow: 0 1px 0 var(--nw-line), 0 12px 30px rgba(11, 34, 57, .08);
}
.nw-summary h2 { margin: 0 0 14px; font-size: 1.3rem; color: var(--nw-navy); }
.nw-summary-table { width: 100%; border: 0 !important; margin: 0 0 6px; }
.nw-summary-table th { text-align: left; font-weight: 800; color: var(--nw-muted); padding: 10px 0 !important; border-bottom: 1px solid var(--nw-line); }
.nw-summary-table td { text-align: right; font-weight: 800; color: var(--nw-ink); padding: 10px 0 !important; border-bottom: 1px solid var(--nw-line); }
.nw-summary-table tr.order-total th, .nw-summary-table tr.order-total td { border-bottom: 0; padding-top: 14px !important; }
.nw-summary-table tr.order-total th { color: var(--nw-navy); font-size: 1.1rem; }
.nw-summary-table tr.order-total td { font-size: 1.6rem; font-weight: 900; color: var(--nw-navy); }
.nw-summary-table tr.order-total td small { display: block; font-size: .7rem; color: var(--nw-muted); font-weight: 700; }
.nw-summary-table tr.fee td, .nw-summary-table tr.cart-discount td { color: var(--nw-green); }

/* Free delivery bar */
.nw-freebar { margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(160deg, #eaf6fd, #d8f0fb); }
.nw-freebar p { margin: 0 0 8px; font-weight: 700; font-size: .92rem; color: var(--nw-navy); }
.nw-freebar-track { display: block; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .8); overflow: hidden; }
.nw-freebar-track span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--nw-aqua), var(--nw-blue)); transition: width .4s; }
.nw-freebar.is-done { background: #dff6e8; }
.nw-freebar.is-done .nw-freebar-track span { background: var(--nw-green); }

/* Delivery tiles (basket summary and checkout) */
tr.nw-ship-row td { text-align: left !important; padding: 12px 0 !important; }
tr.nw-ship-row td::before { display: none !important; }
.nw-ship-head { font-weight: 800; color: var(--nw-muted); margin-bottom: 8px; }
.nw-ship-opts { list-style: none; margin: 0; padding: 0 !important; display: grid; gap: 8px; }
.nw-ship-opts li { position: relative; margin: 0 !important; padding: 0 !important; list-style: none; }
.nw-ship-opts li::before { display: none !important; }
.nw-ship-opts input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.nw-ship-opts label {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0; padding: 11px 14px 11px 40px; cursor: pointer;
  border: 2px solid var(--nw-line); border-radius: 14px; background: #fff; font-weight: 800; color: var(--nw-ink); position: relative;
  transition: border-color .15s, background .15s;
}
.nw-ship-opts label::before {
  content: ""; position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%;
  border: 2px solid #b9c7d8; background: #fff; box-sizing: border-box;
}
.nw-ship-opts input[type="radio"]:checked + label,
.nw-ship-opts li.is-chosen label { border-color: var(--nw-blue); background: #f0f8ff; }
.nw-ship-opts input[type="radio"]:checked + label::before,
.nw-ship-opts li.is-chosen label::before { border: 5px solid var(--nw-blue); }
.nw-ship-opts input[type="hidden"] + label { padding-left: 14px; }
.nw-ship-opts input[type="hidden"] + label::before { display: none; }
.nw-ship-opts input[type="radio"]:focus-visible + label { outline: 3px solid var(--nw-aqua); outline-offset: 2px; }
.nw-ship-name { font-size: .92rem; line-height: 1.3; }
.nw-ship-price { font-weight: 900; color: var(--nw-navy); white-space: nowrap; }
.nw-ship-price.is-free { color: var(--nw-green); }
.nw-ship-dest, .nw-ship-note { margin: 8px 0 0; font-size: .82rem; color: var(--nw-muted); font-weight: 700; }
.woocommerce-shipping-calculator { margin-top: 6px; font-size: .85rem; }

/* Checkout button */
.nw-summary .wc-proceed-to-checkout { padding: 0; margin-top: 8px; }
.nw-summary .wc-proceed-to-checkout .checkout-button {
  display: block; width: 100%; margin: 0; padding: 17px 20px; border-radius: 16px; text-align: center;
  background: var(--nw-yellow) !important; color: var(--nw-navy) !important; font-size: 1.15rem; font-weight: 900;
  box-shadow: 0 6px 0 #2bb3c6, 0 12px 24px rgba(224, 180, 0, .35); transition: transform .1s, box-shadow .1s;
}
.nw-summary .wc-proceed-to-checkout .checkout-button:hover { transform: translateY(-1px); text-decoration: none; }
.nw-summary .wc-proceed-to-checkout .checkout-button:active { transform: translateY(4px); box-shadow: 0 2px 0 #2bb3c6; }

/* Empty basket */
.woocommerce-cart .nw-page-shop .woocommerce > .nw-basket-empty { grid-column: 1 / -1; }
.nw-basket-empty { text-align: center; background: #fff; border-radius: 22px; padding: 50px 24px; box-shadow: 0 1px 0 var(--nw-line), 0 12px 30px rgba(11, 34, 57, .08); }
.nw-basket-empty-icon { display: inline-flex; width: 90px; height: 90px; border-radius: 50%; align-items: center; justify-content: center; font-size: 2.6rem; background: var(--nw-aqua-soft); }
.nw-basket-empty h2 { margin: 16px 0 6px; font-size: 1.7rem; color: var(--nw-navy); }
.nw-basket-empty p { color: var(--nw-muted); font-weight: 700; }

@media (max-width: 900px) {
  .woocommerce-cart .nw-page-shop .woocommerce { grid-template-columns: 1fr; }
  .cart-collaterals .nw-summary { position: static; }
}
@media (max-width: 600px) {
  .nw-basket-form { padding: 16px 14px 8px; border-radius: 18px; }
  .nw-bitem { grid-template-columns: 62px minmax(0, 1fr) auto; grid-template-areas: "pic info total" "pic qty total"; gap: 6px 12px; padding: 14px 0; }
  .nw-bitem-pic { grid-area: pic; align-self: start; }
  .nw-bitem-pic img { width: 62px; height: 86px; }
  .nw-bitem-info { grid-area: info; }
  .nw-bitem-qty { grid-area: qty; }
  .nw-bitem-total { grid-area: total; align-self: start; font-size: 1.05rem; }
  .nw-bitem-name { font-size: .95rem; }
  .nw-basket-actions { flex-direction: column; align-items: stretch; }
  .nw-coupon-row input { flex: 1; width: auto; }
}

/* The basket updates by itself, and "added to your basket — View basket" is pointless on the basket page. */
.nw-js .nw-basket-actions .nw-update-basket { display: none !important; }
.woocommerce-cart .woocommerce-message .button.wc-forward { display: none; }

/* Nerd Coins this order earns (basket + checkout summaries) */
tr.nw-coins-row td { padding: 4px 0 8px !important; border: 0 !important; text-align: left !important; }
tr.nw-coins-row td::before { display: none !important; }
.nw-coins-note { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #fff8dc; color: var(--nw-navy); font-weight: 700; font-size: .88rem; line-height: 1.35; box-shadow: inset 0 0 0 1px #f5df8a; }
.nw-coins-note > span:first-child { font-size: 1.3rem; }
.nw-coins-note b { font-weight: 900; }
.nw-coins-note a { font-weight: 900; color: var(--nw-blue-dark); text-decoration: underline; }
.nw-coins-note.is-using { background: #f3f6fa; box-shadow: inset 0 0 0 1px var(--nw-line); color: var(--nw-muted); }

/* Trade credit box (CardScan plugin, includes/trade-credit-web.php) */
.cardscan-tc-checkout { margin: 0 0 16px; padding: 16px 18px; border-radius: 16px; background: linear-gradient(135deg, #0f5132, #16924e); color: #fff; box-shadow: 0 8px 22px rgba(22, 146, 78, .25); }
.cardscan-tc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.cardscan-tc-top strong { font-size: 1.05rem; }
.cardscan-tc-top b, .cardscan-tc-on b { color: #ffe27a; }
.cardscan-tc-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; font-weight: 800; }
.cardscan-tc-row input { width: 110px; padding: 9px 12px; border: 0; border-radius: 10px; font-weight: 900; font-size: 1rem; color: var(--nw-navy); }
.cardscan-tc-btn { padding: 10px 18px; border: 0; border-radius: 12px; background: var(--nw-yellow); color: var(--nw-navy); font-weight: 900; cursor: pointer; }
.cardscan-tc-btn.is-ghost { background: rgba(255, 255, 255, .16); color: #fff; }
.cardscan-tc-btn:disabled { opacity: .6; }
.cardscan-tc-on { margin: 10px 0 8px; font-weight: 800; }
.cardscan-tc-small { margin: 10px 0 0; font-size: .78rem; opacity: .85; font-weight: 700; }
.nw-summary-table tr.fee td { color: var(--nw-green); }

/* Nerd Coins and Trade credit side by side, smaller (one alone fills the row). */
.nw-basket-form { display: flex; flex-wrap: wrap; column-gap: 14px; align-content: flex-start; }
.nw-basket-form > * { flex: 1 1 100%; min-width: 0; }
.nw-basket-form > .cardscan-points-checkout,
.nw-basket-form > .cardscan-tc-checkout { flex: 1 1 calc(50% - 7px); margin: 0 0 16px !important; padding: 14px 16px !important; border: 0 !important; display: flex; flex-direction: column; gap: 6px; }
.nw-basket-form > .cardscan-points-checkout p,
.nw-basket-form > .cardscan-tc-checkout p { margin: 0 !important; font-size: .86rem; line-height: 1.35; }
.nw-basket-form > .cardscan-points-checkout > strong,
.cardscan-tc-top strong { font-size: .95rem; }
.cardscan-tc-top { flex-direction: column; align-items: flex-start; gap: 2px; }
.cardscan-tc-top span { font-size: .86rem; font-weight: 700; }
.nw-basket-form > .cardscan-points-checkout > div { margin-top: auto !important; gap: 6px !important; }
.nw-basket-form > .cardscan-points-checkout input[type="number"] { width: 80px !important; padding: 7px 8px; }
.nw-basket-form > .cardscan-points-checkout .button,
.cardscan-tc-btn { margin-top: auto; align-self: flex-start; padding: 8px 14px !important; font-size: .85rem !important; border-radius: 10px !important; }
.cardscan-tc-row { margin-top: auto; gap: 6px; }
.cardscan-tc-row input { width: 86px; padding: 7px 8px; font-size: .9rem; }
.cardscan-tc-small { font-size: .72rem; }
@media (max-width: 760px) {
  .nw-basket-form > .cardscan-points-checkout,
  .nw-basket-form > .cardscan-tc-checkout { flex-basis: 100%; }
}
.nw-basket-form > .cardscan-points-checkout label { font-size: .86rem; font-weight: 800; color: #fff; }
.nw-basket-form > .cardscan-points-checkout div span { font-size: .72rem !important; }
.nw-basket-form > .cardscan-points-checkout .cardscan-points-small { margin: 4px 0 0 !important; font-size: .72rem !important; font-weight: 700; color: #a6dbe6 !important; }

/* Nerd Coins + Trade credit, stacked above the order summary */
.cart-collaterals { display: flex; flex-direction: column; gap: 14px; }
.nw-wallet { display: flex; flex-direction: column; gap: 12px; }
.nw-wallet > .cardscan-points-checkout,
.nw-wallet > .cardscan-tc-checkout { margin: 0 !important; padding: 14px 16px !important; border: 0 !important; border-radius: 18px !important; display: flex; flex-direction: column; gap: 6px; }
.nw-wallet > .cardscan-points-checkout p,
.nw-wallet > .cardscan-tc-checkout p { margin: 0 !important; font-size: .86rem; line-height: 1.35; }
.nw-wallet > .cardscan-points-checkout > strong { font-size: .95rem; }
.nw-wallet > .cardscan-points-checkout > div { margin-top: 2px !important; gap: 6px !important; }
.nw-wallet > .cardscan-points-checkout label { font-size: .86rem; font-weight: 800; color: #fff; }
.nw-wallet > .cardscan-points-checkout div span { font-size: .72rem !important; }
.nw-wallet > .cardscan-points-checkout input[type="number"] { width: 80px !important; padding: 7px 8px; }
.nw-wallet > .cardscan-points-checkout .button { align-self: flex-start; padding: 8px 14px !important; font-size: .85rem !important; border-radius: 10px !important; }
.nw-wallet > .cardscan-points-checkout .cardscan-points-small { margin: 2px 0 0 !important; font-size: .72rem !important; font-weight: 700; color: #a6dbe6 !important; }
.nw-wallet .cardscan-tc-top { flex-direction: row; justify-content: space-between; align-items: center; }
.nw-wallet .cardscan-tc-row { margin-top: 4px; }
.nw-wallet .cardscan-tc-row input { width: 86px; padding: 7px 8px; font-size: .9rem; }
.nw-wallet .cardscan-tc-btn { padding: 8px 14px; font-size: .85rem; border-radius: 10px; }
.nw-wallet .cardscan-tc-small { font-size: .72rem; margin-top: 2px; }
/* The column scrolls with the page (a tall sticky column could hide the checkout button). */
.cart-collaterals .nw-summary { position: static; }

/* Side by side above the summary: two neat, equal cards. */
.woocommerce-cart .nw-page-shop .woocommerce { grid-template-columns: minmax(0, 1fr) 430px; }
.nw-wallet { flex-direction: row; align-items: stretch; gap: 10px; }
.nw-wallet > .cardscan-points-checkout,
.nw-wallet > .cardscan-tc-checkout { flex: 1 1 0; min-width: 0; padding: 14px !important; gap: 8px; }
.nw-wallet .cardscan-tc-top { flex-direction: column; align-items: flex-start; gap: 4px; }
.nw-wallet > .cardscan-points-checkout > strong,
.nw-wallet .cardscan-tc-top strong { font-size: .95rem; }
.nw-wallet > .cardscan-points-checkout > p:not(.cardscan-points-small),
.nw-wallet .cardscan-tc-top span { font-size: .8rem !important; line-height: 1.35; }
/* Amount box and button: full width, one under the other, at the bottom of each card. */
.nw-wallet > .cardscan-points-checkout > div,
.nw-wallet .cardscan-tc-row { display: grid !important; grid-template-columns: auto 1fr; align-items: center; gap: 6px !important; margin-top: auto !important; }
.nw-wallet > .cardscan-points-checkout label,
.nw-wallet .cardscan-tc-row label { font-size: .78rem; white-space: nowrap; }
.nw-wallet > .cardscan-points-checkout input[type="number"],
.nw-wallet .cardscan-tc-row input { width: 100% !important; min-width: 0; padding: 7px 8px; font-size: .9rem; }
.nw-wallet > .cardscan-points-checkout div span { grid-column: 1 / -1; font-size: .68rem !important; margin-top: -2px; }
.nw-wallet > .cardscan-points-checkout .button,
.nw-wallet .cardscan-tc-btn { grid-column: 1 / -1; width: 100%; align-self: stretch; text-align: center; padding: 9px 10px !important; font-size: .82rem !important; }
.nw-wallet > .cardscan-points-checkout > .button,
.nw-wallet > .cardscan-tc-checkout > .cardscan-tc-btn { margin-top: auto; }
.nw-wallet > .cardscan-points-checkout .cardscan-points-small,
.nw-wallet .cardscan-tc-small { font-size: .68rem !important; line-height: 1.3; }
@media (max-width: 1100px) { .woocommerce-cart .nw-page-shop .woocommerce { grid-template-columns: minmax(0, 1fr) 380px; } }
@media (max-width: 900px) { .woocommerce-cart .nw-page-shop .woocommerce { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .nw-wallet { flex-direction: column; } }

/* Inside the order summary card */
.nw-summary .nw-wallet { margin: 0 0 14px; }
.woocommerce-cart .nw-page-shop .woocommerce { grid-template-columns: minmax(0, 1fr) 440px; }
@media (max-width: 1100px) { .woocommerce-cart .nw-page-shop .woocommerce { grid-template-columns: minmax(0, 1fr) 400px; } }
@media (max-width: 900px) { .woocommerce-cart .nw-page-shop .woocommerce { grid-template-columns: 1fr; } }

/* ── "Pay with your rewards" (template-parts/rewards.php) ── */
.nw-summary .nw-wallet { display: none; }
.nw-paywith { margin: 6px 0 10px; padding: 16px; border-radius: 18px; background: linear-gradient(160deg, #f4f9fd, #eef6fc); border: 1px solid var(--nw-line); }
.nw-paywith h3 { margin: 0 0 10px; font-size: 1.05rem; color: var(--nw-navy); }
.nw-reward {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 4px 12px;
  padding: 12px 14px; margin-bottom: 8px; border-radius: 14px; background: #fff; border: 2px solid transparent;
  box-shadow: 0 1px 0 var(--nw-line); transition: border-color .15s;
}
.nw-reward.is-on { border-color: var(--nw-green); }
.nw-reward-ico { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.45rem; background: var(--nw-bg); }
.nw-reward-text b { display: block; color: var(--nw-navy); font-size: 1rem; }
.nw-reward-text small { color: var(--nw-muted); font-weight: 700; font-size: .85rem; }
.nw-reward.is-on .nw-reward-text small { color: var(--nw-green); }
/* The switch */
.nw-switch { position: relative; width: 54px; height: 30px; border: 0; padding: 0; border-radius: 99px; background: #cfd9e6; cursor: pointer; transition: background .2s; }
.nw-switch span { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .25); transition: transform .2s; }
.nw-switch[aria-checked="true"] { background: var(--nw-green); }
.nw-switch[aria-checked="true"] span { transform: translateX(24px); }
.nw-switch:disabled { opacity: .6; cursor: wait; }
.nw-switch:focus-visible { outline: 3px solid var(--nw-aqua); outline-offset: 2px; }
/* "Use fewer coins / Use less" */
.nw-reward-change { grid-column: 2 / -1; }
.nw-reward-change summary { cursor: pointer; list-style: none; font-size: .8rem; font-weight: 800; color: var(--nw-blue-dark); }
.nw-reward-change summary::-webkit-details-marker { display: none; }
.nw-reward-amount { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; font-weight: 800; font-size: .85rem; color: var(--nw-muted); }
.nw-reward-amount input { width: 100px; padding: 7px 10px; border: 2px solid var(--nw-line); border-radius: 10px; font-weight: 900; color: var(--nw-navy); }
.nw-reward-amount .nw-btn { padding: 7px 16px; font-size: .85rem; }
.nw-paywith-note { margin: 4px 2px 0; font-size: .78rem; font-weight: 700; color: var(--nw-muted); }
/* Discounts in the summary: green */
.nw-summary-table tr.fee th { color: var(--nw-green); }
/* The summary column goes back to its normal width */
.woocommerce-cart .nw-page-shop .woocommerce { grid-template-columns: minmax(0, 1fr) 380px; }
@media (max-width: 900px) { .woocommerce-cart .nw-page-shop .woocommerce { grid-template-columns: 1fr; } }
/* No discount codes: the row under the items is empty, so it takes no space. */
.nw-js .nw-basket-actions:not(:has(.nw-coupon)) { padding: 0; border: 0; min-height: 0; }

/* Rewards as plain buttons: "Use my 250 Nerd Coins — £2.50 off" → "✓ Using … Undo" */
.nw-reward-btn {
  display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 8px; padding: 12px 16px; cursor: pointer; text-align: left;
  border: 2px solid var(--nw-line); border-radius: 14px; background: #fff; color: var(--nw-navy); font: inherit; font-weight: 700; font-size: 1rem;
  transition: border-color .15s, transform .1s, box-shadow .15s;
}
.nw-reward-btn b { font-weight: 900; }
.nw-reward-btn .nw-reward-ico { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; background: var(--nw-bg); }
.nw-reward-btn:hover { border-color: var(--nw-blue); box-shadow: 0 6px 16px rgba(11, 34, 57, .1); }
.nw-reward-btn:active { transform: translateY(1px); }
.nw-reward-btn.is-coins:hover .nw-reward-ico { background: #fff3c4; }
.nw-reward-btn.is-credit:hover .nw-reward-ico { background: #dff6e8; }
.nw-reward-btn:disabled { opacity: .6; cursor: wait; }
.nw-reward-used {
  display: flex; align-items: center; gap: 10px; margin: 0 0 8px; padding: 13px 16px; border-radius: 14px;
  background: #dff6e8; border: 2px solid var(--nw-green); color: #0f5132; font-weight: 700;
}
.nw-reward-used > span:first-child { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--nw-green); color: #fff; font-weight: 900; }
.nw-reward-used b { font-weight: 900; }
.nw-reward-undo { margin-left: auto; padding: 6px 12px; border: 0; border-radius: 10px; background: #fff; color: #0f5132; font-weight: 900; cursor: pointer; }
.nw-reward-undo:hover { background: #f0fff5; }

/* ── Basket items as shop cards (woocommerce/cart/cart.php) ── */
.nw-grid.nw-bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 16px; list-style: none; margin: 4px 0 8px; padding: 0; border: 0; }
.nw-bcard .nw-pcard-body { display: flex; flex-direction: column; gap: 8px; }
.nw-bcard-price { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.nw-bcard-price .nw-price { font-size: 1.3rem; }
.nw-bcard-price small { color: var(--nw-muted); font-weight: 800; font-size: .78rem; }
.nw-bcard-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.nw-bcard-actions .nw-stepper input.qty { width: 34px !important; }
.nw-bcard-actions .nw-step { width: 30px; height: 34px; }
a.nw-bcard-remove {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; flex: 1; min-height: 38px; padding: 7px 10px;
  border-radius: 12px; background: #fff; border: 2px solid var(--nw-line); color: var(--nw-muted); font-weight: 800; font-size: .85rem;
  transition: border-color .15s, color .15s, background .15s;
}
a.nw-bcard-remove span { font-size: .72rem; }
a.nw-bcard-remove:hover { border-color: var(--nw-red); color: var(--nw-red); background: #fff5f5; text-decoration: none; }
.nw-stepper + a.nw-bcard-remove { flex: 0 0 auto; padding: 7px 10px; }
.nw-stepper + a.nw-bcard-remove { font-size: 0; gap: 0; width: 38px; }
.nw-stepper + a.nw-bcard-remove span { font-size: .85rem; }
@media (max-width: 600px) {
  .nw-grid.nw-bgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* Rewards at the top of the basket, the two buttons side by side */
.nw-basket-form > .nw-paywith { margin: 0 0 14px; }
.nw-paywith-row { display: flex; gap: 10px; }
.nw-paywith-row > * { flex: 1 1 0; min-width: 0; margin: 0 !important; }
.nw-paywith-row .nw-reward-btn { height: 100%; font-size: .95rem; }
.nw-paywith-note { margin-top: 8px; }
@media (max-width: 600px) { .nw-paywith-row { flex-direction: column; } }

/* "How much do you want to use?" pop-up */
.nw-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(6, 20, 45, .55); backdrop-filter: blur(3px); animation: nwFade .15s ease; }
@keyframes nwFade { from { opacity: 0; } to { opacity: 1; } }
.nw-modal-box { width: 100%; max-width: 380px; padding: 26px 24px 20px; border-radius: 24px; background: #fff; text-align: center; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); animation: nwPop .18s ease; }
@keyframes nwPop { from { transform: translateY(10px) scale(.97); } to { transform: none; } }
.nw-modal-ico { display: inline-flex; width: 64px; height: 64px; border-radius: 50%; align-items: center; justify-content: center; font-size: 2rem; background: var(--nw-bg); }
.nw-modal-box h3 { margin: 10px 0 4px; font-size: 1.4rem; color: var(--nw-navy); }
.nw-modal-have { margin: 0 0 16px; color: var(--nw-muted); font-weight: 700; font-size: .92rem; }
.nw-modal-have b { color: var(--nw-navy); }
.nw-modal-input { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 1.4rem; font-weight: 900; color: var(--nw-navy); }
.nw-modal-input input { width: 140px; padding: 10px 12px; border: 3px solid var(--nw-blue); border-radius: 14px; text-align: center; font-size: 1.6rem; font-weight: 900; color: var(--nw-navy); }
.nw-modal-input span:last-child:not(:first-child) { font-size: 1rem; color: var(--nw-muted); }
.nw-modal-off { margin: 10px 0 12px; font-weight: 900; color: var(--nw-green); min-height: 1.4em; }
.nw-modal-off.is-bad { color: var(--nw-red); }
.nw-modal-all { padding: 7px 14px; border: 2px solid var(--nw-line); border-radius: 99px; background: #fff; color: var(--nw-blue-dark); font-weight: 900; cursor: pointer; }
.nw-modal-all:hover { border-color: var(--nw-blue); }
.nw-modal-buttons { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; margin-top: 18px; }
.nw-modal-cancel { padding: 13px; border: 0; border-radius: 14px; background: var(--nw-bg); color: var(--nw-navy); font-weight: 900; cursor: pointer; }
.nw-modal-go { padding: 13px; border: 0; border-radius: 14px; background: var(--nw-yellow); color: var(--nw-navy); font-weight: 900; font-size: 1.05rem; cursor: pointer; box-shadow: 0 4px 0 #2bb3c6; }
.nw-modal-go:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.nw-modal-note { margin: 14px 0 0; font-size: .75rem; font-weight: 700; color: var(--nw-muted); }

/* ============================================================
   Checkout (woocommerce/checkout/*.php)
   ============================================================ */
.nw-co-steps { list-style: none; display: flex; gap: 8px; margin: 0 0 18px; padding: 0; flex-wrap: wrap; }
.nw-co-steps li { display: flex; align-items: center; gap: 8px; padding: 8px 16px 8px 8px; border-radius: 99px; background: #fff; color: var(--nw-muted); font-weight: 800; box-shadow: 0 1px 0 var(--nw-line); }
.nw-co-steps li a { display: flex; align-items: center; gap: 8px; color: inherit; }
.nw-co-steps li span { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--nw-bg); font-weight: 900; font-size: .85rem; }
.nw-co-steps li.is-done { color: var(--nw-green); }
.nw-co-steps li.is-done span { background: var(--nw-green); color: #fff; }
.nw-co-steps li.is-here { background: var(--nw-navy); color: #fff; }
.nw-co-steps li.is-here span { background: var(--nw-yellow); color: var(--nw-navy); }

.woocommerce-checkout form.checkout.nw-checkout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; }
.nw-checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
.woocommerce-checkout .nw-checkout #customer_details { background: none; box-shadow: none; padding: 0; grid-row: auto; }
.nw-co-main { display: flex; flex-direction: column; min-width: 0; }
.nw-co-card { background: #fff; border-radius: 22px; padding: 22px 24px; margin: 0 0 16px; box-shadow: 0 1px 0 var(--nw-line), 0 12px 30px rgba(11, 34, 57, .07); }
.nw-co-card h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 1.2rem; color: var(--nw-navy); }
.nw-co-num { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--nw-navy); color: #fff; font-size: .9rem; font-weight: 900; }
.nw-co-card-quiet { padding: 16px 22px; }
.nw-co-card-quiet h3 { margin: 0; font-size: 1rem; }
.nw-co-hint { margin: 2px 0 0; font-size: .82rem; color: var(--nw-muted); font-weight: 700; }

/* Fields: two across where it makes sense */
.nw-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.nw-fields .form-row { margin: 0 0 12px; padding: 0; width: auto !important; float: none !important; grid-column: span 2; }
.nw-fields .form-row-first, .nw-fields .form-row-last,
.nw-fields #billing_email_field, .nw-fields #billing_phone_field,
.nw-fields #billing_city_field, .nw-fields #billing_postcode_field,
.nw-fields #shipping_city_field, .nw-fields #shipping_postcode_field,
.nw-fields #billing_state_field, .nw-fields #shipping_state_field { grid-column: span 1; }   /* Town | County, then Postcode */
.nw-fields label { display: block; margin: 0 0 5px; font-weight: 800; font-size: .88rem; color: var(--nw-navy); }
.nw-fields label .optional { color: var(--nw-muted); font-weight: 700; }
.nw-fields label .required { color: var(--nw-red); text-decoration: none; }
.nw-fields input.input-text, .nw-fields textarea, .nw-fields select, .nw-fields .select2-container .select2-selection--single {
  width: 100%; height: auto; padding: 12px 14px; border: 2px solid var(--nw-line); border-radius: 12px; background: #fff; font: inherit; font-weight: 700; color: var(--nw-ink);
  transition: border-color .15s, box-shadow .15s;
}
.nw-fields .select2-selection__rendered { padding: 0 !important; line-height: 1.4 !important; color: var(--nw-ink) !important; }
.nw-fields .select2-selection__arrow { top: 50% !important; transform: translateY(-50%); right: 8px !important; }
.nw-fields input.input-text:focus, .nw-fields textarea:focus, .nw-fields select:focus { outline: 0; border-color: var(--nw-blue); box-shadow: 0 0 0 4px rgba(29, 116, 208, .12); }
/* A box to fix: red edge and a pale red fill, its message in dark red under it (2026-10-18 design check). */
.nw-fields .woocommerce-invalid input.input-text, .nw-fields .woocommerce-invalid select,
.nw-fields .woocommerce-invalid .select2-container .select2-selection--single { border-color: var(--nw-red) !important; background-color: #fff5f5 !important; }
.woocommerce-checkout .checkout-inline-error-message { margin: 6px 0 0; color: #a3202a; font-size: .86rem; font-weight: 800; }
.nw-fields textarea { min-height: 90px; }

/* Tick boxes as friendly rows */
label.nw-check { display: flex !important; align-items: center; gap: 10px; cursor: pointer; font-weight: 800; color: var(--nw-navy); margin: 0; }
label.nw-check input { width: 20px; height: 20px; accent-color: var(--nw-blue); margin: 0; }
.woocommerce-account-fields { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--nw-line); }
.woocommerce-account-fields .create-account .form-row { margin-top: 10px; }
.nw-co-card .shipping_address { margin-top: 14px; }
.nw-co-notes summary { cursor: pointer; list-style: none; font-weight: 800; color: var(--nw-navy); }
.nw-co-notes summary::-webkit-details-marker { display: none; }
.nw-co-notes summary small { color: var(--nw-muted); font-weight: 700; }
.nw-co-notes[open] summary { margin-bottom: 12px; }

/* Right-hand summary */
.nw-co-side { position: sticky; top: 96px; background: #fff; border-radius: 22px; padding: 22px; box-shadow: 0 1px 0 var(--nw-line), 0 12px 30px rgba(11, 34, 57, .08); }
.woocommerce-checkout .nw-co-side #order_review_heading { margin: 0 0 12px; padding: 0; background: none; border-radius: 0; box-shadow: none; font-size: 1.3rem; color: var(--nw-navy); }
.woocommerce-checkout .nw-co-side #order_review { padding: 0; background: none; box-shadow: none; border-radius: 0; }
.nw-co-item td { padding: 10px 0 !important; border-bottom: 1px solid var(--nw-line); }
.nw-co-item td.product-name { text-align: left; }
.nw-co-item-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.nw-co-item-pic { position: relative; }
.nw-co-item-pic img { width: 48px; height: 67px; object-fit: contain; border-radius: 6px; background: var(--nw-bg); }
.nw-co-item-qty { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--nw-navy); color: #fff; font-size: .7rem; display: flex; align-items: center; justify-content: center; }
.nw-co-item-name { display: block; font-weight: 800; font-size: .9rem; color: var(--nw-navy); line-height: 1.3; }
.nw-co-item-tags { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.nw-co-item-tags .nw-tag { position: static; box-shadow: inset 0 0 0 1px var(--nw-line); font-size: .66rem; }
.nw-co-item-tags small { color: var(--nw-muted); font-weight: 700; font-size: .75rem; }
.nw-co-item-price { font-weight: 900; color: var(--nw-navy); white-space: nowrap; }
.nw-co-item dl.variation { display: none; }

/* Payment as tiles */
.nw-co-side #payment { background: none; border-radius: 0; padding: 0; margin-top: 12px; }
.nw-co-side #payment ul.payment_methods { list-style: none; margin: 0 0 12px; padding: 0; border: 0; display: grid; gap: 8px; }
.nw-pay-opt { position: relative; margin: 0 !important; padding: 0 !important; }
.nw-pay-opt > input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.nw-pay-opt > label {
  display: flex !important; justify-content: space-between; align-items: center; gap: 10px; margin: 0 !important; padding: 13px 14px 13px 42px !important;
  border: 2px solid var(--nw-line); border-radius: 14px; background: #fff; font-weight: 800; color: var(--nw-ink); cursor: pointer; position: relative;
}
.nw-pay-opt > label::before { content: ""; position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; border: 2px solid #b9c7d8; background: #fff; box-sizing: border-box; }
.nw-pay-opt > input:checked + label { border-color: var(--nw-blue); background: #f0f8ff; }
.nw-pay-opt > input:checked + label::before { border: 5px solid var(--nw-blue); }
.nw-pay-opt > input:focus-visible + label { outline: 3px solid var(--nw-aqua); outline-offset: 2px; }
.nw-pay-icons img { max-height: 22px; width: auto; margin-left: 4px; }
.nw-co-side #payment .payment_box { margin: 6px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--nw-bg); font-size: .88rem; font-weight: 700; color: var(--nw-muted); }
.nw-co-side #payment .payment_box::before { display: none; }
.nw-co-side #payment .payment_box p { margin: 0; }
.nw-co-side .woocommerce-privacy-policy-text { font-size: .76rem; color: var(--nw-muted); font-weight: 700; }
.nw-co-side .woocommerce-privacy-policy-text p { margin: 0 0 10px; }
.nw-co-side .woocommerce-terms-and-conditions-wrapper .form-row { margin: 0 0 12px; }
.nw-co-side .woocommerce-form__label-for-checkbox { display: flex !important; align-items: center; gap: 8px; font-weight: 800; font-size: .9rem; color: var(--nw-navy); }
.nw-co-side .woocommerce-form__label-for-checkbox input { width: 20px; height: 20px; accent-color: var(--nw-blue); margin: 0; }
/* The terms tick: a bigger box, the words beside it and the * straight after them. */
.nw-co-side .woocommerce-terms-and-conditions-wrapper .woocommerce-form__label-for-checkbox { display: block !important; position: relative; padding-left: 36px; min-height: 26px; line-height: 1.45; cursor: pointer; }
.nw-co-side .woocommerce-terms-and-conditions-wrapper .woocommerce-form__label-for-checkbox input { position: absolute; left: 0; top: 0; width: 26px; height: 26px; }
.nw-co-side .woocommerce-terms-and-conditions-wrapper .woocommerce-invalid .woocommerce-form__label-for-checkbox { color: #a3202a; }
/* The "please fix" box: dark red words, one problem a line (its words link to their boxes, but aren't link blue). */
.woocommerce-NoticeGroup-checkout .woocommerce-error li { position: relative; margin: 0 0 6px; padding-left: 14px; }
.woocommerce-NoticeGroup-checkout .woocommerce-error li:last-child { margin-bottom: 0; }
.woocommerce-NoticeGroup-checkout .woocommerce-error li::before { content: "•"; position: absolute; left: 0; }
.woocommerce-NoticeGroup-checkout .woocommerce-error a { color: inherit; text-decoration: none; font-weight: 800; }
.woocommerce-NoticeGroup-checkout .woocommerce-error a:hover { text-decoration: underline; }
.nw-co-side #place_order {
  display: block; width: 100%; margin: 4px 0 0; padding: 17px 20px; border: 0; border-radius: 16px; background: var(--nw-yellow) !important; color: var(--nw-navy) !important;
  font-size: 1.15rem; font-weight: 900; cursor: pointer; box-shadow: 0 6px 0 #2bb3c6, 0 12px 24px rgba(224, 180, 0, .35); transition: transform .1s, box-shadow .1s;
}
.nw-co-side #place_order:active { transform: translateY(4px); box-shadow: 0 2px 0 #2bb3c6; }

@media (max-width: 900px) {
  .woocommerce-checkout form.checkout.nw-checkout { grid-template-columns: 1fr; }
  .nw-co-side { position: static; }
}
@media (max-width: 600px) {
  .nw-fields { grid-template-columns: 1fr; }
  .nw-fields .form-row { grid-column: span 1 !important; }
  .nw-co-card { padding: 18px 16px; border-radius: 18px; }
  .nw-co-steps li { padding: 6px 12px 6px 6px; font-size: .82rem; }
}

/* Delivery tiles: undo WooCommerce's hanging indent on the list */
.nw-ship-opts li, .nw-ship-opts li label { text-indent: 0 !important; }
.woocommerce-checkout-review-order-table .nw-ship-opts li label { margin: 0 !important; }
/* Pop-up messages: the button small and yellow; none on the basket or checkout pages */
.woocommerce-message a.button.wc-forward { padding: 6px 14px !important; font-size: .85rem !important; border-radius: 10px !important; background: var(--nw-yellow) !important; color: var(--nw-navy) !important; box-shadow: none !important; }
.woocommerce-checkout .woocommerce-message a.button.wc-forward { display: none; }

/* ── One-page checkout: items + rewards at the top ── */
.nw-op-items { margin-bottom: 18px; }
.nw-op-items-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 4px; }
.nw-op-items-head h3 { margin: 0; }
.nw-op-items-head a { font-weight: 900; color: var(--nw-blue-dark); }
.nw-mini-cart .nw-grid.nw-bgrid { grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); margin: 12px 0 6px; }
.nw-op-items .nw-paywith { margin: 14px 0 0; }
.nw-freebar-row td { padding: 0 0 4px !important; border: 0 !important; }
.nw-freebar-row .nw-freebar { margin: 0 0 6px; }
.nw-js .nw-mini-cart .nw-update-basket { display: none !important; }
.woocommerce-checkout .nw-mini-cart { background: none; box-shadow: none; padding: 0; border-radius: 0; }
.nw-freebar-row td, .nw-freebar-row .nw-freebar { text-align: left !important; }

/* Checkout: smaller item cards so "Your details" comes up sooner */
.nw-mini-cart .nw-grid.nw-bgrid { grid-template-columns: repeat(auto-fill, minmax(140px, 158px)); gap: 12px; }
.nw-mini-cart .nw-bcard .nw-pcard-bar { padding: 5px 8px 6px; }
.nw-mini-cart .nw-bcard .nw-pcard-name { font-size: .7rem; }
.nw-mini-cart .nw-bcard .nw-tag { font-size: .58rem; padding: 2px 6px; }
.nw-mini-cart .nw-bcard .nw-pcard-body { padding: 8px 8px 9px; gap: 6px; }
.nw-mini-cart .nw-bcard-price .nw-price { font-size: 1.05rem; }
.nw-mini-cart .nw-bcard-price small { font-size: .68rem; }
.nw-mini-cart a.nw-bcard-remove { min-height: 30px; padding: 4px 8px; font-size: .76rem; border-radius: 10px; }
.nw-mini-cart .nw-stepper + a.nw-bcard-remove { width: 30px; }
.nw-mini-cart .nw-bcard-actions .nw-step { width: 26px; height: 30px; font-size: 1rem; }
.nw-mini-cart .nw-bcard-actions .nw-stepper input.qty { width: 28px !important; padding: 4px 0 !important; font-size: .85rem; }
@media (max-width: 600px) { .nw-mini-cart .nw-grid.nw-bgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nw-mini-cart .nw-stepper + a.nw-bcard-remove { font-size: 0; gap: 0; padding: 4px; }
.nw-mini-cart .nw-stepper + a.nw-bcard-remove span { font-size: .8rem; }

/* Returning customer: short confirmation instead of the whole form */
.nw-co-edit[hidden], .nw-co-saved[hidden] { display: none !important; }
.nw-co-saved-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.nw-co-saved-head h3 { margin: 0; }
.nw-co-change { padding: 7px 16px; border: 2px solid var(--nw-line); border-radius: 10px; background: #fff; color: var(--nw-blue-dark); font-weight: 900; cursor: pointer; }
.nw-co-change:hover { border-color: var(--nw-blue); }
.nw-co-saved-row { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--nw-line); }
.nw-co-saved-row:first-of-type { border-top: 0; }
.nw-co-saved-ico { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; background: var(--nw-bg); }
.nw-co-saved-row small { display: block; color: var(--nw-muted); font-weight: 800; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; }
.nw-co-saved-row b { display: block; color: var(--nw-navy); font-size: 1.02rem; }
.nw-co-saved-row span > span { display: block; color: var(--nw-ink); font-weight: 700; font-size: .92rem; }

/* Order summary always top right: one grid from the top of the page */
.nw-op-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; column-gap: 24px; align-items: start; }
.nw-op-grid > form.checkout.nw-checkout { display: contents; }
.nw-op-grid > form.checkout > .woocommerce-NoticeGroup { grid-column: 1; grid-row: 1; }
.nw-op-grid > .nw-op-items { grid-column: 1; grid-row: 2; }
.nw-op-grid > form.checkout > .nw-co-main { grid-column: 1; grid-row: 3; }
.nw-op-grid > form.checkout > .nw-co-side { grid-column: 2; grid-row: 1 / span 3; align-self: start; position: sticky; top: 96px; }
.nw-op-grid .nw-mini-cart .nw-grid.nw-bgrid { grid-template-columns: repeat(auto-fill, minmax(140px, 150px)); }
@media (max-width: 900px) {
  .nw-op-grid { grid-template-columns: 1fr; }
  .nw-op-grid > form.checkout > .nw-co-side { grid-column: 1; grid-row: 4; position: static; }
}

/* ============================================================
   "Thank you" page (woocommerce/checkout/thankyou.php)
   ============================================================ */
.nw-ty-hero {
  position: relative; overflow: hidden; text-align: center; color: #fff; padding: 34px 24px 28px; border-radius: 26px; margin: 0 0 18px;
  background: radial-gradient(circle at 50% 0%, rgba(60, 200, 236, .35), transparent 55%), linear-gradient(135deg, var(--nw-navy), var(--nw-navy-2) 60%, var(--nw-blue));
  box-shadow: 0 16px 40px rgba(11, 34, 57, .2);
}
.nw-ty-tick {
  display: inline-flex; width: 78px; height: 78px; border-radius: 50%; align-items: center; justify-content: center; font-size: 2.4rem; font-weight: 900;
  background: var(--nw-green); color: #fff; box-shadow: 0 0 0 10px rgba(22, 146, 78, .25); animation: nwTyPop .5s cubic-bezier(.2, 1.6, .4, 1) both;
}
@keyframes nwTyPop { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
.nw-ty-hero h1 { margin: 16px 0 6px; color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.nw-ty-hero p { margin: 0; color: #d2f1f7; font-weight: 700; }
.nw-ty-hero p b { color: #fff; }
.nw-ty-hero.is-failed .nw-ty-tick { background: var(--nw-red); box-shadow: 0 0 0 10px rgba(217, 63, 69, .25); }
.nw-ty-steps { list-style: none; display: flex; justify-content: center; gap: 0; margin: 22px auto 0; padding: 0; max-width: 520px; }
.nw-ty-steps li { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; color: #9fb8dc; font-weight: 800; font-size: .85rem; }
.nw-ty-steps li + li::before { content: ""; position: absolute; top: 15px; right: 50%; width: 100%; height: 3px; background: rgba(255, 255, 255, .2); z-index: 0; }
.nw-ty-steps li.is-done + li::before, .nw-ty-steps li.is-done::before { background: var(--nw-green); }
.nw-ty-steps li span { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .15); color: #fff; font-weight: 900; }
.nw-ty-steps li.is-done { color: #fff; }
.nw-ty-steps li.is-done span { background: var(--nw-green); }
.nw-ty-steps li.is-next span { background: var(--nw-yellow); color: var(--nw-navy); }

.nw-ty-card { background: #fff; border-radius: 22px; padding: 20px 22px; box-shadow: 0 1px 0 var(--nw-line), 0 12px 30px rgba(11, 34, 57, .07); margin: 0 0 16px; }
.nw-ty-card h2 { margin: 0 0 12px; font-size: 1.2rem; color: var(--nw-navy); }
.nw-ty-paynote { font-weight: 700; color: var(--nw-navy); background: #eaf6fd; box-shadow: inset 0 0 0 2px #cdeaf8; }
.nw-ty-paynote > :first-child { margin-top: 0; } .nw-ty-paynote > :last-child { margin-bottom: 0; }
.nw-ty-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.nw-ty-items { list-style: none; margin: 0; padding: 0; }
.nw-ty-items li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--nw-line); }
.nw-ty-item-pic { position: relative; }
.nw-ty-item-pic img { width: 48px; height: 67px; object-fit: contain; border-radius: 6px; background: var(--nw-bg); }
.nw-ty-item-pic b { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--nw-navy); color: #fff; font-size: .7rem; display: flex; align-items: center; justify-content: center; }
.nw-ty-item-name { display: block; font-weight: 800; color: var(--nw-navy); font-size: .95rem; line-height: 1.3; }
.nw-ty-item-price { font-weight: 900; color: var(--nw-navy); white-space: nowrap; }
.nw-ty-totals { width: 100%; margin-top: 8px; border-collapse: collapse; }
.nw-ty-totals th { text-align: left; font-weight: 800; color: var(--nw-muted); padding: 8px 0; }
.nw-ty-totals td { text-align: right; font-weight: 800; color: var(--nw-ink); padding: 8px 0; }
.nw-ty-totals tr.is-order_total th { color: var(--nw-navy); font-size: 1.1rem; padding-top: 12px; border-top: 1px solid var(--nw-line); }
.nw-ty-totals tr.is-order_total td { font-size: 1.5rem; font-weight: 900; color: var(--nw-navy); padding-top: 12px; border-top: 1px solid var(--nw-line); }
.nw-ty-totals tr[class*="fee"] td { color: var(--nw-green); }
.nw-ty-address { margin: 0 0 10px; font-weight: 700; color: var(--nw-ink); line-height: 1.5; }
.nw-ty-meta { margin: 6px 0 0; font-weight: 700; color: var(--nw-muted); font-size: .9rem; }
.nw-ty-side .nw-coins-note { margin: 0 0 16px; }
.nw-ty-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin: 0; }
.nw-ty-buttons .nw-btn-lg { flex: 1; text-align: center; }
.nw-ty-hero .nw-ty-buttons { justify-content: center; margin-top: 16px; }
@media (max-width: 900px) { .nw-ty-grid { grid-template-columns: 1fr; } }
.nw-ty-pick { display: inline-block; margin: 18px 0 0 !important; padding: 9px 16px; border-radius: 99px; background: rgba(255, 255, 255, .12); color: #fff !important; font-weight: 800; }
.nw-ty-pick b { color: var(--nw-yellow) !important; }

/* My Account → View order */
.nw-vo-hero { text-align: left; padding: 24px 26px 22px; }
.nw-vo-hero h1 { margin: 4px 0 4px; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.nw-vo-top { margin: 0 !important; }
.nw-vo-top a { color: #d2f1f7; font-weight: 800; font-size: .9rem; }
.nw-vo-hero .nw-ty-steps { margin-left: 0; }
.nw-ty-pick.is-stopped { background: rgba(217, 63, 69, .25); }
.nw-vo-notes ul { list-style: none; margin: 0; padding: 0; }
.nw-vo-notes li { padding: 10px 0; border-top: 1px solid var(--nw-line); font-weight: 700; color: var(--nw-ink); }
.nw-vo-notes li:first-child { border-top: 0; }
.nw-vo-notes small { color: var(--nw-muted); font-weight: 800; }
.nw-vo-notes p { margin: 4px 0 0; }
.woocommerce-account .woocommerce-MyAccount-content > .nw-ty-hero, .woocommerce-account .woocommerce-MyAccount-content > .nw-ty-card, .woocommerce-account .woocommerce-MyAccount-content > .nw-ty-grid { box-sizing: border-box; }
.woocommerce-account .woocommerce-MyAccount-content .nw-ty-grid { grid-template-columns: minmax(0, 1fr) 300px; }
@media (max-width: 1100px) { .woocommerce-account .woocommerce-MyAccount-content .nw-ty-grid { grid-template-columns: 1fr; } }
.nw-ty-track { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 12px 0 0 !important; color: #fff !important; font-weight: 800; }
.nw-ty-hero:not(.nw-vo-hero) .nw-ty-track { justify-content: center; }
.nw-ty-track b { color: var(--nw-yellow); letter-spacing: .04em; }
.nw-ty-track .nw-btn { padding: 8px 16px; font-size: .9rem; }

/* ============================================================
   Collect in shop (CardScan plugin collect-in-shop.php)
   ============================================================ */
.nw-ship-name small.nw-ship-when { display: block; margin-top: 2px; font-size: .8rem; font-weight: 700; color: var(--nw-muted); }
.nw-collect-note, .nw-co-row-collect { display: none !important; }
.nw-is-collect .nw-collect-note { display: flex !important; }
.nw-is-collect .nw-co-row-collect { display: flex !important; }
.nw-is-collect .nw-paywith, .nw-is-collect .nw-co-row-deliver { display: none !important; }
.nw-collect-note {
  align-items: center; gap: 12px; margin: 0 0 14px; padding: 14px 16px; border-radius: 16px;
  background: #eaf6fd; box-shadow: inset 0 0 0 2px #cdeaf8; color: var(--nw-navy); font-weight: 700; line-height: 1.4;
}
.nw-collect-note > span:first-child { font-size: 1.6rem; }
.nw-ty-collect { margin: 10px auto 0 !important; max-width: 560px; font-size: .9rem; color: #d2f1f7 !important; }
.nw-co-row-collect + .nw-co-row-deliver { border-top: 0; }
.nw-is-collect .nw-freebar, .nw-is-collect .woocommerce-shipping-fields { display: none !important; }

/* Thank-you and order pages: the buttons stay on one line each; who to ask about the order (2026-10-18). */
.nw-ty-buttons .nw-btn { white-space: nowrap; }
.nw-ty-help { margin: 12px 0 0; text-align: center; font-weight: 700; color: var(--nw-muted); }
.nw-ty-help a { font-weight: 900; }

/* Basket (2026-10-18 design check): every item's button says "Remove" — with − / + it sits on its own line
   under them — and a name gets a third line, so the card number isn't cut off. */
.nw-bcard-actions:has(.nw-stepper) { flex-wrap: wrap; }
.nw-stepper + a.nw-bcard-remove, .nw-mini-cart .nw-stepper + a.nw-bcard-remove { flex: 1 0 100%; width: auto; gap: 6px; padding: 6px 10px; font-size: .8rem; }
.nw-stepper + a.nw-bcard-remove span, .nw-mini-cart .nw-stepper + a.nw-bcard-remove span { font-size: .72rem; }
.nw-bcard .nw-pcard-bar { height: auto; min-height: 38px; }
.nw-bcard .nw-pcard-name { -webkit-line-clamp: 3; }
