/* Keep cart removal controls inside both the dropdown and cart page on phones. */
@media(max-width:767.98px){
  .poula-balanced-header .poula-masthead-utilities .poula-utility-cart #cart .dropdown-menu,
  #cart .dropdown-menu{position:absolute!important;left:auto!important;right:0!important;min-width:0!important;width:min(350px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important;box-sizing:border-box;max-height:75dvh;overflow-y:auto;overflow-x:hidden}
  #cart .dropdown-menu>li{min-width:0;width:100%;max-width:100%;white-space:normal}
  #cart .poula-mini-cart-products,#cart .poula-mini-cart-products tbody{display:block;width:100%;min-width:0;margin:0}
  #cart .poula-mini-cart-products tr{display:grid;grid-template-columns:48px minmax(0,1fr) 40px;gap:4px 7px;padding:10px 0;border-bottom:1px solid #dbe4dd;align-items:start;min-width:0}
  #cart .poula-mini-cart-products td{display:block;border:0;min-width:0;max-width:100%;padding:0;box-shadow:none;background:transparent;overflow-wrap:anywhere;white-space:normal}
  #cart .poula-mini-cart-products td:nth-child(1){grid-column:1;grid-row:1/4;width:48px!important}
  #cart .poula-mini-cart-products td:nth-child(2){grid-column:2;grid-row:1}
  #cart .poula-mini-cart-products td:nth-child(3){grid-column:2;grid-row:2;text-align:left!important;font-size:12px}
  #cart .poula-mini-cart-products td:nth-child(4){grid-column:2;grid-row:3;text-align:left!important;font-weight:650}
  #cart .poula-mini-cart-products td:nth-child(5){grid-column:3;grid-row:1/4;width:40px;text-align:right!important}
  #cart .poula-mini-cart-products img{width:48px;min-width:0;max-width:100%;height:auto}
  #cart .poula-mini-cart-products form{margin:0;max-width:100%}
  #cart .dropdown-menu .poula-mini-cart-remove{display:inline-flex!important;align-items:center;justify-content:center;width:40px!important;height:40px;min-width:40px;min-height:40px!important;padding:0!important;font-size:16px!important;border-radius:9px}
  #cart .dropdown-menu .poula-mini-cart-remove i{font-size:16px!important}
  #cart .dropdown-menu .table:not(.poula-mini-cart-products){width:100%;table-layout:fixed}
  #cart .dropdown-menu .table:not(.poula-mini-cart-products) td{overflow-wrap:anywhere;white-space:normal}
  #cart .dropdown-menu p.text-end{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;white-space:normal}
  #checkout-cart #output-cart{overflow:visible}
  #checkout-cart #output-cart>table,#checkout-cart #output-cart>table>tbody{display:block;width:100%;min-width:0}
  #checkout-cart #output-cart>table>thead{display:none}
  #checkout-cart #output-cart>table>tbody>tr{display:grid;grid-template-columns:58px minmax(0,1fr);gap:10px;padding:12px 8px;border-bottom:1px solid #d4e1d8}
  #checkout-cart #output-cart>table>tbody>tr>td{display:block;min-width:0;padding:0;border:0;overflow-wrap:anywhere}
  #checkout-cart #output-cart>table>tbody>tr>td:nth-child(1){grid-column:1;grid-row:1/3}
  #checkout-cart #output-cart>table>tbody>tr>td:nth-child(2){grid-column:2;grid-row:1}
  #checkout-cart #output-cart>table>tbody>tr>td:nth-child(3){grid-column:2;grid-row:2}
  #checkout-cart #output-cart>table>tbody>tr>td:nth-child(4){grid-column:1/-1;grid-row:3;display:flex;justify-content:space-between;gap:8px}
  #checkout-cart #output-cart>table>tbody>tr>td:nth-child(5){grid-column:1/-1;grid-row:4;display:flex;justify-content:space-between;gap:8px;font-weight:650}
  #checkout-cart #output-cart [data-label]::before{content:attr(data-label);text-align:left}
  #checkout-cart #output-cart .input-group{flex-wrap:nowrap;min-width:0;width:100%}
  #checkout-cart #output-cart .input-group .form-control{width:0;min-width:35px;padding-inline:6px}
  #checkout-cart #output-cart .input-group .btn{flex:0 0 40px;width:40px;min-width:40px;min-height:40px;padding:8px 0}
  #checkout-cart #output-cart img{max-width:100%;height:auto}
  #checkout-cart #checkout-total{display:table;table-layout:fixed;width:100%}
  #checkout-cart #checkout-total tr{display:table-row}
  #checkout-cart #checkout-total td{display:table-cell;overflow-wrap:anywhere;white-space:normal}
  #checkout-cart #checkout-total td[colspan]{width:auto}
}

@media(max-width:767.98px){
  .poula-balanced-header #cart .dropdown-menu .poula-mini-cart-remove{background:#b7463d!important;border-color:#b7463d!important;color:#fff!important;box-shadow:none!important}
  .poula-balanced-header #cart .dropdown-menu .poula-mini-cart-remove>span{font-size:25px!important;line-height:1;color:#fff!important;font-weight:400}
}
