.woofood-product-modal-form:not(.woofood-product-modal-form--link) {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: auto;
  min-width: 0;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  border-top: 0;
  background: transparent;
  box-shadow: none;
}

.woofood-product-modal-actions {
  flex-shrink: 0;
  border-top: 1px solid var(--woofood-border);
  box-shadow: 0 -10px 28px color-mix(in srgb, var(--woofood-heading) 8%, transparent);
}

.woofood-product-modal-fields {
  width: 100%;
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: auto;
  align-items: stretch;
  margin-top: 14px;
}

.woofood-product-modal-field {
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: auto;
}

.woofood-product-modal-qty {
  width: 82px;
  min-width: 82px;
  flex-grow: 0;
  flex-shrink: 0;
  flex-basis: auto;
}

.woofood-product-modal-purchase-row {
  display: flex;
  align-items: flex-end;
  flex-wrap: nowrap;
  width: 100%;
  min-width: 0;
  gap: 8px;
}

.woofood-product-modal-purchase-row .woofood-product-modal-submit {
  width: auto;
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: auto;
}

.woofood-product-modal-form--link .woofood-product-modal-submit {
  width: 100%;
}

@media (max-width: 480px) {
  .woofood-product-modal-fields {
    gap: 7px;
    margin-top: 12px;
  }

  .woofood-product-modal-field {
    width: 100%;
    flex-basis: auto;
  }

  .woofood-product-modal-qty {
    width: 74px;
    min-width: 74px;
    flex-basis: auto;
  }

  .woofood-product-modal-purchase-row {
    gap: 7px;
  }
}

@media (max-width: 340px) {
  .woofood-product-modal-qty {
    width: 68px;
    min-width: 68px;
  }

  .woofood-product-modal-purchase-row {
    gap: 6px;
  }
}
