/*
 * Foxco Cart & Checkout — Preset Styles
 * Uses CSS variables set via inline style by FCC_Presets class.
 * ============================================================ */

/* ── Default variable fallbacks ───────────────────────────────── */
:root {
  --fcc-primary:       #3b82f6;
  --fcc-primary-dark:  #2563eb;
  --fcc-primary-rgb:   59,130,246;
  --fcc-secondary:     #1e293b;
  --fcc-bg:            #f0f5fb;
  --fcc-surface:       #ffffff;
  --fcc-border:        #dde6f0;
  --fcc-text:          #0f172a;
  --fcc-text-muted:    #64748b;
  --fcc-radius:        10px;
  --fcc-radius-lg:     16px;
  --fcc-shadow:        0 2px 8px rgba(15,23,42,0.08);
  --fcc-shadow-lg:     0 12px 40px rgba(15,23,42,0.12);
  --fcc-heading-bg:    #1e293b;
  --fcc-heading-color: #ffffff;
  --fcc-accent-bg:     #eff6ff;
  --fcc-total-bg:      #1e293b;
  --fcc-total-color:   #ffffff;
  --fcc-focus-ring:    rgba(59,130,246,0.22);
}

/* ═══════════════════════════════════════════════════════════════
   PAGE BACKGROUND
═══════════════════════════════════════════════════════════════ */
.woocommerce-cart .site-main,
.woocommerce-checkout .site-main,
body.woocommerce-cart,
body.woocommerce-checkout {
  background-color: var(--fcc-bg);
}

/* ═══════════════════════════════════════════════════════════════
   GLOBAL WC BUTTONS
═══════════════════════════════════════════════════════════════ */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input[type="submit"],
.woocommerce #respond input#submit {
  background-color: var(--fcc-secondary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--fcc-radius) !important;
  padding: 10px 20px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: background .2s ease, box-shadow .2s ease, transform .15s ease !important;
  text-decoration: none !important;
  display: inline-block;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input[type="submit"]:hover {
  background-color: var(--fcc-primary-dark) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.14) !important;
  transform: translateY(-1px);
}

/* Primary / alt buttons (Proceed to Checkout, Place Order) */
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce #place_order,
.woocommerce .checkout-button,
.woocommerce-cart a.checkout-button {
  background-color: var(--fcc-primary) !important;
  color: #fff !important;
  border-radius: var(--fcc-radius) !important;
  padding: 15px 28px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  width: 100%;
  display: block;
  text-align: center;
  box-shadow: 0 2px 10px rgba(var(--fcc-primary-rgb), 0.30) !important;
  transition: background .2s ease, box-shadow .2s ease, transform .15s ease !important;
}
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce #place_order:hover,
.woocommerce .checkout-button:hover {
  background-color: var(--fcc-primary-dark) !important;
  box-shadow: 0 6px 22px rgba(var(--fcc-primary-rgb), 0.40) !important;
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════════
   CART TABLE
═══════════════════════════════════════════════════════════════ */
.woocommerce table.shop_table {
  border: 1px solid var(--fcc-border) !important;
  border-radius: var(--fcc-radius-lg) !important;
  overflow: hidden;
  box-shadow: var(--fcc-shadow) !important;
  background: var(--fcc-surface) !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: 100% !important;
}

.woocommerce table.shop_table thead th {
  background: var(--fcc-heading-bg) !important;
  color: var(--fcc-heading-color) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.9px !important;
  padding: 14px 18px !important;
  border: none !important;
}

.woocommerce table.shop_table tbody td {
  border-color: var(--fcc-border) !important;
  border-style: solid;
  border-width: 0 0 1px 0;
  padding: 16px 18px !important;
  vertical-align: middle !important;
  color: var(--fcc-text) !important;
  background: var(--fcc-surface) !important;
}

.woocommerce table.shop_table tbody tr:last-child td {
  border-bottom: none !important;
}

.woocommerce table.shop_table tbody tr:hover td {
  background: var(--fcc-accent-bg) !important;
}

.woocommerce table.shop_table tfoot td,
.woocommerce table.shop_table tfoot th {
  padding: 12px 18px !important;
  border-top: 1px solid var(--fcc-border) !important;
  color: var(--fcc-text) !important;
  font-size: 14px !important;
}

/* Total row */
.woocommerce table.shop_table tfoot .order-total td,
.woocommerce table.shop_table tfoot .order-total th {
  background: var(--fcc-total-bg) !important;
  color: var(--fcc-total-color) !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  border: none !important;
  padding: 18px !important;
}

/* ── Cart column widths ────────────────────────────────────── */
.woocommerce table.shop_table .product-remove { width: 36px !important; padding: 16px 8px 16px 14px !important; }
.woocommerce table.shop_table .product-thumbnail { width: 88px !important; padding: 16px 12px !important; }
.woocommerce table.shop_table .product-name { width: auto !important; }
.woocommerce table.shop_table .product-price { width: 100px !important; white-space: nowrap; }
.woocommerce table.shop_table .product-quantity { width: 100px !important; }
.woocommerce table.shop_table .product-subtotal { width: 110px !important; white-space: nowrap; text-align: right !important; }

/* Product thumbnail in cart */
.woocommerce-cart-form__cart-item .product-thumbnail img {
  border-radius: var(--fcc-radius) !important;
  width: 72px !important;
  height: 72px !important;
  object-fit: cover !important;
  display: block;
}

/* Remove × button */
.woocommerce-cart-form__cart-item .product-remove a.remove {
  color: var(--fcc-text-muted) !important;
  font-size: 20px !important;
  font-weight: 400 !important;
  line-height: 1;
  transition: color .2s;
  text-decoration: none !important;
}
.woocommerce-cart-form__cart-item .product-remove a.remove:hover {
  color: #ef4444 !important;
  background: transparent !important;
}

/* Product name */
.woocommerce table.shop_table td a {
  color: var(--fcc-text) !important;
  text-decoration: none !important;
  font-weight: 600;
  transition: color .15s;
}
.woocommerce table.shop_table td a:hover {
  color: var(--fcc-primary) !important;
}

/* Quantity */
.woocommerce .quantity input.qty {
  border: 1px solid var(--fcc-border) !important;
  border-radius: var(--fcc-radius) !important;
  padding: 8px 10px !important;
  text-align: center !important;
  color: var(--fcc-text) !important;
  font-weight: 600 !important;
  background: var(--fcc-surface) !important;
  width: 62px !important;
  transition: border-color .2s, box-shadow .2s;
}
.woocommerce .quantity input.qty:focus {
  border-color: var(--fcc-primary) !important;
  box-shadow: 0 0 0 3px var(--fcc-focus-ring) !important;
  outline: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   COUPON & CART ACTIONS
═══════════════════════════════════════════════════════════════ */
.woocommerce-cart-form .coupon {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap;
}

.woocommerce-cart-form .coupon input#coupon_code {
  border: 1px solid var(--fcc-border) !important;
  border-radius: var(--fcc-radius) !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  color: var(--fcc-text) !important;
  background: var(--fcc-surface) !important;
  flex: 1;
  min-width: 150px;
  transition: border-color .2s, box-shadow .2s;
}
.woocommerce-cart-form .coupon input#coupon_code:focus {
  border-color: var(--fcc-primary) !important;
  box-shadow: 0 0 0 3px var(--fcc-focus-ring) !important;
  outline: none !important;
}

.woocommerce-cart-form .actions {
  background: var(--fcc-accent-bg) !important;
  border-top: 1px solid var(--fcc-border) !important;
  padding: 16px 18px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap;
  gap: 12px;
}

/* ═══════════════════════════════════════════════════════════════
   CART TOTALS CARD
═══════════════════════════════════════════════════════════════ */
.cart-collaterals {
  margin-top: 30px !important;
}

.cart_totals {
  background: var(--fcc-surface) !important;
  border-radius: var(--fcc-radius-lg) !important;
  box-shadow: var(--fcc-shadow) !important;
  overflow: hidden !important;
  border: 1px solid var(--fcc-border) !important;
}

.cart_totals > h2 {
  background: var(--fcc-heading-bg) !important;
  color: var(--fcc-heading-color) !important;
  margin: 0 !important;
  padding: 14px 20px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.9px !important;
}

.cart_totals .shop_table {
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
}

.cart_totals .order-total td {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--fcc-primary) !important;
  background: var(--fcc-accent-bg) !important;
}

.cart_totals .order-total th {
  font-weight: 700 !important;
  background: var(--fcc-accent-bg) !important;
}

.wc-proceed-to-checkout {
  padding: 18px 20px !important;
}

/* ═══════════════════════════════════════════════════════════════
   CHECKOUT — SECTION CARDS
═══════════════════════════════════════════════════════════════ */
.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-additional-fields {
  background: var(--fcc-surface) !important;
  border-radius: var(--fcc-radius-lg) !important;
  box-shadow: var(--fcc-shadow) !important;
  border: 1px solid var(--fcc-border) !important;
  overflow: hidden !important;
  margin-bottom: 24px;
}

.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3 {
  background: var(--fcc-heading-bg) !important;
  color: var(--fcc-heading-color) !important;
  margin: 0 !important;
  padding: 14px 20px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.9px !important;
  border-radius: 0 !important;
}

.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper,
.woocommerce-additional-fields__field-wrapper {
  padding: 20px !important;
}

/* col2-set columns inside customer details */
.woocommerce-checkout .col2-set {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  float: none !important;
  width: 100% !important;
}
.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
  float: none !important;
  width: 100% !important;
}

/* ═══════════════════════════════════════════════════════════════
   FORM FIELDS
═══════════════════════════════════════════════════════════════ */
.woocommerce form .form-row {
  margin-bottom: 16px !important;
}

.woocommerce form .form-row label {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--fcc-text) !important;
  margin-bottom: 5px !important;
  display: block;
}

.woocommerce form .form-row .required {
  color: var(--fcc-primary) !important;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form p textarea {
  border: 1px solid var(--fcc-border) !important;
  border-radius: var(--fcc-radius) !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  color: var(--fcc-text) !important;
  background: var(--fcc-surface) !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: border-color .2s, box-shadow .2s !important;
  -webkit-appearance: none;
  appearance: none;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
  border-color: var(--fcc-primary) !important;
  box-shadow: 0 0 0 3px var(--fcc-focus-ring) !important;
  outline: none !important;
}

/* Select2 */
.select2-container--default .select2-selection--single {
  border: 1px solid var(--fcc-border) !important;
  border-radius: var(--fcc-radius) !important;
  height: 42px !important;
  display: flex !important;
  align-items: center !important;
  background: var(--fcc-surface) !important;
  padding: 0 14px !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--fcc-text) !important;
  padding: 0 !important;
  line-height: 1 !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 50% !important;
  transform: translateY(-50%);
  right: 10px !important;
}
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--single {
  border-color: var(--fcc-primary) !important;
  box-shadow: 0 0 0 3px var(--fcc-focus-ring) !important;
}

/* ═══════════════════════════════════════════════════════════════
   ORDER REVIEW CARD
═══════════════════════════════════════════════════════════════ */
#order_review_heading {
  background: var(--fcc-heading-bg) !important;
  color: var(--fcc-heading-color) !important;
  padding: 14px 20px !important;
  margin: 0 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.9px !important;
  border-radius: var(--fcc-radius-lg) var(--fcc-radius-lg) 0 0 !important;
}

#order_review {
  background: var(--fcc-surface) !important;
  border: 1px solid var(--fcc-border) !important;
  border-top: none !important;
  border-radius: 0 0 var(--fcc-radius-lg) var(--fcc-radius-lg) !important;
  box-shadow: var(--fcc-shadow) !important;
  overflow: hidden !important;
}

.woocommerce-checkout-review-order-table thead th {
  background: var(--fcc-secondary) !important;
  color: #fff !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  padding: 12px 18px !important;
}

.woocommerce-checkout-review-order-table tbody td,
.woocommerce-checkout-review-order-table tfoot td,
.woocommerce-checkout-review-order-table tfoot th {
  padding: 12px 18px !important;
  border-color: var(--fcc-border) !important;
  color: var(--fcc-text) !important;
}

.woocommerce-checkout-review-order-table tfoot .order-total td,
.woocommerce-checkout-review-order-table tfoot .order-total th {
  background: var(--fcc-total-bg) !important;
  color: var(--fcc-total-color) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  border: none !important;
  padding: 16px 18px !important;
}

/* ═══════════════════════════════════════════════════════════════
   PAYMENT SECTION
═══════════════════════════════════════════════════════════════ */
#payment {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

#payment ul.payment_methods {
  border-bottom: 1px solid var(--fcc-border) !important;
  padding: 16px 20px !important;
  margin: 0 !important;
  list-style: none !important;
}

#payment ul.payment_methods li {
  padding: 10px 0 !important;
  border-bottom: 1px solid var(--fcc-border) !important;
}
#payment ul.payment_methods li:last-child {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

#payment ul.payment_methods label {
  font-weight: 600 !important;
  font-size: 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px;
  cursor: pointer;
}

#payment div.payment_box {
  background: var(--fcc-accent-bg) !important;
  border-radius: var(--fcc-radius) !important;
  padding: 12px 16px !important;
  margin-top: 10px !important;
  font-size: 13px !important;
  color: var(--fcc-text-muted) !important;
}

.place-order {
  padding: 20px !important;
}

/* ═══════════════════════════════════════════════════════════════
   WC NOTICES
═══════════════════════════════════════════════════════════════ */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  border-radius: var(--fcc-radius) !important;
  margin-bottom: 20px !important;
  font-size: 14px !important;
}
.woocommerce-message {
  border-top-color: var(--fcc-primary) !important;
  background: var(--fcc-accent-bg) !important;
}
.woocommerce-message::before { color: var(--fcc-primary) !important; }

/* ═══════════════════════════════════════════════════════════════
   EMPTY CART
═══════════════════════════════════════════════════════════════ */
.woocommerce-cart-is-empty {
  text-align: center;
  padding: 60px 20px !important;
  background: var(--fcc-surface) !important;
  border-radius: var(--fcc-radius-lg) !important;
  box-shadow: var(--fcc-shadow) !important;
}
.woocommerce-cart-is-empty .cart-empty {
  font-size: 20px !important;
  color: var(--fcc-text-muted) !important;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   MINIMAL PRESET — override heading card look for flat style
═══════════════════════════════════════════════════════════════ */
.fcc-preset-minimal .woocommerce-billing-fields h3,
.fcc-preset-minimal .woocommerce-shipping-fields h3,
.fcc-preset-minimal .woocommerce-additional-fields h3,
.fcc-preset-minimal .cart_totals > h2,
.fcc-preset-minimal #order_review_heading,
.fcc-preset-minimal .woocommerce table.shop_table thead th {
  border-bottom: 2px solid var(--fcc-border) !important;
  letter-spacing: 0 !important;
  font-size: 13px !important;
  text-transform: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   CLASSIC PRESET — warm heading treatment
═══════════════════════════════════════════════════════════════ */
.fcc-preset-classic .woocommerce-billing-fields h3,
.fcc-preset-classic .woocommerce-shipping-fields h3,
.fcc-preset-classic .woocommerce-additional-fields h3,
.fcc-preset-classic .cart_totals > h2,
.fcc-preset-classic #order_review_heading {
  border-bottom: 2px solid var(--fcc-border) !important;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  .woocommerce table.shop_table thead {
    display: none;
  }
  .woocommerce table.shop_table tbody td {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between;
    border-bottom: 1px solid var(--fcc-border) !important;
  }
  .woocommerce table.shop_table tbody td::before {
    content: attr(data-title) ': ';
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--fcc-text-muted);
  }
  .woocommerce-cart-form__cart-item .product-remove {
    text-align: right;
  }
  .woocommerce-cart-form .actions {
    flex-direction: column;
    align-items: stretch;
  }
  .cart_totals {
    margin-top: 24px;
  }
  #order_review_heading {
    border-radius: var(--fcc-radius-lg) var(--fcc-radius-lg) 0 0 !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   ORDER RECEIVED / THANK YOU PAGE
═══════════════════════════════════════════════════════════════ */
body.woocommerce-order-received {
  background-color: var(--fcc-bg);
}

.woocommerce-order-received .woocommerce-order {
  max-width: 780px;
  margin: 0 auto;
}

/* ✅ Thank you banner */
.woocommerce-order-received p.woocommerce-thankyou-order-received {
  background: var(--fcc-primary) !important;
  color: #fff !important;
  border-radius: var(--fcc-radius-lg) !important;
  padding: 22px 28px !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  text-align: center !important;
  margin-bottom: 28px !important;
  box-shadow: 0 4px 20px rgba(var(--fcc-primary-rgb), 0.30) !important;
  border: none !important;
  display: block;
}
.woocommerce-order-received p.woocommerce-thankyou-order-received::before {
  content: '✅  ';
}

/* Order overview strip — order #, date, email, total */
ul.woocommerce-order-overview {
  background: var(--fcc-surface) !important;
  border: 1px solid var(--fcc-border) !important;
  border-radius: var(--fcc-radius-lg) !important;
  box-shadow: var(--fcc-shadow) !important;
  display: flex !important;
  flex-wrap: wrap !important;
  margin: 0 0 28px !important;
  padding: 0 !important;
  list-style: none !important;
  overflow: hidden;
}
ul.woocommerce-order-overview li {
  flex: 1 1 160px !important;
  padding: 20px 22px !important;
  margin: 0 !important;
  border-right: 1px solid var(--fcc-border) !important;
  border-bottom: none !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--fcc-text-muted) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px;
}
ul.woocommerce-order-overview li:last-child { border-right: none !important; }
ul.woocommerce-order-overview li strong {
  display: block;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--fcc-text) !important;
  text-transform: none;
  letter-spacing: 0;
}
ul.woocommerce-order-overview li.woocommerce-order-overview__total {
  background: var(--fcc-accent-bg) !important;
}
ul.woocommerce-order-overview li.woocommerce-order-overview__total strong {
  color: var(--fcc-primary) !important;
  font-size: 22px !important;
}

/* Order details & customer details cards */
.woocommerce-order-received .woocommerce-order-details,
.woocommerce-order-received .woocommerce-customer-details {
  background: var(--fcc-surface) !important;
  border: 1px solid var(--fcc-border) !important;
  border-radius: var(--fcc-radius-lg) !important;
  box-shadow: var(--fcc-shadow) !important;
  overflow: hidden !important;
  margin-bottom: 24px !important;
}
.woocommerce-order-received .woocommerce-order-details__title,
.woocommerce-order-received .woocommerce-column__title {
  background: var(--fcc-heading-bg) !important;
  color: var(--fcc-heading-color) !important;
  margin: 0 !important;
  padding: 14px 20px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.9px !important;
}
.woocommerce-order-received .woocommerce-table--order-details {
  margin: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  border: none !important;
}

/* Customer address columns */
.woocommerce-order-received .woocommerce-customer-details .col2-set {
  display: flex !important;
  flex-wrap: wrap !important;
}
.woocommerce-order-received .woocommerce-customer-details address {
  padding: 20px !important;
  font-style: normal !important;
  font-size: 14px !important;
  line-height: 1.75 !important;
  color: var(--fcc-text) !important;
  flex: 1 1 220px;
  border-right: 1px solid var(--fcc-border);
}
.woocommerce-order-received .woocommerce-customer-details address:last-child {
  border-right: none;
}
.woocommerce-order-received .woocommerce-customer-details address p {
  font-size: 14px !important; margin: 0;
}

/* Login prompt for guest orders */
.woocommerce-order-received .woocommerce-info {
  background: var(--fcc-accent-bg) !important;
  border-left: 4px solid var(--fcc-primary) !important;
  border-top: none !important;
  border-radius: var(--fcc-radius) !important;
  padding: 14px 18px !important;
  margin-bottom: 20px !important;
  font-size: 14px !important;
  color: var(--fcc-text) !important;
}
.woocommerce-order-received .woocommerce-info::before { color: var(--fcc-primary) !important; }

.woocommerce-order-received .woocommerce-form.woocommerce-form-login {
  background: var(--fcc-surface) !important;
  border: 1px solid var(--fcc-border) !important;
  border-radius: var(--fcc-radius-lg) !important;
  box-shadow: var(--fcc-shadow) !important;
  padding: 24px !important;
  margin-bottom: 28px !important;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE OVERHAUL (replaces old @media block)
═══════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {

  /* Bigger base text for thumbs */
  .woocommerce form .form-row label            { font-size: 15px !important; margin-bottom: 6px !important; }
  .woocommerce form .form-row input.input-text,
  .woocommerce form .form-row textarea         { font-size: 16px !important; padding: 13px 15px !important; }
  .woocommerce .quantity input.qty             { font-size: 16px !important; padding: 11px !important; width: 70px !important; }

  /* Cart table → label/value rows */
  .woocommerce table.shop_table thead         { display: none !important; }
  .woocommerce table.shop_table tbody td {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between;
    border-bottom: 1px solid var(--fcc-border) !important;
    font-size: 15px !important;
    padding: 14px 16px !important;
  }
  .woocommerce table.shop_table tbody td::before {
    content: attr(data-title);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--fcc-text-muted);
  }
  .woocommerce-cart-form__cart-item .product-remove { text-align: right; }

  /* Cart totals */
  .cart_totals { margin-top: 24px; }
  .cart_totals .shop_table tbody td,
  .cart_totals .shop_table tfoot td,
  .cart_totals .shop_table tfoot th { font-size: 15px !important; padding: 14px 18px !important; }
  .cart_totals .order-total td      { font-size: 22px !important; }

  /* Coupon & actions */
  .woocommerce-cart-form .coupon { flex-direction: column !important; }
  .woocommerce-cart-form .coupon input#coupon_code { font-size: 16px !important; padding: 13px 15px !important; width: 100% !important; }
  .woocommerce-cart-form .actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .woocommerce-cart-form .actions .button { font-size: 15px !important; padding: 13px 20px !important; text-align: center; width: 100% !important; }

  /* CTA buttons — bigger tap targets */
  .woocommerce a.button.alt,
  .woocommerce button.button.alt,
  .woocommerce #place_order,
  .woocommerce .checkout-button,
  .woocommerce-cart a.checkout-button { font-size: 17px !important; padding: 17px 28px !important; }

  /* Checkout headings */
  .woocommerce-billing-fields h3,
  .woocommerce-shipping-fields h3,
  .woocommerce-additional-fields h3,
  .cart_totals > h2,
  #order_review_heading { font-size: 13px !important; padding: 15px 18px !important; }

  /* Order review table */
  .woocommerce-checkout-review-order-table thead th,
  .woocommerce-checkout-review-order-table tbody td,
  .woocommerce-checkout-review-order-table tfoot td,
  .woocommerce-checkout-review-order-table tfoot th { font-size: 15px !important; padding: 14px 16px !important; }
  .woocommerce-checkout-review-order-table tfoot .order-total td,
  .woocommerce-checkout-review-order-table tfoot .order-total th { font-size: 18px !important; }

  /* Payment */
  #payment ul.payment_methods label { font-size: 16px !important; }
  #payment div.payment_box          { font-size: 14px !important; }
  .place-order                      { padding: 18px !important; }

  /* Order received — stacked overview */
  .woocommerce-order-received p.woocommerce-thankyou-order-received { font-size: 16px !important; padding: 18px !important; }

  ul.woocommerce-order-overview {
    flex-direction: column !important;
  }
  ul.woocommerce-order-overview li {
    border-right: none !important;
    border-bottom: 1px solid var(--fcc-border) !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 16px 18px !important;
    font-size: 13px !important;
  }
  ul.woocommerce-order-overview li:last-child { border-bottom: none !important; }
  ul.woocommerce-order-overview li strong     { font-size: 15px !important; }
  ul.woocommerce-order-overview li.woocommerce-order-overview__total strong { font-size: 18px !important; }

  .woocommerce-order-received .woocommerce-customer-details .col2-set { flex-direction: column !important; }
  .woocommerce-order-received .woocommerce-customer-details address {
    border-right: none !important;
    border-bottom: 1px solid var(--fcc-border);
  }
  .woocommerce-order-received .woocommerce-customer-details address:last-child { border-bottom: none; }

  #order_review_heading { border-radius: var(--fcc-radius-lg) var(--fcc-radius-lg) 0 0 !important; }
}

/* ═══════════════════════════════════════════════════════════════
   WOOPAY — SAVE MY INFO BLOCK
   Exact selectors from live HTML inspection
═══════════════════════════════════════════════════════════════ */

/* Outer wrapper */
.woopay-save-new-user-container {
  background: var(--fcc-surface) !important;
  border: 1px solid var(--fcc-border) !important;
  border-radius: var(--fcc-radius-lg) !important;
  padding: 20px !important;
  margin-top: 16px !important;
  margin-bottom: 16px !important;
}

/* Checkbox label row */
.woopay-save-new-user-container .save-details-header label {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--fcc-text) !important;
  cursor: pointer !important;
  margin-bottom: 14px !important;
}

/* Checkbox */
.woopay-save-new-user-container input#save_user_in_woopay,
.woopay-save-new-user-container .save-details-checkbox {
  -webkit-appearance: checkbox !important;
  appearance: checkbox !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  accent-color: var(--fcc-primary) !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  border: 2px solid var(--fcc-border) !important;
  border-radius: 4px !important;
}

/* Checkbox label text */
.woopay-save-new-user-container .wc-block-components-checkbox__label {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--fcc-text) !important;
}

/* iti wrapper — DO NOT touch padding-left, iti calculates it correctly (99px) */
.woopay-save-new-user-container .iti {
  width: 100% !important;
  border: 1px solid var(--fcc-border) !important;
  border-radius: var(--fcc-radius) !important;
  background: var(--fcc-surface) !important;
  margin-bottom: 10px !important;
  display: block !important;
  position: relative !important;
  transition: border-color .2s, box-shadow .2s !important;
}
.woopay-save-new-user-container .iti:focus-within {
  border-color: var(--fcc-primary) !important;
  box-shadow: 0 0 0 3px var(--fcc-focus-ring) !important;
}

/* Flag + dial code selector — stays position:absolute, iti requires this */
.woopay-save-new-user-container .iti__flag-container {
  position: absolute !important;
  top: 0 !important; bottom: 0 !important; left: 0 !important;
}
.woopay-save-new-user-container .iti__selected-flag {
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 0 8px 0 10px !important;
  background: var(--fcc-accent-bg) !important;
  border-right: 1px solid var(--fcc-border) !important;
  border-radius: var(--fcc-radius) 0 0 var(--fcc-radius) !important;
  cursor: pointer !important;
}
.woopay-save-new-user-container .iti__selected-dial-code {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--fcc-text) !important;
}

/* Phone input — let iti set padding-left via its inline style, just clean up the rest */
.woopay-save-new-user-container input.phone-input,
.woopay-save-new-user-container input[type="tel"] {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  /* NO padding-left override — iti sets this correctly to 99px */
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  padding-right: 14px !important;
  font-size: 15px !important;
  color: var(--fcc-text) !important;
  background: transparent !important;
  width: 100% !important;
  border-radius: 0 var(--fcc-radius) var(--fcc-radius) 0 !important;
}
.woopay-save-new-user-container input.phone-input::placeholder {
  color: var(--fcc-text-muted) !important;
}

/* Suppress WC has-error red border on the iti wrapper (validation fires on load) */
.woopay-save-new-user-container .has-error .iti {
  border-color: var(--fcc-border) !important;
}
.woopay-save-new-user-container .has-error input.phone-input {
  border: none !important;
  box-shadow: none !important;
}

/* Validation error message — hidden by default, keep it subtle */
.woopay-save-new-user-container #validate-error-invalid-woopay-phone-number {
  font-size: 12px !important;
  color: #ef4444 !important;
  margin-top: 6px !important;
}

/* Additional info + TOS text */
.woopay-save-new-user-container .additional-information,
.woopay-save-new-user-container .tos {
  font-size: 12px !important;
  color: var(--fcc-text-muted) !important;
  line-height: 1.6 !important;
  margin: 8px 0 !important;
}
.woopay-save-new-user-container .tos a {
  color: var(--fcc-primary) !important;
  text-decoration: underline !important;
}

/* Country dropdown */
.iti__country-list {
  border: 1px solid var(--fcc-border) !important;
  border-radius: var(--fcc-radius) !important;
  box-shadow: var(--fcc-shadow-lg) !important;
  font-size: 13px !important;
}
.iti__country.iti__highlight,
.iti__country:hover {
  background: var(--fcc-accent-bg) !important;
}
