/* GAINVO Storefront v0.10.18 — basket line controls alignment refinement */

/* Keep the price, quantity stepper and Remove action as one deliberate control row
   on phone-sized basket cards. This layer loads after the native/certification layers. */
@media (max-width:620px){
  .cart-line{
    grid-template-columns:60px minmax(0,1fr)!important;
    align-items:start!important;
  }

  .cart-line-side{
    grid-column:1 / -1!important;
    width:100%!important;
    min-width:0!important;
    margin-top:4px!important;
    padding-top:10px!important;
    border-top:1px solid var(--line)!important;
    display:grid!important;
    grid-template-columns:auto minmax(118px,1fr) auto!important;
    align-items:center!important;
    column-gap:10px!important;
    row-gap:6px!important;
  }

  .cart-line-total{
    justify-self:start!important;
    white-space:nowrap!important;
    font-size:.98rem!important;
    line-height:1.2!important;
    font-weight:900!important;
    letter-spacing:-.01em!important;
  }

  .qty-control.cart-qty{
    justify-self:center!important;
    display:grid!important;
    grid-template-columns:44px 28px 44px!important;
    align-items:center!important;
    justify-content:center!important;
    gap:4px!important;
    padding:0!important;
    min-width:124px!important;
  }

  .qty-control.cart-qty button{
    width:44px!important;
    height:44px!important;
    min-width:44px!important;
    min-height:44px!important;
    padding:0!important;
    border-radius:13px!important;
  }

  .qty-control.cart-qty strong{
    min-width:28px!important;
    text-align:center!important;
    font-size:1rem!important;
    line-height:1!important;
    font-variant-numeric:tabular-nums!important;
  }

  .cart-line-remove{
    justify-self:end!important;
    min-width:auto!important;
    min-height:44px!important;
    padding:0 2px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    white-space:nowrap!important;
    color:#b34c4c!important;
    font-size:.82rem!important;
    font-weight:800!important;
    text-decoration:none!important;
  }
}

/* Very narrow phones: preserve all three actions without collisions. */
@media (max-width:345px){
  .cart-line-side{
    grid-template-columns:auto 1fr!important;
  }
  .qty-control.cart-qty{justify-self:end!important;}
  .cart-line-remove{
    grid-column:1 / -1!important;
    justify-self:end!important;
    min-height:36px!important;
    margin-top:-2px!important;
  }
}

html[data-theme="dark"] .cart-line-side{
  border-top-color:#2a3d4a!important;
}
html[data-theme="dark"] .cart-line-remove{
  color:#f09191!important;
}
