.product-pricing-editor {
  min-width: 0;
  margin-top: 18px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--line, #d7d0c3);
  border-radius: 12px;
  background: var(--panel2, #241b2c);
}

.product-pricing-editor h3 { margin: 0 0 6px; }

.product-pricing-states {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.product-pricing-state {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  color: #294555;
  background: #dfeaf0;
}

.product-pricing-state.is-effective { color: #1d6735; background: #dcefe1; }
.product-pricing-state.is-pending { color: #765410; background: #f5ead0; }

.product-price-rule,
.store-holiday-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  padding: 12px 0;
  border-top: 1px solid var(--line, #d7d0c3);
}

.product-price-rule > *,
.store-holiday-row > * { min-width: 0; }
.product-price-rule:first-child,
.store-holiday-row:first-child { border-top: 0; }

.product-price-rule .product-pricing-active,
.store-holiday-row .product-pricing-active {
  min-height: 42px;
  align-items: center;
}

.product-price-rule .product-pricing-remove,
.store-holiday-row .product-pricing-remove { justify-self: end; }

.product-pricing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.product-pricing-message {
  min-height: 1.4em;
  margin: 10px 0 0;
  font-size: .86rem;
}

.product-pricing-message.is-ok { color: #7ee2ae; }
.product-pricing-message.is-error { color: #ff9ea5; }
.product-pricing-message.is-pending { color: #e3c36a; }
.product-pricing-history-note { margin: 12px 0 0; }
.product-pricing-empty { padding: 12px 0; border-top: 1px solid var(--line, #d7d0c3); }

.store-holidays-dialog {
  width: min(820px, calc(100vw - 24px));
  max-width: 820px;
  max-height: calc(100vh - 24px);
  padding: 0;
  overflow: hidden;
}

.store-holidays-dialog form {
  max-height: calc(100vh - 24px);
  padding: 20px;
  overflow-x: hidden;
  overflow-y: auto;
}

@media (max-width: 760px) {
  .product-price-rule,
  .store-holiday-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-price-rule .product-pricing-remove,
  .store-holiday-row .product-pricing-remove { justify-self: stretch; }
}

@media (max-width: 520px) {
  .product-price-rule,
  .store-holiday-row { grid-template-columns: minmax(0, 1fr); }
  .product-pricing-actions > .btn { width: 100%; }
  .store-holidays-dialog form { padding: 14px; }
}
