/* Retail-only responsive hardening. No non-Retail module is affected. */
html[data-maustore-module="retail"],html[data-maustore-module="retail"] body{width:100%;max-width:100%;overflow-x:hidden;-webkit-text-size-adjust:100%;text-size-adjust:100%}
html[data-maustore-module="retail"] *,html[data-maustore-module="retail"] *::before,html[data-maustore-module="retail"] *::after{box-sizing:border-box}
html[data-maustore-module="retail"] main,html[data-maustore-module="retail"] section,html[data-maustore-module="retail"] article,html[data-maustore-module="retail"] form,html[data-maustore-module="retail"] fieldset,html[data-maustore-module="retail"] .page,html[data-maustore-module="retail"] .app,html[data-maustore-module="retail"] .panel,html[data-maustore-module="retail"] .card,html[data-maustore-module="retail"] .toolbar,html[data-maustore-module="retail"] .metrics,html[data-maustore-module="retail"] .modal-card{min-width:0;max-width:100%}
html[data-maustore-module="retail"] img,html[data-maustore-module="retail"] svg,html[data-maustore-module="retail"] video,html[data-maustore-module="retail"] canvas{max-width:100%}
html[data-maustore-module="retail"] input,html[data-maustore-module="retail"] select,html[data-maustore-module="retail"] textarea,html[data-maustore-module="retail"] button{max-width:100%;min-width:0}
html[data-maustore-module="retail"] button,html[data-maustore-module="retail"] a{overflow-wrap:anywhere}
html[data-maustore-module="retail"] .retail-discount-presets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:7px 0 4px}
html[data-maustore-module="retail"] .retail-discount-preset{min-width:0;height:32px;border:1px solid #dce3f4;border-radius:9px;background:#fff;color:#46516e;font-size:9px;font-weight:900;white-space:nowrap}
html[data-maustore-module="retail"] .retail-discount-preset.active{background:#102b8f;border-color:#102b8f;color:#fff;box-shadow:0 5px 13px rgba(16,43,143,.16)}
html[data-maustore-module="retail"] .retail-discount-preset:disabled{opacity:.38;cursor:not-allowed;box-shadow:none}
html[data-maustore-module="retail"] .retail-origin-input,html[data-maustore-module="retail"] .retail-customer-phone{width:100%;height:36px;border:1px solid #dfe4ef;border-radius:10px;background:#fff;padding:0 10px;color:#18213b;font-size:10px;font-weight:750;outline:none}
html[data-maustore-module="retail"] .retail-origin-input:focus,html[data-maustore-module="retail"] .retail-customer-phone:focus{border-color:#7894e3;box-shadow:0 0 0 3px rgba(36,81,214,.07)}
html[data-maustore-module="retail"] .retail-phone-shell.retail-phone-full .retail-phone-prefix{display:none!important}
html[data-maustore-module="retail"] .retail-phone-shell.retail-phone-full .retail-customer-phone{width:100%!important;max-width:none!important}
html[data-maustore-module="retail"] .product-card.unpriced{border-color:#f0d6a5;background:#fffdf8}
html[data-maustore-module="retail"] .product-card.unpriced .price strong{color:#a86600;font-size:10px;line-height:1.15;white-space:normal}
html[data-maustore-module="retail"] .product-card.unpriced:disabled{cursor:not-allowed;opacity:.78;transform:none;box-shadow:none}
html[data-maustore-module="retail"] .retail-price-warning{display:inline-flex;align-items:center;min-height:22px;padding:4px 7px;border-radius:8px;background:#fff4df;color:#9a5d00;font-size:8px;font-weight:900}
html[data-maustore-module="retail"] .maustore-responsive-table-scroll{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain}
html[data-maustore-module="retail"] table{max-width:none}
html[data-maustore-module="retail"] .modal{max-width:100vw;max-height:100dvh;overflow:hidden}
html[data-maustore-module="retail"] .modal-card,html[data-maustore-module="retail"] [role="dialog"]>div{max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px);overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
html[data-maustore-module="retail"] .retail-origin-suggestions{position:absolute;z-index:120;width:100%;max-height:min(240px,45dvh);overflow:auto;border:1px solid #dfe4ef;border-radius:11px;background:#fff;box-shadow:0 14px 32px rgba(16,43,143,.16);padding:5px;margin-top:4px}
html[data-maustore-module="retail"] .retail-origin-suggestions button{display:block;width:100%;min-height:36px;border:0;border-radius:8px;background:#fff;text-align:left;padding:7px 9px;color:#29334f;font-size:10px;font-weight:800}
html[data-maustore-module="retail"] .retail-origin-suggestions button:hover{background:#eef3ff;color:#102b8f}
html[data-maustore-module="retail"] #checkoutBtn{position:sticky;bottom:max(0px,env(safe-area-inset-bottom));z-index:12;box-shadow:0 -9px 20px rgba(255,255,255,.96),0 10px 25px rgba(235,58,145,.18)}
html[data-maustore-module="retail"] .app>.cart .cart-items{min-height:0;overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
html[data-maustore-module="retail"] .app>.cart .cart-summary{min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding-bottom:max(16px,env(safe-area-inset-bottom))}
@media(max-width:900px){html[data-maustore-module="retail"] .retail-discount-presets{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:599px){
 html[data-maustore-module="retail"] .retail-discount-presets{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
 html[data-maustore-module="retail"] .retail-discount-preset{height:34px;font-size:8.5px}
 html[data-maustore-module="retail"] .app>.cart.retail-cart-open .retail-origin-input,html[data-maustore-module="retail"] .app>.cart.retail-cart-open .retail-customer-phone{font-size:16px!important;min-height:42px}
 html[data-maustore-module="retail"] .app>.cart.retail-cart-open .retail-discount-preset{min-height:38px}
}
@media(max-width:359px){html[data-maustore-module="retail"] .retail-discount-presets{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:980px) and (max-height:600px) and (pointer:coarse){
 html[data-maustore-module="retail"] body{overflow:auto!important}
 html[data-maustore-module="retail"] .app{height:auto!important;min-height:calc(100dvh - 70px)!important;overflow:visible!important}
 html[data-maustore-module="retail"] .app>.cart.retail-cart-open{top:max(6px,env(safe-area-inset-top))!important;bottom:max(6px,env(safe-area-inset-bottom))!important;left:max(8px,env(safe-area-inset-left))!important;right:max(8px,env(safe-area-inset-right))!important;max-height:none!important;height:auto!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
 html[data-maustore-module="retail"] .app>.cart.retail-cart-open .cart-head{flex:0 0 auto!important}
 html[data-maustore-module="retail"] .app>.cart.retail-cart-open .cart-items{flex:0 1 34dvh!important;max-height:34dvh!important;overflow:auto!important}
 html[data-maustore-module="retail"] .app>.cart.retail-cart-open .cart-summary{flex:1 1 auto!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;padding-bottom:max(18px,env(safe-area-inset-bottom))!important}
 html[data-maustore-module="retail"] .app>.cart.retail-cart-open #checkoutBtn{position:sticky!important;bottom:0!important;z-index:20!important;min-height:46px!important;margin-bottom:max(2px,env(safe-area-inset-bottom))!important}
}
@media(min-width:768px){
 html[data-maustore-module="retail"] .app>.cart{max-height:calc(100dvh - 98px);overflow:hidden}
 html[data-maustore-module="retail"] .app>.cart .cart-items{flex:1 1 auto}
 html[data-maustore-module="retail"] .app>.cart .cart-summary{flex:0 1 auto;max-height:66dvh}
}
