/* AYESH 1.0.190 — compact ONLY the Delivery Address section. WooCommerce fields remain intact.
   The additional high specificity is intentional: older checkout components each carry
   !important min-heights/paddings, which made mobile fields unusually tall. */
html body.woocommerce-checkout.ayesh-v182-checkout:not(.woocommerce-order-received)
form.checkout.woocommerce-checkout > #customer_details {
  padding-bottom: 19px !important;
}
html body.woocommerce-checkout.ayesh-v182-checkout:not(.woocommerce-order-received)
#customer_details .hb-checkout-section-head {
  margin-bottom: 10px !important;
  padding-bottom: 4px !important;
}
html body.woocommerce-checkout.ayesh-v182-checkout:not(.woocommerce-order-received)
#customer_details .woocommerce-billing-fields__field-wrapper {
  row-gap: 9px !important;
  column-gap: 10px !important;
  align-items: stretch !important;
}
/* All normal address fields: one label + one value, not a large blank card. */
html body.woocommerce-checkout.ayesh-v182-checkout:not(.woocommerce-order-received)
#customer_details .woocommerce-billing-fields__field-wrapper > .form-row:not(#billing_country_field) {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 1px !important;
  height: auto !important;
  min-height: 56px !important;
  margin: 0 !important;
  padding: 6px 12px !important;
  border-radius: 13px !important;
  box-sizing: border-box !important;
}
html body.woocommerce-checkout.ayesh-v182-checkout:not(.woocommerce-order-received)
#customer_details .woocommerce-billing-fields__field-wrapper > .form-row > label {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
  font-weight: 650 !important;
  min-height: 0 !important;
}
html body.woocommerce-checkout.ayesh-v182-checkout:not(.woocommerce-order-received)
#customer_details .woocommerce-billing-fields__field-wrapper > .form-row .woocommerce-input-wrapper {
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
html body.woocommerce-checkout.ayesh-v182-checkout:not(.woocommerce-order-received)
#customer_details .woocommerce-billing-fields__field-wrapper > .form-row :is(input.input-text, select) {
  height: 30px !important;
  min-height: 30px !important;
  max-height: none !important;
  padding: 3px 2px !important;
  margin: 0 !important;
  font-size: 16px !important; /* Prevents automatic iOS zoom on focus. */
  line-height: 1.3 !important;
  box-sizing: border-box !important;
}
/* Select2 rendered selects for District / Thana must shrink with their parent. */
html body.woocommerce-checkout.ayesh-v182-checkout:not(.woocommerce-order-received)
#customer_details :is(#billing_state_field, #billing_city_field, #billing_district_field, #billing_thana_field)
.select2-container--default .select2-selection--single {
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 24px 0 2px !important;
  line-height: 30px !important;
  box-sizing: border-box !important;
}
html body.woocommerce-checkout.ayesh-v182-checkout:not(.woocommerce-order-received)
#customer_details :is(#billing_state_field, #billing_city_field, #billing_district_field, #billing_thana_field)
.select2-container--default .select2-selection__rendered {
  height: 30px !important;
  min-height: 0 !important;
  padding: 0 !important;
  line-height: 30px !important;
  font-size: 16px !important;
}
html body.woocommerce-checkout.ayesh-v182-checkout:not(.woocommerce-order-received)
#customer_details :is(#billing_state_field, #billing_city_field, #billing_district_field, #billing_thana_field)
.select2-selection__arrow {
  top: 0 !important;
  height: 30px !important;
}
/* Full Address remains multiline/editable without taking up excessive vertical space. */
html body.woocommerce-checkout.ayesh-v182-checkout:not(.woocommerce-order-received)
#customer_details .woocommerce-billing-fields__field-wrapper > #billing_address_1_field {
  min-height: 72px !important;
  padding-top: 7px !important;
  padding-bottom: 7px !important;
}
html body.woocommerce-checkout.ayesh-v182-checkout:not(.woocommerce-order-received)
#customer_details #billing_address_1_field textarea {
  min-height: 44px !important;
  height: 44px !important;
  max-height: none !important;
  padding: 4px 2px !important;
  line-height: 1.35 !important;
  font-size: 16px !important;
  resize: vertical !important;
  box-sizing: border-box !important;
}
html body.woocommerce-checkout.ayesh-v182-checkout:not(.woocommerce-order-received)
#customer_details #billing_phone_field .woocommerce-input-wrapper::before {
  top: 6px !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
}
@media (max-width: 767px) {
  html body.woocommerce-checkout.ayesh-v182-checkout:not(.woocommerce-order-received)
  form.checkout.woocommerce-checkout > #customer_details {
    padding: 10px 13px 16px !important;
    border-radius: 19px !important;
  }
  html body.woocommerce-checkout.ayesh-v182-checkout:not(.woocommerce-order-received)
  #customer_details .woocommerce-billing-fields__field-wrapper {
    gap: 8px !important;
  }
  html body.woocommerce-checkout.ayesh-v182-checkout:not(.woocommerce-order-received)
  #customer_details .woocommerce-billing-fields__field-wrapper > .form-row:not(#billing_country_field) {
    min-height: 54px !important;
    padding: 5px 11px !important;
    border-radius: 13px !important;
  }
  html body.woocommerce-checkout.ayesh-v182-checkout:not(.woocommerce-order-received)
  #customer_details .woocommerce-billing-fields__field-wrapper > #billing_address_1_field {
    min-height: 70px !important;
  }
  html body.woocommerce-checkout.ayesh-v182-checkout:not(.woocommerce-order-received)
  #customer_details #billing_address_1_field textarea {
    height: 43px !important;
    min-height: 43px !important;
  }
}
