/* =====================================================================
   Alpeka Hair Shears: cart + checkout look (matches the homepage and thank-you page).
   Loaded on the cart and checkout pages only (functions.php alpeka_cc_is_styled_page), never on order-received / order-pay.
   Payment safety: only WRAPPERS are styled (list items, payment_box padding/background, the place-order button colours).
   Nothing inside the WooPayments element, PayPal buttons or their iframes, and no field is hidden, moved or reordered.
   ===================================================================== */

body.woocommerce-cart,body.woocommerce-checkout{
  --ah-ink:#141210; --ah-ink-2:#1d1a16; --ah-ink-3:#2a251f;
  --ah-paper:#faf7f1; --ah-paper-2:#f2ece1;
  --ah-gold:#c8a24a; --ah-gold-lt:#e6c877; --ah-gold-deep:#7d5f1a;
  --ah-cream:#f4efe6; --ah-muted:#b9b1a2; --ah-muted-d:#6f675b;
  --ah-line:rgba(255,255,255,.12); --ah-line-d:rgba(20,18,16,.12);
  --ah-err:#9b2c1f;
  --ah-serif:"Fraunces",Georgia,"Times New Roman",serif;
  --ah-sans:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
}

/* ---------- Page title as a dark banner (like the thank-you hero) ---------- */
.woocommerce-cart .entry-header,.woocommerce-checkout .entry-header{
  background:radial-gradient(120% 130% at 78% 15%,var(--ah-ink-3) 0%,var(--ah-ink) 55%);
  border-radius:20px;padding:clamp(1.4rem,4vw,2.4rem) clamp(1.4rem,4vw,2.6rem);margin:clamp(1rem,3vw,2rem) 0 1.75rem;
}
.woocommerce-cart .entry-header .entry-title,.woocommerce-checkout .entry-header .entry-title{
  font-family:var(--ah-serif) !important;font-weight:600;color:#fff !important;text-transform:none !important;
  font-size:clamp(2rem,5vw,3rem);line-height:1.05;letter-spacing:-.01em;margin:0;
}
.woocommerce-cart .entry-header .entry-title::before,.woocommerce-checkout .entry-header .entry-title::before{
  display:block;content:"Alpeka Hair Shears";font-family:var(--ah-sans);font-size:.72rem;font-weight:700;letter-spacing:.18em;
  text-transform:uppercase;color:var(--ah-gold-lt);margin-bottom:.5rem;
}

/* ---------- Shared: headings, cards, buttons, inputs ---------- */
.woocommerce-cart .woocommerce h2,.woocommerce-cart .woocommerce h3,
.woocommerce-checkout .woocommerce h2,.woocommerce-checkout .woocommerce h3{
  font-family:var(--ah-serif) !important;font-weight:600 !important;text-transform:none !important;color:var(--ah-ink) !important;letter-spacing:-.005em;
}
.woocommerce-cart .woocommerce a:not(.button):not(.checkout-button),.woocommerce-checkout .woocommerce-checkout a:not(.button){color:var(--ah-gold-deep);}

/* Primary buttons: big gold */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-checkout #payment #place_order{
  background:var(--ah-gold) !important;color:var(--ah-ink) !important;border:2px solid var(--ah-gold) !important;
  border-radius:999px !important;font-family:var(--ah-sans) !important;font-weight:700 !important;font-size:1.08rem !important;
  min-height:56px;padding:1rem 1.6rem !important;width:100%;letter-spacing:.01em;text-transform:none !important;
  box-shadow:0 14px 26px -16px rgba(20,18,16,.55);transition:background .2s,transform .2s;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce-checkout #payment #place_order:hover{background:var(--ah-gold-lt) !important;border-color:var(--ah-gold-lt) !important;transform:translateY(-1px);}

/* Secondary buttons (coupon, update cart): quiet outline so the gold button stays the one to press */
.woocommerce-cart .woocommerce-cart-form button.button,
.woocommerce-checkout .checkout_coupon button.button{
  background:transparent !important;color:var(--ah-ink) !important;border:1.5px solid var(--ah-ink) !important;
  border-radius:999px !important;font-weight:600 !important;
}
.woocommerce-cart .woocommerce-cart-form button.button:hover,
.woocommerce-checkout .checkout_coupon button.button:hover{background:var(--ah-ink) !important;color:var(--ah-cream) !important;}
.woocommerce-cart .woocommerce-cart-form button.button:disabled{opacity:.45;}

/* Inputs */
.woocommerce-cart .woocommerce input.input-text,.woocommerce-cart .woocommerce select,
.woocommerce-checkout form.checkout input.input-text,.woocommerce-checkout form.checkout select,.woocommerce-checkout form.checkout textarea,
.woocommerce-checkout .checkout_coupon input.input-text{
  border:1px solid rgba(20,18,16,.22) !important;border-radius:10px !important;background:#fff !important;min-height:46px;
  font-family:var(--ah-sans);font-size:1rem;color:var(--ah-ink);box-shadow:none !important;
}
.woocommerce-checkout form.checkout textarea{min-height:96px;}
.woocommerce-cart .woocommerce input.input-text:focus,.woocommerce-checkout form.checkout input.input-text:focus,
.woocommerce-checkout form.checkout select:focus,.woocommerce-checkout form.checkout textarea:focus{
  border-color:var(--ah-gold) !important;outline:3px solid rgba(200,162,74,.35) !important;outline-offset:0;
}
.woocommerce-checkout form.checkout .form-row label{font-weight:600;font-size:.86rem;color:var(--ah-ink);}
.woocommerce-checkout form.checkout .form-row .required{color:var(--ah-err);}

/* Validation (WooCommerce adds these classes / notices) */
.woocommerce-checkout form.checkout .woocommerce-invalid input.input-text,
.woocommerce-checkout form.checkout .woocommerce-invalid select{border-color:var(--ah-err) !important;}
.woocommerce-cart .woocommerce-error,.woocommerce-checkout .woocommerce-error,
.woocommerce-checkout .woocommerce-NoticeGroup .woocommerce-error{
  background:#fff6f4 !important;border:1px solid rgba(155,44,31,.25) !important;border-left:4px solid var(--ah-err) !important;
  border-radius:12px !important;color:var(--ah-ink) !important;padding:1rem 1.2rem 1rem 3rem !important;
}
.woocommerce-cart .woocommerce-error::before,.woocommerce-checkout .woocommerce-error::before{color:var(--ah-err) !important;}
.woocommerce-cart .woocommerce-message,.woocommerce-cart .woocommerce-info,
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info{
  background:var(--ah-paper) !important;border:1px solid var(--ah-line-d) !important;border-top:3px solid var(--ah-gold) !important;
  border-radius:12px !important;color:var(--ah-ink) !important;
}

/* ---------- CART ---------- */
.woocommerce-cart table.shop_table.cart{background:#fff;border:1px solid var(--ah-line-d) !important;border-radius:16px !important;border-collapse:separate;overflow:hidden;}
.woocommerce-cart table.shop_table.cart thead th{
  background:var(--ah-paper) !important;font-family:var(--ah-sans) !important;font-size:.72rem !important;letter-spacing:.14em;
  text-transform:uppercase;color:var(--ah-muted-d) !important;font-weight:700 !important;border:0 !important;
}
.woocommerce-cart table.shop_table.cart td{border-top:1px solid var(--ah-line-d) !important;}
.woocommerce-cart table.shop_table.cart td.product-name a{color:var(--ah-ink) !important;font-weight:600;text-decoration:none;}
.woocommerce-cart table.shop_table.cart td.product-thumbnail img{border-radius:10px;background:var(--ah-paper);}
.woocommerce-cart table.shop_table.cart td.product-subtotal{font-weight:600;color:var(--ah-ink);}
.woocommerce-cart table.shop_table.cart td.product-price del,.woocommerce-cart table.shop_table.cart td.product-price del .amount{color:var(--ah-muted-d);font-weight:400;}
.woocommerce-cart table.shop_table.cart td.actions{background:#fff;}

/* Cart totals: cream card with the gold top border */
.woocommerce-cart .cart-collaterals .cart_totals{
  background:var(--ah-paper) !important;border:1px solid var(--ah-line-d) !important;border-top:3px solid var(--ah-gold) !important;
  border-radius:16px !important;padding:clamp(1.1rem,3vw,1.6rem) !important;
}
.woocommerce-cart .cart-collaterals .cart_totals > h2{
  background:none !important;border:0 !important;padding:0 !important;margin:0 0 .8rem !important;font-size:clamp(1.35rem,3vw,1.6rem) !important;
}
.woocommerce-cart .cart_totals table.shop_table{border:0 !important;background:transparent;margin:0 0 1rem;}
.woocommerce-cart .cart_totals table.shop_table th,.woocommerce-cart .cart_totals table.shop_table td{
  border:0 !important;border-bottom:1px solid var(--ah-line-d) !important;background:transparent !important;padding:.75rem 0 !important;
}
.woocommerce-cart .cart_totals table.shop_table th{font-family:var(--ah-sans) !important;font-weight:500 !important;color:var(--ah-muted-d) !important;}
.woocommerce-cart .cart_totals table.shop_table tr.order-total th,.woocommerce-cart .cart_totals table.shop_table tr.order-total td{
  border-bottom:0 !important;color:var(--ah-ink) !important;font-family:var(--ah-serif) !important;font-size:1.25rem;font-weight:600 !important;padding-top:1rem !important;
}
.woocommerce-cart .cart_totals .woocommerce-shipping-destination{font-size:.88rem;color:var(--ah-muted-d);}
.woocommerce-cart .cart-collaterals .cross-sells{display:none !important;} /* no cross-sells (fallback to the PHP removal) */

/* Free-shipping progress note (functions.php alpeka_cc_free_ship_note) */
.ah-cc-ship{background:#fff;border:1px solid var(--ah-line-d);border-radius:12px;padding:.85rem 1rem;margin:0 0 1rem;}
.ah-cc-ship p{margin:0 0 .55rem;font-weight:600;color:var(--ah-ink);font-size:.95rem;}
.ah-cc-ship .amount{color:var(--ah-gold-deep);}
.ah-cc-bar{height:8px;border-radius:999px;background:var(--ah-paper-2);overflow:hidden;}
.ah-cc-bar span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,var(--ah-gold-deep),var(--ah-gold));}
.ah-cc-ship.is-free{border-color:rgba(200,162,74,.6);}

/* Empty cart */
.woocommerce-cart .wc-empty-cart-message .cart-empty{
  background:var(--ah-paper) !important;border:1px solid var(--ah-line-d) !important;border-top:3px solid var(--ah-gold) !important;
  border-radius:16px !important;padding:1.6rem 1.4rem 1.6rem 3.2rem !important;font-family:var(--ah-serif);font-size:1.25rem;color:var(--ah-ink) !important;
}
.woocommerce-cart .return-to-shop a.button{
  background:var(--ah-gold) !important;color:var(--ah-ink) !important;border:0 !important;border-radius:999px !important;
  font-weight:700 !important;padding:1rem 1.8rem !important;min-height:52px;
}
.woocommerce-cart .return-to-shop a.button:hover{background:var(--ah-gold-lt) !important;}

/* ---------- CHECKOUT ---------- */
.woocommerce-checkout form.checkout h3{font-size:clamp(1.25rem,2.6vw,1.45rem) !important;border:0 !important;padding:0 0 .4rem !important;margin:1.4rem 0 .9rem !important;}
.woocommerce-checkout #customer_details .col-1 > div:first-child h3{margin-top:0 !important;}
.woocommerce-checkout #ship-to-different-address{font-size:1.1rem !important;}
.woocommerce-checkout #ship-to-different-address label{font-weight:600;}

/* Order review: cream card with gold top border (Astra keeps the heading + review together in the right column) */
.woocommerce-checkout #order_review_heading{
  background:var(--ah-paper) !important;border:1px solid var(--ah-line-d) !important;border-top:3px solid var(--ah-gold) !important;
  border-bottom:0 !important;border-radius:16px 16px 0 0 !important;padding:1.3rem 1.4rem .4rem !important;margin:0 !important;font-size:1.45rem !important;
}
.woocommerce-checkout #order_review{
  background:var(--ah-paper) !important;border:1px solid var(--ah-line-d) !important;border-top:0 !important;
  border-radius:0 0 16px 16px !important;padding:.4rem 1.4rem 1.4rem !important;
}
.woocommerce-checkout #order_review table.shop_table{border:0 !important;background:transparent !important;margin:0 0 1.2rem;}
.woocommerce-checkout #order_review table.shop_table th,.woocommerce-checkout #order_review table.shop_table td{
  border:0 !important;border-bottom:1px solid var(--ah-line-d) !important;background:transparent !important;padding:.7rem 0 !important;
}
.woocommerce-checkout #order_review table.shop_table thead th{font-family:var(--ah-sans) !important;font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:var(--ah-muted-d) !important;font-weight:700 !important;}
.woocommerce-checkout #order_review table.shop_table tfoot th{font-family:var(--ah-sans) !important;font-weight:500 !important;color:var(--ah-muted-d) !important;}
.woocommerce-checkout #order_review table.shop_table td.product-name{color:var(--ah-ink);font-weight:600;}
.woocommerce-checkout #order_review table.shop_table tr.order-total th,.woocommerce-checkout #order_review table.shop_table tr.order-total td{
  border-bottom:0 !important;color:var(--ah-ink) !important;font-family:var(--ah-serif) !important;font-size:1.25rem;font-weight:600 !important;
}

/* Payment methods: each option is a white card; the chosen one gets a gold border. Inside the boxes: untouched. */
.woocommerce-checkout #payment{background:transparent !important;border-radius:0 !important;padding:0 !important;}
.woocommerce-checkout #payment ul.payment_methods{border:0 !important;padding:0 !important;margin:0 0 1rem !important;display:grid;gap:.6rem;}
.woocommerce-checkout #payment ul.payment_methods > li.wc_payment_method{
  background:#fff !important;border:1.5px solid var(--ah-line-d) !important;border-radius:12px !important;
  padding:.85rem 1rem !important;margin:0 !important;list-style:none;
}
.woocommerce-checkout #payment ul.payment_methods > li.wc_payment_method:has(> input:checked){border-color:var(--ah-gold) !important;box-shadow:0 0 0 3px rgba(200,162,74,.18);}
.woocommerce-checkout #payment ul.payment_methods > li.wc_payment_method > label{font-weight:600;color:var(--ah-ink);}
.woocommerce-checkout #payment div.payment_box{background:var(--ah-paper) !important;border-radius:10px !important;margin:.75rem 0 0 !important;}
.woocommerce-checkout #payment div.payment_box::before{display:none !important;}
.woocommerce-checkout #payment .place-order{background:transparent !important;padding:0 !important;margin:0 !important;}
.woocommerce-checkout #payment .woocommerce-privacy-policy-text{font-size:.82rem;color:var(--ah-muted-d);}

/* Reassurance strip (functions.php, woocommerce_checkout_after_order_review) */
.ah-cc-assure{list-style:none;margin:1rem 0 0;padding:.85rem 1rem;display:flex;flex-wrap:wrap;justify-content:center;gap:.35rem 1.2rem;
  background:var(--ah-ink);color:var(--ah-cream);border-radius:12px;font-size:.84rem;font-weight:600;}
.ah-cc-assure li{margin:0;display:flex;align-items:center;gap:.45rem;}
@media (min-width:922px){ /* line up under Astra's floated order review (width 40%, float right) */
  .woocommerce-checkout form.checkout .ah-cc-assure{float:right;clear:right;width:40%;box-sizing:border-box;margin-top:1rem;}
}
.ah-cc-assure li::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--ah-gold-lt);flex:0 0 auto;}

/* ---------- Phone ---------- */
@media (max-width:768px){
  .woocommerce-cart table.shop_table_responsive.cart{border-radius:14px !important;}
  .woocommerce-cart table.shop_table_responsive.cart tr td{background:#fff;}
  .woocommerce-cart table.shop_table_responsive.cart tr td::before{font-family:var(--ah-sans);font-weight:600;color:var(--ah-muted-d);}
  .woocommerce-cart table.cart td.actions .coupon{display:flex;gap:.5rem;flex-wrap:wrap;}
  .woocommerce-cart table.cart td.actions .coupon .input-text{flex:1 1 160px;}
  .woocommerce-cart table.cart td.actions > button.button{width:100%;margin-top:.6rem;}
  .woocommerce-checkout #order_review_heading{margin-top:1.5rem !important;}
  .ah-cc-assure{flex-direction:column;align-items:flex-start;}
}

/* 1.4.9: larger product photos in the cart (Nick: "On the cart page, show the product photo larger.") */
.woocommerce-cart table.shop_table.cart td.product-thumbnail{width:140px;}
.woocommerce-cart table.shop_table.cart td.product-thumbnail img{width:120px;max-width:120px;height:auto;border-radius:10px;}
/* Stacked cart rows: WooCommerce/Astra stack the cart table up to 921px (woocommerce-smallscreen-grid.css) */
@media (max-width:921px){
  .woocommerce-cart table.shop_table_responsive.cart tr.cart_item td.product-thumbnail{display:block;width:auto;text-align:center;padding:1rem 0 .25rem;}
  .woocommerce-cart table.shop_table_responsive.cart tr.cart_item td.product-thumbnail::before{display:none;}
  .woocommerce-cart table.shop_table_responsive.cart tr.cart_item td.product-thumbnail img{width:150px;max-width:60%;margin:0 auto;}
}

/* 1.5.7: sale savings (functions.php: struck regular price on sale lines + the "You save" row above the Total).
   alpeka-marketing 2026-11-27: the amount is information, not a discount: muted, not bold, not gold, never styled like the FBPRO5
   coupon row; the note is small and muted on its own line. The struck price in the cart table already uses the td.product-price del rule above. */
.woocommerce-cart .cart_totals table.shop_table tr.alpeka-savings td,
.woocommerce-checkout #order_review table.shop_table tr.alpeka-savings td{color:var(--ah-muted-d) !important;font-weight:400 !important;}
tr.alpeka-savings .alpeka-savings-amount,tr.alpeka-savings .alpeka-savings-amount .amount{color:var(--ah-muted-d);font-weight:400;}
.woocommerce-cart .cart_totals table.shop_table tr.alpeka-savings .alpeka-savings-note,
.woocommerce-checkout #order_review table.shop_table tr.alpeka-savings .alpeka-savings-note{display:block;margin-top:.15rem;font-size:.76rem;line-height:1.4;font-weight:400;color:var(--ah-muted-d);contain:inline-size;text-wrap:balance;}
.woocommerce-cart .cart_totals table.shop_table tr.alpeka-savings th,
.woocommerce-checkout #order_review table.shop_table tr.alpeka-savings th{vertical-align:top;}
/* contain:inline-size = the note adds no width to its table column, so the columns (product names, other rows) lay out exactly as before; text-wrap:balance
   splits it evenly where it needs two lines (cart totals at ~922-1100 px).
   Order review (a two-column table at every width): the value column is narrow, so the note stays on one line, right-aligned under the
   amount, and runs left into the empty second line of the label cell (rtl box + nowrap; the text itself is plain English, no punctuation). */
.woocommerce-checkout #order_review table.shop_table tr.alpeka-savings .alpeka-savings-note{direction:rtl;white-space:nowrap;text-align:right;}
