/* ═══════════════════════════════════════════════════════════
   FitForge365 WooCommerce Styles — FIXED DARK THEME
   All conflicts resolved. Single source of truth for inputs,
   placeholders, and checkout layout.
   ═══════════════════════════════════════════════════════════ */

:root {
  --fire:   #FF3D00;
  --gold:   #FFB300;
  --dark:   #0A0A0A;
  --darker: #050505;
  --card:   #181818;
  --light:  #F5F5F5;
  --muted:  #888;
  --border: rgba(255,61,0,0.18);
  --green:  #48c78e;
}

/* ══ BASE ══ */
body.woocommerce,
body.woocommerce-page {
  background: var(--darker);
  color: var(--light);
}

/* ═══════════════════════════════════════════════
   CHECKOUT PAGE
   ═══════════════════════════════════════════════ */
.woocommerce-checkout {
  background: var(--darker);
  padding: 8rem 2rem 4rem;
}

.woocommerce form.checkout {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
}

/* ── Hide billing heading ── */
.woocommerce-billing-fields > h3,
.woocommerce-billing-fields h3,
.woocommerce-additional-fields h3,
.wc-block-components-checkout-step__title,
#billing_heading {
  display: none !important;
}

/* ── Labels ── */
.woocommerce form .form-row label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--fire);
  display: block;
  margin-bottom: 0.4rem;
}

/* ══ INPUTS — dark background, light text, consistent everywhere ══ */
.woocommerce form .form-row input,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea,
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout input[type="number"],
.woocommerce-checkout input[type="password"],
.woocommerce-checkout select,
.woocommerce-checkout textarea,
#billing_first_name,
#billing_last_name,
#billing_email,
#billing_phone {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #F5F5F5 !important;
  padding: 0.7rem 0.9rem !important;
  width: 100% !important;
  font-family: 'Barlow', sans-serif !important;
  font-size: 0.88rem !important;
  border-radius: 0 !important;
  outline: none !important;
  box-sizing: border-box !important;
  -webkit-text-fill-color: #F5F5F5 !important; /* Fix autofill override */
}

/* Focus state */
.woocommerce form .form-row input:focus,
.woocommerce form .form-row select:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce-checkout input:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus {
  border-color: var(--fire) !important;
  background: rgba(255, 61, 0, 0.06) !important;
}

/* ══ PLACEHOLDERS — light text on dark background ══ */
.woocommerce form .form-row input::placeholder,
.woocommerce form .form-row textarea::placeholder,
.woocommerce-checkout input::placeholder,
.woocommerce-checkout textarea::placeholder,
#billing_first_name::placeholder,
#billing_last_name::placeholder,
#billing_email::placeholder,
#billing_phone::placeholder {
  color: rgba(255, 255, 255, 0.38) !important;
  opacity: 1 !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.38) !important;
}

/* Autofill fix — prevent browser turning inputs white */
.woocommerce-checkout input:-webkit-autofill,
.woocommerce-checkout input:-webkit-autofill:hover,
.woocommerce-checkout input:-webkit-autofill:focus,
.woocommerce-checkout input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #111111 inset !important;
  -webkit-text-fill-color: #F5F5F5 !important;
  caret-color: #F5F5F5 !important;
}

/* Select dropdown options */
.woocommerce form .form-row select option,
.woocommerce-checkout select option {
  background: #181818 !important;
  color: #F5F5F5 !important;
}

/* ── Order review sidebar ── */
.woocommerce-checkout #order_review {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.5rem;
}

.woocommerce-checkout #order_review_heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 3px;
  color: var(--fire);
  margin-bottom: 1rem;
}

/* ── Order table ── */
.woocommerce-checkout table.shop_table {
  width: 100%;
  border-collapse: collapse;
}

.woocommerce-checkout table.shop_table th {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--fire);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 61, 0, 0.15);
}

.woocommerce-checkout table.shop_table td {
  padding: 0.6rem 0;
  color: #ccc;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.woocommerce-checkout table.shop_table .order-total td,
.woocommerce-checkout table.shop_table .order-total th {
  color: var(--fire);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 2px;
  border-bottom: none;
}

/* ── Place order button ── */
#place_order {
  background: var(--fire) !important;
  color: #fff !important;
  border: none !important;
  padding: 1rem !important;
  width: 100% !important;
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 1.2rem !important;
  letter-spacing: 3px !important;
  cursor: pointer !important;
  transition: all 0.25s !important;
  border-radius: 0 !important;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%) !important;
}

#place_order:hover {
  background: var(--gold) !important;
  color: var(--dark) !important;
}

/* ── Payment methods ── */
.woocommerce-checkout .payment_methods {
  background: rgba(255, 61, 0, 0.04);
  border: 1px solid rgba(255, 61, 0, 0.12);
  padding: 1rem;
  margin-bottom: 1rem;
  list-style: none;
}

.woocommerce-checkout .payment_methods li {
  padding: 0.5rem 0;
}

.woocommerce-checkout .payment_methods li label {
  font-size: 0.88rem;
  color: #ccc;
  text-transform: none;
  letter-spacing: normal;
}

.woocommerce-checkout .payment_methods .payment_box {
  background: rgba(255, 255, 255, 0.03);
  padding: 0.8rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Checkout section headings */
.woocommerce-checkout h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 3px;
  color: var(--fire);
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

/* ═══════════════════════════════════════════════
   CART PAGE
   ═══════════════════════════════════════════════ */
.woocommerce-cart {
  background: var(--darker);
  padding: 8rem 2rem 4rem;
}

.woocommerce-cart .woocommerce {
  max-width: 900px;
  margin: 0 auto;
}

.woocommerce-cart table.cart {
  width: 100%;
  border-collapse: collapse;
}

.woocommerce-cart table.cart th {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--fire);
  padding: 0.7rem;
  border-bottom: 1px solid rgba(255, 61, 0, 0.15);
}

.woocommerce-cart table.cart td {
  padding: 0.8rem;
  color: #ccc;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.woocommerce-cart .btn,
.woocommerce-cart .button {
  background: var(--fire) !important;
  color: #fff !important;
  border: none !important;
  padding: 0.7rem 1.5rem !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  border-radius: 0 !important;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%) !important;
}

.woocommerce-cart .cart_totals {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  margin-top: 2rem;
}

/* Proceed to Checkout button (block cart) */
.wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained {
  background-color: #FF3D00 !important;
  color: #ffffff !important;
  border: none !important;
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 1.1rem !important;
  letter-spacing: 3px !important;
  border-radius: 0 !important;
  padding: 1rem !important;
  width: 100% !important;
}

.wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained:hover {
  background-color: #FFB300 !important;
  color: #0A0A0A !important;
}

/* Product images in cart */
.wc-block-cart-item__image img {
  border: 2px solid #FF3D00 !important;
  border-radius: 4px !important;
}

/* Back button */
a#fitforge-back-btn,
a.fitforge-back-btn {
  display: inline-block !important;
  background: rgba(255, 61, 0, 0.1) !important;
  border: 1px solid #FF3D00 !important;
  color: #FF3D00 !important;
  padding: 0.7rem 1.5rem !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  margin-bottom: 1.5rem !important;
}

/* ══ CART TOTAL TEXT — visible on all devices ══ */
.wc-block-cart__totals-title,
.wc-block-components-totals-wrapper,
.wc-block-components-totals-item,
.wc-block-components-totals-item__label,
.wc-block-components-totals-item__value,
.wc-block-cart-item__total,
.wc-block-cart-item__total .price,
.wc-block-components-order-summary__title,
.wc-block-cart-items__header-total {
  color: #F5F5F5 !important;
  visibility: visible !important;
  opacity: 1 !important;
  display: block !important;
}

/* ═══════════════════════════════════════════════
   ACCOUNT PAGE
   ═══════════════════════════════════════════════ */
.woocommerce-account {
  background: var(--darker);
  padding: 8rem 2rem 4rem;
}

.woocommerce-account .woocommerce {
  max-width: 900px;
  margin: 0 auto;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  padding: 0.5rem 1rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s;
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
  background: var(--fire);
  border-color: var(--fire);
  color: #fff;
}

.woocommerce-account .woocommerce-MyAccount-content {
  color: var(--light);
}

.woocommerce-account table {
  width: 100%;
  border-collapse: collapse;
}

.woocommerce-account table th {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--fire);
  padding: 0.6rem;
  border-bottom: 1px solid rgba(255, 61, 0, 0.15);
}

.woocommerce-account table td {
  padding: 0.7rem;
  color: #ccc;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.woocommerce-account .woocommerce-Downloads-file a {
  color: var(--fire) !important;
}

/* ═══════════════════════════════════════════════
   NOTICES
   ═══════════════════════════════════════════════ */
.woocommerce-message,
.woocommerce-info {
  background: rgba(72, 199, 142, 0.08) !important;
  border-top: 3px solid var(--green) !important;
  color: var(--light) !important;
  padding: 1rem 1.5rem !important;
  font-family: 'Barlow', sans-serif !important;
}

.woocommerce-error {
  background: rgba(255, 61, 0, 0.08) !important;
  border-top: 3px solid var(--fire) !important;
  color: var(--light) !important;
  padding: 1rem 1.5rem !important;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .woocommerce form.checkout {
    grid-template-columns: 1fr;
  }

  .woocommerce-checkout,
  .woocommerce-cart,
  .woocommerce-account {
    padding: 6rem 1.2rem 2rem;
  }

  .wc-block-components-totals-item__label,
  .wc-block-components-totals-item__value,
  .wc-block-cart__totals-title,
  .wc-block-cart-item__total {
    color: #F5F5F5 !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
  }
}

/* ═══════════════════════════════════════════════
   SELECT2 DROPDOWN — STATE / COUNTRY FIX
   WooCommerce replaces native <select> with
   Select2 library which needs its own dark styles
   ═══════════════════════════════════════════════ */

/* The visible box (closed state) */
.woocommerce-checkout .select2-container--default .select2-selection--single {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 0 !important;
  height: auto !important;
  padding: 0.7rem 0.9rem !important;
}

/* The selected text inside the box */
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #F5F5F5 !important;
  line-height: normal !important;
  padding: 0 !important;
}

/* Placeholder text (before selection) */
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: rgba(255, 255, 255, 0.38) !important;
}

/* The arrow icon */
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 50% !important;
  transform: translateY(-50%) !important;
  right: 0.6rem !important;
}
.woocommerce-checkout .select2-container--default .select2-selection__arrow b {
  border-color: #FF3D00 transparent transparent transparent !important;
}

/* Focus/open state border */
.woocommerce-checkout .select2-container--default.select2-container--open .select2-selection--single,
.woocommerce-checkout .select2-container--default.select2-container--focus .select2-selection--single {
  border-color: #FF3D00 !important;
  background: rgba(255, 61, 0, 0.06) !important;
}

/* The dropdown popup */
.select2-dropdown {
  background: #181818 !important;
  border: 1px solid rgba(255, 61, 0, 0.3) !important;
  border-radius: 0 !important;
}

/* Search box inside dropdown */
.select2-search--dropdown .select2-search__field {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #F5F5F5 !important;
  outline: none !important;
}
.select2-search--dropdown .select2-search__field::placeholder {
  color: rgba(255, 255, 255, 0.38) !important;
}

/* Each option in the list */
.select2-results__option {
  color: #F5F5F5 !important;
  background: #181818 !important;
  font-family: 'Barlow', sans-serif !important;
  font-size: 0.88rem !important;
}

/* Hovered option */
.select2-results__option--highlighted[aria-selected],
.select2-results__option:hover {
  background: rgba(255, 61, 0, 0.15) !important;
  color: #FF3D00 !important;
}

/* Already selected option */
.select2-results__option[aria-selected="true"] {
  background: rgba(255, 61, 0, 0.08) !important;
  color: #FF3D00 !important;
}

/* ═══════════════════════════════════════════════
   WOOCOMMERCE BLOCK CHECKOUT FIX
   For sites using the newer Gutenberg block checkout
   ═══════════════════════════════════════════════ */

/* Overall block checkout background */
.wp-block-woocommerce-checkout,
.wc-block-checkout,
.wp-block-woocommerce-checkout .wp-block-woocommerce-checkout-fields-block,
.wc-block-checkout__main,
.wc-block-checkout__sidebar {
  background: #050505 !important;
  color: #F5F5F5 !important;
}

/* All input fields */
.wc-block-components-text-input input,
.wc-block-components-text-input input[type="text"],
.wc-block-components-text-input input[type="email"],
.wc-block-components-text-input input[type="tel"],
.wc-block-components-text-input input[type="number"],
.wc-block-components-select select,
.wc-block-components-country-input input,
.wc-block-components-state-input input,
.wc-block-checkout input,
.wc-block-checkout select,
.wc-block-checkout textarea {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #F5F5F5 !important;
  border-radius: 0 !important;
}

/* Input focus */
.wc-block-components-text-input input:focus,
.wc-block-components-select select:focus,
.wc-block-checkout input:focus,
.wc-block-checkout select:focus {
  border-color: #FF3D00 !important;
  background: rgba(255, 61, 0, 0.06) !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Labels */
.wc-block-components-text-input label,
.wc-block-components-select label,
.wc-block-components-checkbox__label,
.wc-block-checkout label {
  color: #FF3D00 !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 0.72rem !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
}

/* Placeholder text */
.wc-block-components-text-input input::placeholder,
.wc-block-checkout input::placeholder {
  color: rgba(255, 255, 255, 0.38) !important;
  opacity: 1 !important;
}

/* Autofill fix */
.wc-block-checkout input:-webkit-autofill,
.wc-block-checkout input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #111111 inset !important;
  -webkit-text-fill-color: #F5F5F5 !important;
}

/* Step headings (Contact info, Billing address etc) */
.wc-block-components-checkout-step__title,
.wc-block-checkout__step-title {
  color: #FF3D00 !important;
  font-family: 'Bebas Neue', sans-serif !important;
  letter-spacing: 3px !important;
}

/* Order summary sidebar */
.wc-block-checkout__sidebar .wc-block-components-order-summary,
.wp-block-woocommerce-checkout-order-summary-block {
  background: #181818 !important;
  border: 1px solid rgba(255, 61, 0, 0.18) !important;
  color: #F5F5F5 !important;
}

.wc-block-components-order-summary__title,
.wc-block-components-totals-item__label,
.wc-block-components-totals-item__value,
.wc-block-components-totals-item .wc-block-components-totals-item__label,
.wc-block-components-order-summary-item__individual-prices,
.wc-block-components-order-summary-item__quantity {
  color: #F5F5F5 !important;
}

/* Product name in order summary */
.wc-block-components-order-summary-item__name {
  color: #FF3D00 !important;
  font-family: 'Bebas Neue', sans-serif !important;
  letter-spacing: 2px !important;
}

/* Total row */
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  color: #F5F5F5 !important;
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 1.3rem !important;
}

/* Coupon / add coupons row */
.wc-block-components-totals-coupon__button,
.wc-block-components-panel__button {
  color: #FF3D00 !important;
  background: transparent !important;
  border: none !important;
}

/* Payment section */
.wc-block-components-radio-control__option,
.wc-block-components-payment-method-label,
.wc-block-components-payment-method-description {
  color: #ccc !important;
}

.wc-block-components-radio-control__option-layout {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 61, 0, 0.12) !important;
}

/* Place order button */
.wc-block-components-checkout-place-order-button,
.wc-block-checkout__place-order button {
  background: #FF3D00 !important;
  color: #fff !important;
  border: none !important;
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 1.2rem !important;
  letter-spacing: 3px !important;
  border-radius: 0 !important;
  width: 100% !important;
  padding: 1rem !important;
}

.wc-block-components-checkout-place-order-button:hover,
.wc-block-checkout__place-order button:hover {
  background: #FFB300 !important;
  color: #0A0A0A !important;
}

/* Country/State Select2 inside block checkout */
.wc-block-checkout .select2-container--default .select2-selection--single,
.wc-block-components-country-input .select2-selection--single,
.wc-block-components-state-input .select2-selection--single {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 0 !important;
  height: auto !important;
  padding: 0.7rem 0.9rem !important;
}

.wc-block-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #F5F5F5 !important;
  padding: 0 !important;
}

/* "You are currently checking out as a guest" text */
.wc-block-checkout__guest-notice,
.wc-block-checkout p,
.wc-block-checkout span,
.wc-block-checkout a {
  color: #ccc !important;
}

/* Add a note checkbox area */
.wc-block-checkout__add-note textarea {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #F5F5F5 !important;
}

/* Terms and conditions text */
.wc-block-checkout__terms,
.wc-block-components-checkout-return-to-cart-button {
  color: #888 !important;
}

.wc-block-checkout__terms a,
.wc-block-components-checkout-return-to-cart-button {
  color: #FF3D00 !important;
}

/* Responsive */
@media (max-width: 768px) {
  .wc-block-checkout__main,
  .wc-block-checkout__sidebar {
    background: #050505 !important;
  }
}

/* ══ BLOCK CHECKOUT CORE OVERRIDE ══
   Targets the exact WooCommerce block checkout classes
   confirmed via browser inspector (checkout.css-10.7.0)
   ══════════════════════════════════════════════════════ */

.wc-block-components-form .wc-block-components-text-input input[type=email],
.wc-block-components-form .wc-block-components-text-input input[type=text],
.wc-block-components-form .wc-block-components-text-input input[type=tel],
.wc-block-components-form .wc-block-components-text-input input[type=number],
.wc-block-components-form .wc-block-components-text-input input[type=password],
.wc-block-components-form .wc-block-components-text-input input[type=url],
.wc-block-components-address-form input,
.wc-block-components-address-form select {
  background-color: rgba(255, 255, 255, 0.05) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #F5F5F5 !important;
  -webkit-text-fill-color: #F5F5F5 !important;
}

.wc-block-components-form .wc-block-components-text-input input:focus,
.wc-block-components-address-form input:focus {
  background-color: rgba(255, 61, 0, 0.06) !important;
  border-color: #FF3D00 !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Country/Region and State dropdowns */
.wc-block-components-select select,
.wc-block-components-address-form select {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: #F5F5F5 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

/* Dropdown arrow color */
.wc-block-components-select__expand {
  color: #FF3D00 !important;
}

/* Labels */
.wc-block-components-form label,
.wc-block-components-address-form label {
  color: #FF3D00 !important;
}

/* Placeholder text */
.wc-block-components-form .wc-block-components-text-input input::placeholder,
.wc-block-components-address-form input::placeholder {
  color: rgba(255, 255, 255, 0.38) !important;
  opacity: 1 !important;
}

/* Autofill fix */
.wc-block-components-form input:-webkit-autofill,
.wc-block-components-address-form input:-webkit-autofill,
.wc-block-components-form input:-webkit-autofill:focus,
.wc-block-components-address-form input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #111111 inset !important;
  -webkit-text-fill-color: #F5F5F5 !important;
  caret-color: #F5F5F5 !important;
}

/* ══ COUNTRY / STATE NATIVE SELECT DROPDOWN FIX ══
   Block checkout uses native <select> for these two
   ════════════════════════════════════════════════ */

/* The visible select box */
.wc-block-components-country-input .wc-block-components-select-input,
.wc-block-components-state-input .wc-block-components-select-input,
.wc-block-components-country-input select,
.wc-block-components-state-input select,
.wc-block-components-select select,
#billing-country,
#billing-state,
#shipping-country,
#shipping-state {
  background-color: rgba(255, 255, 255, 0.05) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #F5F5F5 !important;
  -webkit-text-fill-color: #F5F5F5 !important;
  border-radius: 0 !important;
}

/* The wrapper div around the select */
.wc-block-components-country-input,
.wc-block-components-state-input {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 0 !important;
}

/* The combobox input inside country/state */
.wc-block-components-country-input input[role="combobox"],
.wc-block-components-state-input input[role="combobox"],
.wc-block-components-select input[role="combobox"] {
  background: transparent !important;
  background-color: transparent !important;
  color: #F5F5F5 !important;
  -webkit-text-fill-color: #F5F5F5 !important;
  border: none !important;
}

/* Dropdown options list popup */
.wc-block-components-select-control__listbox,
.wc-block-components-combobox-control__listbox,
[role="listbox"] {
  background: #181818 !important;
  border: 1px solid rgba(255, 61, 0, 0.3) !important;
  border-radius: 0 !important;
}

/* Each option in the list */
[role="option"],
.wc-block-components-select-control__option,
.wc-block-components-combobox-control__option {
  background: #181818 !important;
  color: #F5F5F5 !important;
}

/* Hovered option */
[role="option"]:hover,
[role="option"][aria-selected="true"],
.wc-block-components-select-control__option:hover,
.wc-block-components-combobox-control__option:hover {
  background: rgba(255, 61, 0, 0.15) !important;
  color: #FF3D00 !important;
}

/* The dropdown arrow */
.wc-block-components-country-input .wc-block-components-select__expand,
.wc-block-components-state-input .wc-block-components-select__expand,
.wc-block-components-select__expand {
  color: #FF3D00 !important;
  fill: #FF3D00 !important;
}

/* ══ COUNTRY / STATE COMBOBOX FINAL FIX ══
   Targets the exact wc-block combobox wrapper
   ══════════════════════════════════════════ */

/* Outer wrapper */
.wc-block-components-combobox,
.wc-block-components-country-input,
.wc-block-components-state-input {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  border-radius: 0 !important;
}

/* The actual input inside the combobox */
.wc-block-components-combobox input,
.wc-block-components-combobox input[type="text"],
.wc-block-components-country-input input,
.wc-block-components-state-input input {
  background: transparent !important;
  background-color: transparent !important;
  color: #F5F5F5 !important;
  -webkit-text-fill-color: #F5F5F5 !important;
  border: none !important;
  box-shadow: none !important;
}

/* The white background comes from this internal class */
.wc-block-components-combobox .wc-block-components-combobox-control,
.wc-block-components-country-input .wc-block-components-combobox-control,
.wc-block-components-state-input .wc-block-components-combobox-control {
  background: rgba(255,255,255,0.05) !important;
  background-color: rgba(255,255,255,0.05) !important;
}

/* Expand arrow SVG */
.wc-block-components-combobox svg,
.wc-block-components-country-input svg,
.wc-block-components-state-input svg {
  fill: #FF3D00 !important;
  color: #FF3D00 !important;
}

/* Floating label inside combobox */
.wc-block-components-combobox label,
.wc-block-components-country-input label,
.wc-block-components-state-input label {
  color: #FF3D00 !important;
  background: transparent !important;
}

/* Dropdown suggestion list */
.wc-block-components-combobox-control__suggestions-container,
.components-combobox-control__suggestions-container {
  background: #181818 !important;
  border: 1px solid rgba(255,61,0,0.3) !important;
  border-radius: 0 !important;
}

/* Each option */
.wc-block-components-combobox-control__suggestions-container button,
.components-combobox-control__suggestions-container button {
  background: #181818 !important;
  color: #F5F5F5 !important;
  border: none !important;
}

.wc-block-components-combobox-control__suggestions-container button:hover,
.components-combobox-control__suggestions-container button:hover,
.wc-block-components-combobox-control__suggestions-container button[aria-selected="true"],
.components-combobox-control__suggestions-container button[aria-selected="true"] {
  background: rgba(255,61,0,0.15) !important;
  color: #FF3D00 !important;
}

/* ══ COUNTRY / STATE — MAXIMUM SPECIFICITY OVERRIDE ══ */

/* Force dark background on every possible combobox element */
.wc-block-checkout .wc-block-components-combobox,
.wc-block-checkout .wc-block-components-country-input,
.wc-block-checkout .wc-block-components-state-input,
.wc-block-components-address-form .wc-block-components-combobox,
.wc-block-components-address-form .wc-block-components-country-input,
.wc-block-components-address-form .wc-block-components-state-input,
.wc-block-components-form .wc-block-components-combobox,
.wc-block-components-form .wc-block-components-country-input,
.wc-block-components-form .wc-block-components-state-input {
  background: #111111 !important;
  background-color: #111111 !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  border-radius: 0 !important;
}

/* Every child div inside */
.wc-block-checkout .wc-block-components-combobox > *,
.wc-block-checkout .wc-block-components-country-input > *,
.wc-block-checkout .wc-block-components-state-input > *,
.wc-block-components-address-form .wc-block-components-combobox > *,
.wc-block-components-address-form .wc-block-components-country-input > *,
.wc-block-components-address-form .wc-block-components-state-input > * {
  background: #111111 !important;
  background-color: #111111 !important;
}

/* The inner input */
.wc-block-checkout .wc-block-components-combobox input,
.wc-block-checkout .wc-block-components-country-input input,
.wc-block-checkout .wc-block-components-state-input input,
.wc-block-components-address-form .wc-block-components-combobox input,
.wc-block-components-address-form .wc-block-components-country-input input,
.wc-block-components-address-form .wc-block-components-state-input input {
  background: #111111 !important;
  background-color: #111111 !important;
  color: #F5F5F5 !important;
  -webkit-text-fill-color: #F5F5F5 !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Kill the weird overlap/highlight color on state */
.wc-block-components-state-input *,
.wc-block-components-country-input * {
  background: #111111 !important;
  background-color: #111111 !important;
}

/* Labels */
.wc-block-checkout .wc-block-components-combobox label,
.wc-block-checkout .wc-block-components-country-input label,
.wc-block-checkout .wc-block-components-state-input label,
.wc-block-components-address-form .wc-block-components-combobox label,
.wc-block-components-address-form .wc-block-components-country-input label,
.wc-block-components-address-form .wc-block-components-state-input label {
  color: #FF3D00 !important;
  background: transparent !important;
}

/* ══ FLOATING LABEL FIX ══
   When input has content or is focused, move label up
   so it doesn't collide with typed text
   ══════════════════════════════════════════════════ */

/* Default label position — sits inside the input */
.wc-block-components-text-input label,
.wc-block-components-combobox label,
.wc-block-components-country-input label,
.wc-block-components-state-input label {
  position: absolute !important;
  top: 50% !important;
  left: 0.9rem !important;
  transform: translateY(-50%) !important;
  font-size: 0.85rem !important;
  transition: all 0.15s ease !important;
  pointer-events: none !important;
  color: #FF3D00 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  font-family: 'Barlow Condensed', sans-serif !important;
}

/* When input is focused OR has a value — float label to top */
.wc-block-components-text-input.is-active label,
.wc-block-components-text-input input:focus ~ label,
.wc-block-components-text-input input:not(:placeholder-shown) ~ label,
.wc-block-components-combobox.is-active label,
.wc-block-components-country-input.is-active label,
.wc-block-components-state-input.is-active label {
  top: 0.4rem !important;
  transform: translateY(0) !important;
  font-size: 0.6rem !important;
  letter-spacing: 1.5px !important;
}

/* Push input text down so it doesn't sit behind the floating label */
.wc-block-components-text-input.is-active input,
.wc-block-components-text-input input:not(:placeholder-shown),
.wc-block-components-text-input input:focus {
  padding-top: 1.4rem !important;
  padding-bottom: 0.3rem !important;
}

/* Make sure the input wrapper is positioned relatively */
.wc-block-components-text-input,
.wc-block-components-combobox,
.wc-block-components-country-input,
.wc-block-components-state-input {
  position: relative !important;
}

/* ══ REMOVE BOX BEHIND STATE DROPDOWN ══ */
.wc-block-components-address-form__state {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.wc-block-components-address-form__state * {
  background: transparent !important;
  background-color: transparent !important;
}

.wc-block-components-address-form__state .wc-block-components-state-input,
.wc-block-components-address-form__state .wc-blocks-components-select,
.wc-block-components-address-form__state .wc-blocks-components-select__container {
  background: #111111 !important;
  background-color: #111111 !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
}

/* ══ STATE BOX FINAL ATTEMPT — match page background ══ */
.wc-block-components-address-form__state,
.wc-block-components-address-form__state > div,
.wc-blocks-components-select,
.wc-blocks-components-select__container {
  background: #050505 !important;
  background-color: #050505 !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Keep only the actual select dark */
.wc-blocks-components-select__container .wc-blocks-components-select__select,
.wc-block-components-address-form__state select,
.wc-block-components-address-form__state .wc-blocks-components-select__select {
  background: #111111 !important;
  background-color: #111111 !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: #F5F5F5 !important;
  width: 100% !important;
}

/* ══ COUNTRY / STATE DROPDOWN COLOUR RESTORE ══ */
.wc-block-components-address-form__state .wc-block-components-state-input,
.wc-block-components-address-form__country .wc-block-components-country-input,
.wc-block-components-state-input,
.wc-block-components-country-input {
  background: #111111 !important;
  background-color: #111111 !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
}

.wc-block-components-state-input *,
.wc-block-components-country-input * {
  background: #111111 !important;
  background-color: #111111 !important;
  color: #F5F5F5 !important;
  -webkit-text-fill-color: #F5F5F5 !important;
}

.wc-block-components-state-input label,
.wc-block-components-country-input label {
  color: #FF3D00 !important;
  -webkit-text-fill-color: #FF3D00 !important;
}

.wc-block-components-state-input svg,
.wc-block-components-country-input svg {
  fill: #FF3D00 !important;
  background: transparent !important;
  background-color: transparent !important;
}

/* ══ PAY FOR ORDER PAGE ══ */
.woocommerce-pay-page .woocommerce-order-pay,
.woocommerce-pay-page {
  background: #050505 !important;
  padding: 8rem 2rem 4rem !important;
}

/* Pay Now button */
#payment .button,
.woocommerce-pay-page .button,
#place_order.button {
  background: #FF3D00 !important;
  color: #fff !important;
  border: none !important;
  padding: 0.8rem 2rem !important;
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 1.1rem !important;
  letter-spacing: 3px !important;
  cursor: pointer !important;
  border-radius: 0 !important;
  text-decoration: none !important;
  display: inline-block !important;
  transition: all 0.25s !important;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%) !important;
}

#payment .button:hover,
.woocommerce-pay-page .button:hover {
  background: #FFB300 !important;
  color: #0A0A0A !important;
}

/* Cancel button */
.woocommerce-pay-page a.button.cancel,
.woocommerce-pay-page .woocommerce-button.cancel {
  background: transparent !important;
  color: #FF3D00 !important;
  border: 1px solid #FF3D00 !important;
  padding: 0.8rem 2rem !important;
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 1.1rem !important;
  letter-spacing: 3px !important;
  cursor: pointer !important;
  border-radius: 0 !important;
  text-decoration: none !important;
  display: inline-block !important;
  transition: all 0.25s !important;
  margin-left: 1rem !important;
  clip-path: none !important;
}

.woocommerce-pay-page a.button.cancel:hover {
  background: rgba(255,61,0,0.1) !important;
}

/* ══ ADD TO CART BUTTONS — empty cart / new in store ══ */
.woocommerce .button.add_to_cart_button,
.woocommerce a.button.add_to_cart_button,
.woocommerce button.button.alt,
.wc-block-grid__product-add-to-cart .wp-block-button__link,
.wc-block-grid__product-add-to-cart a,
.added_to_cart,
a.added_to_cart {
  background: #FF3D00 !important;
  color: #fff !important;
  border: none !important;
  padding: 0.7rem 1.5rem !important;
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 1rem !important;
  letter-spacing: 3px !important;
  cursor: pointer !important;
  border-radius: 0 !important;
  text-decoration: none !important;
  display: inline-block !important;
  transition: all 0.25s !important;
  outline: none !important;
  box-shadow: none !important;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%) !important;
}

.woocommerce .button.add_to_cart_button:hover,
.woocommerce a.button.add_to_cart_button:hover,
.wc-block-grid__product-add-to-cart .wp-block-button__link:hover {
  background: #FFB300 !important;
  color: #0A0A0A !important;
}

/* ══ PROCEED TO CHECKOUT — remove blue outline on click ══ */
.wc-block-cart__submit-button,
.wc-block-components-button.wp-element-button.wc-block-cart__submit-button {
  outline: none !important;
  box-shadow: none !important;
}

.wc-block-cart__submit-button:focus,
.wc-block-cart__submit-button:active,
.wc-block-components-button.wp-element-button.wc-block-cart__submit-button:focus,
.wc-block-components-button.wp-element-button.wc-block-cart__submit-button:active {
  outline: none !important;
  box-shadow: none !important;
  border-color: #FFB300 !important;
}

/* ══ ADD TO CART BUTTON — EXACT CLASS FIX ══ */
.wc-block-grid__product-add-to-cart .wp-block-button .wp-block-button__link,
.wc-block-grid__product-add-to-cart .wp-block-button__link,
a.wp-block-button__link.add_to_cart_button,
a.wp-block-button__link.ajax_add_to_cart {
  background: #FF3D00 !important;
  background-color: #FF3D00 !important;
  color: #fff !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 1rem !important;
  letter-spacing: 3px !important;
  border-radius: 0 !important;
  padding: 0.7rem 1.5rem !important;
  transition: all 0.25s !important;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%) !important;
}

.wc-block-grid__product-add-to-cart .wp-block-button .wp-block-button__link:hover,
.wc-block-grid__product-add-to-cart .wp-block-button__link:hover,
a.wp-block-button__link.add_to_cart_button:hover,
a.wp-block-button__link.ajax_add_to_cart:hover {
  background: #FFB300 !important;
  background-color: #FFB300 !important;
  color: #0A0A0A !important;
}

/* ══ CART & CHECKOUT — SUBTLE FIRE/EMBER BACKGROUND ══ */
body.woocommerce-cart,
body.woocommerce-checkout {
  background: #050505 !important;
  background-image:
    radial-gradient(ellipse 80% 50% at 15% 80%, rgba(255,61,0,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 20%, rgba(255,100,0,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 50% 100%, rgba(255,61,0,0.06) 0%, transparent 50%) !important;
  background-attachment: fixed !important;
  background-size: cover !important;
}

/* Make sure woo wrappers are transparent so background shows through */
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce,
.wc-block-cart,
.wc-block-checkout,
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout {
  background: transparent !important;
}

/* ══ REVIEW SECTION LAYOUT FIX ══ */
#woo-reviews-wrap {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 2rem !important;
}

#woo-reviews-wrap .review-layout {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 3rem !important;
  align-items: start !important;
}

#woo-reviews-wrap .review-form-box {
  background: var(--card, #181818) !important;
  border: 1px solid rgba(255,61,0,0.18) !important;
  padding: 2rem !important;
  width: 100% !important;
}

@media (max-width: 768px) {
  #woo-reviews-wrap .review-layout {
    grid-template-columns: 1fr !important;
  }
}

/* ══ REVIEW FORM — MATCH ORIGINAL WIDTH ══ */
#woo-reviews-wrap {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  width: 100% !important;
}

#woo-reviews-wrap .review-layout {
  display: grid !important;
  grid-template-columns: 55% 1fr !important;
  gap: 3rem !important;
  align-items: start !important;
}

#woo-reviews-wrap .review-form-box {
  background: #181818 !important;
  border: 1px solid rgba(255,61,0,0.18) !important;
  padding: 2.5rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

#woo-reviews-wrap .form-input,
#woo-reviews-wrap .form-select,
#woo-reviews-wrap .form-textarea {
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 0.9rem 1rem !important;
  font-size: 0.95rem !important;
}

#woo-reviews-wrap .submit-btn {
  width: 100% !important;
  padding: 1.1rem !important;
  font-size: 1.1rem !important;
}

@media (max-width: 768px) {
  #woo-reviews-wrap .review-layout {
    grid-template-columns: 1fr !important;
  }
}

/* ══ AUTOFILL WHITE BACKGROUND FIX ══
   Only fires when browser autofills a field
   Does not affect any other styles
   ══════════════════════════════════════ */
.woocommerce-checkout input:-webkit-autofill,
.woocommerce-checkout input:-webkit-autofill:hover,
.woocommerce-checkout input:-webkit-autofill:focus,
.woocommerce-checkout input:-webkit-autofill:active,
.woocommerce-checkout select:-webkit-autofill,
.wc-block-checkout input:-webkit-autofill,
.wc-block-checkout input:-webkit-autofill:hover,
.wc-block-checkout input:-webkit-autofill:focus,
.wc-block-checkout input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #111111 inset !important;
  -webkit-text-fill-color: #F5F5F5 !important;
  caret-color: #F5F5F5 !important;
  transition: background-color 5000s ease-in-out 0s !important;
}
