/* /tools/heavy-haul-quote: the optional company editor under the result, and the Email Quote modal. Page tokens only.
   The modal and email-field rules are the same as the Port Drayage Quote's (drayage-result.css, drayageForm.ts), so both tools look alike.
   None of this is part of the PDF. */

/* COMPANY EDITOR: a closed disclosure under the share buttons. */
.hhb { margin: 16px 0 0; border-top: 1px solid var(--border); }
.hhb-sum { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--ink); cursor: pointer; }
.hhb-sum:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hhb-opt { font-weight: 400; color: var(--muted); }
.hhb-body { padding: 0 0 16px; }
.hhb-note { margin: 0 0 12px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.hhb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hhb-f { display: grid; gap: 4px; min-width: 0; font-size: 12px; font-weight: 600; line-height: 1.4; color: var(--muted); }
.hhb-wide { grid-column: 1 / -1; }
.hhb-f input { box-sizing: border-box; width: 100%; min-height: 44px; padding: 8px 12px; font: inherit; font-size: 15px; font-weight: 400; color: var(--ink); background: var(--surface); border: 1px solid var(--hh-field-border, var(--border)); border-radius: var(--radius); }
.hhb-f input:focus { outline: none; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.hhb-logorow { margin: 12px 0 0; }
.hhb-logo { display: flex; align-items: center; gap: 12px; }
.hhb-logo-img { display: block; max-width: 150px; max-height: 56px; object-fit: contain; }
.hhb-add { position: relative; display: grid; place-items: center; width: 128px; height: 64px; font-size: 12px; font-weight: 700; color: var(--muted); border: 2px dashed var(--border-strong); border-radius: var(--radius); cursor: pointer; }
.hhb-add:hover, .hhb-add:focus-within { border-color: var(--accent); color: var(--accent); }
.hhb-file { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.hhb-link { min-height: 44px; padding: 0; font: inherit; font-size: 13px; color: var(--accent); background: none; border: 0; text-decoration: underline; cursor: pointer; }
.hhb-msg { margin: 8px 0 0; font-size: 12px; line-height: 1.5; color: var(--error); }
.hhb-msg:empty { display: none; }
@media (max-width: 480px) { .hhb-grid { grid-template-columns: minmax(0, 1fr); } }
@media print { .hhb { display: none; } }

/* EMAIL QUOTE MODAL: centred, over a dimmed page. */
body.dq-modal-open { overflow: hidden; } body.dq-modal-open .qf-mc-fab { display: none; } #dq-email-send[aria-busy="true"] { opacity: 0.6; cursor: progress; }
.dq-modal[hidden] { display: none; }
.dq-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; }
.dq-modal-back { position: absolute; inset: 0; background: rgb(15 23 42 / 0.55); }
.dq-modal-box { position: relative; box-sizing: border-box; width: min(92vw, 520px); max-height: calc(100vh - 32px); overflow: auto; padding: 24px; background: var(--surface); color: var(--ink); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.dq-modal-x { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; color: var(--muted); background: transparent; border: 0; border-radius: var(--radius-btn); cursor: pointer; }
.dq-modal-x:hover { color: var(--ink); background: var(--accent-soft); }
.dq-modal-x:focus-visible, .dq-modal-close:focus-visible, .dq-modal-btns .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dq-modal-t { margin: 0 48px 8px 0; font-size: 20px; font-weight: 700; line-height: 1.4; }
.dq-modal-p { margin: 0 0 16px; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.dq-modal-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0 0; }
.dq-modal-btns .btn { min-height: 48px; padding: 8px 12px; font-size: 14px; font-weight: 700; line-height: 1.4; cursor: pointer; }
.dq-modal-foot { display: flex; justify-content: flex-end; margin: 16px 0 0; }
.dq-modal-close { min-height: 44px; padding: 0 12px; font: inherit; font-size: 14px; font-weight: 600; color: var(--accent); background: transparent; border: 0; text-decoration: underline; cursor: pointer; }
@media (max-width: 480px) { .dq-modal-btns { grid-template-columns: minmax(0, 1fr); } .dq-modal-box { padding: 16px; } }

.dq-email-field { position: relative; display: block; min-width: 0; }
.dq-email-field input { display: block; width: 100%; min-height: 48px; box-sizing: border-box; padding: 16px 12px 0; font: inherit; font-size: 15px; color: var(--ink); background: var(--surface); border: 1px solid var(--hh-field-border, var(--border)); border-radius: var(--radius); }
.dq-email-field input:focus { outline: none; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.dq-email-field input[aria-invalid="true"], .dq-email-field input[aria-invalid="true"]:focus { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.dq-email-lab { position: absolute; left: 12px; top: 4px; font-size: 11px; line-height: 14px; font-weight: 600; color: var(--muted); pointer-events: none; transition: none; }
.dq-email-field input:placeholder-shown:not(:focus) + .dq-email-lab { top: 16px; font-size: 14px; line-height: 20px; font-weight: 500; }
.dq-hp { position: absolute; inset-inline-start: -100vw; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dq-email-help { margin: 8px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); text-align: left; }
.dq-email-status { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-soft); text-align: left; }
.dq-email-status:empty { display: none; }
.dq-email-status.is-ok { color: var(--success); }
.dq-email-status.is-error { color: var(--error); }
