/* WonderFil Thread Quiz */
.wtq-root {
  --wtq-accent: #ff6b00;
  --wtq-accent-ink: #ffffff;
  --wtq-accent-text: color-mix(in srgb, var(--wtq-accent) 72%, #000000);
  --wtq-accent-soft: color-mix(in srgb, var(--wtq-accent) 8%, #ffffff);
  --wtq-accent-line: color-mix(in srgb, var(--wtq-accent) 35%, #ffffff);
  --wtq-ink: #1f1f1f;
  --wtq-muted: #5f5f5f;
  --wtq-bg: #ffffff;
  --wtq-surface: #f6f5f3;
  --wtq-line: #e6e3df;
  --wtq-radius: 18px;
  --wtq-shadow: 0 18px 48px rgba(24, 16, 8, .18), 0 2px 8px rgba(24, 16, 8, .08);
  --wtq-font: inherit;
  font-family: var(--wtq-font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--wtq-ink);
}
.wtq-root *, .wtq-root *::before, .wtq-root *::after { box-sizing: border-box; }

/* Neutralise theme styling on our controls */
.wtq-root button, .wtq-root a.wtq-card, .wtq-root a.wtq-set, .wtq-root a.wtq-track-btn, .wtq-root a.wtq-chip-shop, .wtq-root input {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}
.wtq-root input { cursor: text; }
.wtq-root [hidden] { display: none !important; }
.wtq-root button:focus-visible, .wtq-root a:focus-visible {
  outline: 3px solid var(--wtq-accent-line);
  outline-offset: 2px;
}
.wtq-root p { margin: 0; }
.wtq-root img { max-width: none; border: 0; box-shadow: none; }

/* ---------- Panel ---------- */
.wtq-panel {
  display: flex;
  flex-direction: column;
  background: var(--wtq-bg);
  border-radius: var(--wtq-radius);
  overflow: hidden;
}
.wtq-inline .wtq-panel {
  border: 1px solid var(--wtq-line);
  height: 680px;
  max-height: 88vh;
  max-width: 720px;
  margin: 0 auto;
}

.wtq-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px 14px 14px;
  background: var(--wtq-accent);
  color: var(--wtq-accent-ink);
  flex: none;
}
.wtq-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--wtq-accent);
  flex: none;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}
.wtq-root .wtq-logo { width: 30px; height: 30px; object-fit: contain; display: block; margin: 0; }
.wtq-titles { flex: 1; min-width: 0; }
.wtq-title { font-weight: 700; font-size: 17px; line-height: 1.2; }
.wtq-subtitle { font-size: 13px; opacity: .92; line-height: 1.3; }
.wtq-root .wtq-icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: inherit;
  flex: none;
}
.wtq-root .wtq-icon-btn:hover { background: rgba(255, 255, 255, .2); }

.wtq-body {
  position: relative;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 14px 16px;
  background: var(--wtq-surface);
  scroll-behavior: smooth;
}
.wtq-log { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Messages ---------- */
.wtq-row { display: flex; }
.wtq-bot { justify-content: flex-start; }
.wtq-user { justify-content: flex-end; }
.wtq-bubble {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 18px;
  word-wrap: break-word;
}
.wtq-bot .wtq-bubble {
  background: var(--wtq-bg);
  border: 1px solid var(--wtq-line);
  border-bottom-left-radius: 6px;
}
.wtq-user .wtq-bubble {
  background: var(--wtq-accent);
  color: var(--wtq-accent-ink);
  border-bottom-right-radius: 6px;
  font-weight: 700;
}
.wtq-q { font-weight: 600; }

.wtq-answer .wtq-bubble { max-width: 100%; width: 100%; padding: 14px 14px 12px; }
.wtq-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--wtq-accent-text);
  margin-bottom: 6px;
}
.wtq-root .wtq-intro { font-weight: 600; margin-bottom: 10px; }
.wtq-block + .wtq-block {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--wtq-line);
}

/* ---------- Product tiles ---------- */
.wtq-cards { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.wtq-cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wtq-tile {
  border: 1px solid var(--wtq-accent-line);
  border-radius: 14px;
  background: var(--wtq-bg);
  overflow: hidden;
}
.wtq-root a.wtq-card, .wtq-root .wtq-card-static {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px 9px 9px;
  background: var(--wtq-accent-soft);
  color: var(--wtq-ink);
  text-decoration: none;
  transition: background .12s ease;
}
.wtq-root a.wtq-card:hover { background: color-mix(in srgb, var(--wtq-accent) 15%, #ffffff); }
.wtq-tile:has(a.wtq-card:hover) { border-color: var(--wtq-accent); }
.wtq-thumb {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  overflow: hidden;
  flex: none;
  background: var(--wtq-bg);
}
.wtq-root .wtq-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.wtq-thumb-mono {
  display: grid;
  place-items: center;
  background: var(--wtq-accent);
  color: var(--wtq-accent-ink);
  font-weight: 700;
  font-size: 19px;
}
.wtq-card-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wtq-card-name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--wtq-accent-text);
}
.wtq-card-label { font-weight: 600; font-size: 14px; line-height: 1.3; }
.wtq-card-meta { font-size: 12px; color: var(--wtq-muted); font-weight: 600; }
.wtq-card-go {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--wtq-accent-text);
}
.wtq-tile-compact a.wtq-card { padding: 8px 10px 8px 8px; }
.wtq-tile-compact .wtq-thumb { width: 38px; height: 38px; font-size: 16px; }
.wtq-tile-compact .wtq-card-go-text { display: none; }

/* Spec panel: weight gauge + needles */
.wtq-spec {
  display: flex;
  gap: 12px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--wtq-accent-line);
}
.wtq-gauge {
  flex: none;
  width: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 4px;
  border-radius: 12px;
  background: var(--wtq-surface);
  color: var(--wtq-accent);
}
.wtq-gauge-svg, .wtq-bobbin-svg { display: block; }
.wtq-gauge-text { display: flex; align-items: baseline; gap: 1px; color: var(--wtq-ink); }
.wtq-gauge-num { font-size: 24px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.wtq-gauge-num-sm { font-size: 13px; font-weight: 800; text-align: center; line-height: 1.15; }
.wtq-gauge-unit { font-size: 12px; font-weight: 700; color: var(--wtq-muted); }
.wtq-bob-flange, .wtq-bob-flange-top { fill: #9aa3ab; }
.wtq-bob-thread { fill: var(--wtq-accent); }
.wtq-bob-hole { fill: var(--wtq-surface); }

.wtq-spec-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.wtq-fibre { font-size: 12.5px; font-weight: 600; color: var(--wtq-muted); }
.wtq-needles { display: flex; flex-direction: column; gap: 5px; }
.wtq-needles-head {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--wtq-accent-text);
}
.wtq-needle-row { display: flex; align-items: flex-start; gap: 8px; }
.wtq-needle-k {
  flex: none;
  width: 64px;
  padding-top: 3px;
  font-size: 12px;
  font-weight: 700;
  color: var(--wtq-ink);
}
.wtq-needle-v { display: flex; flex-wrap: wrap; gap: 4px; }
.wtq-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--wtq-surface);
  border: 1px solid var(--wtq-line);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

/* Collector-set upsell */
.wtq-upsell {
  margin-top: 16px;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--wtq-accent) 14%, #ffffff), color-mix(in srgb, var(--wtq-accent) 4%, #ffffff));
  border: 1px solid var(--wtq-accent-line);
}
.wtq-upsell-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 14px;
  color: var(--wtq-accent-text);
}
.wtq-root .wtq-upsell-sub { font-size: 13px; color: var(--wtq-muted); margin: 2px 0 8px; }
.wtq-upsell-list { display: flex; flex-direction: column; gap: 6px; }
.wtq-root a.wtq-set {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--wtq-bg);
  color: var(--wtq-ink);
  text-decoration: none;
  border: 1px solid transparent;
}
.wtq-root a.wtq-set:hover { border-color: var(--wtq-accent); }
.wtq-root .wtq-set-img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; margin: 0; flex: none; }
.wtq-set-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wtq-set-name { font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.wtq-set-price { font-size: 12px; color: var(--wtq-muted); font-weight: 600; }
.wtq-set svg { color: var(--wtq-accent-text); flex: none; }

/* ---------- Options, picker & nav ---------- */
.wtq-controls { margin-top: 12px; }
.wtq-options { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.wtq-root .wtq-option {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--wtq-accent);
  background: var(--wtq-bg);
  color: var(--wtq-accent-text);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
  transition: background .12s ease, color .12s ease;
}
.wtq-root .wtq-option:hover { background: var(--wtq-accent); color: var(--wtq-accent-ink); }

.wtq-picker {
  background: var(--wtq-bg);
  border: 1px solid var(--wtq-line);
  border-radius: 14px;
  overflow: hidden;
}
.wtq-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--wtq-line);
  color: var(--wtq-muted);
  cursor: text;
}
.wtq-root .wtq-search input { flex: 1; min-width: 0; font-size: 15px; color: var(--wtq-ink); }
.wtq-root .wtq-search input::placeholder { color: var(--wtq-muted); opacity: .8; }
.wtq-picker-list { max-height: 260px; overflow-y: auto; overscroll-behavior: contain; padding: 4px; }
.wtq-root .wtq-pick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--wtq-ink);
}
.wtq-root .wtq-pick:hover { background: var(--wtq-accent-soft); color: var(--wtq-accent-text); }
.wtq-root .wtq-pick-pinned { color: var(--wtq-muted); font-style: italic; }
.wtq-pick-hint { font-size: 12px; color: var(--wtq-muted); font-weight: 500; flex: none; }
.wtq-picker-empty { padding: 10px; font-size: 13px; color: var(--wtq-muted); }
.wtq-picker-count { padding: 6px 12px; font-size: 11.5px; color: var(--wtq-muted); border-top: 1px solid var(--wtq-line); }

.wtq-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}
.wtq-root .wtq-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 6px 8px 6px 4px;
  border-radius: 8px;
  color: var(--wtq-muted);
  font-size: 14px;
  font-weight: 600;
}
.wtq-root .wtq-link-btn:hover { color: var(--wtq-ink); background: var(--wtq-line); }
.wtq-root .wtq-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--wtq-accent);
  color: var(--wtq-accent-ink);
  font-weight: 700;
  font-size: 14px;
}
.wtq-root .wtq-primary-btn:hover { filter: brightness(1.06); }

/* ---------- Pack (product) cards ---------- */
.wtq-tile-product .wtq-thumb { width: 60px; height: 60px; }
.wtq-card-price { font-size: 13px; font-weight: 800; color: var(--wtq-ink); margin-top: 1px; }
.wtq-tile-product .wtq-card-meta { font-weight: 600; line-height: 1.3; }

/* ---------- Order status ---------- */
.wtq-order-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: var(--wtq-bg);
  border: 1px solid var(--wtq-line);
  border-radius: 14px;
}
.wtq-field { display: flex; flex-direction: column; gap: 4px; cursor: text; }
.wtq-field-label { font-size: 13px; font-weight: 700; }
.wtq-root .wtq-field input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--wtq-line);
  border-radius: 10px;
  background: var(--wtq-bg);
  font-size: 15px;
  color: var(--wtq-ink);
}
.wtq-root .wtq-field input:focus { border-color: var(--wtq-accent); outline: none; box-shadow: 0 0 0 3px var(--wtq-accent-line); }
.wtq-root .wtq-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.wtq-form-error { font-size: 13px; font-weight: 600; color: #b42318; min-height: 0; }
.wtq-form-error:empty { display: none; }
.wtq-root .wtq-submit { justify-content: center; margin-left: 0; padding: 11px 16px; }
.wtq-root .wtq-submit[disabled] { opacity: .65; cursor: progress; }
.wtq-loading svg { animation: wtq-spin 1s linear infinite; }
@keyframes wtq-spin { to { transform: rotate(360deg); } }
.wtq-form-note { font-size: 12px; color: var(--wtq-muted); text-align: center; }
.wtq-root .wtq-link-strong { color: var(--wtq-accent-text); }

.wtq-order { display: flex; flex-direction: column; gap: 12px; }
.wtq-order-msg { font-size: 16px; font-weight: 700; }
.wtq-stage-cancelled .wtq-order-msg { color: #b42318; }
.wtq-steps { list-style: none; margin: 0; padding: 0; display: flex; }
.wtq-step { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--wtq-muted); }
.wtq-step::before {
  content: '';
  position: absolute;
  top: 7px;
  right: 50%;
  width: 100%;
  height: 3px;
  background: var(--wtq-line);
}
.wtq-step:first-child::before { display: none; }
.wtq-step.is-done::before, .wtq-step.is-current::before { background: var(--wtq-accent); }
.wtq-step-dot { position: relative; z-index: 1; width: 17px; height: 17px; border-radius: 50%; background: var(--wtq-bg); border: 3px solid var(--wtq-line); }
.wtq-step.is-done .wtq-step-dot { background: var(--wtq-accent); border-color: var(--wtq-accent); }
.wtq-step.is-current .wtq-step-dot { border-color: var(--wtq-accent); box-shadow: 0 0 0 4px var(--wtq-accent-line); }
.wtq-step.is-done, .wtq-step.is-current { color: var(--wtq-ink); }
.wtq-order-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--wtq-muted); font-weight: 600; }
.wtq-track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--wtq-accent-soft);
  border: 1px solid var(--wtq-accent-line);
}
.wtq-track-info { flex: 1; min-width: 140px; display: flex; flex-direction: column; }
.wtq-track-k { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--wtq-accent-text); }
.wtq-track-num { font-size: 15px; font-weight: 800; letter-spacing: .02em; word-break: break-all; }
.wtq-root a.wtq-track-btn {
  display: inline-flex;
  align-items: center;
  margin-left: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--wtq-accent);
  color: var(--wtq-accent-ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.wtq-root a.wtq-track-btn:hover { filter: brightness(1.06); }
.wtq-order-note { font-size: 13px; color: var(--wtq-muted); }

/* ---------- Home: search + section cards ---------- */
.wtq-home { display: flex; flex-direction: column; gap: 12px; }
.wtq-home-search { position: relative; }
.wtq-home-search .wtq-search {
  background: var(--wtq-bg);
  border: 1.5px solid var(--wtq-accent-line);
  border-radius: 14px;
  padding: 11px 14px;
  box-shadow: 0 2px 10px rgba(24, 16, 8, .05);
}
.wtq-home-search .wtq-search:focus-within { border-color: var(--wtq-accent); box-shadow: 0 0 0 3px var(--wtq-accent-line); }
.wtq-home-results {
  margin-top: 6px;
  padding: 4px;
  background: var(--wtq-bg);
  border: 1px solid var(--wtq-line);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(24, 16, 8, .12);
  max-height: 280px;
  overflow-y: auto;
}
.wtq-cardgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wtq-root .wtq-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  background: var(--wtq-bg);
  border: 1px solid var(--wtq-line);
  text-align: left;
  transition: border-color .12s ease, box-shadow .12s ease, transform .12s ease;
}
.wtq-root .wtq-section:hover { border-color: var(--wtq-accent); box-shadow: 0 6px 16px rgba(24, 16, 8, .08); transform: translateY(-1px); }
.wtq-section-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--wtq-accent-soft);
  color: var(--wtq-accent-text);
}
.wtq-section-text { display: flex; flex-direction: column; gap: 1px; }
.wtq-section-label { font-weight: 800; font-size: 14.5px; line-height: 1.2; color: var(--wtq-ink); }
.wtq-section-desc { font-size: 12px; line-height: 1.3; color: var(--wtq-muted); }
.wtq-root .wtq-home-order {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--wtq-muted);
}
.wtq-root .wtq-home-order:hover { color: var(--wtq-accent-text); background: var(--wtq-accent-soft); }

/* ---------- Thread line views ---------- */
.wtq-guide-head { display: flex; flex-direction: column; margin-bottom: 4px; }
.wtq-guide-name { font-size: 20px; font-weight: 800; line-height: 1.2; }
.wtq-guide-use { font-size: 13px; color: var(--wtq-muted); font-weight: 600; }
.wtq-view-sec { display: flex; flex-direction: column; gap: 8px; }
.wtq-view-sec .wtq-cards { margin-top: 0; }
.wtq-view-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--wtq-accent-text);
}
.wtq-tips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.wtq-tips li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.wtq-tips li svg { flex: none; margin-top: 3px; color: var(--wtq-accent); }
.wtq-root .wtq-bobbin-line { font-size: 13.5px; padding: 8px 10px; border-radius: 10px; background: var(--wtq-surface); }
.wtq-bobbin-line a { color: var(--wtq-accent-text); font-weight: 700; }
.wtq-bobbin-note { color: var(--wtq-muted); }
.wtq-root .wtq-muted-note { font-size: 12.5px; color: var(--wtq-muted); }
.wtq-thumb-icon { display: grid; place-items: center; background: var(--wtq-accent-soft); color: var(--wtq-accent-text); }
.wtq-tile-doc a.wtq-card { background: var(--wtq-bg); }
.wtq-root a.wtq-chip-shop {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  cursor: pointer;
  background: var(--wtq-accent-soft);
  border-color: var(--wtq-accent-line);
  color: var(--wtq-accent-text);
  text-decoration: none;
}
.wtq-root a.wtq-chip-shop:hover { border-color: var(--wtq-accent); }
.wtq-needle-legend { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--wtq-muted); margin-top: 2px; }
.wtq-root .wtq-track-head svg { width: 20px; height: 20px; }
.wtq-teaser { order: -1; }

/* ---------- Typing / enter animation ---------- */
.wtq-typing .wtq-bubble { display: inline-flex; gap: 4px; padding: 14px 16px; }
.wtq-typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--wtq-accent);
  opacity: .4;
  animation: wtq-dot 1s infinite ease-in-out;
}
.wtq-typing span:nth-child(2) { animation-delay: .15s; }
.wtq-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes wtq-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.wtq-enter { animation: wtq-in .25s ease-out; }
@keyframes wtq-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Floating launcher ---------- */
.wtq-floating {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99990;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.wtq-floating.wtq-left { right: auto; left: 20px; align-items: flex-start; }
.wtq-root .wtq-launcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 20px 7px 7px;
  border-radius: 999px;
  background: var(--wtq-accent);
  color: var(--wtq-accent-ink);
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 8px 24px rgba(24, 16, 8, .25);
  transition: transform .15s ease;
}
.wtq-root .wtq-launcher:hover { transform: translateY(-2px); }
.wtq-launcher-logo {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--wtq-accent);
  overflow: hidden;
}
.wtq-floating .wtq-panel {
  display: none;
  width: min(400px, calc(100vw - 40px));
  height: min(680px, calc(100vh - 110px));
  height: min(680px, calc(100dvh - 110px));
  box-shadow: var(--wtq-shadow);
}
.wtq-floating.wtq-open .wtq-panel { display: flex; animation: wtq-in .2s ease-out; }

.wtq-teaser {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  max-width: 260px;
  padding: 10px 6px 10px 14px;
  background: var(--wtq-bg);
  border: 1px solid var(--wtq-line);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(24, 16, 8, .14);
  animation: wtq-in .25s ease-out;
}
.wtq-root .wtq-teaser-text { font-size: 14px; font-weight: 600; color: var(--wtq-ink); }
.wtq-root .wtq-teaser-x { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: var(--wtq-muted); flex: none; }

/* ---------- Tablet ---------- */
@media (min-width: 601px) and (max-width: 1024px) {
  .wtq-floating .wtq-panel {
    width: min(420px, calc(100vw - 32px));
    height: min(720px, calc(100vh - 100px));
    height: min(720px, calc(100dvh - 100px));
  }
  .wtq-floating { right: 16px; bottom: 16px; }
  .wtq-floating.wtq-left { left: 16px; }
}

/* ---------- Phones (and landscape phones): full-screen chat ---------- */
@media (max-width: 600px), (max-height: 560px) {
  .wtq-floating { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .wtq-floating.wtq-left { left: calc(12px + env(safe-area-inset-left, 0px)); }
  .wtq-floating.wtq-open { inset: 0; gap: 0; }
  .wtq-floating.wtq-open .wtq-panel { width: 100%; height: 100%; max-height: none; border-radius: 0; }
  .wtq-floating.wtq-open .wtq-launcher, .wtq-floating.wtq-open .wtq-teaser { display: none; }
  .wtq-floating .wtq-head {
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    padding-left: calc(14px + env(safe-area-inset-left, 0px));
    padding-right: calc(10px + env(safe-area-inset-right, 0px));
  }
  .wtq-floating .wtq-body { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .wtq-picker-list { max-height: 45vh; max-height: 45dvh; }
  .wtq-teaser { max-width: calc(100vw - 24px); }
}
@media (max-width: 600px) {
  .wtq-floating.wtq-hide-mobile { display: none; }
  .wtq-cards-grid { grid-template-columns: 1fr; }
  .wtq-spec { gap: 10px; padding: 10px; }
  .wtq-gauge { width: 64px; }
  .wtq-needle-k { width: 54px; }
  .wtq-bubble { max-width: 92%; }
  .wtq-inline .wtq-panel { height: 80vh; height: 80dvh; border-radius: 14px; }
  .wtq-root .wtq-launcher { font-size: 14px; padding: 6px 16px 6px 6px; gap: 8px; }
  .wtq-launcher-logo { width: 34px; height: 34px; }
}
@media (max-height: 560px) {
  .wtq-floating .wtq-subtitle { display: none; }
  .wtq-floating .wtq-head { padding-top: calc(8px + env(safe-area-inset-top, 0px)); padding-bottom: 8px; }
}
@media (max-width: 360px) {
  .wtq-spec { flex-direction: column; }
  .wtq-gauge { width: 100%; flex-direction: row; gap: 10px; padding: 6px 10px; justify-content: flex-start; }
  .wtq-card-go-text { display: none; }
}

/* Touch devices: bigger tap targets, no iOS zoom on the search field */
@media (pointer: coarse) {
  .wtq-root .wtq-icon-btn { width: 44px; height: 44px; }
  .wtq-root .wtq-option { padding: 11px 18px; }
  .wtq-root .wtq-pick { padding: 12px 10px; }
  .wtq-root .wtq-search input, .wtq-root .wtq-field input { font-size: 16px; }
  .wtq-root .wtq-section { padding: 12px 10px; }
  .wtq-root .wtq-link-btn { padding: 10px 10px 10px 4px; }
}

/* Stop the page behind the full-screen chat from scrolling */
html.wtq-lock, html.wtq-lock body { overflow: hidden !important; }

@media (prefers-reduced-motion: reduce) {
  .wtq-root *, .wtq-root *::before, .wtq-root *::after { animation: none !important; transition: none !important; }
  .wtq-body { scroll-behavior: auto; }
}
