.itemRows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.itemRow {
  display: grid;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: var(--radius-sm);
}

.itemRowHeader {
  display: grid;
  gap: 8px;
  padding: 0 12px 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.removeCell {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.compactInput {
  width: 100%;
  padding: var(--field-padding-y) var(--field-padding-x);
  font-size: var(--field-font-size);
  line-height: 1.4;
  font-family: inherit;
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  min-height: var(--field-height);
}

.compactInput:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb) / 0.12);
}

.itemRow select.compactInput,
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: var(--select-padding-end);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--select-arrow-offset) center;
  background-size: var(--select-arrow-size);
  cursor: pointer;
}

.addRowBtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  margin-bottom: 8px;
}

.addRowBtn:hover {
  background: rgba(var(--primary-rgb) / 0.1);
}

.modalWide {
  max-width: 920px;
}

.modalCompact {
  max-width: 420px;
}

.discountHeader,
.discountRow {
  display: grid;
  grid-template-columns: minmax(140px, 1.4fr) minmax(120px, 1fr) minmax(160px, 1fr);
  gap: 10px;
  align-items: center;
}

.discountHeaderFestival,
.discountRowFestival {
  display: grid;
  grid-template-columns: 1fr 112px;
  gap: 10px;
  align-items: center;
}

.discountHeaderFestival {
  padding: 0 4px 8px;
  margin-bottom: 2px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
}

.discountHeaderFestival span:last-child {
  text-align: right;
}

.discountRowFestival {
  padding: 8px 4px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.discountRowFestival:last-child {
  border-bottom: none;
}

.discountHeader {
  padding: 0 12px 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.discountRows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.discountRowsCompact {
  gap: 0;
  margin-bottom: 16px;
}

.discountRow {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: var(--radius-sm);
}

.discountLabel {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.discountPricePreview {
  min-width: 0;
}
