/* Free WhatsApp number checker — template-parts/free-filter.php. Uses the tokens from main.css. */

/* Page layout (page-whatsapp-number-checker.php) */
.wff-page { padding-top: clamp(40px, 6vw, 72px); }
.wff-page__inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.wff-page__side h2 { font-size: 1.35rem; margin-bottom: 8px; }
.wff-page__side .activation__note { margin-top: 8px; }
@media (max-width: 900px) { .wff-page__inner { grid-template-columns: minmax(0, 1fr); } }

/* Card */
.wff { position: relative; padding: clamp(22px, 3.6vw, 36px); border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); color: var(--ink-2); }
.wff [hidden] { display: none !important; }
.wff__head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.wff__badge { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--green-50); }
.wff__badge svg { width: 26px; height: 26px; }
.wff__title { margin: 0; font-size: 1.25rem; letter-spacing: -.015em; }
.wff__quota { margin: 2px 0 0; color: var(--muted); font-size: .92rem; font-weight: 600; }
[data-state="limit"] .wff__quota { color: var(--sale); }

/* Form */
.wff__label { display: block; margin: 0 0 8px; color: var(--ink); font-weight: 700; font-size: .95rem; }
.wff__numbers { display: block; width: 100%; min-height: 150px; resize: vertical; padding: 12px 14px; border: 1px solid #cfd9d2; border-radius: 12px; background: #fff; color: var(--ink); font: 500 1rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.wff__numbers:focus, .wff__phone input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-100); }
.wff__hint { margin: 8px 0 0; color: var(--muted); font-size: .88rem; }
.wff__hint.is-over { color: var(--sale); font-weight: 600; }

.wff__methods { margin: 22px 0 0; padding: 0; border: 0; min-width: 0; }
.wff__methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wff__methods legend { grid-column: 1 / -1; }
.wff__method { position: relative; display: block; cursor: pointer; }
.wff__method input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.wff__method > span { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; min-height: 64px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg-soft); transition: border-color .15s, background-color .15s, box-shadow .15s; }
.wff__method .icon { grid-row: span 2; width: 22px; height: 22px; color: var(--muted); }
.wff__method b { color: var(--ink); font-size: .95rem; line-height: 1.25; }
.wff__method small { color: var(--muted); font-size: .82rem; line-height: 1.3; }
.wff__method input:checked + span { border-color: var(--green); background: var(--green-50); box-shadow: 0 0 0 1px var(--green); }
.wff__method input:checked + span .icon { color: var(--green-700); }
.wff__method input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }

.wff__phone { margin-top: 16px; }
.wff__phone input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #cfd9d2; border-radius: 12px; font: inherit; color: var(--ink); }

.wff__submit { width: 100%; margin-top: 22px; }
.wff__submit:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.wff__privacy { display: flex; gap: 10px; margin: 16px 0 0; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.wff__privacy .icon { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--green-700); }
.wff__alert { margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; background: #fdeeee; color: #8a1c1c; font-size: .93rem; border-left: 4px solid #d63939; }

/* Link step */
.wff__link { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; }
.wff__link[data-link="code"] { grid-template-columns: minmax(0, 1fr); justify-items: stretch; }
.wff__qr { position: relative; display: flex; align-items: center; justify-content: center; width: 252px; height: 252px; padding: 6px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.wff__qr img { width: 240px; height: 240px; image-rendering: pixelated; }
.wff__steps { margin: 0; padding-left: 1.2em; color: var(--ink-2); font-size: .97rem; }
.wff__steps li { margin-bottom: 8px; padding-left: 2px; }
.wff__steps b { color: var(--ink); }
.wff__code { margin: 0 0 16px; padding: 18px; border-radius: 14px; background: var(--green-50); border: 1px dashed var(--green); color: var(--ink); text-align: center; font: 800 clamp(1.7rem, 6vw, 2.3rem)/1.1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .12em; }
.wff__status { margin: 20px 0 0; color: var(--muted); font-size: .95rem; }
.wff__cancel { margin-top: 16px; }
@media (max-width: 560px) {
	.wff__link { grid-template-columns: minmax(0, 1fr); justify-items: center; }
	.wff__link[data-link="code"] { justify-items: stretch; }
	.wff__methods { grid-template-columns: minmax(0, 1fr); }
}

/* Spinner */
.wff__spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--green-100); border-top-color: var(--green); animation: wff-spin .8s linear infinite; }
.wff__spinner--lg { display: block; width: 48px; height: 48px; margin: 8px auto 0; border-width: 4px; }
@keyframes wff-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .wff__spinner { animation-duration: 2.4s; } }

.wff__center { text-align: center; padding: 12px 0; }
.wff__center .wff__limit-title { margin: 14px 0 6px; color: var(--ink); font-size: 1.25rem; font-weight: 700; }
.wff__center p { color: var(--muted); }
.wff__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--green-50); color: var(--green-700); }
.wff__icon .icon { width: 28px; height: 28px; }

/* Results */
.wff__summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.wff__summary li { padding: 12px; border-radius: 12px; text-align: center; font-size: .88rem; font-weight: 600; }
.wff__summary b { display: block; font-size: 1.6rem; line-height: 1.1; }
.wff__table-wrap { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.wff__table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.wff__table th { padding: 10px 14px; background: var(--bg-soft); color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; text-align: left; }
.wff__table td { padding: 11px 14px; border-top: 1px solid var(--line); color: var(--ink); font-variant-numeric: tabular-nums; }
.wff__tag { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.is-business { background: #e7f0ff; color: #1d4ed8; }
.is-personal { background: var(--green-50); color: var(--green-700); }
.is-none { background: #f1f3f2; color: #5d6b64; }
.wff__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.wff__actions .btn { padding: .7em 1.2em; font-size: .95rem; }
.wff__actions .icon { width: 18px; height: 18px; }
.wff__done { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; color: var(--green-700); font-size: .92rem; font-weight: 600; }
.wff__done .icon { width: 18px; height: 18px; flex: none; }

/* Upsell */
.wff__upsell { display: flex; gap: 16px; margin-top: 24px; padding: 20px; border-radius: 16px; background: linear-gradient(135deg, var(--green-50), #f7fbf5); border: 1px solid var(--green-100); }
.wff__upsell-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--green-700); border: 1px solid var(--green-100); }
.wff__upsell b { display: block; color: var(--ink); font-size: 1.05rem; }
.wff__upsell p { margin: 4px 0 14px; color: var(--ink-2); font-size: .95rem; }
@media (max-width: 480px) { .wff__upsell { flex-direction: column; } }

/* Guide below the tool (page-whatsapp-number-checker.php) */
.wnc-guide__inner { max-width: 820px; }
.wnc-guide__head { margin-bottom: 12px; }
.wnc-guide__head h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); letter-spacing: -.03em; margin-bottom: .3em; }
.wnc-guide__meta { margin: 0; color: var(--muted); font-size: .92rem; }
.wnc-guide section { margin-top: clamp(32px, 4vw, 48px); }
.wnc-guide h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); letter-spacing: -.02em; margin: 0 0 .5em; }
.wnc-guide h4 { font-size: 1.08rem; margin: 1.4em 0 .35em; }
.wnc-guide p { color: var(--ink-2); font-size: 1.04rem; line-height: 1.7; }
.wnc-guide code { padding: 1px 6px; border-radius: 6px; background: var(--green-50); color: var(--ink); font-size: .92em; }
.wnc-list { margin: 0 0 1em; padding-left: 1.2em; color: var(--ink-2); font-size: 1.02rem; line-height: 1.65; }
.wnc-list li { margin-bottom: 6px; }
.wnc-table-wrap { margin: 18px 0 8px; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.wnc-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .95rem; }
.wnc-table th, .wnc-table td { padding: 12px 14px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.wnc-table thead th { border-top: 0; background: var(--bg-soft); color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.wnc-table tbody th { color: var(--ink); font-weight: 700; }
.wnc-table tbody tr:nth-child(2) { background: var(--green-50); }
.wnc-bulk { padding: clamp(22px, 3vw, 32px); border-radius: 20px; border: 1px solid var(--green-100); background: linear-gradient(135deg, var(--green-50), #f7fbf5); }
.wnc-bulk .btn { margin-top: 4px; }
