/* Indego Fresh Store 1.2.9 — Checkout compact spacing only.
   Scoped to the native classic WooCommerce checkout; leaves other pages,
   WooCommerce checkout AJAX, shipping methods, and payment fields intact. */
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page:has(form.checkout.woocommerce-checkout){
  padding-top:var(--idn-co-top-space,9px)!important;
  padding-bottom:38px!important;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-checkout-steps{
  margin:0!important;
  padding:var(--idn-co-steps-pad,13px) 20px!important;
  border-radius:7px 7px 0 0!important;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-checkout-steps h2{
  font-size:clamp(19px,2vw,24px)!important;
  margin:0 0 9px!important;
  line-height:1.15!important;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-checkout-steps-line{
  max-width:820px!important;gap:4px!important;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-checkout-steps-line:before{
  top:23px!important;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-co-step{
  gap:4px!important;min-width:0!important;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-co-step-icon{
  width:47px!important;height:47px!important;font-size:21px!important;
  border-width:3px!important;margin:0!important;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-co-step-current .idn-co-step-icon{
  width:55px!important;height:55px!important;font-size:24px!important;
  margin:-4px 0!important;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-co-step-name{
  font-size:12px!important;line-height:1.2!important;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-co-intro{
  margin:0 0 var(--idn-co-section-gap,13px)!important;
  padding:10px 12px!important;
  font-size:14px!important;line-height:1.4!important;
  border-radius:0 0 7px 7px!important;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .woocommerce-form-coupon-toggle{
  margin:0 0 var(--idn-co-section-gap,13px)!important;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .woocommerce-form-coupon-toggle .woocommerce-info{
  margin:0!important;padding:10px 13px!important;
  font-size:13px!important;line-height:1.4!important;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .woocommerce-form-coupon{
  margin:0 0 var(--idn-co-section-gap,13px)!important;padding:12px!important;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout > .idn-checkout-layout{
  gap:var(--idn-co-gap,18px)!important;
  align-items:start!important;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout .idn-checkout-left{
  gap:var(--idn-co-section-gap,13px)!important;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #customer_details .woocommerce-billing-fields,
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #customer_details .woocommerce-shipping-fields,
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #customer_details .woocommerce-additional-fields,
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #idn-checkout-delivery{
  padding:var(--idn-co-dense-card-pad,17px)!important;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #customer_details .woocommerce-billing-fields > h3,
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #customer_details .woocommerce-shipping-fields > h3,
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #customer_details .woocommerce-additional-fields > h3,
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #idn-checkout-delivery h3{
  margin:0 0 10px!important;padding:0 0 9px!important;
  font-size:18px!important;line-height:1.3!important;
}
body.idn-checkout-compact:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #customer_details .woocommerce-billing-fields__field-wrapper{
  gap:8px!important;
}
body.idn-checkout-compact:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #customer_details .idn-co-three-field label{
  margin:0 0 4px!important;font-size:13px!important;line-height:1.3!important;
}
body.idn-checkout-compact:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #customer_details .idn-co-three-field input.input-text{
  min-height:44px!important;padding:9px 11px!important;
  max-width:100%!important;box-sizing:border-box!important;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #idn-checkout-delivery .idn-delivery-note{
  margin:0 0 7px!important;line-height:1.4!important;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #idn-delivery-methods li{
  padding:9px 10px!important;gap:7px!important;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout .idn-checkout-right #order_review_heading{
  padding:13px var(--idn-co-summary-pad,16px) 8px!important;font-size:18px!important;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout .idn-checkout-right #order_review{
  padding:0 var(--idn-co-summary-pad,16px) 13px!important;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #order_review table.shop_table tr.cart_item > td,
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #order_review table.shop_table thead th,
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #order_review table.shop_table tfoot td,
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #order_review table.shop_table tfoot th{
  padding:6px 3px!important;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #order_review #payment{
  margin-top:8px!important;
}
/* Do not shrink payment gateway widgets, legal notices or the Place Order target. */
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #order_review #payment .place-order{
  padding:10px 0 0!important;margin:0!important;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #order_review #payment #place_order{
  min-height:46px!important;
}
@media (max-width:900px){
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout > .idn-checkout-layout{
   grid-template-columns:minmax(0,1fr)!important;
   gap:var(--idn-co-section-gap,13px)!important;
 }
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout > .idn-checkout-layout > .idn-checkout-left,
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout > .idn-checkout-layout > .idn-checkout-right{
   width:100%!important;min-width:0!important;max-width:100%!important;
   grid-column:1!important;grid-row:auto!important;
 }
}
@media (max-width:600px){
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page:has(form.checkout.woocommerce-checkout){
  width:calc(100% - 2 * var(--idn-co-mobile-outer,10px))!important;
  padding-top:var(--idn-co-mobile-top,5px)!important;
  padding-bottom:24px!important;
 }
 /* Preserve the existing slim one-line mobile Cart / Information / Finish design. */
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-checkout-steps,
 body.woocommerce-checkout .idn-page .idn-checkout-steps{
   min-height:40px!important;margin:0!important;padding:7px 7px!important;
 }
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-checkout-steps h2{display:none!important;}
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-co-step-icon,
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-co-step-current .idn-co-step-icon{
   width:11px!important;min-width:11px!important;height:11px!important;min-height:11px!important;
   margin:0!important;border-width:2px!important;font-size:0!important;
 }
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-checkout-steps-line:before{top:50%!important;}
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-co-step{gap:4px!important;}
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-co-step-name{font-size:11px!important;}
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-co-intro{
   padding:8px 8px!important;margin:0 0 var(--idn-co-mobile-gap,9px)!important;
   font-size:12px!important;line-height:1.35!important;
 }
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .woocommerce-form-coupon-toggle{
   margin-bottom:var(--idn-co-mobile-gap,9px)!important;
 }
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .woocommerce-form-coupon-toggle .woocommerce-info{
   padding:8px 10px!important;font-size:12px!important;
 }
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout > .idn-checkout-layout{
   gap:var(--idn-co-mobile-gap,9px)!important;
 }
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout .idn-checkout-left{
   gap:var(--idn-co-mobile-gap,9px)!important;
 }
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #customer_details .woocommerce-billing-fields,
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #customer_details .woocommerce-shipping-fields,
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #customer_details .woocommerce-additional-fields,
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #idn-checkout-delivery{
   padding:var(--idn-co-mobile-card-pad,11px)!important;
   border-radius:8px!important;
 }
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #customer_details .woocommerce-billing-fields > h3,
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #idn-checkout-delivery h3{
   font-size:15px!important;margin:0 0 8px!important;padding:0 0 7px!important;
 }
 body.idn-checkout-compact:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #customer_details .woocommerce-billing-fields__field-wrapper{
   gap:7px!important;
 }
 body.idn-checkout-compact:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #customer_details .idn-co-three-field label{
   font-size:12px!important;margin-bottom:3px!important;
 }
 body.idn-checkout-compact:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #customer_details .idn-co-three-field input.input-text{
   min-height:44px!important;padding:8px 10px!important;font-size:14px!important;
 }
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout .idn-checkout-right #order_review_heading{
   padding:11px 10px 6px!important;font-size:15px!important;
 }
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout .idn-checkout-right #order_review{
   padding:0 10px 11px!important;
 }
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #order_review table.shop_table tr.cart_item > td,
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #order_review table.shop_table thead th,
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #order_review table.shop_table tfoot td,
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #order_review table.shop_table tfoot th{
   padding:6px 2px!important;
 }
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #order_review #payment{
   margin-top:6px!important;
 }
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #order_review .idn-co-item-details,
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #order_review .idn-co-product-name{
   min-width:0!important;overflow-wrap:anywhere!important;
 }
}
@media(max-width:360px){
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-co-step{padding:0 2px!important;gap:3px!important;}
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-co-step-name{font-size:10px!important;}
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #order_review table.shop_table td.product-total .amount{white-space:normal!important;}
}


/* v1.3.4 — only Checkout: remove coupon prompt, tighten the billing title-to-first-field
   gap and keep the selected shipping fee on one line. No cart/totals/field logic changes. */
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .woocommerce-form-coupon-toggle,
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout_coupon,
body.woocommerce-checkout .idn-page .woocommerce-form-coupon-toggle,
body.woocommerce-checkout .idn-page form.checkout_coupon{
  display:none!important;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #customer_details .woocommerce-billing-fields > h3{
  margin-bottom:4px!important;
  padding-bottom:5px!important;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #customer_details .woocommerce-billing-fields__field-wrapper{
  margin-top:0!important;
  padding-top:0!important;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #customer_details .woocommerce-billing-fields__field-wrapper > .form-row:first-child{
  margin-top:0!important;
  padding-top:0!important;
}
/* Shipping labels update through WooCommerce AJAX. Never fake or hardcode prices. */
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #order_review table.shop_table tfoot tr.shipping th,
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #order_review table.shop_table tfoot tr.woocommerce-shipping-totals th{
  width:1%!important;
  white-space:nowrap!important;
  vertical-align:middle!important;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #order_review table.shop_table tfoot tr.shipping td,
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #order_review table.shop_table tfoot tr.woocommerce-shipping-totals td{
  text-align:right!important;
  vertical-align:middle!important;
  white-space:nowrap!important;
  overflow-wrap:normal!important;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #order_review .idn-selected-delivery{
  display:inline!important;
  line-height:1.3!important;
  white-space:nowrap!important;
  overflow-wrap:normal!important;
}
@media(max-width:600px){
  body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #customer_details .woocommerce-billing-fields > h3{
    margin-bottom:3px!important;
    padding-bottom:4px!important;
  }
  body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #order_review .idn-selected-delivery{
    font-size:clamp(10px,2.8vw,12px)!important;
  }
  body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #order_review table.shop_table tfoot tr.shipping th,
  body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #order_review table.shop_table tfoot tr.woocommerce-shipping-totals th{
    font-size:11px!important;
  }
}

/* v1.3.5 — Keep the three-field billing form directly below its title.
   WooCommerce may output a zero-content row for billing_country (input is
   still submitted even when its visual wrapper is hidden). Only the classic
   Indego checkout is targeted, so shipping/payment logic is untouched. */
body.idn-checkout-compact .idn-page form.checkout.woocommerce-checkout.idn-native-checkout .idn-checkout-layout
  #customer_details .woocommerce-billing-fields > h3 {
  margin-bottom:2px!important;
  padding-bottom:5px!important;
}
body.idn-checkout-compact .idn-page form.checkout.woocommerce-checkout.idn-native-checkout .idn-checkout-layout
  #customer_details .woocommerce-billing-fields__field-wrapper {
  display:block!important;
  margin:0!important;
  padding:0!important;
  gap:0!important;
  min-height:0!important;
}
body.idn-checkout-compact .idn-page form.checkout.woocommerce-checkout.idn-native-checkout .idn-checkout-layout
  #customer_details .woocommerce-billing-fields__field-wrapper #billing_country_field,
body.idn-checkout-compact .idn-page form.checkout.woocommerce-checkout.idn-native-checkout .idn-checkout-layout
  #customer_details .woocommerce-billing-fields__field-wrapper > .idn-co-hidden-country {
  display:none!important;
  height:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
}
body.idn-checkout-compact .idn-page form.checkout.woocommerce-checkout.idn-native-checkout .idn-checkout-layout
  #customer_details .woocommerce-billing-fields__field-wrapper #billing_first_name_field {
  margin-top:0!important;
  padding-top:0!important;
  clear:both!important;
}
body.idn-checkout-compact .idn-page form.checkout.woocommerce-checkout.idn-native-checkout .idn-checkout-layout
  #customer_details .woocommerce-billing-fields__field-wrapper #billing_phone_field,
body.idn-checkout-compact .idn-page form.checkout.woocommerce-checkout.idn-native-checkout .idn-checkout-layout
  #customer_details .woocommerce-billing-fields__field-wrapper #billing_address_1_field {
  margin-top:6px!important;
}
@media(max-width:600px){
  body.idn-checkout-compact .idn-page form.checkout.woocommerce-checkout.idn-native-checkout .idn-checkout-layout
    #customer_details .woocommerce-billing-fields > h3 {
    margin-bottom:1px!important;
    padding-bottom:4px!important;
  }
  body.idn-checkout-compact .idn-page form.checkout.woocommerce-checkout.idn-native-checkout .idn-checkout-layout
    #customer_details .woocommerce-billing-fields__field-wrapper #billing_phone_field,
  body.idn-checkout-compact .idn-page form.checkout.woocommerce-checkout.idn-native-checkout .idn-checkout-layout
    #customer_details .woocommerce-billing-fields__field-wrapper #billing_address_1_field {
    margin-top:5px!important;
  }
}
