/* v166: intrinsic-size containment, wrapping, touch targets and stacked mobile layouts. */
.km-guest-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.km-guest-form fieldset{min-width:0;border:1px solid #c3cfda;border-radius:12px;padding:16px}
.km-guest-form textarea{min-height:100px}
.km-guest-payment{display:flex!important;flex-direction:row!important;align-items:flex-start;gap:12px;padding:16px;border:1px solid #b8c8d6;border-radius:12px;margin:12px 0}
.km-guest-payment input{width:20px!important;flex:0 0 20px}
.km-guest-payment small{display:block;margin-top:6px}
[hidden]{display:none!important}
@media(max-width:900px){
 body main,body .store-header,body .store-footer{min-width:0}
 main *, .store-header *, .store-footer *{box-sizing:border-box}
 main :where(section,article,aside,form,fieldset,div,nav),.store-header>*{min-width:0}
 main :where(h1,h2,h3,h4,p,a,label,dt,dd,small,strong,b,summary),.store-header a,.store-footer a{overflow-wrap:anywhere}
 main :where(h1,h2,h3,h4,p,label,small,strong,b){height:auto;max-height:none}
 main :where(input,select,textarea){max-width:100%;min-width:0;font-size:16px}
 main :where(button,.store-button){white-space:normal;line-height:1.4;min-height:44px;max-width:100%}
 main img{max-width:100%;height:auto}
 .store-breadcrumb,.store-section-title,.store-utility,.store-selection-nav,.store-footer-bottom{flex-wrap:wrap;gap:12px}
 .store-section-title>*{min-width:0}
 .store-section-title h1,.km-checkout-title h1{line-height:1.2}
 .store-header{flex-wrap:wrap;gap:12px}
 .store-brand-logo{max-width:min(200px,60vw);object-fit:contain}
 .store-header-search{min-width:0;width:100%;flex:1 1 100%;order:3}
 .store-header-search input{min-width:0;width:100%}
 .store-utility>span:first-child{flex-basis:100%}
 .km-header-account{display:flex;gap:10px;flex-wrap:wrap}
 .km-header-account a{padding:10px 14px}
 .store-page-banner{grid-template-columns:minmax(0,1fr)}
 .store-page-banner-copy{padding:24px}
 .store-page-banner-copy h1{font-size:clamp(26px,6vw,40px);line-height:1.18}
 .store-page-banner-art{max-height:220px}
 .store-product-card,.store-product{min-width:0}
 .store-product-card h2,.store-product h2{line-height:1.35;white-space:normal}
 .store-cart-layout,.km-checkout-shell{grid-template-columns:minmax(0,1fr)!important}
 .store-cart-summary,.km-checkout-summary{position:static!important;width:100%;max-width:100%}
 .km-checkout-title,.km-panel-heading{flex-wrap:wrap;gap:12px}
 .km-checkout-main{min-width:0}
 .km-checkout-panel{padding:20px}
 .km-checkout-panel label{line-height:1.5}
 .km-checkout-confirm,.km-member-checkbox{display:flex;align-items:flex-start;gap:10px;line-height:1.5}
 .km-checkout-confirm input,.km-member-checkbox input{flex:0 0 20px;width:20px;height:20px;margin-top:2px}
 .km-payment-method>label{display:flex;flex-wrap:wrap;gap:10px}
 .km-payment-method>label>span:last-of-type{flex:1 1 140px}
 .km-payment-method>label>strong{flex:1 1 100%;text-align:left;padding-left:0}
 .km-summary-products article{grid-template-columns:64px minmax(0,1fr)}
 .km-summary-products article>div{min-width:0}
 .km-checkout-summary dl>div{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
 .km-checkout-summary dd{margin:0}
 .km-member-layout,.km-account-layout,.km-member-shell{grid-template-columns:minmax(0,1fr)!important}
 .km-member-sidebar{position:static!important}
 .store-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .store-mobile-nav a,.store-mobile-nav button{min-width:0;line-height:1.3}
}
@media(max-width:600px){
 .km-guest-grid{grid-template-columns:minmax(0,1fr)}
 .store-cart-row{grid-template-columns:72px minmax(0,1fr)!important;gap:12px;align-items:start}
 .store-cart-row>div{min-width:0}
 .store-cart-row>strong,.store-cart-row>form{grid-column:1/-1}
 .store-cart-row .store-cart-photo{width:72px;max-width:72px}
 .store-cart-update{display:flex;align-items:end;flex-wrap:wrap;gap:10px}
 .store-cart-update label{flex:1 1 120px}
 .store-cart-update input{width:100%}
 .store-cart-progress,.km-checkout-steps{display:flex;flex-wrap:wrap;gap:12px;line-height:1.5}
 .store-cart-progress>span,.km-checkout-steps>span{flex:1 1 90px;white-space:normal}
 .store-footer-grid{grid-template-columns:minmax(0,1fr)}
 .store-detail-dock{flex-wrap:wrap;gap:8px}
 .store-detail-dock>span{flex:1 1 90px}
 .store-detail-dock .store-button{flex:1 1 130px}
 .store-detail-dock small{white-space:normal!important;max-width:100%!important}
 .km-checkout-panel{padding:16px}
 .km-checkout-summary{padding:18px}
}
@media print{.store-mobile-nav,.store-detail-dock{display:none!important}}
@media(max-width:900px){
 body .km-customer-shell,body .km-member-shell-premium,body .store-detail,body .store-contact-layout,body .store-content-layout,body .store-help-layout,body .km-bank-notice-layout{grid-template-columns:minmax(0,1fr)!important}
 body .km-customer-sidebar,body .km-member-shell-premium .km-member-intro{position:static}
 body .km-customer-stats,body .km-customer-quick-grid,body .km-member-account-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body .km-customer-sidebar nav{max-width:100%}
 body .store-detail-info{padding:20px}
 body .store-detail h1{font-size:clamp(25px,6vw,36px);line-height:1.25}
 body .store-detail-art{min-height:0}
 body .store-detail-art img{max-height:360px;object-fit:contain}
 body .km-account-toolbar,body .km-customer-page-heading,body .store-collection-heading{flex-wrap:wrap;gap:12px}
 body .store-compare-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
 body .store-compare-table{width:max-content;min-width:100%}
 body .store-compare-table th,body .store-compare-table td{max-width:220px;overflow-wrap:anywhere}
 body .km-approved-hero,body .km-editorial-hero,body .km-shop-hero{grid-template-columns:minmax(0,1fr);height:auto}
 body .km-approved-hero-copy{padding:24px}
 body .km-approved-hero h1,body .km-editorial-hero h1{font-size:clamp(28px,7vw,44px);line-height:1.2}
 body .km-hero-actions{flex-wrap:wrap;gap:12px}
}
@media(max-width:480px){
 body .km-customer-stats,body .km-customer-quick-grid,body .km-member-account-grid,body .km-category-directory-grid,body .km-approved-category-grid{grid-template-columns:minmax(0,1fr)}
 body .km-member-fields,body .store-filter,body .km-customer-filters{grid-template-columns:minmax(0,1fr)}
 body .km-member-shell-premium .km-member-card,body .km-customer-card{padding:16px}
}
@media(max-width:760px){
 body .store-product h3{height:auto;max-height:none;min-height:0;line-height:1.5;white-space:normal;-webkit-line-clamp:unset}
 body .store-product-bottom{flex-wrap:wrap;align-items:flex-start;gap:10px}
 body .store-product-bottom b{font-size:clamp(16px,4.5vw,21px);line-height:1.4}
 body .store-product-bottom a{min-height:44px;display:inline-flex;align-items:center;white-space:normal}
 body .km-products-list .store-product-body{grid-template-columns:minmax(0,1fr)}
 body .km-products-list .store-product-bottom{grid-column:1;grid-row:auto}
 body .km-customer-content table{display:block;max-width:100%;overflow-x:auto}
 body .km-customer-timeline{flex-wrap:wrap;gap:12px}
 body .km-customer-message>header{flex-wrap:wrap;gap:8px}
 body .store-detail-art{position:static}
}
