/* Alfa Food B2B Mobile Recovery v3.1 – additive to V2.6 + V2.7 + V2.8. */
*{box-sizing:border-box}
.af-company-top{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;flex-wrap:wrap}
.af-edit-company-btn{flex:0 0 auto;white-space:nowrap}
.af-company-card{min-width:0;overflow-wrap:anywhere}
.af-remove-cart-item{appearance:none;display:inline-flex!important;align-items:center;justify-content:center;gap:8px;min-height:44px!important;width:auto;max-width:100%;padding:10px 14px!important;margin-top:9px;border-radius:13px!important;font-size:14px!important;font-weight:800!important;background:#fff0ef!important;color:#99272b!important;border:1px solid #d9a6a7!important;line-height:1.3!important;text-decoration:none;white-space:normal}
.af-remove-cart-item:hover{background:#ffe4e2!important}
.af-remove-cart-item:focus-visible{outline:3px solid #e3a15d;outline-offset:2px}
.line-item-card,.line-item-card>div{min-width:0;max-width:100%}
.line-item-card .line-thumb img{object-fit:contain;background:#fff}
.af-company-card .product-flags{margin-top:10px}
@media(max-width:740px){
  /* A single fixed bottom navigation is sufficient; duplicate floating checkout buttons covered content. */
  .floating-cart,#af27CartDock{display:none!important}
  .af-products-grid .af-product-card{min-width:0;max-width:100%;overflow:hidden}
  .af-products-grid .af-product-content{min-width:0}
  .af-products-grid .af-product-buy{min-width:0}
  .af-products-grid .af-add-form{display:grid!important;grid-template-columns:minmax(0,1fr) 44px!important;gap:6px;min-width:0;max-width:100%}
  .af-products-grid .af-add-form .af-qty-stepper{min-width:0!important;width:100%;height:44px}
  .af-products-grid .af-qty-stepper button{flex:0 0 24px!important;width:24px!important;min-width:24px!important;padding:0!important;height:42px}
  .af-products-grid .af-qty-stepper input{width:0!important;min-width:0!important;flex:1 1 auto!important;min-height:42px!important;font-size:13px!important}
  .af-products-grid .af-add-form .af-cart-submit{display:inline-grid!important;place-items:center;width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;font-size:0!important;border-radius:13px!important;overflow:hidden;white-space:nowrap}
  .af-products-grid .af-cart-submit::before{content:'🛒+';display:block;font-size:18px;line-height:1;color:white}
  .af-products-grid .af-cart-submit:focus-visible{outline:3px solid #e4ad59;outline-offset:2px}
  .cart-mobile-list .line-item-card{grid-template-columns:68px minmax(0,1fr);gap:12px;align-items:start}
  .cart-mobile-list .line-thumb{width:68px;height:68px}
  .cart-mobile-list .line-item-card .qty-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}
  .cart-mobile-list .line-item-card .qty-row input{max-width:100%;min-width:0}
  .cart-mobile-list .af-remove-cart-item{width:100%!important;display:flex!important;margin-top:10px}
  .cart-mobile-list .line-item-card strong{overflow-wrap:anywhere}
  .cart-total-card{margin-bottom:calc(80px + env(safe-area-inset-bottom,0px))}
  .af-company-top{flex-direction:column;align-items:stretch}
  .af-edit-company-btn{width:100%}
}
@media(max-width:365px){
  /* Very narrow displays need one column, otherwise quantity + cart cannot remain usable. */
  .af-products-grid{grid-template-columns:1fr!important}
  .af-products-grid .af-add-form{grid-template-columns:minmax(0,1fr) 54px!important}
  .af-products-grid .af-add-form .af-cart-submit{width:54px!important;min-width:54px!important;max-width:54px!important}
}
