/* WonderFil color cards: Color Wall strip and button, colour panel line, cart box, Thread Finder (answer and Color Charts). */
.wtqc { --wtqc-accent: #ff6b00; --wtqc-ink: #1f1b18; --wtqc-muted: #6f6760; --wtqc-line: #e7e1db; --wtqc-soft: #faf7f4; box-sizing: border-box; color: var(--wtqc-ink); font-size: 14px; line-height: 1.4; }
.wtqc *, .wtqc *::before, .wtqc *::after { box-sizing: border-box; }
.wtqc[hidden], .wtqc [hidden], .wtqc-pill[hidden] { display: none !important; }
.wtqc ul { list-style: none; margin: 0; padding: 0; }
.wtqc p { margin: 0; }

/* strip and cart box */
.wtqc-wall, .wtqc-cart { position: relative; display: flex; align-items: flex-start; gap: 12px; margin: 0 0 16px; padding: 12px 44px 12px 14px; background: var(--wtqc-soft); border: 1px solid var(--wtqc-line); border-left: 4px solid var(--wtqc-accent); border-radius: 12px; }
.wtqc-cart { padding-right: 14px; margin: 16px 0; clear: both; }
.wtqc-ico { flex: none; color: var(--wtqc-accent); margin-top: 1px; }
.wtqc img.wtqc-img { width: 48px; height: 48px; margin: 0; object-fit: cover; border-radius: 8px; border: 1px solid var(--wtqc-line); background: #fff; }
.wtqc-body { flex: 1; min-width: 0; }
.wtqc-t { font-weight: 700; margin: 0 0 6px; }
.wtqc-list { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.wtqc-item { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; min-height: 36px; }
.wtqc-name { font-weight: 600; }
.wtqc-price { color: var(--wtqc-muted); font-variant-numeric: tabular-nums; }
.wtqc .wtqc-add, .wtqc a.wtqc-add:not(.wtqc-link) { text-decoration: none !important; }
.wtqc .wtqc-add { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 6px 16px; border-radius: 999px; background: var(--wtqc-accent); color: #fff; font-weight: 800; font-size: 13px; line-height: 1.2; text-decoration: none; white-space: nowrap; border: 0; cursor: pointer; transition: filter .15s; }
.wtqc .wtqc-add:hover, .wtqc .wtqc-add:focus-visible { filter: brightness(.92); color: #fff; }
.wtqc .wtqc-add:focus-visible { outline: 3px solid var(--wtqc-ink); outline-offset: 2px; }
.wtqc .wtqc-add.is-busy { opacity: .7; cursor: progress; }
.wtqc .wtqc-add.is-added { background: #2e7d4f; cursor: default; filter: none; }
.wtqc-err { flex-basis: 100%; color: #b3261e; font-size: 13px; }
.wtqc-x { position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; margin: 0; border: 0; border-radius: 50%; background: transparent; color: var(--wtqc-muted); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: none; }
.wtqc-x:hover, .wtqc-x:focus-visible { background: rgba(31, 27, 24, .07); color: var(--wtqc-ink); }

/* small button in the Color Wall toolbar */
.wtqw .wtqc-pill, .wtqc-pill { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin: 0; padding: 6px 12px; border: 1px solid var(--wtqw-line, #e7e1db); border-radius: 999px; background: #fff; color: var(--wtqw-ink, #1f1b18); font: inherit; font-weight: 700; font-size: 13px; line-height: 1.2; cursor: pointer; box-shadow: none; text-transform: none; letter-spacing: normal; }
.wtqc-pill svg { color: var(--wtqw-accent, #ff6b00); }
.wtqc-pill .wtqc-pill-img { width: 22px; height: 22px; margin: -2px 0 -2px -4px; object-fit: cover; border-radius: 50%; border: 1px solid var(--wtqc-line, #e7e1db); flex: none; }
.wtqc-pill[aria-expanded="true"] { border-color: var(--wtqw-accent, #ff6b00); }
.wtqc-pill:hover { border-color: var(--wtqw-ink, #1f1b18); }

/* colour panel: one discreet line */
.wtqc-sheet { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 14px 0 4px; padding-top: 12px; border-top: 1px solid var(--wtqc-line); font-size: 13.5px; }
.wtqc-sheet .wtqc-t { margin: 0; font-weight: 400; color: var(--wtqc-muted); }
.wtqc-sheet .wtqc-sheet-img { width: 28px; height: 28px; margin: 0; align-self: center; object-fit: cover; border-radius: 6px; border: 1px solid var(--wtqc-line); flex: none; }
.wtqc-sheet:has(.wtqc-sheet-img) { align-items: center; }
.wtqc-sheet .wtqc-list { gap: 2px 12px; }
.wtqc-sheet .wtqc-item { min-height: 0; }
.wtqc .wtqc-link { display: inline; min-height: 0; padding: 0; border-radius: 0; background: none; color: var(--wtqc-ink); font-weight: 700; font-size: inherit; text-decoration: underline; text-decoration-color: var(--wtqc-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; white-space: normal; }
.wtqc .wtqc-link:hover, .wtqc .wtqc-link:focus-visible { color: var(--wtqc-accent); filter: none; }
.wtqc .wtqc-link.is-added { background: none; color: #2e7d4f; text-decoration: none; }

/* Thread Finder answer */
.wtqc-finder { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0 0; padding: 10px 12px; background: var(--wtqc-soft); border: 1px solid var(--wtqc-line); border-radius: 10px; font-size: 13.5px; }
.wtqc-finder .wtqc-t { font-size: 13px; }
.wtqc-finder .wtqc-list { flex-direction: column; gap: 6px; }
.wtqc-finder .wtqc-item { justify-content: space-between; min-height: 32px; }
.wtqc-finder .wtqc-name { flex: 1; min-width: 0; }
.wtqc-finder .wtqc-add { min-height: 30px; padding: 4px 14px; }
.wtqc-finder img.wtqc-img { width: 40px; height: 40px; }

/* Thread Finder › Color Charts: a tile like the charts */
.wtqc-charts { display: grid; gap: 8px; margin-top: 8px; font-size: inherit; }
.wtqc-charts .wtqc-tile .wtq-card { gap: 10px; }
.wtqc-charts .wtqc-add { flex: none; min-height: 32px; padding: 5px 16px; }

@media (max-width: 600px) {
	.wtqc-wall, .wtqc-cart { gap: 10px; padding: 12px 40px 12px 12px; }
	.wtqc-cart { padding-right: 12px; }
	.wtqc svg.wtqc-ico { display: none; }
	.wtqc-wall img.wtqc-img, .wtqc-cart img.wtqc-img { width: 40px; height: 40px; }
	.wtqc-list { flex-direction: column; gap: 8px; }
	.wtqc-wall .wtqc-item, .wtqc-cart .wtqc-item { justify-content: space-between; }
	.wtqc-wall .wtqc-name, .wtqc-cart .wtqc-name { flex: 1 1 100%; }
	.wtqc-wall .wtqc-price, .wtqc-cart .wtqc-price { flex: 1; }
}
