/* Keep the cart entry visible on narrow mobile screens without shifting the centered logo. */
@media (max-width: 374px) {
  header.header .header__container--middle-line {
    grid-template-columns: 80px minmax(0, 1fr) 80px;
  }
  header.header .header__heading,
  header.header .header__heading-link {
    min-width: 0;
    max-width: 100%;
  }
  header.header .header__heading-logo {
    max-width: 100%;
    height: auto;
  }
}

/* Fit quantity and remove controls inside the narrow cart drawer column. */
@media (max-width: 374px) {
  cart-drawer .cart-item__details__wrapper {
    min-width: 0;
  }
  cart-drawer .cart-item__quantity-wrapper {
    width: 100%;
    max-width: 163px;
    gap: 4px;
  }
  cart-drawer .cart-item__quantity-wrapper .quantity {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
  }
  cart-drawer .cart-item__quantity-wrapper .quantity__input {
    min-width: 0;
    width: 100%;
  }
  cart-drawer cart-remove-button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    height: 40px;
  }
}
