/* The same readable, touch-friendly quantity picker in the dish and cart. */
.quantity-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px;
  min-height: 56px;
  border: 1px solid #e8d7bd;
  border-radius: 18px;
  background: #fffaf2;
  overflow: visible;
  flex-shrink: 0;
}
.quantity-control button,
.dialog-footer .quantity-control button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  flex-shrink: 0;
  border: 1px solid #dfc4a8;
  border-radius: 13px;
  background: #fff;
  color: #a92325;
  transition: transform 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}
.quantity-control button.quantity-plus {
  border-color: var(--isy-red);
  background: var(--isy-red);
  color: #fff;
  box-shadow: 0 3px 7px #a9232524;
}
.quantity-control button svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.5;
  pointer-events: none;
}
.quantity-control .quantity-readout,
.dialog-footer .quantity-control .quantity-readout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 39px;
  line-height: 1;
  text-align: center;
  color: var(--isy-ink);
  font-variant-numeric: tabular-nums;
}
.quantity-readout strong {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}
.quantity-readout small {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 600;
  color: #76654f;
  line-height: 1;
}
.quantity-control button:disabled {
  opacity: 1;
  background: #f1ede6;
  border-color: #e8e1d6;
  color: #a69b8d;
  box-shadow: none;
  cursor: not-allowed;
}
.quantity-control button:active:not(:disabled) {
  transform: scale(.92);
  box-shadow: none;
}
.quantity-control button:focus-visible {
  outline: 3px solid #a92325;
  outline-offset: 3px;
}
.cart-row-actions { gap: 16px; }
.cart-row-actions .remove-line {
  min-height: 44px;
  padding: 8px 0 8px 8px;
  font-size: 12px;
  color: #876951;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.item-order-footer,
.ingredient-form > .item-order-footer {
  gap: 20px;
  padding: 16px 24px max(16px, env(safe-area-inset-bottom));
  background: #fffdf8;
  border-top: 1px solid #e7dac4;
  box-shadow: 0 -5px 20px #47321e08;
}
.item-quantity-field { flex-shrink: 0; }
.quantity-label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 650;
  color: #71614b;
}
.item-order-footer .quantity-control button {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}
.item-order-footer .quantity-readout strong { font-size: 24px; }
.item-order-footer > .button,
.ingredient-form .item-order-footer > .button {
  align-self: flex-end;
  min-width: 0;
  min-height: 60px;
  padding: 15px 20px;
  gap: 14px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 750;
}
.item-order-footer #item-total {
  font-size: 17px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
@media (hover: hover) {
  .quantity-control button:hover:not(:disabled) { background: #fff0e6; }
  .quantity-control button.quantity-plus:hover:not(:disabled) { background: #911c20; }
}
@media (max-width: 660px) {
  .item-order-footer,
  .ingredient-form > .item-order-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 16px max(14px, env(safe-area-inset-bottom));
  }
  .item-quantity-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }
  .quantity-label {
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
    color: #5d4e3b;
  }
  .item-order-footer > .button,
  .ingredient-form .item-order-footer > .button {
    flex: none;
    width: 100%;
    min-height: 54px;
    align-self: stretch;
    padding: 14px 18px;
    font-size: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .quantity-control button { transition: none; }
  .quantity-control button:active:not(:disabled) { transform: none; }
}
