.cart-weight {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  white-space: nowrap;
  font-size: 12px;
}

.quantity.weight-control {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  min-width: 0;
  width: 156px;
  max-width: 100%;
}

.quantity.weight-control button { min-width: 0; }
.cart-weight input {
  width: 5ch;
  min-width: 0;
  min-height: 36px;
  padding: 2px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  text-align: center;
}
.cart-weight input:focus-visible { border-color: var(--ink); }
.cart-weight input[aria-invalid="true"] { border-color: var(--red-ink); }

@media (max-width: 460px) {
  .product-card .quantity.weight-control {
    width: 100%;
    grid-template-columns: 30px minmax(0, 1fr) 30px;
  }
}

.checkout input,
.checkout select,
.checkout textarea {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.checkout { margin-top: 24px; }
.checkout fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.checkout legend { font-size: 18px; font-weight: 600; margin-bottom: 16px; }
.checkout-fields { display: grid; gap: 14px; margin-bottom: 18px; }
.checkout-fields label { display: grid; gap: 6px; font-size: 14px; }
.checkout-fields label span { display: inline; color: var(--secondary); }
.checkout-fields :is(input, select, textarea) { width: 100%; box-sizing: border-box; font-size: 16px; }
.checkout-fields textarea { resize: vertical; }
.checkout .checkout-method legend { margin-bottom: 6px; font-size: 14px; font-weight: inherit; }
.checkout-method-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.checkout-method-options label { position: relative; }
.checkout-method-options label span {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--raised);
  color: var(--ink);
  cursor: pointer;
  text-align: center;
}
.checkout-method-options input.sr-only { width: 1px; min-height: 1px; padding: 0; }
.checkout-method-options input:checked + span { border-color: var(--blue); background: var(--blue); color: #fff; }
.checkout-method-options input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.checkout-fields #pickup-address { margin: 0; font-size: 13px; }
.delivery-address:not([hidden]) { display: grid; gap: 6px; }
#address-hint { margin: 0; color: var(--secondary); font-size: 13px; line-height: 1.5; }
.address-status { margin: 0; color: var(--secondary); font-size: 13px; }
.address-status:empty { display: none; }
.address-suggestions {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--raised);
  max-height: 220px;
  overflow-y: auto;
}
.address-suggestions li {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--ink);
  cursor: pointer;
  overflow-wrap: anywhere;
}
.address-suggestions li + li { border-top: 1px solid var(--line); }
.address-suggestions li:hover,
.address-suggestions li[aria-selected="true"] { background: var(--cream); }
.checkout-payment-note { margin: 0 0 12px; color: var(--secondary); font-size: 14px; line-height: 1.5; }
.checkout-status { margin-top: 18px; padding: 12px; border-radius: 10px; background: #fff; font-size: 14px; }
.checkout-status[data-kind="error"] { color: var(--red-ink); }

.delivery-terms { padding-block: clamp(48px, 7vw, 100px); }
.delivery-terms h2 { margin-bottom: 24px; }
.delivery-terms-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.delivery-terms-grid article { padding: clamp(18px, 3vw, 28px); border: 1px solid var(--line); border-radius: 18px; background: var(--raised); }
.delivery-terms-grid h3 { margin: 0 0 10px; font-size: 20px; }
.delivery-terms-grid p { margin: 0; line-height: 1.55; }
.delivery-terms-grid p + p { margin-top: 8px; }
@media (min-width: 901px) {
  .delivery-terms-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 601px) and (max-width: 900px) {
  .delivery-terms-grid article:last-child { grid-column: 1 / -1; }
}
.delivery-terms-grid a, .checkout-terms-link { text-decoration: underline; text-underline-offset: 3px; }
.checkout-summary { margin-bottom: 14px; }
.checkout-summary .cart-total + .cart-total { margin-top: 6px; }
.checkout-summary [hidden] { display: none; }
#checkout-delivery-hint { margin: 6px 0 0; font-size: 13px; }
#checkout-delivery-hint[data-below-minimum="true"] { color: var(--red-ink); }
.cart-bottom #cart-meat-schedule { margin: 0 0 14px; font-size: 13px; line-height: 1.5; }
.cart-bottom #cart-free-delivery { margin: 6px 0 0; color: var(--ink); font-size: 13px; line-height: 1.5; }
@media (max-width: 600px) {
  .delivery-terms-grid { grid-template-columns: 1fr; }
}
