.storeflow-quick-order {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  color: rgb(var(--color-foreground, 33, 33, 33));
}

.storeflow-quick-order-proxy-page {
  box-sizing: border-box;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px 56px;
}

.storeflow-quick-order__fallback-link {
  color: inherit;
  font-weight: 650;
  text-underline-offset: 0.18em;
}

.storeflow-quick-order[hidden] {
  display: none !important;
}

.storeflow-quick-order__heading {
  margin: 0 0 8px;
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.storeflow-quick-order__description {
  max-width: 680px;
  margin: 0 0 20px;
  color: rgba(var(--color-foreground, 33, 33, 33), 0.72);
  line-height: 1.5;
}

.storeflow-quick-order__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid rgba(var(--color-foreground, 33, 33, 33), 0.14);
  border-radius: 6px;
  background: rgba(var(--color-foreground, 33, 33, 33), 0.025);
}

.storeflow-quick-order__field {
  flex: 0 1 200px;
  min-width: 0;
}

.storeflow-quick-order__field--search {
  flex: 1 1 340px;
  max-width: 520px;
}

.storeflow-quick-order__field[hidden] {
  display: none;
}

.storeflow-quick-order__label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.875rem;
  font-weight: 600;
}

.storeflow-quick-order__search-input,
.storeflow-quick-order__select,
.storeflow-quick-order__quantity {
  box-sizing: border-box;
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(var(--color-foreground, 33, 33, 33), 0.28);
  border-radius: 4px;
  background: rgb(var(--color-background, 255, 255, 255));
  color: inherit;
  font: inherit;
}

.storeflow-quick-order__search-input {
  padding: 9px 12px;
}

.storeflow-quick-order__select {
  min-width: 180px;
  padding: 9px 34px 9px 12px;
}

.storeflow-quick-order__quantity {
  max-width: 92px;
  padding: 8px;
  text-align: center;
}

.storeflow-quick-order__inventory-warning {
  margin-top: 5px;
  color: #8e1f1f;
  font-size: 0.8125rem;
  line-height: 1.35;
}

.storeflow-quick-order__search-input:focus,
.storeflow-quick-order__select:focus,
.storeflow-quick-order__quantity:focus {
  outline: 2px solid rgba(var(--color-foreground, 33, 33, 33), 0.65);
  outline-offset: 2px;
}

.storeflow-quick-order__results-status {
  margin: 0 0 9px;
  color: rgba(var(--color-foreground, 33, 33, 33), 0.72);
  font-size: 0.875rem;
  line-height: 1.4;
}

.storeflow-quick-order__table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(var(--color-foreground, 33, 33, 33), 0.16);
  border-radius: 6px;
}

.storeflow-quick-order__table {
  width: 100%;
  border-collapse: collapse;
  background: rgb(var(--color-background, 255, 255, 255));
}

.storeflow-quick-order__table th,
.storeflow-quick-order__table td {
  padding: 12px;
  border-bottom: 1px solid rgba(var(--color-foreground, 33, 33, 33), 0.12);
  text-align: left;
  vertical-align: middle;
}

.storeflow-quick-order__table th {
  background: rgba(var(--color-foreground, 33, 33, 33), 0.045);
  font-size: 0.8125rem;
  font-weight: 700;
}

.storeflow-quick-order__table tbody tr:last-child td {
  border-bottom: 0;
}

.storeflow-quick-order__row[aria-disabled="true"] {
  opacity: 0.58;
}

.storeflow-quick-order__image {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 4px;
  object-fit: cover;
}

.storeflow-quick-order__image-preview {
  position: fixed;
  z-index: 2147483000;
  box-sizing: border-box;
  max-width: min(280px, calc(100vw - 24px));
  max-height: min(280px, calc(100vh - 24px));
  border: 1px solid rgba(var(--color-foreground, 33, 33, 33), 0.2);
  border-radius: 6px;
  background: rgb(var(--color-background, 255, 255, 255));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  object-fit: contain;
  pointer-events: none;
}

.storeflow-quick-order__image-preview[hidden] {
  display: none;
}

.storeflow-quick-order__product-link {
  color: inherit;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.storeflow-quick-order__product-details {
  min-width: 0;
}

.storeflow-quick-order__row-access-status {
  max-width: 34rem;
  margin-top: 5px;
  padding-left: 8px;
  border-left: 2px solid rgba(var(--color-foreground, 33, 33, 33), 0.38);
  color: rgba(var(--color-foreground, 33, 33, 33), 0.78);
  font-size: 0.8125rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.storeflow-quick-order__row-access-primary,
.storeflow-quick-order__row-access-detail {
  display: block;
}

.storeflow-quick-order__row-access-primary {
  color: rgb(var(--color-foreground, 33, 33, 33));
  font-weight: 650;
}

.storeflow-quick-order__row-access-detail {
  margin-top: 2px;
}

.storeflow-quick-order__variant,
.storeflow-quick-order__availability,
.storeflow-quick-order__result-status {
  font-size: 0.875rem;
  line-height: 1.4;
}

.storeflow-quick-order__selection {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.storeflow-quick-order__variant,
.storeflow-quick-order__availability,
.storeflow-quick-order__result-status {
  margin-top: 3px;
  color: rgba(var(--color-foreground, 33, 33, 33), 0.72);
}

.storeflow-quick-order__price {
  white-space: nowrap;
}

.storeflow-quick-order__price--restricted {
  max-width: 12rem;
  white-space: normal;
  font-size: 0.875rem;
  line-height: 1.35;
}

.storeflow-quick-order__actions,
.storeflow-quick-order__pagination {
  display: flex;
  align-items: center;
  gap: 10px;
}

.storeflow-quick-order__actions {
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid rgba(var(--color-foreground, 33, 33, 33), 0.14);
  border-radius: 6px;
  background: rgba(var(--color-foreground, 33, 33, 33), 0.025);
}

.storeflow-quick-order__pagination {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.storeflow-quick-order__pagination-info {
  color: rgba(var(--color-foreground, 33, 33, 33), 0.72);
  font-size: 0.9375rem;
  line-height: 1.4;
  white-space: nowrap;
}

@media (hover: none), (pointer: coarse) {
  .storeflow-quick-order__image-preview {
    display: none;
  }
}

.storeflow-quick-order__field--page-size {
  flex: 0 0 auto;
}

.storeflow-quick-order__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid rgb(var(--color-button, 18, 18, 18));
  border-radius: 4px;
  background: rgb(var(--color-button, 18, 18, 18));
  color: rgb(var(--color-button-text, 255, 255, 255));
  font: inherit;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
}

.storeflow-quick-order__button--secondary {
  background: transparent;
  color: rgb(var(--color-foreground, 33, 33, 33));
}

.storeflow-quick-order__button:disabled,
.storeflow-quick-order__quantity:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.storeflow-quick-order__message {
  box-sizing: border-box;
  width: 100%;
  margin: 12px 0;
  padding: 11px 13px;
  border: 1px solid rgba(var(--color-foreground, 33, 33, 33), 0.18);
  border-radius: 6px;
  background: rgba(var(--color-foreground, 33, 33, 33), 0.045);
  color: inherit;
  line-height: 1.45;
}

.storeflow-quick-order__message--error {
  border-color: rgba(180, 35, 35, 0.38);
  background: rgba(180, 35, 35, 0.07);
  color: #8e1f1f;
}

.storeflow-quick-order__message--success {
  border-color: rgba(27, 130, 72, 0.38);
  background: rgba(27, 130, 72, 0.08);
  color: #17683c;
}

.storeflow-quick-order__message-action {
  display: inline-block;
  margin-left: 12px;
  color: inherit;
  font-weight: 650;
}

.storeflow-quick-order__message:empty {
  display: none;
}

.storeflow-quick-order__access-container:empty {
  display: none;
}

.storeflow-quick-order__access-message {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 12px 0 16px;
}

.storeflow-quick-order__access-copy {
  flex: 1 1 280px;
  min-width: 0;
}

.storeflow-quick-order__access-text,
.storeflow-quick-order__access-detail {
  margin: 0;
}

.storeflow-quick-order__access-text {
  white-space: pre-line;
}

.storeflow-quick-order__access-detail {
  margin-top: 6px;
}

.storeflow-quick-order__access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 0 0 auto;
  margin-top: 0;
}

.storeflow-quick-order__access-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid currentColor;
  border-radius: 4px;
  color: inherit;
  font: inherit;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
}

.storeflow-quick-order__access-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.storeflow-quick-order__empty {
  padding: 28px 16px;
  text-align: center;
}

.storeflow-quick-order__empty-title {
  margin: 0;
  font-weight: 650;
}

.storeflow-quick-order__empty-help {
  margin: 6px 0 0;
  color: rgba(var(--color-foreground, 33, 33, 33), 0.68);
  font-size: 0.875rem;
}

.storeflow-quick-order__visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media screen and (max-width: 749px) {
  .storeflow-quick-order-proxy-page {
    padding: 24px 16px 40px;
  }

  .storeflow-quick-order__access-message {
    align-items: flex-start;
    flex-direction: column;
  }

  .storeflow-quick-order__access-actions {
    width: 100%;
  }

  .storeflow-quick-order__toolbar,
  .storeflow-quick-order__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .storeflow-quick-order__field,
  .storeflow-quick-order__field--search,
  .storeflow-quick-order__field--page-size {
    width: 100%;
    max-width: none;
    flex-basis: auto;
  }

  .storeflow-quick-order__select {
    width: 100%;
  }

  .storeflow-quick-order__table-wrap {
    overflow: visible;
    border: 0;
  }

  .storeflow-quick-order__table,
  .storeflow-quick-order__table tbody,
  .storeflow-quick-order__table tr,
  .storeflow-quick-order__table td {
    display: block;
    width: 100%;
  }

  .storeflow-quick-order__table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .storeflow-quick-order__row {
    box-sizing: border-box;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid rgba(var(--color-foreground, 33, 33, 33), 0.16);
    border-radius: 6px;
    background: rgb(var(--color-background, 255, 255, 255));
  }

  .storeflow-quick-order__table td {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(90px, 0.38fr) minmax(0, 1fr);
    gap: 12px;
    padding: 8px 0;
    border: 0;
  }

  .storeflow-quick-order__table td::before {
    content: attr(data-label);
    font-size: 0.8125rem;
    font-weight: 700;
  }

  .storeflow-quick-order__table td[data-label="Image"] {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .storeflow-quick-order__quantity {
    max-width: 120px;
  }

  .storeflow-quick-order__row-access-status,
  .storeflow-quick-order__price--restricted {
    max-width: none;
  }

  .storeflow-quick-order__pagination {
    justify-content: space-between;
    width: 100%;
  }

  .storeflow-quick-order__pagination-info {
    flex: 1 0 100%;
    text-align: center;
  }

  .storeflow-quick-order__pagination .storeflow-quick-order__button {
    flex: 1 1 0;
  }
}
