/* Native WooCommerce classic checkout: scoped to Indego page; no fake fields or shipping prices. */
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page:has(form.checkout.woocommerce-checkout){
  width:min(var(--idn-co-max-width,1200px),calc(100% - 36px))!important;
  max-width:none!important;
  padding:28px 0 60px;
  margin-inline:auto!important;
  box-sizing:border-box;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page:has(form.checkout.woocommerce-checkout) > h1{font-size:27px;line-height:1.3;margin:4px 0 20px;color:var(--idn-co-heading,#153669)}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page:has(form.checkout.woocommerce-checkout) > .woocommerce{width:100%!important;max-width:none!important;min-width:0!important;}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page:has(form.checkout.woocommerce-checkout) {background:transparent}
body:has(.idn-page form.checkout.woocommerce-checkout):has(.idn-page form.checkout.woocommerce-checkout) {background:var(--idn-co-bg,#f7f9fc)}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout.woocommerce-checkout{
  display:grid!important;grid-template-columns:minmax(0,var(--idn-co-left,63%)) minmax(0,1fr)!important;
  column-gap:var(--idn-co-gap,24px)!important;row-gap:18px!important;
  align-items:start!important;width:100%!important;max-width:none!important;min-width:0!important;
  float:none!important;margin:0!important;overflow:visible;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout .idn-checkout-left{
  grid-column:1!important;grid-row:1!important;display:flex!important;flex-direction:column!important;
  gap:16px!important;align-self:start!important;min-width:0!important;width:100%!important;max-width:none!important;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout .idn-checkout-right{
  grid-column:2!important;grid-row:1!important;display:block!important;align-self:start!important;
  min-width:0!important;width:100%!important;max-width:none!important;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #customer_details{
  display:block!important;
  min-width:0!important;width:100%!important;max-width:none!important;
  float:none!important;margin:0!important;clear:none!important;
  padding:0!important;border:0!important;background:transparent!important;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #customer_details > .col-1,
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #customer_details > .col-2{
  display:block;float:none!important;clear:none!important;width:100%!important;max-width:none!important;
  box-sizing:border-box!important;min-width:0!important;margin:0!important;padding:0!important;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #customer_details > .col-2{margin-top:16px!important;}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #customer_details .woocommerce-billing-fields,
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #customer_details .woocommerce-shipping-fields,
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #customer_details .woocommerce-additional-fields{
  background:var(--idn-co-card-bg,#fff)!important;border:1px solid var(--idn-co-border,#e1e6ef)!important;
  border-radius:var(--idn-co-radius,12px)!important;box-shadow:0 2px 10px rgba(15,35,65,.055)!important;
  padding:var(--idn-co-pad,24px)!important;width:100%!important;max-width:none!important;min-width:0!important;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #customer_details .woocommerce-billing-fields > h3,
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #customer_details .woocommerce-additional-fields > h3,
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #customer_details .woocommerce-shipping-fields > h3{
  font-size:var(--idn-co-title-size,20px)!important;line-height:1.4!important;font-weight:800!important;
  color:var(--idn-co-heading,#153669)!important;margin:0 0 17px!important;
  padding:0 0 15px!important;border-bottom:1px solid var(--idn-co-border,#e1e6ef)!important;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #customer_details .woocommerce-billing-fields__field-wrapper,
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #customer_details .woocommerce-shipping-fields__field-wrapper,
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #customer_details .woocommerce-additional-fields__field-wrapper{
  display:flow-root;width:100%;min-width:0;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #customer_details .form-row{margin:0 0 var(--idn-co-field-gap,12px)!important;padding:0!important;min-width:0;box-sizing:border-box;}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #customer_details .form-row label{color:var(--idn-co-label,#152d52);font-weight:650;font-size:13px;margin-bottom:7px;line-height:1.35;}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #customer_details .input-text,
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #customer_details select,
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #customer_details .select2-container .select2-selection--single{
  width:100%!important;max-width:100%!important;min-width:0!important;
  min-height:var(--idn-co-field-height,47px)!important;
  height:auto!important;background:var(--idn-co-input-bg,#fff)!important;
  border:1px solid var(--idn-co-input-border,#cfd7e3)!important;border-radius:6px!important;
  box-sizing:border-box!important;box-shadow:none!important;color:#1d2940;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #customer_details input.input-text,
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #customer_details select{padding:10px 12px!important;}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #customer_details textarea.input-text{min-height:78px!important;resize:vertical;}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #customer_details .select2-container{width:100%!important;max-width:100%!important;min-width:0!important;}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #customer_details .select2-selection__rendered{line-height:var(--idn-co-field-height,47px)!important;}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #customer_details .select2-selection__arrow{height:var(--idn-co-field-height,47px)!important;}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #customer_details .form-row-first,
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #customer_details .form-row-last{width:calc(50% - 7px)!important;float:left!important;clear:none!important;}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #customer_details .form-row-first{margin-right:14px!important;}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #customer_details .form-row-wide{width:100%!important;float:none!important;clear:both!important;}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #order_review_heading{
  display:block!important;width:100%!important;max-width:none!important;min-width:0!important;
  float:none!important;clear:none!important;margin:0!important;
  padding:var(--idn-co-pad,24px) var(--idn-co-pad,24px) 14px!important;
  border:1px solid var(--idn-co-border,#e1e6ef)!important;border-bottom:0!important;
  border-radius:var(--idn-co-radius,12px) var(--idn-co-radius,12px) 0 0!important;
  background:var(--idn-co-card-bg,#fff)!important;
  color:var(--idn-co-heading,#153669)!important;font-size:var(--idn-co-title-size,20px)!important;
  line-height:1.4!important;font-weight:800!important;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #order_review{
  display:block!important;width:100%!important;max-width:none!important;min-width:0!important;
  float:none!important;clear:none!important;margin-top:0!important;
  padding:0 var(--idn-co-pad,24px) var(--idn-co-pad,24px)!important;
  border:1px solid var(--idn-co-border,#e1e6ef)!important;border-top:0!important;
  border-radius:0 0 var(--idn-co-radius,12px) var(--idn-co-radius,12px)!important;
  background:var(--idn-co-card-bg,#fff)!important;box-shadow:0 3px 10px rgba(15,35,65,.06)!important;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #order_review table.shop_table{
  width:100%!important;max-width:none!important;table-layout:auto!important;margin:0 0 16px!important;
  border:0!important;border-collapse:collapse!important;background:transparent!important;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #order_review table.shop_table td,
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #order_review table.shop_table th{
  font-size:13px!important;padding:12px 6px!important;vertical-align:top!important;
  overflow-wrap:anywhere!important;word-break:normal!important;border-bottom:1px solid #edf0f5!important;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #order_review table.shop_table td:last-child,
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #order_review table.shop_table th:last-child{text-align:right!important;}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #order_review table.shop_table tfoot .order-total{font-size:18px;color:var(--idn-co-heading,#153669);}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #order_review .woocommerce-checkout-payment{
  background:#f8f9fc!important;border:1px solid #e7eaf0!important;
  border-radius:8px!important;padding:13px!important;margin:14px 0 0!important;
  width:100%!important;max-width:none!important;box-sizing:border-box!important;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #order_review .payment_methods{padding:6px 3px!important;}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #order_review .woocommerce-checkout-payment #place_order{
  width:100%!important;max-width:none!important;min-height:var(--idn-co-submit-height,54px)!important;
  background:var(--idn-co-submit-bg,#eb4163)!important;color:var(--idn-co-submit-fg,#fff)!important;
  font-weight:800!important;border:0!important;border-radius:8px!important;float:none!important;
}
/* Actual WooCommerce shipping-method inputs are relocated to this block by checkout-design.js. */
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #idn-checkout-delivery{
  display:block!important;width:100%!important;min-width:0!important;
  margin:0!important;background:var(--idn-co-card-bg,#fff);border:1px solid var(--idn-co-border,#e1e6ef);
  border-radius:var(--idn-co-radius,12px);padding:var(--idn-co-pad,24px);box-shadow:0 2px 10px rgba(15,35,65,.055);
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #idn-checkout-delivery h3{
  font-weight:800;font-size:var(--idn-co-title-size,20px);color:var(--idn-co-heading,#153669);margin:0 0 12px;
  padding:0 0 13px;border-bottom:1px solid var(--idn-co-border,#e1e6ef);
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout .idn-delivery-note{color:#68748c;font-size:12px;margin:0 0 10px;}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #idn-delivery-methods ul#shipping_method,
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #idn-delivery-methods ul.woocommerce-shipping-methods{
  list-style:none!important;display:grid!important;gap:9px!important;margin:0!important;padding:0!important;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #idn-delivery-methods li{
  padding:12px!important;margin:0!important;background:#f8faff;border:1px solid #e1e5ef;
  border-radius:7px!important;display:flex;gap:11px;align-items:center;flex-wrap:wrap;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #idn-delivery-methods li:has(input:checked){border-color:var(--idn-co-accent,#303f78)!important;box-shadow:0 0 0 1px var(--idn-co-accent,#303f78);}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #idn-delivery-methods input.shipping_method{accent-color:var(--idn-co-accent,#303f78);margin:0;}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #idn-delivery-methods label{font-weight:650!important;font-size:14px;cursor:pointer;flex:1;}
/* The order total still includes shipping, and the shipping row remains visible in the right-hand summary. */
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #order_review tr.idn-shipping-choice-relocated ul{display:none!important;}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #order_review .idn-selected-delivery{
  display:inline-block;font-size:12px;color:var(--idn-co-heading,#153669);line-height:1.4;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .woocommerce-message,
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .woocommerce-info{border-radius:7px;}
@media(max-width:900px){
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout.woocommerce-checkout{display:flex!important;flex-direction:column!important;gap:16px!important;}
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout .idn-checkout-left,
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout .idn-checkout-right{width:100%!important;max-width:none!important;min-width:0!important;}
}
@media(max-width:600px){
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page:has(form.checkout.woocommerce-checkout){width:calc(100% - 24px)!important;padding-top:16px;}
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #customer_details .woocommerce-billing-fields,
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #customer_details .woocommerce-shipping-fields,
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #customer_details .woocommerce-additional-fields,
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #idn-checkout-delivery{padding:15px!important;}
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #order_review_heading{padding:17px 15px 12px!important;}
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #order_review{padding:0 15px 15px!important;}
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #customer_details .form-row-first,
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #customer_details .form-row-last{float:none!important;clear:both!important;width:100%!important;margin-right:0!important;}
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #order_review table.shop_table td,
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout #order_review table.shop_table th{font-size:12px!important;padding:9px 4px!important;}
}


/* v1.2.3: real checkout template grid, not CSS on injected hook wrappers.
   Native form is a single block; the inner layout owns the two columns. */
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page.idn-container,
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page:has(form.idn-native-checkout){
 width:min(var(--idn-co-max-width,1200px),calc(100% - 36px))!important;
 max-width:var(--idn-co-max-width,1200px)!important;
 margin-inline:auto!important;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page > .woocommerce,
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page > .woocommerce > form.idn-native-checkout{
 width:100%!important;min-width:0!important;max-width:100%!important;
 float:none!important;clear:both!important;box-sizing:border-box!important;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.idn-native-checkout{
 display:block!important;margin:0!important;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout > .idn-checkout-layout{
 display:grid!important;
 grid-template-columns:minmax(0,var(--idn-co-left,63%)) minmax(0,1fr)!important;
 gap:var(--idn-co-gap,24px)!important;
 align-items:start!important;
 width:100%!important;max-width:100%!important;min-width:0!important;
 box-sizing:border-box!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{
 grid-row:1!important;min-width:0!important;width:100%!important;max-width:100%!important;
 float:none!important;clear:none!important;box-sizing:border-box!important;position:relative!important;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout > .idn-checkout-layout > .idn-checkout-left{grid-column:1!important;}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout > .idn-checkout-layout > .idn-checkout-right{grid-column:2!important;}
/* Old theme rules positioned these headings on the checkout form grid; unset them. */
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #customer_details,
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #order_review_heading,
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout #order_review{
 grid-row:auto!important;grid-column:auto!important;
 min-width:0!important;width:100%!important;max-width:100%!important;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout .idn-checkout-left #customer_details{
 padding:0!important;margin:0!important;background:transparent!important;border:0!important;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout .idn-checkout-right #order_review table.shop_table{
 width:100%!important;table-layout:auto!important;
}
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout .idn-checkout-right #order_review table.shop_table td,
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout .idn-checkout-right #order_review table.shop_table th{
 overflow-wrap:anywhere!important;
}
/* Keep native WooCommerce checkout notice/validation and payment buttons visible. */
@media(max-width:900px){
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout > .idn-checkout-layout{
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px!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{
  grid-column:1!important;grid-row:auto!important;max-width:100%!important;
 }
}
@media(max-width:600px){
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page.idn-container{width:calc(100% - 24px)!important;max-width:none!important;}
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout > .idn-checkout-layout{gap:12px!important;}
}
/* Higher specificity than the old WooCommerce form-grid declarations. */
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout.woocommerce-checkout.idn-native-checkout {
 display:block!important; width:100%!important; max-width:100%!important;
 margin:0!important; padding:0!important; float:none!important;
}


/* v1.2.4: Explicit robust fallback for classic checkout without the theme override.
   The native checkout template uses .idn-checkout-layout above, which takes priority.
   Applicable even when the checkout shortcode is not the configured WC checkout page. */
@media(min-width:901px){
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout.woocommerce-checkout:not(.idn-native-checkout) {
   display:grid!important;grid-template-columns:minmax(0,var(--idn-co-left,63%)) minmax(0,1fr)!important;
   gap:var(--idn-co-gap,24px)!important;align-items:start!important;
   width:100%!important;min-width:0!important;max-width:100%!important;float:none!important;
 }
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout.woocommerce-checkout:not(.idn-native-checkout) > #customer_details {
   grid-column:1!important;grid-row:1 / 4!important;width:100%!important;min-width:0!important;max-width:100%!important;
 }
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout.woocommerce-checkout:not(.idn-native-checkout) > #order_review_heading {
   grid-column:2!important;grid-row:1!important;width:100%!important;min-width:0!important;max-width:100%!important;
 }
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout.woocommerce-checkout:not(.idn-native-checkout) > #order_review {
   grid-column:2!important;grid-row:2 / 8!important;width:100%!important;min-width:0!important;max-width:100%!important;
 }
}
@media(max-width:900px){
 body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page form.checkout.woocommerce-checkout:not(.idn-native-checkout){
   display:flex!important;flex-direction:column!important;gap:14px!important;
 }
}
