/* ANB Lab - scoped compatibility corrections, 2026-10-27 r3.
   Deliberately after base theme and previous improvements. No checkout/NP JS changes. */

/* Subcategories: show the full square photo without large empty margins.
   The frame remains the existing pastel card. */
body.anblab-theme #product-category.anb-category-page .anb-subcategory-card .anb-subcategory-media {
  display:flex!important;align-items:center!important;justify-content:center!important;
  padding:9px!important;overflow:hidden!important;
}
body.anblab-theme #product-category.anb-category-page .anb-subcategory-card .anb-subcategory-media>img {
  display:block!important;width:100%!important;height:100%!important;
  max-width:100%!important;max-height:100%!important;min-height:0!important;
  object-fit:contain!important;object-position:center!important;
  padding:0!important;background:transparent!important;
  border:0!important;border-radius:16px!important;clip-path:inset(0 round 16px)!important;
  box-shadow:none!important;flex:0 1 auto!important;
}

/* Desktop dropdown cart. Old OpenCart #cart .dropdown-menu li>div
   had min-width:427px, displacing the new 370px dropdown content. */
body.anblab-theme .anb-header-cart #cart.anb-mini-cart {position:relative!important;min-width:0!important;}
body.anblab-theme .anb-header-cart #cart.anb-mini-cart>ul.dropdown-menu {
  right:0!important;left:auto!important;top:calc(100% + 8px)!important;
  width:375px!important;min-width:0!important;max-width:calc(100vw - 28px)!important;
  margin:0!important;padding:0!important;border-radius:18px!important;
  overflow-x:hidden!important;overflow-y:auto!important;
  max-height:min(75vh,600px);background:#fff!important;
  box-shadow:0 18px 48px rgba(26,57,92,.18)!important;
}
body.anblab-theme .anb-header-cart #cart.anb-mini-cart>ul.dropdown-menu>li,
body.anblab-theme .anb-header-cart #cart.anb-mini-cart>ul.dropdown-menu>li>.anb-mini-content {
  min-width:0!important;max-width:100%!important;width:100%!important;
  box-sizing:border-box!important;float:none!important;
}
body.anblab-theme .anb-header-cart #cart.anb-mini-cart .anb-mini-content {padding:15px!important;}
body.anblab-theme .anb-header-cart #cart.anb-mini-cart .anb-mini-product {
  display:grid!important;grid-template-columns:56px minmax(0,1fr) 29px!important;
  gap:10px!important;align-items:start!important;width:100%!important;
}
body.anblab-theme .anb-header-cart #cart.anb-mini-cart .anb-mini-details {
  width:auto!important;min-width:0!important;overflow-wrap:break-word!important;
}
body.anblab-theme .anb-header-cart #cart.anb-mini-cart .anb-mini-name {
  display:block!important;min-width:0!important;overflow-wrap:break-word!important;
  line-height:1.45!important;white-space:normal!important;
}
body.anblab-theme .anb-header-cart #cart.anb-mini-cart .anb-mini-product .anb-mini-img{
  width:56px!important;height:56px!important;overflow:hidden!important;border-radius:10px!important;
}
body.anblab-theme .anb-header-cart #cart.anb-mini-cart .anb-mini-product .anb-mini-img>img{
  width:100%!important;height:100%!important;object-fit:contain!important;border-radius:9px!important;
}
body.anblab-theme .anb-header-cart #cart.anb-mini-cart .anb-mini-totals,
body.anblab-theme .anb-header-cart #cart.anb-mini-cart .anb-mini-actions {min-width:0!important;}
body.anblab-theme .anb-header-cart #cart.anb-mini-cart .anb-mini-actions>a {
  display:flex!important;justify-content:center!important;align-items:center!important;
  min-height:42px!important;padding:10px 12px!important;
  text-align:center!important;line-height:1.45!important;
}

/* The success page previously depended on a cached, unversioned refinement CSS.
   Define its visual shell in the last-loaded revision too. */
body.anblab-theme #checkout-success .anb-order-success-card{
  display:block!important;max-width:850px!important;margin:25px auto 42px!important;
  padding:clamp(24px,4vw,48px)!important;
  border:1px solid #dce8f6!important;border-radius:24px!important;
  background:#fff!important;text-align:center!important;
  box-shadow:0 12px 34px rgba(26,65,111,.075)!important;
}
body.anblab-theme #checkout-success .anb-order-success-icon {
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:64px!important;height:64px!important;margin:0 auto 17px!important;
  border-radius:18px!important;background:#e8f8ef!important;color:#13945e!important;font-size:29px!important;
}
body.anblab-theme #checkout-success .anb-order-success-eyebrow {
  display:block!important;font-size:11px!important;letter-spacing:.12em!important;
  font-weight:800!important;color:#1658b8!important;
}
body.anblab-theme #checkout-success .anb-order-success-card h1{
  color:#152e53!important;font-size:clamp(26px,4vw,38px)!important;
  font-weight:850!important;line-height:1.22!important;
  margin:12px 0 20px!important;
}
body.anblab-theme #checkout-success .anb-order-success-message{
  padding:17px 8px!important;margin:0 0 23px!important;
  border-top:1px solid #e5edf7!important;border-bottom:1px solid #e5edf7!important;
  line-height:1.8!important;font-size:14px!important;color:#526f8e!important;
}
body.anblab-theme #checkout-success .anb-order-success-actions{
  display:flex!important;gap:12px!important;justify-content:center!important;
  flex-wrap:wrap!important;align-items:stretch!important;
}
body.anblab-theme #checkout-success .anb-order-success-actions>a{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:auto!important;min-height:45px!important;gap:8px!important;
  padding:11px 20px!important;font-size:13px!important;line-height:1.35!important;
  font-weight:800!important;text-decoration:none!important;
  border-radius:12px!important;float:none!important;
}
body.anblab-theme #checkout-success .anb-order-success-actions>a.anb-order-success-primary {
  background:#195ab9!important;color:#fff!important;border:1px solid #195ab9!important;
  box-shadow:0 8px 17px rgba(20,80,177,.16)!important;
}
body.anblab-theme #checkout-success .anb-order-success-actions>a.anb-order-success-secondary {
  background:#f3f8ff!important;color:#1654aa!important;border:1px solid #d6e3f5!important;
}
