.gpc #gpModal .modal__c:has(.quick-order) {
  max-width: 440px;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  overscroll-behavior: contain;
}

.gpc #gpModal .quick-order [hidden] { display: none; }
.gpc #gpModal .quick-order__product { display: flex; align-items: center; gap: 11px; }
.gpc #gpModal .quick-order__photo {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.gpc #gpModal .quick-order__photo img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 4px;
  object-fit: contain;
}
.gpc #gpModal .quick-order__photo--bps img { transform: scale(1.55); }
.gpc #gpModal .quick-order__description { min-width: 0; }
.gpc #gpModal .quick-order .pname { margin: 0; overflow-wrap: anywhere; }
.gpc #gpModal .quick-order__variant { margin-top: 4px; color: var(--muted); font-size: 13px; }
.gpc #gpModal .quick-order__variant b { color: var(--navy); }
.gpc #gpModal .quick-order__mix { margin-top: 6px; }
.gpc #gpModal .quick-order__quantity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}
.gpc #gpModal .quick-order__quantity label { color: var(--navy); font-weight: 700; }
.gpc #gpModal .quick-order__hint { color: var(--muted); font-size: 12px; line-height: 1.35; }
.gpc #gpModal .quick-order__quantity .qty { flex: none; }
.gpc #gpModal .quick-order__quantity .qty input {
  width: 43px;
  height: 42px;
  margin: 0;
  padding: 0 1px;
  border: 0 solid var(--line);
  border-inline-width: 1px;
  border-radius: 0;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.gpc #gpModal .quick-order__quantity .qty button { flex: none; width: 42px; height: 42px; padding: 0; }
.gpc #gpModal .quick-order__quantity .qty button[aria-disabled="true"] { color: var(--muted); background: #fff; cursor: default; }
.gpc #gpModal .quick-order__quantity .qty :focus-visible { outline: 2px solid var(--blue); outline-offset: -3px; }
.gpc #gpModal .quick-order .quick-order__total { align-items: center; margin-top: 10px; padding-bottom: 0; }
.gpc #gpModal .quick-order__price { min-width: 0; text-align: right; }
.gpc #gpModal .quick-order__amount { color: var(--blue); font-size: 20px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.gpc #gpModal .quick-order__amount--request { font-size: 15px; }

@media (max-width: 640px) {
  .gpc #gpModal .modal__c:has(.quick-order) {
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
    padding: 24px 18px;
  }
}
@media (max-width: 350px) {
  .gpc #gpModal .modal__c:has(.quick-order) { padding-inline: 14px; }
  .gpc #gpModal .quick-order__photo { flex-basis: 52px; width: 52px; height: 52px; }
}
