/* Service details and the instrument-cluster estimator share the catalogue colours. */
.fs-dashboard.v2 .modal:has(.svc-detail-title, .config-footer) {
  color: #372116;
  background: #fffaf2;
  border-radius: 14px;
}
.fs-dashboard.v2 .modal:has(.svc-detail-title, .config-footer) :is(.modal-header,.modal-footer) {
  background: #f6ebda;
  border-color: #d9c8b3;
}
.fs-dashboard.v2 .modal:has(.svc-detail-title, .config-footer) .modal-body { background: #fffaf2; }
.fs-dashboard.v2 .modal:has(.svc-detail-title, .config-footer) :is(.modal-header h2,.config-footer strong) { color: #372116; }
.fs-dashboard.v2 .modal:has(.svc-detail-title, .config-footer) :is(.modal-header p,.modal-footer small,.config-footer span) { color: #614a3b; }
.fs-dashboard.v2 .modal:has(.svc-detail-title, .config-footer) .close-button {
  background: #fffaf2;
  color: #573826;
  border: 1px solid #d5c0a9;
  border-radius: 6px;
}
.fs-dashboard.v2 .modal .detail-description {
  margin: 0 0 20px;
  font-size: clamp(17px, 1.55vw, 21px);
  color: #513829;
  line-height: 1.5;
}
.fs-dashboard.v2 .modal .svc-detail-title { margin: 0 0 12px; font-size: 19px; color: #372116; }
.fs-dashboard.v2 .modal .detail-points { gap: 12px; margin: 0; }
.fs-dashboard.v2 .modal .detail-points > div {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #513829;
  font-size: 16px;
  line-height: 1.45;
}
.fs-dashboard.v2 .modal .detail-points svg { flex: none; width: 19px; height: 19px; margin-top: 2px; color: #8d4527; }
.fs-dashboard.v2 .modal:has(.svc-detail-title) .price-note {
  padding: 17px 19px;
  margin: 22px 0 0;
  border-radius: 7px;
  background: #f3e6d2;
  color: #513829;
}
.fs-dashboard.v2 .modal:has(.svc-detail-title) .price-note .card-price {
  padding: 0;
  margin: 0;
  min-height: 0;
  color: #513829;
}
.fs-dashboard.v2 .modal:has(.svc-detail-title) .price-note :is(small,p) { color: #614a3b; line-height: 1.5; }
.fs-dashboard.v2 .modal:has(.svc-detail-title) .price-note strong { color: #372116; font-size: 28px; }
.fs-dashboard.v2 :is(.svc-calculator,.modal:has(.config-footer)) .price-calculator {
  background: #fffaf2;
  border-color: #d9c8b3;
  border-radius: 9px;
}
.fs-dashboard.v2 .modal:has(.config-footer) .price-calculator { padding: 0; box-shadow: none; }
.fs-dashboard.v2 :is(.svc-calculator,.modal:has(.config-footer)) :is(.calc-heading h2,.calc-option strong,.calc-base strong,.calc-total strong,.calc-coding h3,.calc-option b) { color: #372116; }
.fs-dashboard.v2 :is(.svc-calculator,.modal:has(.config-footer)) :is(.calc-modes,.calc-icon,.calc-coding) { background: #f2e6d5; color: #583925; }
.fs-dashboard.v2 :is(.svc-calculator,.modal:has(.config-footer)) .calc-modes button { color: #624835; font-size: 15px; }
.fs-dashboard.v2 :is(.svc-calculator,.modal:has(.config-footer)) .calc-modes button.active { color: #fff8ed; background: #542f1f; }
.fs-dashboard.v2 :is(.svc-calculator,.modal:has(.config-footer)) .calc-total { background: #eed6b8; border-radius: 8px; }
.fs-dashboard.v2 :is(.svc-calculator,.modal:has(.config-footer)) :is(.kicker,.calc-base small,.calc-option small,.calc-note,.calc-total span,.calc-breakdown,.calc-coding p) { color: #624835; }
.fs-dashboard.v2 :is(.svc-calculator,.modal:has(.config-footer)) :is(.calc-base small,.calc-option small,.calc-note,.calc-breakdown) { font-size: 13px; }
.fs-dashboard.v2 :is(.svc-calculator,.modal:has(.config-footer)) .calc-option {
  background: #fffaf2;
  border: 1px solid #d9c8b3;
  border-radius: 7px;
}
.fs-dashboard.v2 :is(.svc-calculator,.modal:has(.config-footer)) .calc-option strong { font-size: 16px; }
.fs-dashboard.v2 :is(.svc-calculator,.modal:has(.config-footer)) .calc-option input { accent-color: #8d4527; }
.fs-dashboard.v2 :is(.svc-calculator,.modal:has(.config-footer)) .calc-option:has(input:checked) {
  background: #fae9d2;
  border-color: #985b38;
}
.fs-dashboard.v2 .modal:has(.config-footer) .calc-request { display: none; } /* The dialog footer provides the same action. */
@media (max-width: 600px) {
  .fs-dashboard.v2 .modal:has(.svc-detail-title, .config-footer) :is(.modal-body,.modal-header,.modal-footer) { padding: 16px; }
  .fs-dashboard.v2 .modal .config-footer { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: center; }
  .fs-dashboard.v2 .modal .config-footer > .btn:first-child { display: none; } /* Close is always in the fixed header. */
  .fs-dashboard.v2 .modal .config-footer > div { margin: 0; }
  .fs-dashboard.v2 .modal .config-footer > .btn { min-height: 49px; width: auto; }
}
