/* Indego v1.2.6 — Classic checkout ONLY: compact mobile steps + live order summary controls.
   No changes to the cart drawer, product grid, header or other site pages. */
body.woocommerce-checkout .idn-native-checkout #order_review table.woocommerce-checkout-review-order-table {
  table-layout:fixed!important;width:100%!important;max-width:100%!important;border-collapse:collapse;
}
body.woocommerce-checkout .idn-native-checkout #order_review table.woocommerce-checkout-review-order-table th.product-name,
body.woocommerce-checkout .idn-native-checkout #order_review table.woocommerce-checkout-review-order-table td.product-name{width:70%!important;min-width:0!important;vertical-align:top!important;}
body.woocommerce-checkout .idn-native-checkout #order_review table.woocommerce-checkout-review-order-table th.product-total,
body.woocommerce-checkout .idn-native-checkout #order_review table.woocommerce-checkout-review-order-table td.product-total{width:30%!important;text-align:right!important;vertical-align:top!important;}
body.woocommerce-checkout .idn-native-checkout #order_review table.woocommerce-checkout-review-order-table tr.cart_item td{
  border-bottom:1px solid var(--idn-co-item-separator,#e5e9f2)!important;padding-top:13px!important;padding-bottom:13px!important;
}
body.woocommerce-checkout .idn-native-checkout #order_review .idn-co-item{
  display:flex;align-items:flex-start;gap:var(--idn-co-item-gap,11px);min-width:0;width:100%;max-width:100%;box-sizing:border-box;
}
body.woocommerce-checkout .idn-native-checkout #order_review .idn-co-item-picture{
  flex:0 0 var(--idn-co-item-image,56px);width:var(--idn-co-item-image,56px);height:var(--idn-co-item-image,56px);
  overflow:hidden;border:1px solid var(--idn-co-item-separator,#e5e9f2);border-radius:6px;background:#fff;
}
body.woocommerce-checkout .idn-native-checkout #order_review .idn-co-item-picture img{
  display:block;width:100%!important;height:100%!important;object-fit:contain!important;margin:0!important;border:0!important;
}
body.woocommerce-checkout .idn-native-checkout #order_review .idn-co-item-details{min-width:0;flex:1 1 auto;overflow-wrap:anywhere;}
body.woocommerce-checkout .idn-native-checkout #order_review .idn-co-product-name{
  display:block;color:var(--idn-co-heading,#153669);font-weight:700;font-size:13px;line-height:1.42;
}
body.woocommerce-checkout .idn-native-checkout #order_review .idn-co-item-actions{
  margin-top:8px;display:flex;flex-wrap:wrap;align-items:center;gap:7px;min-width:0;
}
body.woocommerce-checkout .idn-native-checkout #order_review .idn-co-qty-label{font-size:11px;color:#596783;}
body.woocommerce-checkout .idn-native-checkout #order_review .idn-co-qty-control{
  display:inline-flex;align-items:center;border:1px solid var(--idn-co-item-separator,#e5e9f2);border-radius:5px;
  overflow:hidden;max-width:100%;height:var(--idn-co-item-qty-height,30px);background:var(--idn-co-qty-bg,#f7f9fd);
}
body.woocommerce-checkout .idn-native-checkout #order_review .idn-co-qty-control>button{
  width:30px;min-width:30px;height:100%;margin:0!important;padding:0!important;border:0!important;
  background:transparent!important;color:var(--idn-co-qty-text,#303f78)!important;
  font-weight:800;font-size:17px;line-height:1;cursor:pointer;
}
body.woocommerce-checkout .idn-native-checkout #order_review .idn-co-qty-control>button:disabled{opacity:.36;cursor:not-allowed;}
body.woocommerce-checkout .idn-native-checkout #order_review .idn-co-qty-control output{
  display:grid;place-items:center;min-width:23px;padding:0 4px;height:100%;font-size:12px;
  border-left:1px solid var(--idn-co-item-separator,#e5e9f2);border-right:1px solid var(--idn-co-item-separator,#e5e9f2);
  color:#101d38;font-weight:700;
}
body.woocommerce-checkout .idn-native-checkout #order_review button.idn-co-cart-remove{
  background:transparent!important;color:var(--idn-co-remove-color,#ff202b)!important;
  min-width:29px;width:29px;height:var(--idn-co-item-qty-height,30px);padding:4px!important;
  display:grid;place-items:center;cursor:pointer;border:1px solid var(--idn-co-item-separator,#e5e9f2)!important;
  border-radius:5px!important;box-shadow:none!important;
}
body.woocommerce-checkout .idn-native-checkout #order_review button.idn-co-cart-remove:hover{background:#fff1f2!important;}
body.woocommerce-checkout .idn-native-checkout #order_review button:focus-visible{outline:2px solid var(--idn-co-accent,#303f78);outline-offset:2px;}
body.woocommerce-checkout .idn-native-checkout #order_review .idn-co-review-updating,
body.woocommerce-checkout .idn-native-checkout #order_review.idn-co-review-updating .idn-co-item-actions{opacity:.65;pointer-events:none;}
body.woocommerce-checkout .idn-native-checkout #order_review .idn-co-cart-error{
  border-left:3px solid #e33143;background:#fff0f1;color:#7d0e22;padding:8px 12px;margin-bottom:10px;font-size:12px;
}
body.woocommerce-checkout .idn-native-checkout #order_review td.product-name dl.variation{margin:5px 0 0!important;font-size:11px!important;}
body.woocommerce-checkout .idn-native-checkout #order_review td.product-name dl.variation dt,
body.woocommerce-checkout .idn-native-checkout #order_review td.product-name dl.variation dd{display:inline!important;float:none!important;max-width:100%;overflow-wrap:anywhere;}
body.woocommerce-checkout .idn-native-checkout #order_review td.product-name dl.variation dd{margin:0 6px 0 0!important;}
body.woocommerce-checkout .idn-native-checkout #order_review td.product-total .amount{white-space:normal;font-size:12px;overflow-wrap:anywhere;}

/* Match Indego navy/red instead of the stock black/green progress theme. */
body.woocommerce-checkout .idn-page .idn-checkout-steps{
  background:var(--idn-co-mobile-bg,#303f78)!important;color:var(--idn-co-mobile-text,#fff)!important;
}
body.woocommerce-checkout .idn-page .idn-co-step-icon{
  border-color:var(--idn-co-mobile-bg,#303f78)!important;
  background:var(--idn-co-mobile-muted,#c4ccde)!important;
}
body.woocommerce-checkout .idn-page .idn-co-step-current .idn-co-step-icon,
body.woocommerce-checkout .idn-page .idn-co-step-completed .idn-co-step-icon{
  background:var(--idn-co-mobile-active,#ff1628)!important;
}
body.woocommerce-checkout .idn-page .idn-co-step-name .idn-co-step-mobile{display:none;}

@media(max-width:900px){
 body.woocommerce-checkout .idn-native-checkout #order_review table.woocommerce-checkout-review-order-table{width:100%!important;}
}
@media(max-width:600px){
 /* Reference: one slim dark bar, 3 circular points and short labels, without large circles or title. */
 body.woocommerce-checkout .idn-page .idn-checkout-steps{
  margin:8px 0 0!important;border-radius:5px 5px 0 0!important;
  min-height:var(--idn-co-mobile-height,43px)!important;padding:8px 10px!important;
  display:flex!important;align-items:center!important;box-sizing:border-box!important;
 }
 body.woocommerce-checkout .idn-page .idn-checkout-steps h2{display:none!important;}
 body.woocommerce-checkout .idn-page .idn-checkout-steps-line{
  width:100%!important;max-width:none!important;display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important;
  align-items:center!important;justify-items:center!important;isolation:isolate;
 }
 body.woocommerce-checkout .idn-page .idn-checkout-steps-line:before{
  display:block!important;top:50%!important;left:17%!important;right:17%!important;height:1px!important;
  background:var(--idn-co-mobile-active,#ff1628)!important;z-index:-1;
 }
 body.woocommerce-checkout .idn-page .idn-co-step{
  width:auto!important;min-height:23px!important;display:inline-flex!important;flex-direction:row!important;
  align-items:center!important;justify-content:center!important;gap:6px!important;
  background:var(--idn-co-mobile-bg,#303f78)!important;
  padding:0 5px!important;white-space:nowrap!important;min-width:0!important;
  color:var(--idn-co-mobile-text,#fff)!important;
 }
 body.woocommerce-checkout .idn-page .idn-co-step .idn-co-step-icon,
 body.woocommerce-checkout .idn-page .idn-co-step-current .idn-co-step-icon{
  display:block!important;flex:0 0 11px!important;width:11px!important;height:11px!important;
  min-width:11px!important;min-height:11px!important;
  margin:0!important;border:2px solid var(--idn-co-mobile-active,#ff1628)!important;
  border-radius:100%!important;background:var(--idn-co-mobile-bg,#303f78)!important;
  box-sizing:border-box!important;
 }
 body.woocommerce-checkout .idn-page .idn-co-step-completed .idn-co-step-icon,
 body.woocommerce-checkout .idn-page .idn-co-step-current .idn-co-step-icon{
  background:var(--idn-co-mobile-active,#ff1628)!important;
 }
 body.woocommerce-checkout .idn-page .idn-co-step-upcoming .idn-co-step-icon{
  border-color:var(--idn-co-mobile-muted,#c4ccde)!important;
 }
 body.woocommerce-checkout .idn-page .idn-co-step-icon svg{display:none!important;}
 body.woocommerce-checkout .idn-page .idn-co-step-name{font-size:11px!important;line-height:1.15!important;font-weight:700!important;white-space:nowrap!important;}
 body.woocommerce-checkout .idn-page .idn-co-step-name .idn-co-step-full{display:none!important;}
 body.woocommerce-checkout .idn-page .idn-co-step-name .idn-co-step-mobile{display:inline!important;}
 body.woocommerce-checkout .idn-native-checkout #order_review .idn-co-item-picture{
  flex-basis:42px;width:42px;height:42px;
 }
 body.woocommerce-checkout .idn-native-checkout #order_review .idn-co-item{gap:7px;}
 body.woocommerce-checkout .idn-native-checkout #order_review .idn-co-product-name{font-size:11px;}
 body.woocommerce-checkout .idn-native-checkout #order_review .idn-co-item-actions{gap:4px;margin-top:6px;}
 body.woocommerce-checkout .idn-native-checkout #order_review .idn-co-qty-label{font-size:10px;}
 body.woocommerce-checkout .idn-native-checkout #order_review .idn-co-qty-control>button{min-width:25px;width:25px;}
 body.woocommerce-checkout .idn-native-checkout #order_review .idn-co-qty-control output{min-width:19px;}
 body.woocommerce-checkout .idn-native-checkout #order_review table.woocommerce-checkout-review-order-table td.product-name,
 body.woocommerce-checkout .idn-native-checkout #order_review table.woocommerce-checkout-review-order-table th.product-name{width:73%!important;}
 body.woocommerce-checkout .idn-native-checkout #order_review table.woocommerce-checkout-review-order-table td.product-total,
 body.woocommerce-checkout .idn-native-checkout #order_review table.woocommerce-checkout-review-order-table th.product-total{width:27%!important;}
}
@media(max-width:360px){
 body.woocommerce-checkout .idn-page .idn-co-step{padding:0 2px!important;gap:4px!important;}
 body.woocommerce-checkout .idn-page .idn-co-step-name{font-size:10px!important;}
 body.woocommerce-checkout .idn-native-checkout #order_review .idn-co-item{gap:5px;}
 body.woocommerce-checkout .idn-native-checkout #order_review .idn-co-item-picture{flex-basis:38px;width:38px;height:38px;}
 body.woocommerce-checkout .idn-native-checkout #order_review .idn-co-qty-label{display:none;}
}

/* Buttons are emitted AFTER product names by the Woo checkout quantity hook,
   so wp_kses_post() in Woo cannot strip interactive elements. */
body.woocommerce-checkout .idn-native-checkout #order_review td.product-name:has(.idn-co-item-picture) > .idn-co-item-actions {
  margin-left:calc(var(--idn-co-item-image,56px) + var(--idn-co-item-gap,11px));
}
@media(max-width:600px){
 body.woocommerce-checkout .idn-native-checkout #order_review td.product-name:has(.idn-co-item-picture) > .idn-co-item-actions { margin-left:49px; }
}
@media(max-width:360px){
 body.woocommerce-checkout .idn-native-checkout #order_review td.product-name:has(.idn-co-item-picture) > .idn-co-item-actions { margin-left:43px; }
}


/* v1.2.7 — Dense, readable order review with actual cart variation names/values.
   Scoped to Indego's Classic Checkout only. Do not modify shipping/total logic. */
body.woocommerce-checkout .idn-native-checkout #order_review .idn-co-item-variation-meta{
  margin:3px 0 0!important;padding:0!important;
  font-size:var(--idn-co-variation-size,12px)!important;
  color:#5b6980;line-height:1.3!important;
}
body.woocommerce-checkout .idn-native-checkout #order_review .idn-co-item-variation-meta dl.variation{
  display:flex!important;flex-wrap:wrap!important;align-items:baseline!important;
  column-gap:4px!important;row-gap:2px!important;
  font-size:inherit!important;line-height:inherit!important;
  margin:0!important;padding:0!important;float:none!important;
}
body.woocommerce-checkout .idn-native-checkout #order_review .idn-co-item-variation-meta dt,
body.woocommerce-checkout .idn-native-checkout #order_review .idn-co-item-variation-meta dd{
  display:inline!important;float:none!important;margin:0!important;padding:0!important;
  max-width:100%!important;font-size:inherit!important;line-height:inherit!important;
  overflow-wrap:anywhere!important;
}
body.woocommerce-checkout .idn-native-checkout #order_review .idn-co-item-variation-meta dt{
  font-weight:700!important;color:var(--idn-co-heading,#153669)!important;
}
body.woocommerce-checkout .idn-native-checkout #order_review .idn-co-item-variation-meta dd{
  font-weight:500!important;margin-right:9px!important;
}
body.woocommerce-checkout .idn-native-checkout #order_review .idn-co-item-variation-meta dd p{
  display:inline!important;margin:0!important;padding:0!important;font:inherit!important;
}
/* The standard WooCommerce review template may append the same dl after the
   product name filter. Only hide THAT redundant sibling, not the nested version. */
body.woocommerce-checkout .idn-native-checkout #order_review td.product-name:has(.idn-co-item-variation-meta)>dl.variation{
  display:none!important;
}
body.woocommerce-checkout .idn-native-checkout #order_review .idn-co-product-name{
  font-size:var(--idn-co-title-size,14px)!important;line-height:1.3!important;
}
body.woocommerce-checkout .idn-native-checkout #order_review .idn-co-item{
  gap:var(--idn-co-item-gap,11px)!important;align-items:start!important;
}
body.woocommerce-checkout .idn-native-checkout #order_review .idn-co-item-actions{
  margin-top:var(--idn-co-actions-top,4px)!important;gap:5px!important;
}
body.woocommerce-checkout .idn-native-checkout #order_review table.woocommerce-checkout-review-order-table{
  margin-bottom:8px!important;
}
/* Override old checkout row padding at the same specificity or greater. */
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:var(--idn-co-row-pad,7px) 4px!important;
}
body.woocommerce-checkout .idn-native-checkout #order_review td.product-total .amount,
body.woocommerce-checkout .idn-native-checkout #order_review td.product-total .woocommerce-Price-amount{
  font-size:var(--idn-co-price-size,15px)!important;font-weight:750!important;
  white-space:nowrap!important;overflow-wrap:normal!important;
}
body.woocommerce-checkout .idn-native-checkout #order_review table.shop_table tfoot tr:not(.order-total) .woocommerce-Price-amount{
  font-size:var(--idn-co-price-size,15px)!important;font-weight:700!important;
}
body.woocommerce-checkout .idn-native-checkout #order_review table.shop_table tfoot tr.order-total .woocommerce-Price-amount,
body.woocommerce-checkout .idn-native-checkout #order_review table.shop_table tfoot tr.order-total .amount{
  font-size:var(--idn-co-total-price-size,20px)!important;font-weight:800!important;
  color:var(--idn-co-heading,#153669)!important;
}
@media(max-width:600px){
 body.woocommerce-checkout .idn-native-checkout #order_review .idn-co-item{
   gap:6px!important;
 }
 body.woocommerce-checkout .idn-native-checkout #order_review .idn-co-item-variation-meta{
   font-size:clamp(10px,var(--idn-co-variation-size,12px),13px)!important;
   line-height:1.25!important;
 }
 body.woocommerce-checkout .idn-native-checkout #order_review .idn-co-product-name{
   font-size:clamp(11px,var(--idn-co-title-size,14px),14px)!important;
 }
 body.woocommerce-checkout .idn-native-checkout #order_review td.product-total .woocommerce-Price-amount,
 body.woocommerce-checkout .idn-native-checkout #order_review table.shop_table tfoot tr:not(.order-total) .woocommerce-Price-amount{
   font-size:clamp(13px,var(--idn-co-price-size,15px),17px)!important;
 }
 body.woocommerce-checkout .idn-native-checkout #order_review table.shop_table tfoot tr.order-total .woocommerce-Price-amount{
   font-size:clamp(17px,var(--idn-co-total-price-size,20px),24px)!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:var(--idn-co-row-pad,7px) 2px!important;
 }
}
@media(max-width:360px){
 body.woocommerce-checkout .idn-native-checkout #order_review .idn-co-item-variation-meta dd{
   margin-right:5px!important;
 }
 body.woocommerce-checkout .idn-native-checkout #order_review td.product-total .woocommerce-Price-amount{
   font-size:13px!important;
 }
}

/* Tighten right-hand summary card without changing the billing fields. */
body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout .idn-checkout-right #order_review_heading{
  padding:14px var(--idn-co-summary-pad,16px) 9px!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) var(--idn-co-summary-pad,16px)!important;
}
@media(max-width:600px){
  body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout .idn-checkout-right #order_review_heading{
    padding:12px 10px 7px!important;
  }
  body:has(.idn-page form.checkout.woocommerce-checkout) .idn-page .idn-native-checkout .idn-checkout-right #order_review{
    padding:0 10px 12px!important;
  }
}
@media(max-width:360px){
  body.woocommerce-checkout .idn-native-checkout #order_review td.product-total .woocommerce-Price-amount{
    white-space:normal!important;overflow-wrap:anywhere!important;
  }
}


/* v1.2.8 — Parent product title on its own line; label: value underneath. */
body.woocommerce-checkout .idn-native-checkout #order_review .idn-co-product-name{
  display:block!important;margin:0!important;padding:0!important;
}
body.woocommerce-checkout .idn-native-checkout #order_review .idn-co-item-variation-meta{
  display:flex!important;flex-direction:column!important;align-items:flex-start!important;
  gap:2px!important;margin:3px 0 0!important;padding:0!important;
  font-size:var(--idn-co-variation-size,12px)!important;line-height:1.3!important;
}
body.woocommerce-checkout .idn-native-checkout #order_review .idn-co-variation-entry{
  display:block!important;max-width:100%;overflow-wrap:anywhere;
  font-size:inherit!important;line-height:inherit!important;
}
body.woocommerce-checkout .idn-native-checkout #order_review .idn-co-variation-entry strong{
  color:var(--idn-co-heading,#153669)!important;font-weight:700!important;
}
body.woocommerce-checkout .idn-native-checkout #order_review .idn-co-variation-entry span{
  font-weight:500!important;color:#5b6980!important;
}
