/* AIER Checkout Steps — matches the "1 Cart · 2 Details · 3 Review" mockup */

.aier-cksteps { font-family: 'Mulish', system-ui, -apple-system, sans-serif; color: #3f4a57; max-width: 1180px; margin: 0 auto 24px; }
.aier-cksteps-nav { display: flex; gap: 8px; margin-bottom: 20px; }
.aier-ckstep {
  flex: 1; display: flex; align-items: center; gap: 9px; padding: 11px 14px;
  border: 1px solid #d8dde3; border-radius: 10px; background: #fff; cursor: pointer;
}
.aier-ckstep-n { width: 24px; height: 24px; border-radius: 50%; background: #f3f7fb; color: #82909c; font-weight: 900; display: flex; align-items: center; justify-content: center; flex: none; }
.aier-ckstep-lbl { font-weight: 800; color: #82909c; font-size: 13px; }
.aier-ckstep--on { border-color: #143b66; background: #f3f7fb; }
.aier-ckstep--on .aier-ckstep-n { background: #143b66; color: #fff; }
.aier-ckstep--on .aier-ckstep-lbl { color: #143b66; }
.aier-ckstep--done .aier-ckstep-n { background: #0f7a5e; color: #fff; }

.aier-ck-panel h1 { font-size: 26px; font-weight: 900; color: #143b66; margin: 0 0 16px; }
.aier-ck-panel { background: #fff; border: 1px solid #d8dde3; border-radius: 12px; padding: 24px 26px; }

.aier-cksteps-actions { display: flex; justify-content: space-between; margin-top: 18px; }

.aier-cksteps .aier-btn {
  border: none; background: #143b66; color: #fff; font-family: inherit; font-weight: 800; font-size: 14px;
  padding: 10px 20px; border-radius: 999px; cursor: pointer; text-decoration: none; display: inline-block;
}
.aier-cksteps .aier-btn:hover { background: #0f2d50; color: #fff; }
.aier-cksteps .aier-btn--green { background: #0f7a5e; }
.aier-cksteps .aier-btn--green:hover { background: #0c6450; }
.aier-cksteps .aier-btn--ghost { background: #fff; color: #143b66; border: 1px solid #d8dde3; }
.aier-cksteps .aier-btn--ghost:hover { background: #f3f7fb; }

#aier-ck-details-actions, #aier-ck-review-actions { max-width: 1180px; margin: 18px auto; }

@media (max-width: 700px) {
  .aier-cksteps-nav { flex-direction: column; }
  .aier-cksteps-actions { flex-direction: column; gap: 10px; }
}

.aier-ck-loading {
  max-width: 1180px; margin: 20px auto; text-align: center; color: #82909c; font-weight: 700; font-size: 14px;
}

/* ================================================================
   Styling WooCommerce's OWN checkout form markup — #customer_details
   and #order_review are core WooCommerce elements we're just skinning
   here, not replacing. Nothing about their function changes.
   ================================================================ */
.woocommerce-checkout,
#customer_details, #order_review {
  font-family: 'Mulish', system-ui, -apple-system, sans-serif !important;
  color: #3f4a57;
  /* max-width: 1180px;  */
  margin: 0 auto;
}
#customer_details { background: #fff; border: 1px solid #d8dde3; border-radius: 12px; padding: 26px 28px; }
#customer_details h3 { font-size: 18px; font-weight: 900; color: #143b66; margin: 0 0 16px; }
#customer_details .col2-set, #customer_details .col-1, #customer_details .col-2 { width: 100%; float: none; }
#customer_details .woocommerce-billing-fields__field-wrapper,
#customer_details .woocommerce-shipping-fields__field-wrapper {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px;
}
#customer_details .form-row { margin: 0 0 4px; padding: 0; width: 100% !important; }
#customer_details .form-row-wide,
#customer_details .form-row-first, #customer_details .form-row-last { grid-column: auto; }
#customer_details label { font-size: 13px; font-weight: 700; color: #143b66; display: block; margin-bottom: 5px; }
#customer_details label .required { color: #b3413f; text-decoration: none; }
#customer_details .input-text, #customer_details select,
#customer_details textarea {
  width: 100% !important; font-family: inherit !important; font-size: 14.5px !important; padding: 10px 12px !important;
  border: 1px solid #d8dde3 !important; border-radius: 8px !important; background: #fff !important; color: #3f4a57 !important;
  box-shadow: none !important; outline: none !important; -webkit-appearance: none !important; appearance: none !important;
}
#customer_details .input-text:focus, #customer_details select:focus {
  border-color: #143b66 !important; outline: none !important; box-shadow: none !important;
}
#customer_details .select2-container .select2-selection--single {
  height: 42px !important; border: 1px solid #d8dde3 !important; border-radius: 8px !important; padding: 5px 12px !important;
  box-shadow: none !important; outline: none !important;
}
#customer_details .select2-container--focus .select2-selection--single,
#customer_details .select2-container--open .select2-selection--single {
  border-color: #143b66 !important; box-shadow: none !important; outline: none !important;
}
#customer_details .select2-selection__rendered { line-height: 30px !important; }
#customer_details .select2-selection__arrow { height: 40px !important; }
#customer_details #order_comments_field { grid-column: 1 / -1; }
#customer_details .woocommerce-additional-fields { grid-column: 1 / -1; border: none; padding: 0; margin-top: 4px; }
#customer_details .woocommerce-account-fields, #customer_details .create-account { grid-column: 1 / -1; }

/* Order review table (Step 3) */
#order_review_heading { font-size: 20px; font-weight: 900; color: #143b66; margin: 24px auto 14px; max-width: 1180px; }
#order_review { background: #fff; border: 1px solid #d8dde3; border-radius: 12px; padding: 6px 26px 26px; overflow: hidden; }
#order_review table,
#order_review table.shop_table,
#order_review table.woocommerce-checkout-review-order-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
  border: none !important; border-radius: 0 !important; box-shadow: none !important;
}
#order_review table th, #order_review table td {
  padding: 12px 6px; border-bottom: 1px solid #eceff2 !important;
  border-left: none !important; border-right: none !important; border-top: none !important;
  text-align: left;
}
table.shop_table th { color: #82909c; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; font-weight: 800; }
table.shop_table .product-name, table.shop_table td:first-child { color: #143b66; font-weight: 700; }
table.shop_table .order-total td, table.shop_table .order-total th { font-weight: 900; color: #143b66; font-size: 16px; border-top: 2px solid #143b66; border-bottom: none; }
table.shop_table td:last-child, table.shop_table th:last-child { text-align: right; }

/* Payment methods */
#payment { background: #f7f9fb; border: 1px solid #d8dde3; border-radius: 10px; margin-top: 18px; padding: 4px 0; }
ul.wc_payment_methods { list-style: none; margin: 0; padding: 14px; }
ul.wc_payment_methods li.wc_payment_method { border-bottom: 1px solid #e4e8ec; padding: 12px 4px; }
ul.wc_payment_methods li.wc_payment_method:last-child { border-bottom: none; }
ul.wc_payment_methods label { font-weight: 700; color: #143b66; font-size: 14px; }
ul.wc_payment_methods .payment_box {
  background: #fff; border: 1px solid #e4e8ec; border-radius: 8px; padding: 14px 16px; margin-top: 10px; font-size: 13px; color: #5a6776;
}
#place_order {
  width: 100%; border: none; background: #0f7a5e; color: #fff; font-family: inherit; font-weight: 800;
  font-size: 15px; padding: 14px; border-radius: 999px; cursor: pointer; margin-top: 16px;
}
#place_order:hover { background: #0c6450; }

@media (max-width: 700px) {
  #customer_details .woocommerce-billing-fields__field-wrapper,
  #customer_details .woocommerce-shipping-fields__field-wrapper { grid-template-columns: 1fr; }
}

/* ================================================================
   Step 2 "Details" — our own form (not an embedded WC shortcode)
   ================================================================ */
.aier-ck-details-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px;
}
.aier-ck-details-grid .aier-ck-wide { grid-column: 1 / -1; }
.aier-ck-lab { font-size: 13px; font-weight: 700; color: #143b66; display: block; margin-bottom: 6px; }
.aier-ck-field {
  width: 100%; font-family: inherit; font-size: 15px; padding: 12px 14px; line-height: 1.3;
  border: 1px solid #d8dde3; border-radius: 8px; background: #fff; color: #3f4a57;
  box-shadow: none; transition: border-color .15s, box-shadow .15s;
}
.aier-ck-field::placeholder { color: #9aa5b1; }
.aier-ck-field:focus {
  border-color: #143b66; outline: none; box-shadow: 0 0 0 3px rgba(20,59,102,.10);
}

@media (max-width: 700px) {
  .aier-ck-details-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* ================================================================
   Real checkout page: "← Back" button (only shown when arriving via
   our stepper), and making the order-summary / payment areas read as
   two clearly separate vertical sections, per request.
   ================================================================ */
.aier-ck-back-wrap { max-width: 1180px; margin: 0 auto 16px; }
.aier-ck-back-wrap .aier-btn {
  border: 1px solid #d8dde3; background: #fff; color: #143b66; font-family: inherit; font-weight: 800;
  font-size: 14px; padding: 10px 20px; border-radius: 999px; cursor: pointer; text-decoration: none; display: inline-block;
}
.aier-ck-back-wrap .aier-btn:hover { background: #f3f7fb; color: #143b66; }

/* Payment now reads as its own distinct card, clearly separated below
   the order summary table, instead of blending into the same box. */
#payment {
  background: #fff; border: 1px solid #d8dde3; border-radius: 12px; margin-top: 22px; padding: 22px;
  box-shadow: 0 1px 4px rgba(20,59,102,.07);
}
#aier-ck-step-2 input{
  border-radius: 10px;
  border: 1px solid #d8dde3;
}