/* =====================================================================
   Alpeka Hair Shears 1.6.0: Cart + Checkout BLOCKS look (matches the classic cart/checkout of 1.4.2-1.5.7, the homepage and
   the thank-you page). Loaded on the cart and checkout pages only, after cart-checkout.css (functions.php, alpeka_cc_is_styled_page).
   STYLING ONLY. Every rule is scoped to .wp-block-woocommerce-cart / .wp-block-woocommerce-checkout (or the static reassurance strip
   .ah-bc-assure). Payment safety: no iframe is styled, nothing inside the WooPayments card element, the PayPal / Google Pay buttons or
   the express buttons; only the wrappers around them (option cards, the express box). No field is hidden, moved or reordered.
   !important is used only where Astra's global button/heading rules would otherwise win (same approach as cart-checkout.css).
   ===================================================================== */

.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout{
  --ah-ink:#141210; --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-d:#6f675b;
  --ah-line-d:rgba(20,18,16,.12); --ah-input:rgba(20,18,16,.22); --ah-err:#9b2c1f;
  --ah-serif:"Fraunces",Georgia,"Times New Roman",serif; --ah-sans:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  font-family:var(--ah-sans);color:var(--ah-ink);
}

/* ---------- Headings: Fraunces, no capitals ---------- */
.wp-block-woocommerce-checkout .wc-block-components-checkout-step__title,
.wp-block-woocommerce-checkout .wc-block-components-title,
.wp-block-woocommerce-cart .wc-block-components-title,
.wp-block-woocommerce-checkout .wc-block-components-checkout-order-summary__title-text,
.wp-block-woocommerce-cart .wc-block-cart__totals-title{
  font-family:var(--ah-serif) !important;font-weight:600 !important;text-transform:none !important;letter-spacing:-.005em !important;color:var(--ah-ink) !important;
}
.wp-block-woocommerce-checkout .wc-block-components-checkout-step__title{font-size:clamp(1.25rem,2.6vw,1.45rem) !important;line-height:1.25;}
.wp-block-woocommerce-checkout .wc-block-components-checkout-order-summary__title-text,
.wp-block-woocommerce-cart .wc-block-cart__totals-title{font-size:clamp(1.3rem,3vw,1.5rem) !important;}
.wp-block-woocommerce-cart .wc-block-cart__totals-title{display:block;padding:0 0 .6rem !important;}
.wp-block-woocommerce-checkout .wc-block-components-checkout-step__description,
.wp-block-woocommerce-checkout .wc-block-checkout__guest-checkout-notice{color:var(--ah-muted-d);font-size:.86rem;}

/* Links (login prompt, Terms / Privacy, address toggles, remove item) */
.wp-block-woocommerce-checkout a,.wp-block-woocommerce-cart a:not(.wc-block-components-button):not(.wc-block-components-product-name):not(.wp-block-button__link){color:var(--ah-gold-deep);}
.wp-block-woocommerce-checkout .wc-block-components-address-form__address_2-toggle,
.wp-block-woocommerce-checkout .wc-block-components-address-card__edit{color:var(--ah-gold-deep) !important;font-size:.92rem;}

/* ---------- Primary buttons: big gold pill (Place order, Proceed to checkout) ---------- */
.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button,
.wp-block-woocommerce-cart .wc-block-cart__submit-button{
  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;letter-spacing:.01em !important;text-transform:none !important;
  min-height:56px;padding:1rem 1.6rem !important;width:100%;box-shadow:0 14px 26px -16px rgba(20,18,16,.55);transition:background .2s,transform .2s;
}
.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button:hover,
.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button:focus,
.wp-block-woocommerce-cart .wc-block-cart__submit-button:hover,
.wp-block-woocommerce-cart .wc-block-cart__submit-button:focus{background:var(--ah-gold-lt) !important;border-color:var(--ah-gold-lt) !important;color:var(--ah-ink) !important;transform:translateY(-1px);}
.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button:disabled{opacity:.55;transform:none;}
.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button .wc-block-components-button__text,
.wp-block-woocommerce-cart .wc-block-cart__submit-button .wc-block-components-button__text{color:inherit !important;}
.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button .wc-block-components-spinner::after{border-color:var(--ah-ink) transparent transparent;}
/* "Return to cart" next to Place order */
.wp-block-woocommerce-checkout .wc-block-components-checkout-return-to-cart-button{color:var(--ah-gold-deep) !important;font-weight:600;}

/* Secondary buttons (coupon Apply, address edit buttons): quiet outline pill, so the gold button stays the one to press */
.wp-block-woocommerce-cart .wc-block-components-totals-coupon__button,
.wp-block-woocommerce-checkout .wc-block-components-totals-coupon__button{
  background:transparent !important;color:var(--ah-ink) !important;border:1.5px solid var(--ah-ink) !important;border-radius:999px !important;
  font-family:var(--ah-sans) !important;font-weight:600 !important;font-size:.95rem !important;letter-spacing:0 !important;text-transform:none !important;
  padding:0 1.2rem !important;min-height:46px;
}
.wp-block-woocommerce-cart .wc-block-components-totals-coupon__button:hover,
.wp-block-woocommerce-checkout .wc-block-components-totals-coupon__button:hover{background:var(--ah-ink) !important;color:var(--ah-cream) !important;}
.wp-block-woocommerce-cart .wc-block-components-totals-coupon__button .wc-block-components-button__text,
.wp-block-woocommerce-checkout .wc-block-components-totals-coupon__button .wc-block-components-button__text{color:inherit !important;}

/* ---------- Inputs (text, email, select, combobox, textarea) ---------- */
.wp-block-woocommerce-checkout .wc-block-components-text-input input,
.wp-block-woocommerce-cart .wc-block-components-text-input input,
.wp-block-woocommerce-checkout .wc-blocks-components-select .wc-blocks-components-select__select,
.wp-block-woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
.wp-block-woocommerce-checkout .wc-block-components-textarea{
  border:1px solid var(--ah-input) !important;border-radius:10px !important;background:#fff !important;box-shadow:none !important;
  font-family:var(--ah-sans) !important;color:var(--ah-ink) !important;
}
.wp-block-woocommerce-checkout .wc-blocks-components-select .wc-blocks-components-select__container{border-radius:10px;background:#fff;}
.wp-block-woocommerce-checkout .wc-block-components-text-input input:focus,
.wp-block-woocommerce-cart .wc-block-components-text-input input:focus,
.wp-block-woocommerce-checkout .wc-blocks-components-select .wc-blocks-components-select__select:focus,
.wp-block-woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input:focus,
.wp-block-woocommerce-checkout .wc-block-components-textarea:focus{
  border-color:var(--ah-gold) !important;outline:3px solid rgba(200,162,74,.35) !important;outline-offset:0 !important;
}
.wp-block-woocommerce-checkout .wc-block-components-text-input label,
.wp-block-woocommerce-checkout .wc-blocks-components-select__label,
.wp-block-woocommerce-checkout .wc-block-components-combobox label{color:var(--ah-muted-d) !important;font-family:var(--ah-sans) !important;}
/* Validation */
.wp-block-woocommerce-checkout .wc-block-components-text-input.has-error input,
.wp-block-woocommerce-checkout .has-error .wc-blocks-components-select__select{border-color:var(--ah-err) !important;}
.wp-block-woocommerce-checkout .wc-block-components-validation-error{color:var(--ah-err);}

/* Checkboxes (create account, same billing address, order note, Terms) */
.wp-block-woocommerce-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]{
  border:1.5px solid var(--ah-input) !important;border-radius:5px !important;background:#fff !important;
}
.wp-block-woocommerce-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]:checked{background:var(--ah-ink) !important;border-color:var(--ah-ink) !important;}
.wp-block-woocommerce-checkout .wc-block-components-checkbox .wc-block-components-checkbox__mark{fill:#fff !important;}
.wp-block-woocommerce-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]:focus{outline:3px solid rgba(200,162,74,.35) !important;outline-offset:1px;}
.wp-block-woocommerce-checkout .wc-block-components-checkbox__label{color:var(--ah-ink);}
.wp-block-woocommerce-checkout .wc-block-checkout__terms{font-size:.88rem;color:var(--ah-ink);}

/* ---------- Express box (PayPal, Google Pay / Apple Pay, WooPay): wrapper only ---------- */
.wp-block-woocommerce-checkout .wc-block-components-express-payment--checkout .wc-block-components-express-payment__content{
  background:#fff;border:1px solid var(--ah-line-d) !important;border-radius:16px !important;
}
.wp-block-woocommerce-checkout .wc-block-components-express-payment--checkout .wc-block-components-express-payment__content::after{border-color:var(--ah-line-d) !important;border-radius:16px !important;}
.wp-block-woocommerce-checkout .wc-block-components-express-payment__title,
.wp-block-woocommerce-checkout .wc-block-components-express-payment__title-container .wc-block-components-title{
  font-family:var(--ah-sans) !important;font-size:.72rem !important;font-weight:700 !important;letter-spacing:.14em !important;text-transform:uppercase !important;color:var(--ah-muted-d) !important;
}
.wp-block-woocommerce-checkout .wc-block-components-express-payment__title-container::before,
.wp-block-woocommerce-checkout .wc-block-components-express-payment__title-container::after{border-color:var(--ah-line-d) !important;}
.wp-block-woocommerce-checkout .wc-block-components-express-payment-continue-rule,
.wp-block-woocommerce-cart .wc-block-components-express-payment-continue-rule{color:var(--ah-muted-d);font-size:.82rem;text-transform:none;}
.wp-block-woocommerce-checkout .wc-block-components-express-payment-continue-rule::before,
.wp-block-woocommerce-checkout .wc-block-components-express-payment-continue-rule::after,
.wp-block-woocommerce-cart .wc-block-components-express-payment-continue-rule::before,
.wp-block-woocommerce-cart .wc-block-components-express-payment-continue-rule::after{border-color:var(--ah-line-d) !important;}

/* ---------- Option cards: shipping + payment methods. White card, gold border when chosen. Inside: untouched. ---------- */
.wp-block-woocommerce-checkout .wc-block-components-radio-control--highlight-checked,
.wp-block-woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control{border-radius:12px;}
.wp-block-woocommerce-checkout .wc-block-components-radio-control--highlight-checked::after{border-color:var(--ah-line-d) !important;border-radius:12px !important;}
.wp-block-woocommerce-checkout .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option,
.wp-block-woocommerce-checkout .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option{background:#fff;}
.wp-block-woocommerce-checkout .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option:first-child,
.wp-block-woocommerce-checkout .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option:first-child{border-radius:12px 12px 0 0;}
.wp-block-woocommerce-checkout .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option:last-child,
.wp-block-woocommerce-checkout .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option:last-child{border-radius:0 0 12px 12px;}
.wp-block-woocommerce-checkout .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option:only-child,
.wp-block-woocommerce-checkout .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option:only-child{border-radius:12px;}
/* WooCommerce draws the chosen option as an inset ink box-shadow on the option itself: swap it for a gold outline (drawn above the white option rows) + soft gold ring */
.wp-block-woocommerce-checkout .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option-checked,
.wp-block-woocommerce-checkout .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted{
  box-shadow:0 0 0 3px rgba(200,162,74,.18) !important;outline:1.5px solid var(--ah-gold);outline-offset:-1.5px;z-index:1;
}
/* payment methods: the accordion option already carries the highlight, so its inner label row gets none (no box in a box) */
.wp-block-woocommerce-checkout .wc-block-components-radio-control-accordion-option .wc-block-components-radio-control__option-checked{box-shadow:none !important;outline:0;background:transparent !important;}
.wp-block-woocommerce-checkout .wc-block-components-radio-control__input{border-color:var(--ah-input) !important;}
.wp-block-woocommerce-checkout .wc-block-components-radio-control__input:checked{border-color:var(--ah-ink) !important;}
.wp-block-woocommerce-checkout .wc-block-components-radio-control__input:checked::before{background:var(--ah-ink) !important;}
.wp-block-woocommerce-checkout .wc-block-components-radio-control__label,
.wp-block-woocommerce-checkout .wc-block-components-payment-method-label{font-weight:600;color:var(--ah-ink);}

/* ---------- Order summary (checkout sidebar) + cart totals: cream card with the gold top border ---------- */
.wp-block-woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block,
.wp-block-woocommerce-cart .wp-block-woocommerce-cart-order-summary-block{
  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;overflow:hidden;
}
.wp-block-woocommerce-cart .wp-block-woocommerce-cart-order-summary-block{padding:1.1rem 1.3rem .3rem;}
.wp-block-woocommerce-checkout .wc-block-components-checkout-order-summary__title{padding-top:.4rem;}
.wp-block-woocommerce-checkout .wc-block-components-totals-wrapper,
.wp-block-woocommerce-cart .wc-block-components-totals-wrapper{border-top-color:var(--ah-line-d) !important;}
.wp-block-woocommerce-checkout .wc-block-components-totals-wrapper::after,
.wp-block-woocommerce-cart .wc-block-components-totals-wrapper::after{border-color:var(--ah-line-d) !important;}
.wp-block-woocommerce-cart .wp-block-woocommerce-cart-order-summary-block .wc-block-components-totals-wrapper{padding-left:0;padding-right:0;}
.wp-block-woocommerce-checkout .wc-block-components-totals-item__label,
.wp-block-woocommerce-cart .wc-block-components-totals-item__label{color:var(--ah-muted-d);font-weight:500;}
.wp-block-woocommerce-checkout .wc-block-components-totals-item__value,
.wp-block-woocommerce-cart .wc-block-components-totals-item__value{color:var(--ah-ink);}
.wp-block-woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wp-block-woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wp-block-woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wp-block-woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value{
  font-family:var(--ah-serif) !important;font-size:1.25rem !important;font-weight:600 !important;color:var(--ah-ink) !important;
}
/* Coupon panel + applied coupon chip (FBPRO5) */
.wp-block-woocommerce-checkout .wc-block-components-panel__button,
.wp-block-woocommerce-cart .wc-block-components-panel__button{color:var(--ah-ink) !important;font-weight:600;}
.wp-block-woocommerce-checkout .wc-block-components-chip,
.wp-block-woocommerce-cart .wc-block-components-chip{background:#fff !important;border:1px solid var(--ah-line-d) !important;border-radius:999px !important;color:var(--ah-ink) !important;}
.wp-block-woocommerce-checkout .wc-block-components-totals-discount .wc-block-components-totals-item__value,
.wp-block-woocommerce-cart .wc-block-components-totals-discount .wc-block-components-totals-item__value{color:var(--ah-gold-deep);}

/* Order summary lines (checkout): names in ink, not capitals; quantity bubble in ink */
.wp-block-woocommerce-checkout .wc-block-components-order-summary-item__description .wc-block-components-product-name{
  color:var(--ah-ink) !important;font-weight:600 !important;text-transform:none !important;letter-spacing:0 !important;font-size:.95rem !important;
}
.wp-block-woocommerce-checkout .wc-block-components-order-summary-item__quantity{background:var(--ah-ink) !important;color:#fff !important;border-color:var(--ah-paper) !important;}
.wp-block-woocommerce-checkout .wc-block-components-order-summary-item__image img{border-radius:10px;background:#fff;}

/* ---------- Cart line items: white card, cream header row ---------- */
.wp-block-woocommerce-cart table.wc-block-cart-items{
  background:#fff;border:1px solid var(--ah-line-d) !important;border-radius:16px;border-collapse:separate !important;border-spacing:0;overflow:hidden;
}
.wp-block-woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__header th{
  background:var(--ah-paper);font-family:var(--ah-sans) !important;font-size:.72rem !important;font-weight:700 !important;letter-spacing:.14em !important;
  text-transform:uppercase;color:var(--ah-muted-d) !important;border:0 !important;padding:.9rem 1rem !important;
}
.wp-block-woocommerce-cart table.wc-block-cart-items td{border-top:1px solid var(--ah-line-d) !important;border-bottom:0 !important;padding:1rem !important;}
.wp-block-woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row:first-child td{border-top:0 !important;}
.wp-block-woocommerce-cart .wc-block-components-product-name{color:var(--ah-ink) !important;font-weight:600 !important;font-size:1rem;text-decoration:none;}
.wp-block-woocommerce-cart .wc-block-cart-item__image img{border-radius:10px;background:var(--ah-paper);}
.wp-block-woocommerce-cart .wc-block-cart-item__total{font-weight:600;color:var(--ah-ink);}
.wp-block-woocommerce-cart .wc-block-cart-item__remove-link{color:var(--ah-muted-d) !important;}
.wp-block-woocommerce-cart .wc-block-components-quantity-selector{border-radius:10px !important;}
.wp-block-woocommerce-cart .wc-block-components-quantity-selector::after{border-color:var(--ah-input) !important;border-radius:10px !important;}
/* Native sale display (struck regular price + "Save $x" badge): information, not a discount: muted, not gold
   (alpeka-marketing 2026-11-27 rule for the classic "You save" row) */
.wp-block-woocommerce-cart .wc-block-components-product-price__regular,
.wp-block-woocommerce-checkout .wc-block-components-product-price__regular{color:var(--ah-muted-d);font-weight:400;}
.wp-block-woocommerce-cart .wc-block-components-sale-badge,
.wp-block-woocommerce-checkout .wc-block-components-sale-badge{
  background:var(--ah-paper-2) !important;color:var(--ah-muted-d) !important;border:0 !important;border-radius:999px !important;
  font-weight:600 !important;text-transform:none !important;letter-spacing:0 !important;
}

/* ---------- Empty cart ---------- */
.wp-block-woocommerce-cart .wc-block-cart__empty-cart__title{font-family:var(--ah-serif) !important;font-weight:600 !important;text-transform:none !important;color:var(--ah-ink) !important;}
.wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wp-block-heading{font-family:var(--ah-serif) !important;font-weight:600 !important;text-transform:none !important;}
.wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wp-block-button__link{
  background:var(--ah-gold) !important;color:var(--ah-ink) !important;border:0 !important;border-radius:999px !important;font-weight:700 !important;text-transform:none !important;letter-spacing:0 !important;
}

/* ---------- Notices ---------- */
.wp-block-woocommerce-cart .wc-block-components-notice-banner,
.wp-block-woocommerce-checkout .wc-block-components-notice-banner{border-radius:12px !important;color:var(--ah-ink) !important;}
.wp-block-woocommerce-cart .wc-block-components-notice-banner.is-info,
.wp-block-woocommerce-checkout .wc-block-components-notice-banner.is-info{background:var(--ah-paper) !important;border-color:var(--ah-line-d) !important;}
.wp-block-woocommerce-cart .wc-block-components-notice-banner.is-error,
.wp-block-woocommerce-checkout .wc-block-components-notice-banner.is-error{background:#fff6f4 !important;border-color:rgba(155,44,31,.25) !important;border-left:4px solid var(--ah-err) !important;}

/* ---------- Reassurance strip (static page content under the Checkout block; same wording as the classic hook) ----------
   Base look comes from .ah-cc-assure in cart-checkout.css. Here: spacing under the block (full width, like the classic phone layout). */
.wp-block-woocommerce-checkout ~ .ah-bc-assure{margin:1.5rem 0 clamp(2rem,5vw,3.5rem);}


/* ---------- Phone ---------- */
@media (max-width:699px){
  .wp-block-woocommerce-cart table.wc-block-cart-items td{padding:.85rem !important;}
  .wp-block-woocommerce-cart .wp-block-woocommerce-cart-order-summary-block{padding:1rem 1rem .2rem;}
  .wp-block-woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block{border-radius:14px !important;}
}
