/* TL-10 box calculator. Isolation contract as wt-tools.css: every selector starts .wt-, no !important. */
.wt-bx-presets { margin-bottom: 4px; }
@media (min-width: 1000px) { .wt-bx-presets { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.wt-bx-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; border: 0; background: none;
  color: var(--wg-blue); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer;
}
.wt-bx-rooms { margin: 14px 0 0; }
.wt-bx-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 44px; }
.wt-bx-sumt { margin: 0; }
.wt-bx-room { flex-wrap: wrap; }
.wt-bx-room .wt-item-main { cursor: default; flex: 1 1 140px; }
.wt-bx-full { flex: 0 1 190px; width: auto; min-width: 150px; }
.wt-bx-add { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 12px 0 0; }
.wt-bx-add .wt-field { flex: 1 1 200px; }
.wt-bx-things-h { margin-top: 18px; }
.wt-bx-grid { display: grid; gap: 14px 18px; grid-template-columns: minmax(0, 1fr); margin: 10px 0 0; }
@media (min-width: 620px) { .wt-bx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wt-bx-num { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wt-bx-num .wt-step { align-self: flex-start; }
.wt-bx-num .wt-error:empty { display: none; }
.wt-bx-owned summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }
.wt-bx-count { margin: 0 0 12px; font-size: 14.5px; }
.wt-bx-count th, .wt-bx-count td { padding: 7px 10px; }
.wt-bx-mats { margin: 0 0 12px; padding-left: 1.1em; font-size: 14.5px; }
.wt-bx-h2 { margin-top: 18px; }
.wt-bx-rec { margin: 0 0 10px; font-weight: 600; }
.wt-bx-cards { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin: 0 0 12px; }
.wt-bx-card { padding: 12px 14px; border: 1px solid var(--wg-line); border-radius: var(--wg-radius-s); background: #fff; }
.wt-bx-card--on { border-color: var(--wg-teal); box-shadow: inset 0 0 0 1px var(--wg-teal); }
.wt-bx-card-h { margin: 0 0 6px; color: var(--wg-blue); font-size: 16.5px; font-weight: 600; line-height: 1.3; }
.wt-bx-card-h .wt-tag { margin-left: 6px; vertical-align: 2px; }
.wt-bx-lines { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.wt-bx-lines li { display: flex; justify-content: space-between; gap: 10px; align-items: center; min-height: 44px; border-bottom: 1px solid var(--wg-line); }
.wt-bx-lines a { display: inline-flex; align-items: center; min-height: 44px; }
.wt-bx-which { margin: 0; padding-left: 1.1em; font-size: 16px; }
.wt-bx-kits { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .wt-bx-kits { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.wt-bx-kit { padding: 14px 16px; border: 1px solid var(--wg-line); border-radius: var(--wg-radius-s); background: #fff; }
.wt-bx-dl { margin: 8px 0 0; font-size: 14.5px; }
.wt-bx-dl div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px solid var(--wg-line); }
.wt-bx-dl dt { font-weight: 400; color: var(--wg-mute); }
.wt-bx-dl dd { margin: 0; font-weight: 600; white-space: nowrap; }
.wt-bx-table th a { font-weight: 600; }
/* the result holds two baskets: give it room and let it scroll with the page (a sticky panel taller than the
   viewport hides its own end) */
@media (min-width: 1000px) {
  .wt-shell.wt-bx { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .wt-bx .wt-result { position: static; }
}
@media (min-width: 1300px) { .wt-bx-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wt-bx .wt-result-size { font-size: clamp(24px, 2.2vw, 30px); }
.wt-bx-tbl-note { margin: 0; }
/* ---- round 1 fixes (TL-10 r1) ---- */
/* returning visitor: notice + Open / Clear, shown before first paint (rule 13); never with the module failed */
.wt-bx-back { margin: 0 0 14px; }
.wt-bx-back-t { margin: 0 0 8px; }
.wt-bx-back .wt-actions { margin: 0; }
.wt-tool.wt-is-static .wt-bx-back { display: none; }
/* form group headings are legends (no H3 before the first H2) */
.wt-bx legend.wt-group-h { display: block; padding: 0; }
.wt-bx .wt-bx-err { margin: 0 0 10px; }
/* the count line is the spec's H2 */
.wt-bx h2.wt-result-size { margin: 0 0 8px; padding: 0; line-height: 1.15; letter-spacing: 0; text-transform: none; }
/* "See result" and "Count my boxes" land with the heading below the theme's sticky header */
.wt-bx .wt-result, .wt-bx .wt-result .wt-panel-h { scroll-margin-top: 124px; }
/* 44 px targets for the twin's table, kit-heading and link-row links */
.wt-bx-table a, .wt-bx-kit .wt-bx-card-h a, .wt-s .wt-bx-links a { display: inline-flex; align-items: center; min-height: 44px; }
/* phones: the box-size table as stacked cards, every price on screen */
@media (max-width: 619px) {
  .wt-bx-table, .wt-bx-table tbody, .wt-bx-table tr, .wt-bx-table th, .wt-bx-table td { display: block; width: 100%; }
  .wt-bx-sizes-wrap { overflow: visible; border: 0; background: none; }
  .wt-bx-table { min-width: 0; }
  .wt-bx-table caption { display: block; padding: 0 0 10px; text-align: left; }
  .wt-bx-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .wt-bx-table tbody tr { margin: 0 0 12px; padding: 4px 12px 8px; border: 1px solid var(--wg-line); border-radius: var(--wg-radius-s); background: #fff; }
  .wt-bx-table tbody th, .wt-bx-table tbody td { padding: 6px 0; border: 0; text-align: left; }
  .wt-bx-table tbody th { font-size: 17px; }
  .wt-bx-table tbody td { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--wg-line); }
  .wt-bx-table tbody td::before { content: attr(data-l); flex: 0 0 auto; color: var(--wg-mute); font-weight: 400; }
  .wt-bx-table tbody td[data-l="Best for"] { display: block; }
  .wt-bx-table tbody td[data-l="Best for"]::before { display: block; margin: 0 0 2px; }
  .wt-bx-table tbody td.wt-num { text-align: right; }
}
/* ---- UX round (UX-STANDARD, reviews/ux/tl10-ux.md) ---- */
/* The shared loader keeps html scroll-padding-top = header + 16 on tool pages, so with JS on the heading needs no
   margin of its own (it doubled the gap); the 124 px stays for the no-JS page, where the loader does not run. */
.wt-tool.wt-is-live .wt-bx .wt-result, .wt-tool.wt-is-live .wt-bx .wt-result .wt-panel-h { scroll-margin-top: 0; }
/* "From your Moving house checklist: …" banner and its links */
.wt-bx-from { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin: 0 0 14px; }
.wt-bx-from > span { flex: 1 1 100%; }
.wt-bx-from a.wt-bx-link { text-decoration: underline; }
.wt-bx .wt-bx-homeerr { margin: 6px 0 0; }
.wt-bx .wt-bx-homeerr:empty { display: none; }
.wt-bx-undo { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; margin: 10px 0 0; }
.wt-bx-undo.wt-off { display: none; }
.wt-bx-more-h { margin: 4px 0 0; }
/* result card: actions under the lead basket, the folded second way, next steps, collapsed detail */
.wt-bx-why { margin: 0 0 8px; }
.wt-bx-copyrow { margin: 12px 0 0; }
.wt-bx-copied { margin: 6px 0 0; }
.wt-bx-copied:empty { display: none; }
.wt-bx-other { min-width: 0; }
.wt-bx-other > summary, .wt-bx-more > summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; }
.wt-bx-other[open] > summary { margin-bottom: 8px; }
.wt-bx-order { margin: 4px 0 6px; }
.wt-bx-order a { display: inline-flex; align-items: center; min-height: 44px; vertical-align: middle; }
.wt-bx-next-h { margin: 18px 0 4px; color: var(--wg-blue); font-size: 17px; font-weight: 600; }
.wt-bx-next { margin: 0 0 10px; padding: 0; list-style: none; }
.wt-bx-next a { display: inline-flex; align-items: center; min-height: 44px; }
.wt-bx-more { margin: 6px 0 0; border-top: 1px solid var(--wg-line); }
.wt-bx-more p { margin: 0 0 8px; }
.wt-bx-more p a, .wt-bx-routes + p a { display: inline-flex; align-items: center; min-height: 44px; }
.wt-bx-routes { margin: 0 0 10px; font-size: 14.5px; }
.wt-bx-routes th, .wt-bx-routes td { padding: 6px 10px; }
.wt-bx-copytext { width: 100%; min-height: 160px; margin: 8px 0 0; font: 13px/1.4 monospace; }
