dialog.site-price-dialog {
  box-sizing: border-box;
  width: min(35rem, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  overflow: auto;
  padding: 0;
  border: 1px solid #cfdde8;
  border-radius: 16px;
  background: #fff;
  color: #17364c;
  box-shadow: 0 20px 60px #0c294655;
  font: 15px/1.5 Inter, system-ui, sans-serif;
}

dialog.site-price-dialog::backdrop { background: #102c4280 }

.site-price-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 22px;
  border-bottom: 1px solid #d9e6ef;
  background: #f4f8fb;
}

.site-price-header h2 { margin: 0; font: 700 18px/1.25 Inter, system-ui, sans-serif }
.site-price-header button {
  flex: 0 0 auto;
  width: 38px;
  min-height: 38px;
  padding: 0;
  border: 1px solid #afc5d5;
  border-radius: 8px;
  background: #fff;
  color: #24485f;
  font-size: 22px;
}

[data-site-price-editor] { padding: 20px 22px 22px }
.site-price-offer { margin: 0 0 14px; font-size: 1.1rem; line-height: 1.4; overflow-wrap: anywhere }
.site-price-reference {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 11px 14px;
  border: 1px solid #d8e6ed;
  border-radius: 9px;
  background: #f1f7fa;
}
.site-price-reference span, .site-price-note { color: #466278 }
.site-price-reference strong { color: #173c58; font-variant-numeric: tabular-nums }
.site-price-note { margin: 13px 0 15px }
.site-price-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px; margin-bottom: 16px }
.site-price-fields label { display: grid; gap: 5px; margin: 0; font-weight: 650 }
.site-price-fields :is(input, select) {
  width: 100%;
  min-width: 0;
  height: 43px;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid #a8bccc;
  border-radius: 7px;
  background-color: white;
  color: #18364d;
  font: inherit;
  font-weight: 450;
}
.site-price-fields label:has(> select) { position: relative }
.site-price-fields label:has(> select)::after {
  content: "";
  position: absolute;
  inset-inline-end: 16px;
  bottom: 19px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #345b78;
  border-bottom: 2px solid #345b78;
  transform: rotate(45deg);
  pointer-events: none;
}
.site-price-fields select {
  appearance: none;
  background-image: none;
  padding-inline-end: 40px;
}
.site-price-form button.primary {
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid #174f73;
  border-radius: 7px;
  background: #174f73;
  color: #fff;
  font: inherit;
  font-weight: 650;
}
.site-price-restore { margin-top: 14px }
.site-price-restore button { white-space: normal }
.site-price-dialog > [role="status"] { margin: 0; padding: 0 22px 16px; color: #7c3028 }
.site-price-dialog > [role="status"]:empty { display: none }

@media (max-width: 425px) {
  .site-price-header, [data-site-price-editor] { padding-inline: 16px }
  .site-price-fields { grid-template-columns: 1fr }
  .site-price-form button { width: 100% }
}
