/* Port Drayage Quote: the cargo block of an open top or a flat rack (In gauge / Out of gauge + cargo size). Tokens only; linked after drayage-ssl-map.css. */
/* THE POPOVER: absolutely positioned over the form (inside the card), so opening it never moves anything; drayage-oog.js sets left / top / width and flips it up near the bottom of the viewport. */
#hh-form .hh-cargo-input-card { position: relative; }
.dq-oog { position: absolute; left: 0; top: 0; z-index: 40; display: grid; gap: 8px; box-sizing: border-box; max-width: calc(100vw - 16px); padding: 12px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow-md); }
.dq-oog[hidden], .dq-oog-hint[hidden], .dq-oog-out[hidden], .dq-oog-help[hidden] { display: none; }
.dq-oog-out { display: grid; gap: 8px; }
/* THE TRIGGER: a cell of the selected group's tile grid (the free cell beside the tiles), one compact row: what is chosen, then a chevron. */
.dq-oog-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; min-height: 48px; box-sizing: border-box; padding: 8px 12px; font: inherit; font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--ink); text-align: left; background: var(--surface); border: 1px solid var(--hh-field-border, var(--border)); border-radius: var(--radius); cursor: pointer; }
.dq-oog-btn[hidden] { display: none; }
.dq-oog-btn:hover { border-color: var(--border-strong); }
.dq-oog-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dq-oog-btn[aria-expanded="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.dq-oog-btn-t { min-width: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; text-overflow: ellipsis; overflow-wrap: anywhere; }
.dq-oog-chev { flex: none; color: var(--muted); transition: transform 0.2s ease; }
.dq-oog-btn[aria-expanded="true"] .dq-oog-chev { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .dq-oog-chev { transition: none; } }
.dq-oog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dq-oog-help, .dq-oog-hint { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-soft); text-align: left; }
.dq-oog-help strong { font-weight: 600; color: var(--ink); }
.dq-oog-hint { padding: 8px 12px; color: var(--ink); background: var(--accent-soft); border-radius: var(--radius); font-weight: 600; }
.dq-oog .dq-tf { background: var(--surface); }

/* ── Container icons: the owner's drawings in a fixed 120x60 frame (no layout shift). A light plate behind them in dark mode (never inverted). ── */
.dq-art { display: flex; align-items: flex-end; justify-content: center; box-sizing: border-box; padding-bottom: 8px; }
.dq-art img { display: block; height: auto; max-width: 100%; object-fit: fill; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dq-art img { background: var(--dq-ssl-chip); border-radius: 6px; } }
:root[data-theme="dark"] .dq-art img { background: var(--dq-ssl-chip); border-radius: 6px; }

/* ── Add-on tiles with a stepper (Extra stops): the title keeps its line; the stepper drops to its own row under it while the tile is on. ── */
.dq-addons .dq-tile.is-on:has(> .dq-step) { flex-wrap: wrap; padding-bottom: 8px; }
.dq-addons .dq-tile.is-on:has(> .dq-step) > .dq-tile-b { flex: 1 1 calc(100% - 56px); }
.dq-addons .dq-tile.is-on > .dq-step { order: 4; margin-left: 12px; }
.dq-tile-t { overflow-wrap: break-word; }
