/* =============================================
   OKU ELECTRONICS — PREMIUM CHECKOUT
   File: oku-checkout.css
   Upload to: electro-child/oku-checkout.css
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=DM+Mono:wght@400;500&display=swap');

:root {
  --teal:       #186E70;
  --teal-dark:  #0f4e50;
  --teal-light: #e8f4f4;
  --white:      #ffffff;
  --grey-50:    #f8f9fa;
  --grey-100:   #f0f2f3;
  --grey-200:   #e4e6e8;
  --grey-300:   #cdd0d4;
  --grey-500:   #8a9099;
  --grey-700:   #4a5158;
  --grey-900:   #1a1e22;
  --green-bg:   #eaf7ee;
  --green-text: #1a7a3c;
  --red:        #d93025;
  --r-sm:       8px;
  --r-md:       12px;
  --r-pill:     100px;
  --shadow-sm:  0 1px 4px rgba(0,0,0,0.07);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.09);
  --font:       'DM Sans', system-ui, sans-serif;
  --mono:       'DM Mono', 'Courier New', monospace;
  --ease:       0.2s cubic-bezier(0.4,0,0.2,1);
}

/* ── BREADCRUMB ───────────────────────────────── */
.woocommerce-breadcrumb { display: none !important; }

/* ── PAGE CONTAINER ───────────────────────────── */
.woocommerce-checkout #content .container,
.woocommerce-checkout .site-content .container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 32px 24px 60px !important;
}

/* ── TWO COLUMN (billing + shipping side by side) */
.woocommerce-checkout .col2-set {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 32px !important;
  margin-bottom: 32px !important;
  width: 100% !important;
  float: none !important;
}
.woocommerce-checkout .col2-set::after { display: none !important; }
.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

/* ── SECTION HEADINGS ─────────────────────────── */
.woocommerce-billing-fields > h3,
.woocommerce-shipping-fields > h3,
.woocommerce-additional-fields > h3 {
  font-family: var(--font) !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--grey-500) !important;
  margin: 0 0 18px 0 !important;
  padding: 0 0 10px 0 !important;
  border-bottom: 1px solid var(--grey-200) !important;
}

/* Shipping Details heading — match billing style */
.woocommerce-shipping-fields > h3:not(#ship-to-different-address) {
  font-size: 0.7rem !important;
}

/* ── SHIP TO DIFFERENT ADDRESS toggle ─────────── */
#ship-to-different-address {
  font-family: var(--font) !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--grey-500) !important;
  margin: 0 0 18px 0 !important;
  padding: 0 0 10px 0 !important;
  border-bottom: 1px solid var(--grey-200) !important;
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
}

#ship-to-different-address .woocommerce-form__label {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--grey-500) !important;
  margin: 0 !important;
}

#ship-to-different-address input[type="checkbox"] {
  accent-color: var(--teal) !important;
  width: 15px !important;
  height: 15px !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
}

/* ── FIELD WRAPPER GRID ───────────────────────── */
/* Reset Electro's floats completely */
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper,
.woocommerce-additional-fields__field-wrapper {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0 16px !important;
  float: none !important;
  clear: both !important;
}

/* All form-row paragraphs */
.woocommerce-billing-fields__field-wrapper p,
.woocommerce-shipping-fields__field-wrapper p,
.woocommerce-additional-fields__field-wrapper p {
  float: none !important;
  width: 100% !important;
  margin: 0 0 14px 0 !important;
  padding: 0 !important;
  clear: none !important;
}

/* Wide fields span both columns */
.woocommerce-billing-fields__field-wrapper p.form-row-wide,
.woocommerce-shipping-fields__field-wrapper p.form-row-wide,
.woocommerce-additional-fields__field-wrapper p.form-row-wide,
.woocommerce-billing-fields__field-wrapper p.notes,
.mailchimp-newsletter {
  grid-column: 1 / -1 !important;
}

/* First name + Last name side by side */
.woocommerce-billing-fields__field-wrapper p.form-row-first,
.woocommerce-billing-fields__field-wrapper p.form-row-last,
.woocommerce-shipping-fields__field-wrapper p.form-row-first,
.woocommerce-shipping-fields__field-wrapper p.form-row-last {
  grid-column: auto !important;
  float: none !important;
  width: 100% !important;
}

/* ── LABELS ───────────────────────────────────── */
.woocommerce-checkout .form-row label,
.woocommerce-checkout p.form-row label {
  font-family: var(--font) !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  color: var(--grey-700) !important;
  margin: 0 0 5px 0 !important;
  display: block !important;
  float: none !important;
  width: auto !important;
}

.woocommerce-checkout .form-row label .required,
.woocommerce-checkout .form-row label abbr.required {
  color: var(--red) !important;
  text-decoration: none !important;
  border: none !important;
}

/* ── INPUTS ───────────────────────────────────── */
.woocommerce-checkout .form-row .input-text,
.woocommerce-checkout .form-row input[type="text"],
.woocommerce-checkout .form-row input[type="email"],
.woocommerce-checkout .form-row input[type="tel"],
.woocommerce-checkout .form-row input[type="number"],
.woocommerce-checkout .form-row input[type="password"],
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .woocommerce-input-wrapper input,
.woocommerce-checkout .woocommerce-input-wrapper textarea {
  display: block !important;
  width: 100% !important;
  height: 42px !important;
  border: 1.5px solid var(--grey-200) !important;
  border-radius: var(--r-sm) !important;
  padding: 0 14px !important;
  font-family: var(--font) !important;
  font-size: 0.88rem !important;
  color: var(--grey-900) !important;
  background: var(--white) !important;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color var(--ease), box-shadow var(--ease) !important;
  margin: 0 !important;
  float: none !important;
}

.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .woocommerce-input-wrapper textarea {
  height: 80px !important;
  padding: 10px 14px !important;
  resize: vertical !important;
}

.woocommerce-checkout .form-row .input-text:focus,
.woocommerce-checkout .form-row input[type="text"]:focus,
.woocommerce-checkout .form-row input[type="email"]:focus,
.woocommerce-checkout .form-row input[type="tel"]:focus {
  border-color: var(--teal) !important;
  box-shadow: 0 0 0 3px rgba(24,110,112,0.1) !important;
}

.woocommerce-checkout .form-row .input-text::placeholder { color: var(--grey-300) !important; }

/* ── SELECT2 ──────────────────────────────────── */
.woocommerce-checkout .select2-container {
  width: 100% !important;
  display: block !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single {
  height: 42px !important;
  border: 1.5px solid var(--grey-200) !important;
  border-radius: var(--r-sm) !important;
  background: var(--white) !important;
  outline: none !important;
}

.woocommerce-checkout .select2-container--default.select2-container--focus .select2-selection--single,
.woocommerce-checkout .select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--teal) !important;
  box-shadow: 0 0 0 3px rgba(24,110,112,0.1) !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 42px !important;
  padding: 0 36px 0 14px !important;
  font-family: var(--font) !important;
  font-size: 0.88rem !important;
  color: var(--grey-900) !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 40px !important;
  right: 10px !important;
}

/* ── NEWSLETTER CHECKBOX ──────────────────────── */
.mailchimp-newsletter label {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 0.82rem !important;
  color: var(--grey-700) !important;
  cursor: pointer !important;
  font-weight: 400 !important;
}

.mailchimp-newsletter input[type="checkbox"] {
  accent-color: var(--teal) !important;
  width: 15px !important;
  height: 15px !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
}

/* ── ORDER REVIEW WRAPPER ─────────────────────── */
.order-review-wrapper {
  background: var(--white) !important;
  border: 1px solid var(--grey-200) !important;
  border-radius: var(--r-md) !important;
  box-shadow: var(--shadow-md) !important;
  overflow: hidden !important;
  margin-bottom: 24px !important;
}

#order_review_heading { display: none !important; }

#order_review_heading_v2 {
  font-family: var(--font) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--grey-900) !important;
  padding: 18px 24px 14px !important;
  border-bottom: 1px solid var(--grey-100) !important;
  margin: 0 !important;
}

/* ── ORDER TABLE ──────────────────────────────── */
.shop_table.woocommerce-checkout-review-order-table {
  width: 100% !important;
  border-collapse: collapse !important;
  font-family: var(--font) !important;
  border: none !important;
}

.shop_table.woocommerce-checkout-review-order-table thead th {
  padding: 10px 24px !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--grey-500) !important;
  border: none !important;
  background: var(--grey-50) !important;
}

.shop_table.woocommerce-checkout-review-order-table tbody td {
  padding: 14px 24px !important;
  border-bottom: 1px solid var(--grey-100) !important;
  font-size: 0.88rem !important;
  color: var(--grey-900) !important;
  vertical-align: middle !important;
  border-top: none !important;
}

.shop_table.woocommerce-checkout-review-order-table .product-name {
  font-weight: 500 !important;
  line-height: 1.4 !important;
}

.shop_table.woocommerce-checkout-review-order-table .product-quantity {
  color: var(--grey-500) !important;
  font-weight: 400 !important;
}

.shop_table.woocommerce-checkout-review-order-table .product-total {
  text-align: right !important;
  font-family: var(--mono) !important;
  font-weight: 600 !important;
}

.shop_table.woocommerce-checkout-review-order-table tfoot th,
.shop_table.woocommerce-checkout-review-order-table tfoot td {
  padding: 11px 24px !important;
  font-size: 0.88rem !important;
  border: none !important;
  border-bottom: 1px solid var(--grey-100) !important;
  color: var(--grey-700) !important;
  background: var(--white) !important;
}

.shop_table.woocommerce-checkout-review-order-table tfoot th { font-weight: 600 !important; }
.shop_table.woocommerce-checkout-review-order-table tfoot td {
  text-align: right !important;
  font-family: var(--mono) !important;
}

.shop_table.woocommerce-checkout-review-order-table .order-total th,
.shop_table.woocommerce-checkout-review-order-table .order-total td {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--grey-900) !important;
  padding: 16px 24px !important;
  border-bottom: none !important;
}

.shop_table.woocommerce-checkout-review-order-table .order-total td .woocommerce-Price-amount {
  font-size: 1.2rem !important;
  font-family: var(--mono) !important;
  color: var(--teal) !important;
  font-weight: 700 !important;
}

/* ── SHIPPING METHODS (checkout table) ────────── */
.woocommerce-shipping-totals th {
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  color: var(--grey-700) !important;
  padding: 12px 24px !important;
  vertical-align: top !important;
  white-space: nowrap !important;
}

#shipping_method.woocommerce-shipping-methods {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
}

#shipping_method.woocommerce-shipping-methods li {
  display: flex !important;
  align-items: center !important;
  border: 1.5px solid var(--grey-200) !important;
  border-radius: var(--r-sm) !important;
  background: var(--white) !important;
  transition: border-color 0.15s, background 0.15s !important;
  cursor: pointer !important;
  margin: 0 !important;
  padding: 0 !important;
}

#shipping_method.woocommerce-shipping-methods li:has(input:checked) {
  border-color: var(--teal) !important;
  background: var(--teal-light) !important;
}

#shipping_method.woocommerce-shipping-methods li:hover {
  border-color: var(--teal) !important;
  background: var(--teal-light) !important;
}

#shipping_method.woocommerce-shipping-methods li input[type="radio"] {
  flex-shrink: 0 !important;
  accent-color: var(--teal) !important;
  width: 14px !important;
  height: 14px !important;
  margin: 0 0 0 10px !important;
  cursor: pointer !important;
  display: block !important;
}

#shipping_method.woocommerce-shipping-methods li label {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  padding: 9px 12px 9px 8px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: var(--grey-900) !important;
  cursor: pointer !important;
  margin: 0 !important;
  font-family: var(--font) !important;
  line-height: 1.35 !important;
  float: none !important;
  width: auto !important;
}

#shipping_method.woocommerce-shipping-methods li label .woocommerce-Price-amount {
  font-weight: 700 !important;
  color: var(--teal) !important;
  font-family: var(--mono) !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  font-size: 11px !important;
}

#shipping_method.woocommerce-shipping-methods li:first-child label::after {
  content: "FREE" !important;
  display: inline-flex !important;
  align-items: center !important;
  background: #ecfdf5 !important;
  color: #065f46 !important;
  border: 1px solid #a7f3d0 !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  letter-spacing: 0.05em !important;
}

/* ── PAYMENT SECTION ──────────────────────────── */
#payment {
  background: var(--white) !important;
  border: 1px solid var(--grey-200) !important;
  border-radius: var(--r-md) !important;
  overflow: hidden !important;
}

#payment .wc_payment_methods {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

#payment .wc_payment_methods li.wc_payment_method {
  border-bottom: 1px solid var(--grey-100) !important;
}

#payment .wc_payment_methods li.wc_payment_method:last-child {
  border-bottom: none !important;
}

#payment .wc_payment_methods label[for^="payment_method_"] {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 16px 20px !important;
  font-family: var(--font) !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: var(--grey-900) !important;
  cursor: pointer !important;
  margin: 0 !important;
  float: none !important;
  width: auto !important;
}

#payment .wc_payment_methods label[for^="payment_method_"] img {
  height: 26px !important;
  width: auto !important;
  object-fit: contain !important;
}

#payment .wc_payment_methods input[type="radio"] {
  display: none !important;
}

#payment .payment_box {
  background: var(--grey-50) !important;
  padding: 14px 20px !important;
  font-family: var(--font) !important;
  font-size: 0.82rem !important;
  color: var(--grey-700) !important;
  line-height: 1.5 !important;
  border-top: 1px solid var(--grey-100) !important;
}

#payment .payment_box p { margin: 0 0 8px 0 !important; }
#payment .payment_box p:last-child { margin-bottom: 0 !important; }

.woocommerce-SavedPaymentMethods-saveNew {
  margin: 10px 0 0 0 !important;
  padding: 0 !important;
}

.woocommerce-SavedPaymentMethods-saveNew label {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 0.78rem !important;
  color: var(--grey-600) !important;
  padding: 0 !important;
  font-weight: 400 !important;
  float: none !important;
  width: auto !important;
}

/* ── PLACE ORDER ──────────────────────────────── */
.form-row.place-order {
  padding: 20px !important;
  margin: 0 !important;
  float: none !important;
  clear: both !important;
}

.woocommerce-privacy-policy-text {
  font-family: var(--font) !important;
  font-size: 0.75rem !important;
  color: var(--grey-500) !important;
  margin-bottom: 12px !important;
  line-height: 1.5 !important;
}

.woocommerce-privacy-policy-text a { color: var(--teal) !important; }

.woocommerce-terms-and-conditions-wrapper .form-row {
  display: block !important;
}

.woocommerce-terms-and-conditions-wrapper .form-row label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  font-size: 0.82rem !important;
  color: var(--grey-700) !important;
  line-height: 1.4 !important;
  cursor: pointer !important;
  font-weight: 400 !important;
  margin-bottom: 14px !important;
  float: none !important;
  width: auto !important;
}

.woocommerce-terms-and-conditions-wrapper input[type="checkbox"] {
  accent-color: var(--teal) !important;
  width: 15px !important;
  height: 15px !important;
  margin-top: 2px !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
}

.woocommerce-terms-and-conditions-wrapper a {
  color: var(--teal) !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}

#place_order {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 52px !important;
  background: var(--teal) !important;
  color: var(--white) !important;
  border: none !important;
  border-radius: var(--r-pill) !important;
  font-family: var(--font) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: background var(--ease), box-shadow var(--ease), transform var(--ease) !important;
  box-shadow: 0 4px 14px rgba(24,110,112,0.35) !important;
  letter-spacing: -0.2px !important;
  margin-top: 0 !important;
  float: none !important;
}

#place_order:hover {
  background: var(--teal-dark) !important;
  box-shadow: 0 6px 20px rgba(24,110,112,0.45) !important;
  transform: translateY(-1px) !important;
}

/* ── NOTICES ──────────────────────────────────── */
.woocommerce-info {
  background: var(--teal-light) !important;
  border-left: 4px solid var(--teal) !important;
  border-top: none !important;
  border-right: none !important;
  border-bottom: none !important;
  border-radius: var(--r-sm) !important;
  padding: 12px 16px !important;
  font-family: var(--font) !important;
  font-size: 0.85rem !important;
  color: var(--grey-900) !important;
  margin-bottom: 20px !important;
}
.woocommerce-info::before { display: none !important; }
.woocommerce-info a { color: var(--teal) !important; font-weight: 600 !important; }

.woocommerce-message {
  background: var(--green-bg) !important;
  border-left: 4px solid var(--green-text) !important;
  border-top: none !important; border-right: none !important; border-bottom: none !important;
  border-radius: var(--r-sm) !important;
  padding: 10px 16px !important;
  font-family: var(--font) !important;
  font-size: 0.82rem !important;
  color: var(--green-text) !important;
  margin-bottom: 16px !important;
}
.woocommerce-message::before { display: none !important; }

/* ── COUPON TOGGLE & FORM ─────────────────────── */
.woocommerce-form-coupon-toggle .woocommerce-info {
  background: var(--grey-50) !important;
  border-left: 3px solid var(--grey-300) !important;
  color: var(--grey-700) !important;
  font-size: 0.82rem !important;
}

.checkout_coupon.woocommerce-form-coupon {
  background: var(--white) !important;
  border: 1px solid var(--grey-200) !important;
  border-radius: var(--r-md) !important;
  padding: 16px 20px !important;
  margin-bottom: 24px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.checkout_coupon .form-row { margin: 0 !important; flex: 1 !important; }
.checkout_coupon .form-row.form-row-last { flex: none !important; }

.checkout_coupon input[type="text"] {
  height: 40px !important;
  border: 1.5px solid var(--grey-200) !important;
  border-radius: var(--r-sm) !important;
  padding: 0 14px !important;
  font-family: var(--font) !important;
  font-size: 0.88rem !important;
  width: 100% !important;
  outline: none !important;
  box-shadow: none !important;
}

.checkout_coupon input[type="text"]:focus {
  border-color: var(--teal) !important;
  box-shadow: 0 0 0 3px rgba(24,110,112,0.1) !important;
}

.checkout_coupon .button {
  height: 40px !important;
  padding: 0 18px !important;
  background: var(--grey-100) !important;
  border: 1.5px solid var(--grey-200) !important;
  border-radius: var(--r-sm) !important;
  font-family: var(--font) !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: var(--grey-700) !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: background var(--ease), border-color var(--ease), color var(--ease) !important;
  display: flex !important;
  align-items: center !important;
}

.checkout_coupon .button:hover {
  background: var(--teal) !important;
  border-color: var(--teal) !important;
  color: var(--white) !important;
}

/* ── HIDE JUNK ────────────────────────────────── */
.pi-edd, div[id^="pi-estimate-"] { display: none !important; }
.woocommerce-checkout h3#order_review_heading { display: none !important; }

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 900px) {
  .woocommerce-checkout .col2-set {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

@media (max-width: 600px) {
  .woocommerce-checkout #content .container,
  .woocommerce-checkout .site-content .container {
    padding: 16px 14px 40px !important;
  }

  .woocommerce-billing-fields__field-wrapper,
  .woocommerce-shipping-fields__field-wrapper {
    grid-template-columns: 1fr !important;
  }

  .woocommerce-billing-fields__field-wrapper p.form-row-first,
  .woocommerce-billing-fields__field-wrapper p.form-row-last,
  .woocommerce-shipping-fields__field-wrapper p.form-row-first,
  .woocommerce-shipping-fields__field-wrapper p.form-row-last {
    grid-column: 1 / -1 !important;
  }

  .shop_table.woocommerce-checkout-review-order-table td,
  .shop_table.woocommerce-checkout-review-order-table th {
    padding: 12px 16px !important;
  }

  #place_order { height: 48px !important; font-size: 0.95rem !important; }
}






/*
 * ELECTRO THEME CHECKOUT FORM FIX
 * Paste at the VERY BOTTOM of oku-checkout.css
 * This overrides Electro's custom checkout column layout
 */

/* ── Kill ALL floats in checkout form ── */
.woocommerce-checkout form.checkout *,
.woocommerce-checkout form.checkout *::before,
.woocommerce-checkout form.checkout *::after {
  float: none !important;
  clear: none !important;
}

/* ── Reset col2-set to simple stack ── */
.woocommerce-checkout .col2-set {
  display: block !important;
  width: 100% !important;
  columns: unset !important;
}

/* ── col-1 and col-2 sit side by side using flex ── */
.woocommerce-checkout .col2-set {
  display: flex !important;
  flex-direction: row !important;
  gap: 40px !important;
  align-items: flex-start !important;
}

.woocommerce-checkout .col2-set .col-1 {
  flex: 1 !important;
  min-width: 0 !important;
  width: auto !important;
}

.woocommerce-checkout .col2-set .col-2 {
  flex: 1 !important;
  min-width: 0 !important;
  width: auto !important;
}

/* ── Field wrapper: use flex-wrap for rows ── */
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper,
.woocommerce-additional-fields__field-wrapper {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 0 !important;
  margin: 0 !important;
}

/* All form rows default to full width */
.woocommerce-billing-fields__field-wrapper > p,
.woocommerce-shipping-fields__field-wrapper > p,
.woocommerce-additional-fields__field-wrapper > p {
  width: 100% !important;
  margin: 0 0 14px 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* First name + Last name: 50% each with gap */
.woocommerce-billing-fields__field-wrapper > p.form-row-first,
.woocommerce-shipping-fields__field-wrapper > p.form-row-first {
  width: calc(50% - 8px) !important;
  margin-right: 16px !important;
}

.woocommerce-billing-fields__field-wrapper > p.form-row-last,
.woocommerce-shipping-fields__field-wrapper > p.form-row-last {
  width: calc(50% - 8px) !important;
  margin-right: 0 !important;
}

/* Wide rows: full width */
.woocommerce-billing-fields__field-wrapper > p.form-row-wide,
.woocommerce-shipping-fields__field-wrapper > p.form-row-wide,
.woocommerce-billing-fields__field-wrapper > p.mailchimp-newsletter,
.woocommerce-additional-fields__field-wrapper > p {
  width: 100% !important;
  margin-right: 0 !important;
}

/* ── Inputs full width ── */
.woocommerce-checkout .woocommerce-input-wrapper {
  display: block !important;
  width: 100% !important;
}

.woocommerce-checkout .woocommerce-input-wrapper input,
.woocommerce-checkout .woocommerce-input-wrapper textarea,
.woocommerce-checkout .woocommerce-input-wrapper .select2-container {
  width: 100% !important;
  display: block !important;
}

/* ── Labels display block ── */
.woocommerce-checkout p.form-row > label:first-child {
  display: block !important;
  width: 100% !important;
  margin-bottom: 5px !important;
}

/* ── MOBILE ── */
@media (max-width: 900px) {
  .woocommerce-checkout .col2-set {
    flex-direction: column !important;
    gap: 24px !important;
  }

  .woocommerce-checkout .col2-set .col-1,
  .woocommerce-checkout .col2-set .col-2 {
    width: 100% !important;
  }
}

@media (max-width: 600px) {
  .woocommerce-billing-fields__field-wrapper > p.form-row-first,
  .woocommerce-shipping-fields__field-wrapper > p.form-row-first {
    width: 100% !important;
    margin-right: 0 !important;
  }

  .woocommerce-billing-fields__field-wrapper > p.form-row-last,
  .woocommerce-shipping-fields__field-wrapper > p.form-row-last {
    width: 100% !important;
  }
}


/*
 * Stack billing above shipping (not side by side)
 * Paste at the VERY BOTTOM of oku-checkout.css
 */

.woocommerce-checkout .col2-set {
  flex-direction: column !important;
  gap: 32px !important;
}

.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
  width: 100% !important;
  flex: none !important;
}


/*
 * Checkout 2-column: fields left, order summary right
 * Paste at VERY BOTTOM of oku-checkout.css
 * Replaces the previous checkout-2col.css block
 */

/* Remove the flex from form.checkout — it breaks the page */
.woocommerce-checkout form.checkout {
  display: block !important;
  position: relative !important;
}

/* Col2-set (billing + shipping): float left, take ~55% */
.woocommerce-checkout form.checkout .col2-set {
  float: left !important;
  width: calc(55% - 20px) !important;
  margin-right: 40px !important;
  flex-direction: column !important;
  gap: 32px !important;
  display: flex !important;
}

/* Order review wrapper: float right, fixed 380px */
.woocommerce-checkout .order-review-wrapper {
  float: right !important;
  width: 42% !important;
  position: sticky !important;
  top: 80px !important;
  margin-top: 0 !important;
}

/* Clear after the floats */
.woocommerce-checkout form.checkout::after {
  content: '' !important;
  display: table !important;
  clear: both !important;
}

/* Hide the h3 order heading that appears between them */
.woocommerce-checkout h3#order_review_heading {
  display: none !important;
}

/* Mobile: unstack */
@media (max-width: 900px) {
  .woocommerce-checkout form.checkout .col2-set {
    float: none !important;
    width: 100% !important;
    margin-right: 0 !important;
  }

  .woocommerce-checkout .order-review-wrapper {
    float: none !important;
    width: 100% !important;
    position: static !important;
    margin-top: 24px !important;
  }
}



/*
 * Fix shipping method label text — left align
 * Paste at VERY BOTTOM of oku-checkout.css
 */

#shipping_method.woocommerce-shipping-methods li label,
ul.woocommerce-shipping-methods li label,
.woocommerce-checkout #shipping_method li label {
  text-align: left !important;
  justify-content: flex-start !important;
}

#shipping_method.woocommerce-shipping-methods li label .woocommerce-Price-amount,
ul.woocommerce-shipping-methods li label .woocommerce-Price-amount {
  margin-left: auto !important;
}