/* 3.2.9: popup checkout shell and full Cart page layout corrections. */
.aec-checkout-popup{inset:0;margin:auto;width:min(100% - 32px,640px);height:min(850px,calc(100vh - 48px));height:min(850px,calc(100dvh - 48px));max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);border-radius:18px;background:#fff;overflow:hidden;box-sizing:border-box}
.aec-checkout-popup[open]{display:flex;flex-direction:column}
.aec-checkout-popup::backdrop{background:rgba(20,32,28,.58);backdrop-filter:blur(3px)}
.aec-popup-header{display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid #e6e9e5;flex:none;min-width:0;background:#fff}
.aec-popup-header h2{font-size:20px;line-height:1.2;margin:0;flex:1;min-width:0;overflow-wrap:anywhere}
.aec-popup-header button{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border:0;padding:0;border-radius:0;background:transparent;color:var(--aec-ink,#182019);cursor:pointer;box-shadow:none;-webkit-tap-highlight-color:transparent}
.aec-popup-header button:focus-visible{outline:2px solid var(--aec-green,#315c4b);outline-offset:-3px}
.aec-popup-header button:hover,.aec-popup-header button:active{background:transparent;box-shadow:none}
.aec-popup-header .aec-icon{width:20px;height:20px}
.aec-popup-secure{display:flex;align-items:center;gap:5px;color:#315c4b;font-size:11px;font-weight:700;white-space:nowrap}
.aec-popup-secure .aec-icon{width:15px;height:15px}
.aec-popup-frame-wrap{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;background:#fbfaf6}
.aec-popup-frame-wrap iframe{display:block;flex:1;width:100%;min-width:0;min-height:0;border:0;background:#fff}
.aec-popup-status{flex:none;background:#edf5ef;color:#315c4b;padding:10px 14px;font-size:12px;text-align:center;overflow-wrap:anywhere}
.aec-popup-status[hidden]{display:none}
.aec-popup-footer{flex:none;text-align:center;padding:9px 12px;background:#fff;border-top:1px solid #e6e9e5;font-size:12px;line-height:1.4}
.aec-popup-footer a{color:#315c4b;text-decoration:underline;text-underline-offset:3px}
/* Only the checkout document requested for the dialog loses global chrome. */
body.aec-checkout-embedded{margin:0!important;padding:0!important;background:#fbfaf6;min-width:0;overflow-x:hidden}
.aec-checkout-embedded .aec-site-header,.aec-checkout-embedded .aec-site-footer,.aec-checkout-embedded .aec-checkout-head,.aec-checkout-embedded .aec-standard-page>h1,.aec-checkout-embedded .aec-sticky-purchase{display:none!important}
.aec-checkout-embedded #aec-site,.aec-checkout-embedded #aec-main,.aec-checkout-embedded .aec-builder-page,.aec-checkout-embedded .aec-standard-page{width:100%;max-width:100%;min-width:0;margin:0!important;padding:0!important;box-sizing:border-box}
.aec-checkout-embedded .aec-modern-checkout{width:100%!important;max-width:100%!important;margin:0!important;padding:12px 12px 24px!important;box-sizing:border-box}
.aec-checkout-embedded .aec-modern-checkout form.checkout.woocommerce-checkout{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
.aec-checkout-embedded .aec-modern-checkout #customer_details,.aec-checkout-embedded .aec-modern-checkout #order_review,.aec-checkout-embedded .aec-modern-checkout #order_review_heading,.aec-checkout-embedded .aec-order-summary-shell{grid-column:1/-1!important;grid-row:auto!important;position:static!important;min-width:0;max-width:100%}
.aec-checkout-embedded .aec-fast-back{display:none}
.aec-checkout-embedded .aec-fast-checkout.aec-fast-has-sticky{padding-bottom:110px!important}
.aec-checkout-embedded .aec-modern-checkout input:not([type=checkbox]):not([type=radio]),.aec-checkout-embedded .aec-modern-checkout select,.aec-checkout-embedded .aec-modern-checkout textarea{max-width:100%;min-width:0}
.aec-cart-experience .aec-cart-page-main,.aec-cart-experience .aec-cart-page-side,.aec-cart-experience .aec-cart-page-line,.aec-cart-experience .aec-cart-page-copy,.aec-cart-experience .aec-cart-page-controls{min-width:0;max-width:100%;box-sizing:border-box}
.aec-cart-page-line-title{overflow-wrap:anywhere}
.aec-cart-page-recommend .aec-cart-recommend-row{margin:0;max-width:100%;min-width:0;box-sizing:border-box;overscroll-behavior-inline:contain}
.aec-cart-page-recommend.is-slider .aec-cart-recommend-row{scroll-snap-type:x mandatory}
.aec-cart-page-recommend:not(.is-slider) .aec-cart-recommend-row{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,var(--aec-cart-rec-width,150px)),1fr));overflow:visible;scroll-snap-type:none}
.aec-cart-page-recommend:not(.is-slider) .aec-cart-recommend-card{width:100%;max-width:100%}
.aec-cart-experience .aec-cart-bill dl>div,.aec-cart-experience .aec-cart-bill-total{min-width:0;gap:8px}
.aec-cart-experience .aec-cart-bill dd,.aec-cart-experience .aec-cart-bill-total>strong:last-child{white-space:normal;overflow-wrap:anywhere;max-width:55%;text-align:right}
.aec-cart-experience .aec-cart-bill dt{min-width:0;overflow-wrap:anywhere}
.aec-cart-experience .aec-cart-trust{overflow:visible;min-width:0}
.aec-cart-experience .aec-cart-trust-item{min-width:0;overflow-wrap:anywhere}
@media(max-width:767px){
 .aec-checkout-popup{inset:0;width:100%;max-width:100%;height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;margin:0;border-radius:0}
 .aec-popup-header{padding:calc(8px + env(safe-area-inset-top,0px)) 10px 8px;gap:5px}
 .aec-popup-header h2{font-size:18px}.aec-popup-header button{width:38px;flex-basis:38px}
 .aec-popup-footer{padding-bottom:calc(9px + env(safe-area-inset-bottom,0px))}
 .aec-cart-experience{padding:12px 12px 24px;max-width:100%;width:100%;overflow-x:clip}
 .aec-cart-experience:has(.aec-cart-mobile-dock){padding-bottom:calc(20px + var(--aec-cart-dock-space,120px))}
 .aec-cart-experience.aec-cart-dock-active{padding-bottom:calc(20px + var(--aec-cart-dock-space,120px))}
 .aec-cart-experience .aec-cart-page-header{margin:0 0 12px;padding:8px 0 12px;gap:8px;flex-wrap:wrap}
 .aec-cart-experience .aec-cart-page-title{flex:1 1 auto;min-width:0}
 .aec-cart-experience .aec-cart-page-title h1{overflow-wrap:anywhere}
 .aec-cart-experience .aec-cart-prepaid-banner{max-width:100%;flex:0 1 auto;font-size:11px;padding:6px 8px;white-space:normal}
 .aec-cart-experience .aec-cart-page-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
 .aec-cart-experience .aec-cart-page-side{display:grid;gap:10px;position:static;top:auto}
 .aec-cart-experience .aec-cart-page-line{grid-template-columns:minmax(0,min(var(--aec-cart-item-image),34%)) minmax(0,1fr);gap:8px 12px;align-items:start;padding:10px;position:relative}
 .aec-cart-experience .aec-cart-page-thumb{width:100%;height:auto;aspect-ratio:1;grid-row:1 / span 2;align-self:start}
 .aec-cart-experience .aec-cart-page-line-title{padding-right:32px;-webkit-line-clamp:2;line-height:1.3}
 .aec-cart-experience .aec-cart-page-meta{overflow-wrap:anywhere}
 .aec-cart-experience .aec-cart-page-price{margin-top:6px;gap:6px}
 .aec-cart-experience .aec-cart-page-controls{grid-column:2;justify-content:flex-start;margin:0}
 .aec-cart-experience .aec-cart-page-remove{top:5px;right:5px;width:32px;height:32px}
 .aec-cart-experience .aec-cart-page-line .aec-quantity{grid-template-columns:32px minmax(28px,38px) 32px;max-width:100%;min-height:36px}
 .aec-cart-experience .aec-cart-page-line .aec-quantity button,.aec-cart-experience .aec-cart-page-line .aec-quantity input{height:36px;min-width:0;width:100%;font-size:16px}
 .aec-cart-experience .aec-cart-page-recommend{margin-top:20px}
 .aec-cart-experience .aec-cart-bill{margin-top:0;min-width:0}
 .aec-cart-experience .aec-cart-summary-checkout{display:flex}
 .aec-cart-experience .aec-cart-grid-docked .aec-cart-summary-checkout{display:none}
 .aec-sidecart-bill .aec-cart-summary-checkout{display:flex}
 .aec-cart-experience .aec-cart-mobile-dock{max-width:100%;width:100%;overflow:visible;padding-bottom:env(safe-area-inset-bottom,0px)}
 .aec-cart-experience .aec-cart-mobile-checkout{grid-template-columns:minmax(0,1fr) minmax(0,52%);gap:8px;padding:10px 12px;align-items:center}
 .aec-cart-experience .aec-cart-mobile-checkout>div{display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 7px;min-width:0}
 .aec-cart-experience .aec-cart-mobile-checkout>div>span{flex-basis:100%}
 .aec-cart-experience .aec-cart-mobile-checkout strong{font-size:clamp(15px,4.6vw,20px);overflow-wrap:anywhere;max-width:100%}
 .aec-cart-experience .aec-cart-mobile-checkout>a{min-width:0;font-size:14px;padding:8px;text-align:center;white-space:normal;overflow-wrap:anywhere}
 .aec-cart-experience .aec-cart-mobile-checkout>a .aec-icon{flex:none}
 .aec-cart-experience .aec-cart-mobile-prepaid{white-space:normal;line-height:1.3}
 .aec-cart-experience .aec-cart-mobile-prepaid .aec-icon{flex:none}
}
@media(max-width:360px){.aec-popup-secure{font-size:10px;gap:3px}.aec-popup-header h2{font-size:16px}.aec-popup-header button{width:32px;flex-basis:32px}.aec-cart-experience .aec-cart-page-line{gap:8px}.aec-cart-experience .aec-cart-mobile-checkout>a{font-size:13px}}
@media(min-width:768px) and (max-width:900px){
 .aec-cart-experience .aec-cart-page-grid{grid-template-columns:minmax(0,1fr);gap:18px}
 .aec-cart-experience .aec-cart-page-side{position:static;top:auto;min-width:0}
}

/* 3.3.0: actual boxed cart layout; later 3.2.5 max-width:100% no longer wins. */
.aec-boxed-cart #aec-main{background:#fbfaf6}
.aec-cart-experience[data-aec-cart-page]{width:calc(100% - 48px)!important;max-width:min(var(--aec-cart-max,1180px),1180px)!important;margin:24px auto 40px!important;padding:24px 24px 32px;background:var(--aec-cart-page-bg,#fbfaf6);border:1px solid var(--aec-cart-border,#e8e2d6);border-radius:var(--aec-cart-radius,14px);box-sizing:border-box}
@media(min-width:768px) and (max-width:900px){.aec-cart-experience[data-aec-cart-page]{width:calc(100% - 40px)!important;padding:20px!important}}
@media(max-width:767px){.aec-cart-experience[data-aec-cart-page]{width:calc(100% - 20px)!important;max-width:var(--aec-cart-max,1180px)!important;margin:10px auto 18px!important;padding:12px 10px 20px;border-radius:12px}.aec-cart-experience[data-aec-cart-page].aec-cart-dock-active{padding-bottom:calc(20px + var(--aec-cart-dock-space,120px))}.aec-cart-experience .aec-cart-mobile-dock{width:100%;max-width:100vw}}
