.quantity-control {
  display: inline-grid;
  grid-template-columns: 34px 48px 34px auto;
  align-items: center;
  margin-top: 12px;
  border: 1px solid var(--line);
}
.quantity-control button,
.quantity-control input,
.quantity-control output {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  text-align: center;
  padding: 0;
}
.quantity-control output {
  width: 44px;
  border-inline: 1px solid var(--line);
  line-height: 34px;
}
.quantity-control input[type="hidden"] { display: none; }
.quantity-control button:hover,
.quantity-control button:focus-visible { background: #eee8de; outline: none; }
.quantity-control.htmx-request { opacity: .65; pointer-events: none; }
.product-quantity { flex: 0 0 auto; grid-template-columns: 38px 52px 38px; margin: 0; }
.product-quantity button { width: 38px; height: 46px; }
.product-quantity output { width: 52px; line-height: 35px; }
.quantity-unit { display: block; margin-top: 7px; color: #77756c; }
.htmx-indicator {
  display: none;
  width: 13px;
  height: 13px;
  margin-left: 9px;
  border: 1px solid #aaa;
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: secure-spin .65s linear infinite;
}
.htmx-request .htmx-indicator { display: block; }
.cart-inline-error {
  margin-bottom: 18px;
  padding: 11px 14px;
  border-left: 3px solid #9b332c;
  background: #f8e8e4;
  color: #7d2d27;
  font-size: 12px;
}
.required-key {
  margin: 0 0 10px;
  color: #716f68;
  font-size: 11px;
}
.required-key span,
.required-mark { color: #9b332c; font-weight: 700; margin-left: 3px; }
.optional-mark {
  color: #8a877f;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .06em;
  margin-left: 6px;
  text-transform: uppercase;
}
.payment-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.payment-title-row .online-payment-title { margin-bottom: 5px; }
.payment-title-row > div > p { margin: 0; color: #68665f; font-size: 12px; }
.payment-help { position: relative; flex: 0 0 auto; }
.payment-help-button {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  padding: 0;
  border: 1px solid #817d73;
  border-radius: 50%;
  background: transparent;
  color: #4c4942;
  font-weight: 700;
}
.payment-help-button:hover,
.payment-help-button:focus-visible { background: var(--ink); color: #fff; outline: none; }
.payment-tooltip {
  position: absolute;
  z-index: 10;
  top: 34px;
  right: 0;
  width: min(310px, 75vw);
  padding: 13px 15px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: .18s ease;
}
.payment-help:hover .payment-tooltip,
.payment-help:focus-within .payment-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
@media (max-width: 600px) {
  .payment-tooltip { right: -4px; }
}
