/* Scoped offline quote preview, shared by every page. */
html.ht-quote-dialog-open { overflow: hidden; }
.ht-quote-dialog {
  box-sizing: border-box;
  width: min(720px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid #dce3e8;
  border-radius: 18px;
  background: #fff;
  color: #20323c;
  box-shadow: 0 24px 80px #152b3c40;
  overscroll-behavior: contain;
}
.ht-quote-dialog:not([open]) { display: none; }
.ht-quote-dialog::backdrop { background: #12232db3; }
.ht-quote-dialog-content { padding: 28px; }
.ht-quote-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ht-quote-dialog-heading h2 { margin: 0; font-size: 28px; line-height: 1.2; }
.ht-quote-dialog-close {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #d5dfe4;
  border-radius: 50%;
  background: #fff;
  color: #20323c;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.ht-quote-dialog-notice { padding: 14px 16px; border-radius: 10px; background: #f7f1e4; font-size: 14px; line-height: 1.6; }
.ht-quote-dialog-notice strong { display: block; }
.ht-quote-dialog a { overflow-wrap: anywhere; }
.ht-quote-dialog-selection { margin: 24px 0; padding-bottom: 20px; border-bottom: 1px solid #e3e9ec; }
.ht-quote-dialog-selection h3 { margin: 0 0 12px; font-size: 18px; }
.ht-quote-dialog-items { margin: 12px 0; padding-left: 24px; }
.ht-quote-dialog-items > li { margin-bottom: 14px; padding-left: 4px; overflow-wrap: anywhere; }
.ht-quote-dialog-items p { margin: 4px 0; }
.ht-quote-dialog-items ul { padding-left: 18px; font-size: 14px; }
.ht-quote-dialog-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.ht-quote-dialog-fields label { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 600; min-width: 0; }
.ht-quote-dialog-fields label span { display: inline; font-weight: 400; color: #586b76; }
.ht-quote-dialog-fields input, .ht-quote-dialog-fields textarea {
  box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; border: 1px solid #bac8d0;
  border-radius: 8px; padding: 10px 12px; background: white; color: #20323c; font: inherit; font-size: 16px; font-weight: 400;
}
.ht-quote-dialog-fields textarea { resize: vertical; }
.ht-quote-dialog-needs { grid-column: 1 / -1; }
.ht-quote-dialog-attachment { grid-column: 1 / -1; min-width: 0; padding-top: 4px; }
.ht-quote-dialog-attachment .ht-quote-dialog-help { margin: 6px 0 10px; }
.ht-quote-dialog-attachment input[type="file"] { font-size: 14px; padding: 8px; }
.ht-quote-dialog-attachment input::file-selector-button { padding: 8px 10px; margin-right: 10px; border: 0; border-radius: 5px; background: #eaf1f6; color: #153c60; font: inherit; cursor: pointer; }
.ht-quote-dialog-file-selected { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; padding: 10px 12px; background: #f1f6f9; border-radius: 8px; }
.ht-quote-dialog-file-selected[hidden] { display: none; }
.ht-quote-dialog-file-selected span { font-size: 14px; overflow-wrap: anywhere; min-width: 0; }
.ht-quote-dialog-file-remove { min-height: 44px; padding: 7px 10px; border: 1px solid #b9c9d4; border-radius: 6px; background: white; color: #164b75; font: inherit; font-size: 13px; cursor: pointer; }
.ht-quote-dialog-file-error { color: #a02727; font-size: 14px; line-height: 1.5; margin: 10px 0 0; }
.ht-quote-dialog-intro { font-size: 15px; line-height: 1.6; margin: 20px 0; }
.header-actions { display: flex; flex-direction: column; align-items: stretch; flex-shrink: 0; gap: 8px; }
.header-main .header-actions .header-cta { margin: 0; }
.header-actions .header-help { background: white; border: 1px solid #adc5d8; color: var(--navy, #153c60); font-size: 13px; padding: 10px 14px; white-space: nowrap; cursor: pointer; font-family: inherit; }
.header-actions .header-help:hover { background: #edf4f9; border-color: #44799e; }
@media (max-width: 980px) {
  .header-main .header-actions { grid-row: 2; grid-column: 2; }
}
@media (max-width: 640px) {
  .header-main .header-actions { grid-row: 3; grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .header-main .header-actions .header-cta, .header-main .header-actions .header-help { grid-column: auto; grid-row: auto; min-width: 0; margin: 0; padding: 11px 7px; font-size: 12px; }
}
.ht-quote-dialog-help { margin: 12px 0; color: #526773; font-size: 13px; line-height: 1.6; }
.ht-quote-dialog-send:disabled { cursor: not-allowed; opacity: .55; }
.ht-quote-dialog :focus-visible { outline: 3px solid #326e9a; outline-offset: 3px; }
.quote-unit-value { align-self: center; color: #526773; font-size: 14px; white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .ht-quote-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); border-radius: 14px; }
  .ht-quote-dialog-content { padding: 18px; }
  .ht-quote-dialog-heading h2 { font-size: 24px; }
  .ht-quote-dialog-fields { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ht-quote-dialog-send { width: 100%; }
}
