/* ── Purchase block in the wine modal's price field (docs/plans/wine-purchase-lots.md section 4) ─────────────────────────────────────
 * A full-width field under the meta row: it holds a line, a disclosure and a form. */
#modal-price {
  font-size: 0.95rem;
}
.purchase-top {
  margin-right: 0.4rem;
}
.purchase-fallback {
  color: var(--text-muted, #a3a3a3);
}
.purchase-history {
  margin-top: 0.4rem;
  font-size: 0.85rem;
}
.purchase-history summary {
  cursor: pointer;
  color: var(--text-muted, #a3a3a3);
}
.purchase-rows {
  list-style: none;
  margin: 0.4rem 0 0.2rem;
  padding: 0;
}
.purchase-row button {
  flex: none;
  white-space: nowrap;
}
.purchase-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.purchase-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--border, #444);
}
.purchase-form {
  display: grid;
  gap: var(--space-sm);
  margin-top: 0.5rem;
  padding: 0.6rem;
  border: 1px solid var(--border, #444);
  border-radius: var(--radius-md, 6px);
}
.purchase-form-title {
  margin: 0;
  font-weight: 600;
}
.price-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 8rem;
  gap: var(--space-sm);
}
.purchase-form .price-editor-field,
.price-editor-field {
  display: grid;
  gap: 0.2rem;
  font-size: 0.8rem;
  color: var(--text-muted, #a3a3a3);
}
.purchase-form-error,
.purchase-older-error {
  margin: 0;
  color: var(--color-error, #f44336);
}
.purchase-form-actions {
  display: flex;
  gap: var(--space-sm);
}
