.rampa-page .rampa-fixed-service-dialog {
  width: min(560px, calc(100% - 28px));
  border-color: var(--ramp-line);
  background: var(--ramp-paper);
  color: var(--ramp-ink);
}

.rampa-fixed-service-dialog .fixed-kicker { display: none; }
.rampa-fixed-service-dialog .fixed-dialog-head {
  gap: 10px;
  padding: 14px 20px;
  align-items: center;
  border-color: var(--ramp-line);
  background: var(--ramp-paper);
}
.rampa-fixed-service-dialog .fixed-dialog-head h2 {
  color: var(--ramp-ink);
  font-size: clamp(1.32rem, 5.8vw, 1.5rem);
  font-weight: 780;
  line-height: 1.2;
}
.rampa-fixed-service-dialog .fixed-dialog-head p {
  margin-top: 4px;
  color: var(--ramp-muted);
  font-size: .76rem;
  line-height: 1.4;
}
.rampa-fixed-service-dialog .fixed-dialog-body { padding: 16px 20px; }
.rampa-fixed-service-dialog .fixed-service-batch-form,
.rampa-fixed-service-record .fixed-service-form {
  display: grid;
  min-width: 0;
  gap: 14px;
}
.rampa-fixed-service-record .fixed-service-origin { margin-top: 0; padding-top: 0; border-top: 0; }
.rampa-fixed-service-record .fixed-service-quote { margin-top: 8px; }
.rampa-fixed-service-dialog .fixed-grid { gap: 10px; margin: 0; }
.rampa-fixed-service-dialog .fixed-field label {
  margin: 0 0 4px;
  color: var(--ramp-ink);
  font-size: .82rem;
  font-weight: 700;
}
.rampa-fixed-service-dialog .fixed-field :is(input, select, textarea) {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--ramp-field-line);
  border-radius: 9px;
  background: var(--ramp-field);
  color: var(--ramp-ink);
  font-size: 1rem;
}
.rampa-fixed-service-dialog .fixed-field textarea { min-height: 72px; resize: vertical; }
.rampa-fixed-service-dialog .fixed-service-choices,
.rampa-fixed-service-dialog .fixed-section {
  padding: 0;
  margin: 0;
  border: 0;
}
.rampa-fixed-service-dialog .fixed-service-choices legend {
  margin: 0 0 3px;
  color: var(--ramp-ink);
  font-size: .9rem;
  font-weight: 780;
}
.rampa-fixed-service-dialog .fixed-help,
.rampa-fixed-service-dialog .fixed-service-author-note {
  margin: 5px 0;
  color: var(--ramp-muted);
  font-size: .76rem;
  line-height: 1.45;
}
.rampa-fixed-service-dialog [data-fs-batch-notes-help]:empty { display: none; }
.rampa-fixed-service-dialog .fixed-service-choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.rampa-fixed-service-dialog .fixed-service-form label.fixed-service-choice {
  gap: 7px;
  min-height: 44px;
  padding: 6px 8px;
  border-color: var(--ramp-line);
  background: var(--ramp-field);
  color: var(--ramp-ink);
  font-size: .79rem;
  font-weight: 670;
  line-height: 1.28;
}
.rampa-fixed-service-dialog .fixed-service-form label.fixed-service-choice:has(input:checked) {
  border-color: var(--ramp-action);
  background: var(--ramp-selected);
  color: var(--ramp-action);
}
.rampa-fixed-service-dialog .fixed-service-choice:has(input:disabled) { color: var(--ramp-muted); cursor: default; }
.rampa-fixed-service-dialog .fixed-service-choice > span { min-width: 0; }
.rampa-fixed-service-dialog .fixed-service-choice small { display: block; margin-top: 2px; color: var(--ramp-muted); font-size: .72rem; }
.rampa-fixed-service-dialog .fixed-service-choice input[type="checkbox"] { accent-color: var(--ramp-action); }
.rampa-fixed-service-more { margin-top: 6px; }
.rampa-fixed-service-more > summary {
  min-height: 44px;
  padding-block: 12px;
  color: var(--ramp-action);
  font-size: .83rem;
  font-weight: 750;
  cursor: pointer;
}
.rampa-fixed-service-more > summary:focus-visible { outline: 2px solid var(--ramp-action); outline-offset: 2px; }
.rampa-fixed-service-dialog .fixed-service-batch-other, .rampa-fixed-service-dialog .fixed-service-quote {
  padding: 10px;
  margin: 0;
  border: 1px solid var(--ramp-line);
  border-radius: 9px;
  background: var(--ramp-soft);
}
.rampa-fixed-service-dialog .fixed-service-quote.is-pending { color: var(--ramp-muted); }
.rampa-fixed-service-dialog .fixed-service-quote.is-error { border-color: #d9ada4; background: #f5e5df; color: #71332e; }
.rampa-fixed-service-dialog .fixed-service-batch-summary > ul > li { border-color: var(--ramp-line); }
.rampa-fixed-service-dialog .fixed-service-batch-summary .fixed-total { margin-top: 12px; }
.rampa-fixed-service-dialog .fixed-dialog-actions {
  gap: 8px;
  padding: 14px 20px;
  border-color: var(--ramp-line);
  background: var(--ramp-paper);
}
.rampa-fixed-service-dialog .fixed-dialog-actions .action {
  border-color: var(--ramp-action);
  background: var(--ramp-action);
  color: #fff;
}
.rampa-fixed-service-dialog .fixed-dialog-actions .secondary { border-color: var(--ramp-line); color: var(--ramp-ink); }

@media (max-width: 760px) {
  .rampa-page .rampa-fixed-service-dialog { width: 100%; max-width: 100%; border: 0; }
  .rampa-fixed-service-dialog .fixed-dialog-head { padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
  .rampa-fixed-service-dialog .fixed-grid { grid-template-columns: minmax(0, 1fr); }
  .rampa-fixed-service-dialog .fixed-dialog-actions {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }
  .rampa-fixed-service-dialog .fixed-dialog-actions button { min-width: 0; padding-inline: 11px; white-space: normal; }
}

@media (max-width: 360px) {
  .rampa-fixed-service-dialog :is(.fixed-dialog-head, .fixed-dialog-body, .fixed-dialog-actions) { padding-inline: 14px; }
}
