/* Regional Livestock Bridge — partner availability and volume pricing V82.2 */
.qp-panel {
  margin-top: 12px;
  padding: 13px;
  border: 1px solid #cbdcf7;
  border-radius: 12px;
  background: #f5f8ff;
}

.qp-panel[hidden] {
  display: none !important;
}

.qp-panel-title {
  margin: 0 0 4px;
  color: #0033a0;
  font-size: 13.5px;
  font-weight: 900;
  line-height: 1.45;
}

.qp-panel-intro {
  margin: 0 0 12px;
  color: #526174;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.55;
}

.qp-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.qp-field {
  min-width: 0;
}

.qp-field > label {
  display: block;
  min-height: 0;
  margin: 0 0 6px;
  color: #24324a;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
}

.qp-field input[type="number"] {
  min-height: 44px;
  padding: 9px 11px;
  font-size: 14px;
}

.qp-unlimited {
  grid-column: 1 / -1;
  min-height: 43px !important;
  margin: 0 !important;
  padding: 9px 11px;
  display: flex !important;
  align-items: center;
  gap: 8px;
  border: 1px solid #bad8c8;
  border-radius: 10px;
  background: #eef9f4;
  color: #075d3a !important;
  cursor: pointer;
}

.qp-unlimited input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  accent-color: #075d3a;
}

.qp-unlimited.is-checked {
  border-color: #075d3a;
  box-shadow: 0 0 0 2px rgba(7, 93, 58, .09);
}

.qp-add-tier {
  width: 100%;
  min-height: 42px;
  margin-top: 11px;
  padding: 8px 12px;
  border: 1.5px dashed #7d9ed8;
  border-radius: 10px;
  background: #fff;
  color: #0033a0;
  font: inherit;
  font-size: 12.5px;
  font-weight: 900;
  cursor: pointer;
}

.qp-add-tier:hover,
.qp-add-tier:focus-visible {
  border-style: solid;
  background: #edf3ff;
  outline: 3px solid rgba(0, 51, 160, .1);
  outline-offset: 2px;
}

.qp-tier-list {
  display: grid;
  gap: 9px;
  margin-top: 10px;
}

.qp-tier-row {
  position: relative;
  padding: 10px;
  border: 1px solid #d9e4f4;
  border-radius: 10px;
  background: #fff;
}

.qp-tier-heading {
  margin: 0 38px 8px 0;
  color: #0033a0;
  font-size: 12px;
  font-weight: 900;
}

html[dir="ltr"] .qp-tier-heading {
  margin: 0 0 8px 38px;
}

.qp-tier-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.qp-tier-price-wrap {
  position: relative;
}

.qp-tier-price-wrap input {
  padding-inline-end: 58px !important;
}

.qp-currency-code {
  position: absolute;
  inset-inline-end: 9px;
  top: 50%;
  transform: translateY(-50%);
  padding-inline-start: 7px;
  border-inline-start: 1px solid #dbe4f0;
  color: #0033a0;
  font-size: 11px;
  font-weight: 900;
  pointer-events: none;
}

.qp-remove-tier {
  position: absolute;
  inset-inline-end: 8px;
  top: 7px;
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff1f2;
  color: #991b1b;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.qp-error {
  display: none;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid #fecdd3;
  border-radius: 9px;
  background: #fff1f2;
  color: #991b1b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}

.qp-error.is-visible {
  display: block;
}

.qp-field.is-invalid input,
.qp-tier-row.is-invalid input {
  border-color: #d72c3f;
  box-shadow: 0 0 0 3px rgba(215, 44, 63, .09);
}

.qp-volume-note {
  margin: 9px 0 0;
  color: #64748b;
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.5;
}

@media (max-width: 520px) {
  .qp-fields,
  .qp-tier-fields {
    grid-template-columns: 1fr;
  }

  .qp-panel {
    padding: 11px;
  }
}
