/* Alfa Food B2B v4.4.2 | Quantity clarity and Safari safe layout */
.af442-cart-status, .af442-card-in-cart, .af442-detail-in-cart {
  display:flex;align-items:center;gap:7px;color:#205840;background:#eef8f1;
  border:1px solid #cce6d5;border-radius:11px;font-size:12px;font-weight:700;
}
.af442-cart-status{margin-top:9px;padding:7px 9px;max-width:max-content;line-height:1.4}
.af442-cart-status strong,.af442-card-in-cart strong,.af442-detail-in-cart strong{font-size:inherit;font-weight:900;color:#0f5138}
.af442-status-dot{display:inline-grid;place-items:center;flex:0 0 auto;width:20px;height:20px;border-radius:50%;background:#d7eee0;color:#145940;font-size:12px;font-weight:900}
.af442-unit{font-weight:600;color:#53715e}
.af442-card-in-cart{padding:7px 10px;margin-top:4px;line-height:1.35}
.af442-detail-in-cart{padding:12px 13px;gap:11px;flex-wrap:wrap;margin:14px 0 13px;line-height:1.4}
.af442-detail-in-cart .af442-status-dot{width:28px;height:28px;font-size:16px}
.af442-detail-in-cart > div{flex:1 1 170px;display:grid;gap:3px}
.af442-detail-in-cart strong{font-size:14px}
.af442-detail-in-cart small{font-size:12px;color:#5c7764}
.af442-detail-in-cart a{color:#14593c;text-decoration:underline;font-weight:900;white-space:nowrap;font-size:12px}
.af442-card-in-cart[hidden],.af442-draft-qty[hidden]{display:none!important}
/* Rebuild the control as real flex items. Prevent Safari from shrinking the number field to zero. */
.afc-checkout .afc-item-controls .afc-quantity{
  display:flex!important;align-items:stretch;width:100%;min-width:0;max-width:none;
  height:50px;margin-top:7px;overflow:hidden;background:#fff;
  border:1.5px solid #bfdcc7;border-radius:14px;
}
.afc-checkout .afc-item-controls .afc-quantity > button{
  display:grid;place-items:center;flex:0 0 42px;width:42px;min-width:42px;
  min-height:48px!important;height:48px;padding:0!important;border:0!important;
  border-radius:0!important;background:#e9f3ea;color:#105038;font-size:23px;font-weight:900;
  -webkit-appearance:none;appearance:none;
}
.afc-checkout .afc-item-controls .afc-quantity > input[data-afc-qty]{
  display:block!important;flex:1 1 68px;width:68px!important;min-width:50px!important;
  max-width:none!important;min-height:48px!important;height:48px!important;
  margin:0!important;padding:0 2px!important;border:0!important;
  border-left:1px solid #e0ebe3!important;border-right:1px solid #e0ebe3!important;
  border-radius:0!important;background:#fff!important;
  color:#103d2d!important;-webkit-text-fill-color:#103d2d!important;
  opacity:1!important;visibility:visible!important;
  font:900 20px/48px Arial,Helvetica,sans-serif!important;text-align:center!important;
  -webkit-appearance:textfield!important;-moz-appearance:textfield!important;appearance:textfield!important;
}
.afc-checkout .afc-item-controls .afc-quantity > input[data-afc-qty]::-webkit-inner-spin-button,
.afc-checkout .afc-item-controls .afc-quantity > input[data-afc-qty]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.afc-checkout .afc-item-controls .afc-quantity > input[data-afc-qty]:focus-visible{outline:2px solid #e4ac47!important;outline-offset:-3px}
.afc-checkout .afc-item-controls{min-width:0}
.af442-draft-qty{padding:6px 8px;margin-top:7px;border-radius:9px;border:1px solid #f2d597;background:#fff7e6;color:#815817;font-size:11px;line-height:1.3;font-weight:800}
.afc-checkout .afc-count{font-size:12px;line-height:1.35;text-align:center}
@media(max-width:740px){
  /* Third column makes the quantity field occupy 2 columns, while name occupies 2 too. */
  .afc-checkout .afc-item{
    grid-template-columns:72px minmax(0,1fr) minmax(0,1fr)!important;
    grid-template-areas:"thumb main main" "price price price" "controls controls total" "remove remove remove"!important;
    column-gap:12px;row-gap:12px;align-items:center;
  }
  .afc-checkout .afc-item-controls{width:min(188px,100%);max-width:100%;align-self:start}
  .afc-checkout .afc-item-total{min-width:0;align-self:center}
  .afc-checkout .afc-item-total strong{font-size:16px}
  .af442-cart-status{margin-top:8px;max-width:100%}
}
@media(max-width:380px){
  .afc-checkout .afc-item{grid-template-columns:64px minmax(0,1fr) minmax(0,1fr)!important;column-gap:9px;padding:13px}
  .afc-checkout .afc-thumb{width:64px;height:72px}
  .afc-checkout .afc-item-controls{width:min(176px,100%)}
  .afc-checkout .afc-item-controls .afc-quantity > button{flex-basis:38px;width:38px;min-width:38px}
  .afc-checkout .afc-item-total strong{font-size:14px}
}
