/* Cart / checkout cleanup, 10 Nov 2026. Loaded only on the cart and checkout pages (see checkout-cleanup.php). */

/* ---------- Checkout: no site menu, no footer, no page title ---------- */
body.isbnco-co #masthead,
body.isbnco-co #colophon,
body.isbnco-co main#content > .page-header,
body.isbnco-co .post-tags{display:none !important}

body.isbnco-co{background:#f5f7fb}
body.isbnco-co .isbnco-co-bar{background:#fff;border-bottom:1px solid #dfe5ef}
body.isbnco-co .isbnco-co-bar-in{max-width:1040px;margin:0 auto;padding:12px 16px;display:flex;align-items:center;gap:16px}
body.isbnco-co .isbnco-co-bar img{height:42px;width:auto;display:block}
body.isbnco-co .isbnco-co-bar-name{font-weight:700;font-size:20px;color:#1b2b45;text-decoration:none}
body.isbnco-co .isbnco-co-bar-secure{margin-left:auto;font-size:14px;font-weight:600;color:#1b7a43;white-space:nowrap}
body.isbnco-co .isbnco-co-bar-secure:before{content:"\1F512";margin-right:6px}
body.isbnco-co .isbnco-co-bar-phone{font-size:14px;color:#4a576b;text-decoration:none;white-space:nowrap}

body.isbnco-co main#content{max-width:1040px;margin:24px auto 0;padding:0 16px;font-size:16px;line-height:1.5}
body.isbnco-co .isbnco-co-foot{max-width:1040px;margin:28px auto 0;padding:18px 16px 32px;text-align:center;font-size:13px;color:#6a7689}
body.isbnco-co .isbnco-co-foot a{color:#4a576b}
body.isbnco-co .isbnco-co-foot div{margin-top:6px}

/* Benefit strip above the form */
body.isbnco-co .isbnco-co-intro{background:#fff;border:1px solid #dfe5ef;border-radius:8px;padding:12px 16px;margin:0 0 16px;font-size:15px}
body.isbnco-co .isbnco-co-intro ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px 26px}
body.isbnco-co .isbnco-co-intro li:before{content:"\2713";color:#1b7a43;font-weight:700;margin-right:7px}

/* "Already have an account?" as a quiet line instead of a big banner */
body.isbnco-co .woocommerce-form-login-toggle .woocommerce-info{background:none;border:0;padding:0;margin:0 0 14px;font-size:14px;color:#4a576b}
body.isbnco-co .woocommerce-form-login-toggle .woocommerce-info:before{display:none}
body.isbnco-co form.woocommerce-form-login{background:#fff;border:1px solid #dfe5ef;border-radius:8px;margin:0 0 16px}

/* Panels */
body.isbnco-co form.woocommerce-checkout #customer_details,
body.isbnco-co form.woocommerce-checkout #order_review{background:#fff;border:1px solid #dfe5ef;border-radius:8px;padding:20px 22px;margin:0 0 16px}
body.isbnco-co form.woocommerce-checkout h3{font-size:19px;font-weight:700;margin:0 0 12px;color:#1b2b45}
body.isbnco-co form.woocommerce-checkout #order_review_heading{margin:0 0 10px 2px}
body.isbnco-co form.woocommerce-checkout .form-row{margin-bottom:12px}
body.isbnco-co form.woocommerce-checkout .form-row label{font-size:14px;font-weight:600;margin-bottom:4px}

/* Two columns on desktop: details left, order + payment right */
@media (min-width:992px){
  body.isbnco-co form.woocommerce-checkout{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);column-gap:28px;align-items:start}
  body.isbnco-co form.woocommerce-checkout > #customer_details{grid-column:1;grid-row:1 / span 2;width:auto;float:none}
  body.isbnco-co form.woocommerce-checkout > #order_review_heading{grid-column:2;grid-row:1}
  body.isbnco-co form.woocommerce-checkout > #order_review{grid-column:2;grid-row:2;width:auto;float:none}
  body.isbnco-co form.woocommerce-checkout > #order_review_heading{display:none}
}

/* Order table */
body.isbnco-co .woocommerce-checkout-review-order-table{border:0;margin:0 0 14px;width:100%}
body.isbnco-co .woocommerce-checkout-review-order-table thead{display:none}
body.isbnco-co .woocommerce-checkout-review-order-table th,
body.isbnco-co .woocommerce-checkout-review-order-table td{border:0;border-bottom:1px solid #edf0f5;padding:10px 0;background:none;vertical-align:top}
body.isbnco-co .woocommerce-checkout-review-order-table td.product-name{font-weight:600;color:#1b2b45}
body.isbnco-co .woocommerce-checkout-review-order-table td.product-total,
body.isbnco-co .woocommerce-checkout-review-order-table tfoot td{text-align:right;white-space:nowrap}
body.isbnco-co .woocommerce-checkout-review-order-table tr.order-total th,
body.isbnco-co .woocommerce-checkout-review-order-table tr.order-total td{font-size:19px;border-bottom:0}

/* Quantity picker */
.isbnco-qty-wrap{display:block;margin-top:8px;font-weight:400}
.isbnco-qty-label{display:block;font-size:13px;font-weight:600;color:#4a576b;margin-bottom:3px}
select.isbnco-qty{width:100%;max-width:330px;min-height:42px;padding:6px 10px;font-size:15px;border:1px solid #b9c3d3;border-radius:5px;background-color:#fff}
.isbnco-qty-hint{display:block;font-size:13px;color:#6a7689;margin-top:5px}

/* Payment + button */
body.isbnco-co #payment{background:none;border-radius:0}
body.isbnco-co #payment ul.payment_methods{padding:0 0 8px;border-bottom:1px solid #edf0f5}
body.isbnco-co #payment div.form-row.place-order{padding:14px 0 0;margin:0}
body.isbnco-co #payment #place_order,
body.woocommerce-page.isbnco-co #payment #place_order{float:none;display:block;width:100%;font-size:19px;font-weight:700;padding:15px 18px;border-radius:6px;margin-top:10px;background-color:#255fc5;color:#fff}
body.isbnco-co .woocommerce-privacy-policy-text{font-size:12.5px;color:#6a7689}
body.isbnco-co .woocommerce-privacy-policy-text p{margin:0 0 8px}
body.isbnco-co .woocommerce-terms-and-conditions-wrapper .form-row{font-size:14px}

@media (max-width:991px){
  body.isbnco-co .isbnco-co-bar-phone{display:none}
  body.isbnco-co .isbnco-co-bar img{height:34px}
  body.isbnco-co main#content{margin-top:14px;padding:0 10px}
  body.isbnco-co form.woocommerce-checkout #customer_details,
  body.isbnco-co form.woocommerce-checkout #order_review{padding:16px 14px}
  body.isbnco-co .isbnco-co-intro ul{display:block}
  select.isbnco-qty{max-width:none;font-size:16px}
}

/* ---------- Cart page ---------- */
.woocommerce-cart .woocommerce-cart-form .coupon{display:none}
.woocommerce-cart.isbnco-coupon-open .woocommerce-cart-form .coupon{display:block}
.woocommerce-cart.isbnco-coupon-open .isbnco-coupon-toggle{display:none}
.woocommerce-cart .isbnco-coupon-toggle{float:left;font-size:14px;line-height:40px;color:#4a576b}
.woocommerce-cart.isbnco-js .woocommerce-cart-form [name="update_cart"]{position:absolute;left:-9999px}
.woocommerce-cart .isbnco-cart-bulk{background:#eef3fc;border:1px solid #c9d8f5;border-radius:6px;padding:12px 16px;margin:14px 0 0;font-size:15px;line-height:1.5}
.woocommerce-cart .cart-collaterals .cart_totals{float:none;width:100%;max-width:480px;margin-left:auto}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button{font-size:19px;padding:15px 18px;border-radius:6px}
