/* Native AGR cards. Existing forms, pricing data and quantity constraints remain authoritative. */
body .ab-variation-cards.agr-native-cards{--agr-card-ink:#21383b;--agr-card-green:#287b49;--agr-card-line:#dce5df;display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;width:100%!important;max-width:100%!important;min-width:0;margin:24px 0!important;padding:0!important;font-family:inherit;container:agr-cards / inline-size}
.agr-native-cards *,.agr-native-cards *::before,.agr-native-cards *::after{box-sizing:border-box}
body .agr-native-cards>.ab-card{display:block!important;min-width:0!important;width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;border:1px solid var(--agr-card-line)!important;border-radius:13px!important;background:#fff!important;box-shadow:none!important;color:var(--agr-card-ink)}
body .agr-native-cards>.ab-card.is-selected{border-color:#77a88a!important;box-shadow:0 0 0 1px #77a88a!important}
.agr-native-cards .agr-card-header{display:grid;grid-template-columns:minmax(0,1fr) minmax(110px,auto);align-items:center;gap:12px;padding:17px 18px}
.agr-native-cards .agr-card-summary{min-width:0}
body .agr-native-cards .agr-card-header>.ab-left{display:block!important;min-width:0!important;width:auto!important;margin:0!important;padding:0!important;border:0!important}
body .agr-native-cards .ab-title-row,body .agr-native-cards .ab-title-col{display:block!important;min-width:0;margin:0!important;padding:0!important}
.agr-native-cards .agr-card-toggle{display:flex!important;align-items:center;justify-content:space-between;gap:12px;width:100%;min-width:0;min-height:44px;margin:0;padding:0;border:0;border-radius:5px;background:transparent!important;color:var(--agr-card-ink)!important;font:inherit;font-weight:700;font-size:16px;line-height:1.3;text-align:left;box-shadow:none!important;cursor:pointer}
.agr-native-cards .agr-card-toggle-label{min-width:0;overflow-wrap:anywhere}
.agr-native-cards .agr-card-toggle::after{content:'+';display:grid;place-items:center;flex:0 0 24px;width:24px;height:24px;border:1px solid #d4e2d6;border-radius:50%;background:#f3f8f0;color:var(--agr-card-green);font-size:20px;line-height:1;font-weight:400}
.agr-native-cards .agr-card-toggle[aria-expanded="true"]::after{content:'−'}
.agr-native-cards .agr-card-meta{margin-top:3px;color:#637369;font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.agr-native-cards .agr-card-meta:empty{display:none}
body .agr-native-cards .agr-card-meta{display:flex!important;align-items:center;gap:5px 7px;flex-wrap:wrap;margin:5px 0 0!important;padding:0!important}
body .agr-native-cards .agr-card-meta :is(.ab-stock,.ab-ship-pill,.ab-pack-size){max-width:100%;font:inherit!important;font-size:11px!important;line-height:1.4!important;white-space:normal!important;overflow-wrap:anywhere}
body .agr-native-cards .agr-card-meta .ab-ship-pill{display:inline-flex;align-items:center;gap:4px;min-width:0}
.agr-native-cards .agr-card-meta .ab-ship-pill svg{flex:0 0 13px}
body .agr-native-cards .agr-card-header .ab-total-head{margin:0 0 5px;padding:0;color:#637369;font-size:10px;line-height:1.2;font-weight:500}
body .agr-native-cards .agr-card-header .ab-price-line{display:flex!important;flex-direction:column;align-items:flex-end;gap:3px;min-width:0;max-width:100%}
body .agr-native-cards .agr-card-header .ab-price-sub:not([hidden]){display:flex;align-items:baseline;justify-content:flex-end;gap:3px;flex-wrap:wrap;max-width:100%}
body .agr-native-cards .agr-card-header .ab-price-unit{font-size:12px!important;white-space:normal!important}
body .agr-native-cards .agr-card-header :is(.ab-price-soit,.ab-price-ht,.ab-unit-suffix){font-size:10px!important;font-weight:400!important}
body .agr-native-cards .agr-card-header>.ab-total{display:block!important;min-width:0!important;max-width:100%;margin:0!important;padding:0!important;border:0!important;text-align:right!important;white-space:normal!important;background:none!important}
body .agr-native-cards .ab-total .ab-price-main{display:flex!important;align-items:baseline;justify-content:flex-end;flex-wrap:wrap;gap:3px 5px;max-width:100%;white-space:normal!important}
body .agr-native-cards .ab-total .ab-price-value{color:var(--agr-card-ink)!important;font-size:clamp(19px,2vw,24px)!important;font-weight:750!important;line-height:1.15;overflow-wrap:anywhere}
body .agr-native-cards .ab-total .ab-price-sub{margin-top:4px!important;color:#637369!important;font-size:12px!important;line-height:1.3;white-space:normal!important}
body .agr-native-cards .ab-total .mi-qp-price-basis{color:#637369!important;font-family:inherit!important;font-size:11px!important}
.agr-native-cards .agr-card-panel{min-width:0;padding:0 18px 18px;border-top:1px solid var(--agr-card-line)}
.agr-native-cards .agr-card-panel[hidden]{display:none!important}
.agr-native-cards .agr-card-description{min-width:0;margin:14px 0;color:#52645d;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.agr-native-cards .agr-card-description>:last-child{margin-bottom:0}
.agr-native-cards .agr-card-description .ab-desc{display:block!important;max-height:none!important;overflow:visible!important;-webkit-line-clamp:unset!important}
.agr-native-cards .agr-card-description .ab-desc-toggle{display:none!important}
.agr-native-cards .agr-card-description:empty{display:none}
body .agr-native-cards .agr-card-panel .ab-right{display:block!important;width:100%!important;min-width:0!important;margin:0!important;padding:14px 0 0!important;border:0!important}
body .agr-native-cards .agr-card-panel form.ab-vc-cart-form{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(135px,auto)!important;align-items:center;gap:12px!important;min-width:0!important;width:100%!important;margin:0!important;padding:0!important}
body .agr-native-cards .ab-quantity-shell{display:flex!important;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 14px;min-width:0;max-width:100%}
body .agr-native-cards .ab-qty-stepper-host{min-width:0;max-width:100%}
body .agr-native-cards .ab-qty-stepper{display:flex!important;align-items:center;width:142px;max-width:100%;min-height:44px;border:1px solid #bbcec0!important;border-radius:8px!important;overflow:hidden;background:#fff}
body .agr-native-cards .ab-qty-stepper>.quantity{flex:1 1 auto;min-width:0!important;width:auto!important;margin:0!important;padding:0!important}
body .agr-native-cards .ab-qty-stepper input[name="quantity"]{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;height:44px!important;margin:0!important;padding:5px 1px!important;border:0!important;border-radius:0!important;background:#fff!important;color:var(--agr-card-ink)!important;font:inherit!important;font-size:16px!important;text-align:center!important;box-shadow:none!important;appearance:textfield;-moz-appearance:textfield}
.agr-native-cards .ab-qty-stepper input::-webkit-inner-spin-button,.agr-native-cards .ab-qty-stepper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
body .agr-native-cards .ab-qty-stepper>button{display:grid;place-items:center;flex:0 0 40px;min-width:40px;min-height:44px;margin:0;padding:0;border:0;border-radius:0;background:#f3f7ef;color:var(--agr-card-ink);font:inherit;font-size:21px;font-weight:500;line-height:1;cursor:pointer;touch-action:manipulation}
.agr-native-cards .ab-qty-stepper>button:hover:not(:disabled){background:#e6f0e0}
.agr-native-cards .ab-qty-stepper>button:disabled{opacity:.45;cursor:default}
body .agr-native-cards form.ab-vc-cart-form .ab-btn{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;min-width:0!important;width:100%!important;min-height:46px!important;margin:0!important;padding:10px 14px!important;border:1px solid var(--agr-card-green)!important;border-radius:8px!important;background:var(--agr-card-green)!important;color:#fff!important;font:inherit!important;font-size:14px!important;font-weight:650!important;line-height:1.3!important;text-align:center;white-space:normal!important;box-shadow:none!important;cursor:pointer}
body .agr-native-cards form.ab-vc-cart-form .ab-btn:hover:not(:disabled){background:#21673d!important;border-color:#21673d!important}
body .agr-native-cards form.ab-vc-cart-form .ab-btn:disabled{opacity:.5;cursor:not-allowed}
.agr-native-cards :is(button,input,a,summary):focus-visible{outline:3px solid #589d34!important;outline-offset:3px}
.agr-native-cards .ab-qty-stepper :is(button,input):focus-visible{outline-offset:-3px}
body .agr-native-cards .mi-qp{width:100%;min-width:0;max-width:100%;margin:16px 0 0;color:var(--agr-card-ink);font-family:inherit}
.agr-native-cards .mi-qp :is(button,input,summary){font-family:inherit}
.agr-native-cards .mi-qp-strip{margin:0;padding-top:14px;border-top:1px solid var(--agr-card-line)}
.agr-native-cards .mi-vi-banner{margin:0 0 10px;background:none;color:var(--agr-card-ink)}
.agr-native-cards .mi-vi-commercial{display:flex;align-items:baseline;gap:5px 12px;flex-wrap:wrap}
.agr-native-cards .mi-qp-strip-title{margin:0;color:var(--agr-card-ink);font-size:13px;font-weight:700}
.agr-native-cards .mi-vi-description{font-size:11px;line-height:1.4;color:#637369}
.agr-native-cards .mi-qp-strip-items{grid-template-columns:repeat(var(--mi-qp-tier-count,5),minmax(76px,1fr))!important;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#a7bca7 #f6f9f3;border-color:#d6e2d5;border-radius:9px;background:#dce5d8;scroll-padding-inline:4px}
.agr-native-cards .mi-qp-tier{min-height:78px;padding:9px 5px;color:var(--agr-card-ink);font-family:inherit;font-size:12px;scroll-margin-inline:4px}
.agr-native-cards .mi-qp-tier .mi-qp-tier-price{color:var(--agr-card-ink);font-size:14px}
.agr-native-cards .mi-qp-tier[aria-pressed="true"]{background:#e9f3e4;color:var(--agr-card-ink);box-shadow:inset 0 -3px #287b49}
.agr-native-cards .mi-qp-tier[aria-pressed="true"]::before{color:#287b49}
.agr-native-cards .mi-qp-next{flex-wrap:wrap;gap:4px 12px;min-width:0;color:#287b49}
.agr-native-cards .mi-qp-next button{max-width:100%;white-space:normal;overflow-wrap:anywhere;color:#287b49}
.agr-native-cards .mi-qp-next [data-mi-qp-next-text]{min-height:0}
body .agr-native-cards .mi-qp-selected-total{min-width:0;max-width:100%;color:#637369}
body .agr-native-cards .mi-qp-selected-total [data-mi-qp-total]{color:var(--agr-card-ink);font-size:18px}
body .agr-native-cards .mi-qp-error{width:100%;max-width:100%;margin:5px 0 0;color:#a63621;font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.agr-native-cards .mi-qp-context,.agr-native-cards .mi-qp-explanation{max-width:100%;overflow-wrap:anywhere}
/* The database description remains intact; only its replaced front-end card is hidden. */
.et_pb_wc_description .ab-shortdesc-premium.agr-cards-replaced-description{display:none!important}
@container agr-cards (max-width:520px){
 .agr-native-cards .agr-card-header{grid-template-columns:minmax(0,1fr) minmax(90px,.65fr);gap:10px;padding:13px 12px}
 .agr-native-cards .agr-card-toggle{font-size:15px;gap:8px}
 .agr-native-cards .agr-card-panel{padding:0 12px 13px}
 body .agr-native-cards .agr-card-panel form.ab-vc-cart-form{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
 body .agr-native-cards .ab-quantity-shell{gap:8px}
 body .agr-native-cards .ab-total .ab-price-value{font-size:20px!important}
 .agr-native-cards .mi-qp-strip-items{grid-template-columns:repeat(var(--mi-qp-tier-count,5),minmax(78px,1fr))!important}
 .agr-native-cards .mi-qp-next{font-size:11px}
 .agr-native-cards .mi-qp-next button{min-height:44px}
}
@media(prefers-reduced-motion:reduce){.agr-native-cards *{transition:none!important;scroll-behavior:auto!important}}

/* Keep native form max-width from narrowing the adapted card actions. */
body .agr-native-cards .agr-card-panel .ab-right,body .agr-native-cards .agr-card-panel form.ab-vc-cart-form{max-width:none!important}
@media(max-width:767px){.single-product .et_pb_column.agr-product-purchase-column{box-sizing:border-box;padding-inline:14px!important}}

/* One horizontal row for every source tier; never wrap a sixth tier onto an empty row. */
body .agr-native-cards .mi-qp-strip-items{grid-template-columns:none!important;grid-auto-flow:column!important;grid-auto-columns:minmax(78px,1fr)!important}
/* The adapted cards own purchase controls; remove the two duplicate legacy modules. */
.single-product .agr-product-purchase-column>.et_pb_wc_price,.single-product .agr-product-purchase-column>.et_pb_wc_add_to_cart{display:none!important}
