/* Wishes Tools: uses the WishesPress theme tokens, with safe fallbacks. */
.wt-app { margin: 1.5rem 0 2rem; color: var(--wp-ink, #1e2a23); }
.wt-app *, .wt-app *::before, .wt-app *::after { box-sizing: border-box; }
.wt-loading, .wt-noscript { padding: 1rem; background: var(--wp-card, #fdfcf7); border: 1px solid var(--wp-line, #e4e0d2); border-radius: 12px; }

.wt-card, .wt-gen {
  display: grid; gap: 1.5rem; align-items: start;
  background: var(--wp-card, #fdfcf7); border: 1px solid var(--wp-line, #e4e0d2);
  border-radius: 16px; padding: 1.25rem;
}
.wt-card { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); }
.wt-gen { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); }
@media (max-width: 860px) { .wt-card, .wt-gen { grid-template-columns: 1fr; } .wt-card__preview { order: -1; } }

.wt-field { margin: 0 0 1rem; padding: 0; border: 0; min-width: 0; }
.wt-field label, .wt-field legend { display: block; font-weight: 700; font-size: .92rem; margin-bottom: .35rem; padding: 0; }
.wt-opt { font-weight: 400; color: var(--wp-ink2, #5a675e); }
.wt-field select, .wt-field input[type="text"], .wt-field textarea {
  width: 100%; font: inherit; padding: .6rem .7rem; color: inherit;
  background: #fff; border: 1px solid var(--wp-line, #e4e0d2); border-radius: 10px;
}
.wt-field select:focus, .wt-field input:focus, .wt-field textarea:focus,
.wt-btn:focus-visible, .wt-swatch:focus-visible, .wt-pill input:focus-visible + span {
  outline: 3px solid var(--wp-gold, #e9a83a); outline-offset: 2px;
}
.wt-count { display: block; text-align: right; color: var(--wp-ink2, #5a675e); }
.wt-check { display: flex; gap: .5rem; align-items: center; font-size: .9rem; color: var(--wp-ink2, #5a675e); }

.wt-swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.wt-swatch { all: unset; box-sizing: border-box; cursor: pointer; text-align: center; padding: .3rem; border-radius: 10px; border: 2px solid transparent; }
.wt-swatch[aria-checked="true"] { border-color: var(--wp-pine, #1f5c46); background: var(--wp-pine-soft, #e4eee7); }
.wt-swatch__chip { display: block; height: 34px; border-radius: 8px; }
.wt-swatch__label { display: block; font-size: .72rem; margin-top: .25rem; line-height: 1.2; }

.wt-card__preview canvas { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 12px; box-shadow: 0 6px 24px rgba(0, 0, 0, .15); background: #eee; }
.wt-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.wt-live { margin: 0 0 .8rem; font-weight: 700; }
.wt-field input[type="range"], .wt-field input[type="date"] { width: 100%; font: inherit; }
.wt-note { margin: .8rem 0 0; font-size: .85rem; color: var(--wp-ink2, #5a675e); }

.wt-btn {
  font: inherit; font-weight: 700; cursor: pointer; padding: .65rem 1.1rem; border-radius: 999px;
  border: 2px solid var(--wp-pine, #1f5c46); background: transparent; color: var(--wp-pine, #1f5c46);
  text-decoration: none; display: inline-block; line-height: 1.2;
}
.wt-btn:hover { background: var(--wp-pine-soft, #e4eee7); }
.wt-btn--primary { background: var(--wp-pine, #1f5c46); color: #fff; }
.wt-btn--primary:hover { background: var(--wp-pine-deep, #173f31); }
.wt-btn--small { padding: .4rem .85rem; font-size: .85rem; }
.wt-btn--ghost { border-color: var(--wp-berry, #d64568); color: var(--wp-berry-deep, #ab2c4e); }
.wt-btn--ghost:hover { background: var(--wp-berry-soft, #fbe9ee); }
.wt-btn[hidden], .wt-field[hidden] { display: none; }

.wt-pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.wt-pill input { position: absolute; opacity: 0; pointer-events: none; }
.wt-pill span { display: inline-block; padding: .4rem .8rem; border-radius: 999px; border: 1px solid var(--wp-line, #e4e0d2); background: #fff; cursor: pointer; font-size: .88rem; }
.wt-pill input:checked + span { background: var(--wp-pine, #1f5c46); border-color: var(--wp-pine, #1f5c46); color: #fff; }
.wt-pill input:disabled + span { opacity: .4; cursor: not-allowed; }

.wt-results { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.wt-result { background: #fff; border: 1px solid var(--wp-line, #e4e0d2); border-radius: 12px; padding: .9rem 1rem; }
.wt-result p { margin: 0 0 .7rem; line-height: 1.55; }
.wt-result__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
