/* CART – BASE LAYOUT + TYPOGRAPHY */
body.woocommerce-cart .woocommerce{
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
  color: rgba(255,255,255,0.90);
}

body.woocommerce-cart .woocommerce *{
  color: inherit;
}

body.woocommerce-cart .woocommerce a{
  text-decoration: none;
}

/* =========================================================
   CART — HEADINGS
   ========================================================= */

body.woocommerce-cart .woocommerce h1,
body.woocommerce-cart .woocommerce h2{
  color: rgba(255,140,40,0.90);
  letter-spacing: 0.3px;
}

body.woocommerce-cart .woocommerce h2{
  font-size: 22px;
  margin-top: 0;
}

/* =========================================================
   CART — TABLE
   ========================================================= */

body.woocommerce-cart .woocommerce-cart-form table.shop_table{
  width: 100%;
  background: transparent !important;
  border: 0 !important;
  margin: 0;
}

/* Hide table header accessibly (avoid layout bugs) */
body.woocommerce-cart .woocommerce-cart-form table.shop_table thead{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

body.woocommerce-cart .woocommerce-cart-form table.shop_table td{
  border-top: 1px solid rgba(255,255,255,0.10) !important;
  padding: 16px 10px !important;
  vertical-align: middle;
}

body.woocommerce-cart .woocommerce-cart-form tr.cart_item{
  background: rgba(255,255,255,0.03);
}

body.woocommerce-cart .woocommerce-cart-form tr.cart_item td:first-child{
  padding-left: 16px !important;
}

body.woocommerce-cart .woocommerce-cart-form tr.cart_item td:last-child{
  padding-right: 16px !important;
}

/* Thumbnails */
body.woocommerce-cart .woocommerce-cart-form td.product-thumbnail{
  width: 110px;
}

body.woocommerce-cart .woocommerce-cart-form td.product-thumbnail img{
  width: 96px !important;
  height: 96px !important;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
}

/* Product text hierarchy */
body.woocommerce-cart .woocommerce-cart-form .product-name a{
  font-weight: 650;
  color: rgba(255,255,255,0.96);
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.woocommerce-cart .woocommerce-cart-form .product-name .variation,
body.woocommerce-cart .woocommerce-cart-form .woocommerce-cart-item__meta{
  color: rgba(255,255,255,0.65) !important;
  font-weight: 400;
}

/* Prices */
body.woocommerce-cart .woocommerce-cart-form td.product-price,
body.woocommerce-cart .woocommerce-cart-form td.product-subtotal,
body.woocommerce-cart .cart_totals .amount{
  color: rgba(255,255,255,0.98) !important;
  font-weight: 700;
}


/* =========================================================
   CART — INPUTS + BUTTONS (FIXED)
   - Secondary buttons now include: <a>, <button>, <input type="submit">
   - Checkout CTA stays separate + untouched by secondary styling
   ========================================================= */

/* Inputs */
body.woocommerce-cart input.input-text,
body.woocommerce-cart textarea,
body.woocommerce-cart .qty{
  background: rgba(0,0,0,0.35) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  border-radius: 10px;
  padding: 10px 12px;
  box-sizing: border-box;
  color: inherit;
}

/* Secondary buttons (coupon, update cart, continue shopping, etc.) — NOT the checkout CTA */
body.woocommerce-cart .woocommerce .button:not(.checkout-button),
body.woocommerce-cart .woocommerce a.button:not(.checkout-button),
body.woocommerce-cart .woocommerce button.button:not(.checkout-button),
body.woocommerce-cart .woocommerce input.button:not(.checkout-button){
  border-radius: 12px !important;
  padding: 12px 16px !important;
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  color: inherit !important;
  transition: transform 160ms ease, filter 160ms ease;
}

body.woocommerce-cart .woocommerce .button:not(.checkout-button):hover,
body.woocommerce-cart .woocommerce a.button:not(.checkout-button):hover,
body.woocommerce-cart .woocommerce button.button:not(.checkout-button):hover,
body.woocommerce-cart .woocommerce input.button:not(.checkout-button):hover{
  transform: translateY(-1px);
  filter: brightness(1.08);
}

/* Primary CTA — Proceed to checkout */
body.woocommerce-cart .wc-proceed-to-checkout .checkout-button{
  width: 100% !important;
  background-color: #F44606 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 16px 18px !important;
  font-weight: 700 !important;
  text-align: center;
  transition: background-color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 22px rgba(244,70,6,0.35);
}

body.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover,
body.woocommerce-cart .wc-proceed-to-checkout .checkout-button:focus{
  background-color: #026BAA !important;
  color: #fff !important;
  box-shadow: 0 10px 26px rgba(2,107,170,0.45);
  transform: translateY(-1px);
}

/* =========================================================
   CART — Mobile Portrait Actions Stack (<= 480px)
   Order: Coupon field → Apply coupon → Update cart
   Same width for all
   ========================================================= */
@media (max-width: 480px){

  /* Stack the whole actions area */
  body.woocommerce-cart .bt-cart-actions{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  /* Stack coupon elements vertically */
  body.woocommerce-cart .bt-cart-actions .coupon{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }

  /* Full-width coupon input (covers id + class) */
  body.woocommerce-cart .bt-cart-actions .coupon input#coupon_code,
  body.woocommerce-cart .bt-cart-actions .coupon input.input-text{
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Full-width Apply coupon button (covers <button> and <input>) */
  body.woocommerce-cart .bt-cart-actions .coupon button.button,
  body.woocommerce-cart .bt-cart-actions .coupon input.button{
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Make Update Cart sit under coupon block and full width */
  body.woocommerce-cart .bt-cart-actions__right{
    margin-left: 0;
    width: 100%;
  }

  /* Update cart button full width (covers <button> and <input>) */
  body.woocommerce-cart .bt-cart-actions__right button.button,
  body.woocommerce-cart .bt-cart-actions__right input.button{
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
  }
}


/* =========================================================
   CART — EMPTY CART + NOTICES
   ========================================================= */

body.woocommerce-cart .woocommerce .cart-empty,
body.woocommerce-cart .woocommerce .woocommerce-message,
body.woocommerce-cart .woocommerce .woocommerce-info,
body.woocommerce-cart .woocommerce .woocommerce-error{
  background: rgba(10,14,25,0.35);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.35);
}

/* Empty cart panel */
body.woocommerce-cart .woocommerce .cart-empty{
  max-width: 600px;
  margin: 40px auto 32px;
  text-align: center;
}

/* Remove Woo default icons */
body.woocommerce-cart .woocommerce .woocommerce-message::before,
body.woocommerce-cart .woocommerce .woocommerce-info::before,
body.woocommerce-cart .woocommerce .woocommerce-error::before{
  display: none !important;
}

/* Notice links */
body.woocommerce-cart .woocommerce .woocommerce-message a,
body.woocommerce-cart .woocommerce .woocommerce-info a{
  color: var(--bt-accent);
  font-weight: 650;
}

/* Return to shop */
body.woocommerce-cart .woocommerce .return-to-shop{
  text-align: center;
  margin-top: 20px;
}

/* CART: stop Woo floats inside summary card and use full width */
body.woocommerce-cart .cart-collaterals,
body.woocommerce-cart .cart-collaterals .cart_totals{
  float: none !important;
  width: 100% !important;
  max-width: none !important;
}

body.woocommerce-cart .cart-collaterals .cart_totals table{
  width: 100% !important;
}


/* =========================================================
   CART — Totals Actions
   ========================================================= */

/* Continue shopping button — full width, centered */
body.woocommerce-cart .cart-collaterals .cart_totals a.continue-shopping{
  display: flex !important;
  width: 100% !important;
  margin: 0 0 12px 0 !important;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Ensure checkout CTA sits below */
body.woocommerce-cart .cart-collaterals .cart_totals .wc-proceed-to-checkout{
  clear: both !important;
}


/* =========================================================
   CART — Panels + Actions row
   ========================================================= */

/* Panels */
body.woocommerce-cart .bt-cart-left,
body.woocommerce-cart .bt-cart-right{
  padding: 24px;
  border-radius: 18px;
  min-width: 0; /* prevents overflow issues on narrow screens */
}

/* Cart table: remove default box so glass shows */
body.woocommerce-cart .bt-cart-left table.shop_table{
  background: transparent;
  border: 0;
}

/* Table cell dividers */
body.woocommerce-cart .bt-cart-left table.shop_table th,
body.woocommerce-cart .bt-cart-left table.shop_table td{
  border-color: rgba(255,255,255,0.12);
}

/* Totals area cleanup */
body.woocommerce-cart .bt-cart-right .cart_totals{
  float: none;
  width: 100%;
}

/* Actions row (coupon + update cart) */
body.woocommerce-cart .bt-cart-actions{
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  flex-wrap: wrap;
}

body.woocommerce-cart .bt-cart-actions .coupon{
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

body.woocommerce-cart .bt-cart-actions__right{
  margin-left: auto;
}

/* =========================================================
   CART — Mobile (≤600px)
   Wider glass panels + lighter glass
   ========================================================= */
@media (max-width: 600px){

  /* Reduce outer container padding so glass reaches closer to edges */
  body.woocommerce-cart .woocommerce{
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  /* Slightly reduce gap between stacked panels */
  body.woocommerce-cart .bt-cart-layout{
    gap: 14px;
  }

  /* Reduce internal padding so content breathes better on small screens */
  body.woocommerce-cart .bt-cart-left,
  body.woocommerce-cart .bt-cart-right{
    padding: 16px;
  }

  /* Mobile-only glass tuning (lighter + less blur) */
  body.woocommerce-cart .bt-glass-product{
    background: rgba(255,255,255,0.055) !important;
    border-color: rgba(255,255,255,0.10) !important;
    box-shadow: 0 8px 22px rgba(0,0,0,0.18) !important;

    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(2px) !important;
  }
}

/* =========================================================
   CART — Layout + Panels + Table cleanup
   ========================================================= */

body.woocommerce-cart .bt-cart-layout{
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1200px){
  body.woocommerce-cart .bt-cart-layout{ grid-template-columns: 1fr 380px; }
}
@media (max-width: 900px){
  body.woocommerce-cart .bt-cart-layout{ grid-template-columns: 1fr; }
}

/* Panels */
body.woocommerce-cart .bt-cart-left,
body.woocommerce-cart .bt-cart-right{
  padding: 24px;
  border-radius: 18px;
  min-width: 0;
}

/* Table box removal so glass shows */
body.woocommerce-cart .bt-cart-left table.shop_table,
body.woocommerce-cart .bt-cart-right .shop_table{
  background: transparent;
  border: 0;
}
body.woocommerce-cart .bt-cart-left th,
body.woocommerce-cart .bt-cart-left td,
body.woocommerce-cart .bt-cart-right th,
body.woocommerce-cart .bt-cart-right td{
  border-color: rgba(255,255,255,0.12);
}

/* Totals area cleanup */
body.woocommerce-cart .bt-cart-right .cart_totals{
  float: none;
  width: 100%;
}

/* =========================================================
   CART — Glass tuning (cart-only)
   ========================================================= */

body.woocommerce-cart .bt-glass-product{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 10px 28px rgba(0,0,0,0.14);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  position: relative;
  overflow: hidden;
}

body.woocommerce-cart .bt-glass-product::after{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.06),
    rgba(10,14,24,0.24)
  );
}

/* =========================================================
   CART — Primary CTA (Proceed to checkout)
   ========================================================= */

body.woocommerce-cart .wc-proceed-to-checkout .checkout-button{
  width: 100% !important;
  background-color: #F44606 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 16px 18px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  text-align: center;

  box-shadow: 0 8px 22px rgba(244,70,6,0.35);
  transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}

body.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover,
body.woocommerce-cart .wc-proceed-to-checkout .checkout-button:focus{
  background-color: #026BAA !important;
  box-shadow: 0 10px 26px rgba(2,107,170,0.45);
  transform: translateY(-1px);
}

body.woocommerce-cart .wc-proceed-to-checkout .checkout-button:active{
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* =========================================================
   CART — Calculate Shipping link (visible + clean)
   ========================================================= */

body.woocommerce-cart .shipping-calculator .shipping-calculator-button{
  float: none !important;                 /* kills Woo float */
  display: inline-flex !important;
  align-items: center;
  gap: 6px;

  color: #026BAA !important;
  font-weight: 600;

  text-decoration: none !important;
  border-bottom: 1px dashed rgba(2,107,170,0.45);

  background: none !important;
  padding: 0 !important;

  transition: color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

/* kill Woo icon pseudo if it clashes */
body.woocommerce-cart .shipping-calculator .shipping-calculator-button::after{
  content: "→" !important;
  font-family: inherit !important;
  speak: never;
  margin-left: 4px;
  opacity: 0.75;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

body.woocommerce-cart .shipping-calculator .shipping-calculator-button:hover,
body.woocommerce-cart .shipping-calculator .shipping-calculator-button:focus{
  color: #F44606 !important;
  border-bottom-color: rgba(244,70,6,0.6);
  transform: translateX(2px);
}

body.woocommerce-cart .shipping-calculator .shipping-calculator-button:hover::after{
  transform: translateX(3px);
  opacity: 1;
}


/* =========================================================
   CART — Calculate Shipping link (force blue + beat overrides)
   ========================================================= */

body.woocommerce-cart .cart-collaterals a.shipping-calculator-button{
  float: none !important;              /* Woo sets float sometimes */
  display: inline-flex !important;
  align-items: center;
  gap: 6px;

  color: #026BAA !important;           /* FORCE blue */
  font-weight: 700 !important;

  text-decoration: none !important;
  border-bottom: 1px dashed rgba(2,107,170,0.55) !important;

  background: transparent !important;
  padding: 0 !important;

  transition: color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

/* Kill WooCommerce icon and replace with a clean arrow */
body.woocommerce-cart .cart-collaterals a.shipping-calculator-button::after{
  content: "→" !important;
  font-family: inherit !important;     /* overrides WooCommerce icon font */
  speak: never;
  margin-left: 4px;
  opacity: 0.8;
  transform: translateY(0);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

body.woocommerce-cart .cart-collaterals a.shipping-calculator-button:hover,
body.woocommerce-cart .cart-collaterals a.shipping-calculator-button:focus{
  color: #F44606 !important;
  border-bottom-color: rgba(244,70,6,0.7) !important;
  transform: translateX(2px);
}

body.woocommerce-cart .cart-collaterals a.shipping-calculator-button:hover::after{
  transform: translateX(3px);
  opacity: 1;
}

/* =========================================================
   CART — Cart totals heading (neutral, non-CTA)
   ========================================================= */

body.woocommerce-cart .cart_totals > h2,
body.woocommerce-cart .cart_totals h2{
  color: rgba(255,255,255,0.88) !important;
  font-weight: 600;
  letter-spacing: 0.02em;
}
