/*
 * TireFitment API site (theme 1.0.14).
 * Header and footer styles apply only in API mode (body.tft-api); the page components (.tft-*)
 * are used by the API pages and patterns. Fonts and the accent colour come from TireFitment → Pages.
 */
:root {
	--tft-ground: #f7f6f3;
	--tft-paper: #fff;
	--tft-ink: #16191d;
	--tft-text: #44474e;
	--tft-muted: #5b5e66;
	--tft-line: #e4e1da;
	--tft-line-2: #d6d2c9;
	--tft-soft: #fff1e8;
	--tft-dark-2: #22252c;
	--tft-ok-bg: #ecfdf3;
	--tft-ok: #15803d;
	--tft-soon: #9a3412;
	--tft-display: var(--tfp-display, "Barlow Condensed", "Arial Narrow", sans-serif);
	--tft-mono: var(--tfp-mono, "IBM Plex Mono", ui-monospace, monospace);
	--tft-accent: var(--tfp-accent, #c2410c);
	--tft-radius: 14px;
}

/* ---------- Header (API mode) ---------- */
body.tft-api { background: var(--tft-ground); }
body.tft-api .tft-header { background: var(--tft-ground); color: var(--tft-ink); border-bottom: 1px solid var(--tft-line); }
body.tft-api .tft-header .tft-logo { color: var(--tft-ink) !important; }
body.tft-api .tft-header .tfp-logo-suffix { color: var(--tft-accent); }
body.tft-api .tft-header .tfp-site-menu a { color: var(--tft-ink) !important; font-weight: 500; padding-block: 4px; border-bottom: 2px solid transparent; white-space: nowrap; }
body.tft-api .tft-header .tfp-site-menu li { flex-shrink: 0; }
body.tft-api .tft-header .tfp-site-menu a:hover { color: var(--tft-accent) !important; }
body.tft-api .tft-header .tfp-site-menu a[aria-current="page"],
body.tft-api .tft-header .tfp-site-menu .current-menu-item > a { color: #a3360a !important; border-bottom-color: var(--tft-accent); }
body.tft-api .tft-header-account { display: inline-flex; align-items: center; gap: 6px; color: var(--tft-ink) !important; text-decoration: none !important; font-size: 15px; font-weight: 500; white-space: nowrap; }
body.tft-api .tft-header-account[aria-current="page"] { color: #a3360a !important; }
body.tft-api .tft-header .tfp-header-cta { background: var(--tft-ink); border-radius: 8px; padding: 11px 18px; }
body.tft-api .tft-header .tfp-menu-toggle { border-color: var(--tft-line-2); color: var(--tft-ink); }
body.tft-api .tft-header a:focus-visible, body.tft-api .tft-header .tfp-menu-toggle:focus-visible { outline-color: var(--tft-accent); }
@media (min-width: 1025px) and (max-width: 1200px) {
	body.tft-api .tft-header .tfp-site-nav, body.tft-api .tft-header .tfp-site-menu { gap: 20px; }
}
@media (max-width: 1024px) {
	body.tft-api .tft-header .tfp-site-menu a { white-space: normal; }
	body.tft-api .tft-header .tfp-site-nav { border-top-color: var(--tft-line); }
	body.tft-api .tft-header-account { padding: 12px 0; font-size: 17px; }
	body.tft-api .tft-header .tfp-site-menu a { border-bottom: 0; }
}

/* ---------- Footer (API mode) ---------- */
body.tft-api .tft-footer { background: var(--tft-ground); color: var(--tft-muted); border-top: 1px solid var(--tft-line); }
body.tft-api .tft-footer .tfp-footer-logo, body.tft-api .tft-footer .tfp-footer-col h2 { color: var(--tft-ink); }
body.tft-api .tft-footer .tfp-footer-col a { color: var(--tft-muted) !important; }
body.tft-api .tft-footer .tfp-footer-col a:hover { color: var(--tft-ink) !important; }
body.tft-api .tft-footer .tfp-site-footer-bottom { border-top-color: var(--tft-line); }

/* ---------- Sections ---------- */
.tfp-home-main .tft.tft-sec { margin: 0 !important; padding: 88px 0; background: var(--tft-ground); color: var(--tft-ink); max-width: none !important; width: 100%; }
.tfp-home-main .tft-sec + .tft-sec:not(.tft-soft):not(.tft-dark):not(.tft-band) { padding-top: 32px; }
/* Centered with padding, not margins: some sites override auto margins on full-width blocks. */
.tfp-home-main .tft .tft-inner { max-width: none !important; width: auto !important; margin: 0 !important; box-sizing: border-box; padding-inline: max(16px, calc((100% - 1168px) / 2)) !important; }
.tft .tft-inner > *, .tft .tft-inner > .wp-block-group__inner-container > * { margin-block-start: 0; }
.tft.tft-soft { background: var(--tft-paper) !important; border-block: 1px solid var(--tft-line); }
.tft.tft-dark { background: var(--tft-ink) !important; color: #f7f6f3 !important; }
.tft.tft-band { padding: 32px 0 !important; background: var(--tft-paper) !important; border-block: 1px solid var(--tft-line); }
.tft.tft-hero { padding: 72px 0 64px !important; }

.tft, .tft p, .tft li { font-size: 17px; line-height: 1.55; }
.tft p { margin: 0 0 12px; color: var(--tft-text); }
.tft.tft-dark p { color: #c9cbd0; }
.tft h1, .tft h2, .tft h3 { font-family: var(--tft-display); font-weight: 700; color: inherit; text-transform: none; letter-spacing: -0.005em; margin: 0 0 12px; }
.tft h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1; }
.tft h2 { font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.05; }
.tft h3 { font-size: 1.55rem; line-height: 1.1; }
.tft.tft-dark h2, .tft.tft-dark h3 { color: #fff; }
.tft .tft-eyebrow { font-family: var(--tft-mono); font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #a3360a; margin: 0 0 14px; }
.tft .tft-lead { font-size: 20px; color: var(--tft-text); max-width: 34em; margin-top: 18px; }
.tft .tft-sub { font-size: 19px; max-width: 36em; margin-bottom: 36px; }
.tft .tft-small { font-size: 14px; color: var(--tft-muted); }
.tft .tft-h-small { font-size: 1.45rem; margin-top: 36px; }
.tft a { color: #a3360a; }
.tft.tft-dark a { color: #fdba8c; }

/*
 * Classic themes wrap every group's content in .wp-block-group__inner-container. Make that wrapper
 * transparent to layout, so the flex and grid rules below reach the real blocks.
 */
.tft .wp-block-group__inner-container { display: contents; }

/* Layout helpers */
.tft .tft-split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.tft .tft-split > *, .tft .tft-split > .wp-block-group__inner-container > * { flex: 1 1 420px; min-width: 0; margin: 0 !important; }
.tft .tft-split-hero > :first-child, .tft .tft-split-hero > .wp-block-group__inner-container > :first-child { flex-basis: 480px; }
.tft .tft-grid { display: grid; gap: 18px; margin-top: 8px; }
.tft .tft-grid > *, .tft .tft-grid > .wp-block-group__inner-container > * { margin: 0 !important; }
.tft .tft-grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.tft .tft-grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.tft .tft-grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.tft .tft-stack { display: flex; flex-direction: column; gap: 12px; }
.tft .tft-narrow { max-width: 820px; }
.tft .tft-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 32px; }
.tft .tft-head-row .tft-sub { margin-bottom: 0; }
.tft .tft-head-row > *, .tft .tft-head-row > .wp-block-group__inner-container > * { margin: 0 !important; }

/* Buttons (core button blocks and .tft-btn links) */
.tft .tft-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.tft .wp-block-button .wp-block-button__link, .tft-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 8px; font-family: inherit; font-size: 17px; font-weight: 600; line-height: 1.2; text-decoration: none !important; border: 1.5px solid transparent; box-sizing: border-box; cursor: pointer; text-align: center; }
.tft .tft-btn-accent .wp-block-button__link, .tft-btn--accent { background: var(--tft-accent); color: #fff !important; }
.tft .tft-btn-dark .wp-block-button__link, .tft-btn--dark { background: var(--tft-ink); color: #f7f6f3 !important; }
.tft .tft-btn-light .wp-block-button__link, .tft-btn--light { background: #f7f6f3; color: var(--tft-ink) !important; }
.tft .tft-btn-ghost .wp-block-button__link { background: transparent; color: var(--tft-ink) !important; border-color: var(--tft-ink); }
.tft.tft-dark .tft-btn-ghost .wp-block-button__link, .tft .tft-final-dark .tft-btn-ghost .wp-block-button__link { color: #f7f6f3 !important; border-color: #f7f6f3; }
.tft .wp-block-button__link:hover, .tft-btn:hover { filter: brightness(.92); }
.tft .wp-block-button__link:focus-visible, .tft-btn:focus-visible, .tft a:focus-visible, .tft summary:focus-visible { outline: 3px solid var(--tft-accent); outline-offset: 2px; }
.tft .tft-more { margin-top: 14px; }
.tft .tft-more a { font-weight: 600; text-decoration: none; }
.tft .tft-more a:hover { text-decoration: underline; }

/* Cards */
.tft .tft-card { background: var(--tft-paper); border: 1px solid var(--tft-line); border-radius: var(--tft-radius); padding: 26px; display: flex; flex-direction: column; }
.tft.tft-soft .tft-card { background: var(--tft-ground); }
.tft .tft-card h3 { margin-bottom: 8px; }
.tft .tft-card p:last-child { margin-bottom: 0; }
.tft .tft-card .tft-more { margin-top: auto; padding-top: 12px; }
.tft .tft-card-row { padding: 18px 22px; }
.tft .tft-card-row h3 { font-family: inherit; font-size: 17px; font-weight: 600; margin: 0 0 2px; }
.tft .tft-badge-p { display: inline-block; align-self: flex-start; font-size: 12px !important; font-weight: 600; line-height: 1.3; padding: 4px 10px; border-radius: 999px; margin-bottom: 12px !important; }
.tft .tft-badge-ok { color: var(--tft-ok) !important; background: var(--tft-ok-bg); }
.tft .tft-badge-soon { color: var(--tft-soon) !important; background: var(--tft-soft); }
.tft .tft-code { font-family: var(--tft-mono); font-size: 13px !important; background: var(--tft-ink); color: #e7e5df !important; border-radius: 8px; padding: 12px 14px; overflow-x: auto; white-space: nowrap; }
.tft .tft-pick { font-family: var(--tft-display); font-weight: 700; font-size: 1.4rem !important; color: #a3360a !important; margin-top: auto !important; padding-top: 10px; }

/* Hero */
.tft .tft-finder-card, .tft .tft-form-card { background: var(--tft-paper); border: 1px solid var(--tft-line); border-radius: 16px; padding: 28px; box-shadow: 0 24px 48px -30px rgba(22, 25, 29, .35); }
.tft .tft-card-title { font-size: 1.6rem !important; margin-bottom: 16px; }
.tft .tft-finder-card .tfp-finder { gap: 14px; }

/* Numbers band */
.tft.tft-band .tfp-stats { gap: 24px; }

/* Plans */
.tft-plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.tft-plan { background: var(--tft-paper); color: var(--tft-ink); border: 1px solid var(--tft-line); border-radius: var(--tft-radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.tft-plans--dark .tft-plan { background: var(--tft-dark-2); border-color: #343842; color: #f7f6f3; }
.tft-plans--dark .tft-plan--main, .tft-plan--main { background: #f7f6f3; color: var(--tft-ink); outline: 3px solid var(--tft-accent); outline-offset: -3px; border-color: transparent; }
.tft .tft-plan--main, .tft .tft-plan--main p, .tft .tft-plan--main li, .tft .tft-plan--main h3 { color: var(--tft-ink) !important; }
.tft .tft-plan--main .tft-plan-price span { color: var(--tft-muted); opacity: 1; }
.tft .tft-plan--main a.tft-plan-trial { color: #a3360a !important; }
.tft .tft-plans--dark .tft-plan:not(.tft-plan--main) p, .tft .tft-plans--dark .tft-plan:not(.tft-plan--main) li { color: #e7e5df; }
.tft .tft-plans--dark .tft-plan:not(.tft-plan--main) .tft-plan-price span { color: #a8abb2; opacity: 1; }
.tft-plan-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tft .tft-plan h3 { margin: 0; font-size: 1.7rem; color: inherit; }
.tft-badge { font-size: 12px; font-weight: 600; color: #fff; background: var(--tft-accent); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.tft .tft-plan-price { margin: 0; color: inherit; }
.tft-plan-price strong { font-family: var(--tft-display); font-size: 3rem; line-height: 1; }
.tft-plan-price span { opacity: .75; }
.tft-plan-feat { margin: 0 0 8px; padding-left: 18px; }
.tft .tft-plan-feat li { font-size: 15px; color: inherit; opacity: .9; margin: 0 0 4px; }
.tft-plan .tft-btn { margin-top: auto; }
.tft .tft-plan-trial { text-align: center; font-size: 15px; font-weight: 600; text-decoration: none; color: #a3360a; }
.tft .tft-plans-note { margin-top: 22px; font-size: 15px; }

/* Updates and CSV box */
.tft .tft-log { list-style: none; margin: 0; padding: 0; }
.tft .tft-log li { display: flex; gap: 20px; padding: 16px 0; border-top: 1px solid var(--tft-line); margin: 0; }
.tft .tft-log li:last-child { border-bottom: 1px solid var(--tft-line); }
.tft .tft-log strong { flex: 0 0 96px; font-family: var(--tft-mono); font-size: 14px; color: #a3360a; font-weight: 500; }
.tft .tft-csv-box { background: var(--tft-soft); border-radius: 16px; padding: 36px; align-self: flex-start; }
.tft .tft-csv-box .tft-eyebrow { color: var(--tft-soon); }

/* Offer card (CSV page) */
.tft .tft-offer { background: var(--tft-ink); color: #f7f6f3; border-radius: 18px; padding: 32px; }
.tft .tft-offer p { color: #c9cbd0; }
.tft .tft-offer .tft-eyebrow { color: #fdba8c; }
.tft .tft-offer .tft-offer-big { font-family: var(--tft-display); font-weight: 700; font-size: 4rem !important; line-height: 1; color: #fff !important; margin: 0 0 4px; }
.tft .tft-offer .tft-small { color: #a8abb2; }

/* Table */
.tft .tft-table { margin: 24px 0 0; overflow-x: auto; background: var(--tft-paper); border: 1px solid var(--tft-line); border-radius: var(--tft-radius); }
.tft .tft-table table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 16px; }
.tft .tft-table thead { border-bottom: 1px solid var(--tft-line) !important; }
.tft .tft-table th, .tft .tft-table td { text-align: left; padding: 14px 20px; border: 0; border-bottom: 1px solid #eeebe5; vertical-align: top; }
.tft .tft-table tbody tr:last-child td { border-bottom: 0; }
.tft .tft-table th:last-child { color: #a3360a; }
.tft .tft-table td:first-child { font-weight: 600; }
.tft .tft-table td:nth-child(2) { color: var(--tft-muted); }

/* Steps */
.tft .tft-step { background: var(--tft-paper); border: 1px solid var(--tft-line); border-radius: 12px; padding: 22px; }
.tft.tft-dark .tft-step { background: var(--tft-dark-2); border-color: #343842; }
.tft .tft-step-num { font-family: var(--tft-mono); font-weight: 500; color: #a3360a !important; margin: 0 0 6px; }
.tft.tft-dark .tft-step-num { color: #fdba8c !important; }
.tft .tft-step h3 { font-family: inherit; font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.tft .tft-step p:last-child { font-size: 15px; margin: 0; }

/* Questions */
.tft.tft-faq .wp-block-details { border-top: 1px solid var(--tft-line); padding: 18px 0; margin: 0; }
.tft.tft-faq .wp-block-details:last-child { border-bottom: 1px solid var(--tft-line); }
.tft.tft-faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style-position: outside; }
.tft.tft-faq details p { margin: 10px 0 0; }

/* Final call to action */
.tft.tft-final { padding-top: 0 !important; }
.tft .tft-final-box { background: var(--tft-paper); border: 1px solid var(--tft-line); border-radius: 20px; padding: 48px 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.tft .tft-final-box > *, .tft .tft-final-box > .wp-block-group__inner-container > * { margin: 0 !important; }
.tft .tft-final-copy { flex: 1 1 420px; }
.tft .tft-final-copy p:last-child { margin: 0; }
.tft .tft-final-dark { background: var(--tft-ink); border-color: var(--tft-ink); color: #f7f6f3; }
.tft .tft-final-dark h2 { color: #fff; }
.tft .tft-final-dark p { color: #c9cbd0; }
.tft .tft-final-box .tft-buttons { margin-top: 0; }

/* Lists with ticks */
.tft .tft-checks { list-style: none; padding: 0; margin: 0; }
.tft .tft-checks li { position: relative; padding-left: 32px; margin: 0 0 12px; }
.tft .tft-checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; background: var(--tft-accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Waitlist form */
.tft-form { display: flex; flex-direction: column; gap: 14px; }
.tft-form p { margin: 0; }
.tft-form label { display: block; font-size: 14px; font-weight: 600; color: var(--tft-ink); margin-bottom: 6px; }
.tft-form .tft-opt { font-weight: 400; color: var(--tft-muted); }
.tft-form input[type="email"], .tft-form input[type="text"], .tft-form select, .tft-form textarea { width: 100%; box-sizing: border-box; min-height: 48px; font: inherit; font-size: 16px; border: 1px solid var(--tft-line-2); border-radius: 8px; padding: 11px 12px; background: var(--tft-ground); color: var(--tft-ink); }
.tft-form textarea { resize: vertical; min-height: 96px; }
.tft-form input:focus-visible, .tft-form select:focus-visible, .tft-form textarea:focus-visible { outline: 3px solid var(--tft-accent); outline-offset: 1px; }
.tft-form .tft-btn { width: 100%; }
.tft-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.tft-form-msg { border-radius: 10px; padding: 14px 16px; font-weight: 500; }
.tft-form-msg--ok { background: var(--tft-ok-bg); color: #14532d; }
.tft-form-msg--err { background: #fef2f2; color: #991b1b; }

/* Sidebar box on the tire-size pages (API mode) */
.tft-cta .tfp-btn { white-space: normal; }

@media (max-width: 600px) {
	.tfp-home-main .tft.tft-sec { padding: 56px 0; }
	.tft.tft-hero { padding: 48px 0 40px !important; }
	.tft .tft-final-box { padding: 32px 22px; }
	.tft .tft-csv-box, .tft .tft-offer { padding: 26px; }
	.tft .tft-buttons .wp-block-button { flex: 1 1 100%; }
	.tft .tft-buttons .wp-block-button__link { width: 100%; }
	.tft .tft-log li { flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
	.tft *, .tft-header * { transition: none !important; }
}

/* Uploaded logo: in style.css (1.0.26), since this file is not loaded on every page in CSV mode. */

/* Feature rows with small illustrations (WooCommerce page) */
.tft .tft-feature { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding: 40px 0; border-top: 1px solid var(--tft-line); }
.tft .tft-feature:first-of-type { border-top: 0; padding-top: 8px; }
.tft .tft-feature > *, .tft .tft-feature > .wp-block-group__inner-container > * { flex: 1 1 420px; min-width: 0; margin: 0 !important; }
.tft .tft-num { font-family: var(--tft-mono); font-weight: 500; color: #a3360a !important; margin: 0 0 8px !important; }
.tft .tft-mock { background: var(--tft-ground); border-radius: var(--tft-radius); padding: 24px; font-size: 14px; color: var(--tft-ink); }
.tft .tft-mock-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tft .tft-mock-field { background: #fff; border: 1px solid var(--tft-line-2); border-radius: 8px; padding: 10px; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tft .tft-mock-result { margin-top: 12px; background: var(--tft-ink); color: #f7f6f3; border-radius: 10px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.tft .tft-mock-result b { font-family: var(--tft-mono); font-size: 20px; font-weight: 600; }
.tft .tft-mock-result span { font-size: 14px; color: #c9cbd0; }
.tft .tft-mock-url { font-family: var(--tft-mono); font-size: 13px; color: var(--tft-muted); }
.tft .tft-mock-title { font-family: var(--tft-display); font-weight: 700; font-size: 26px; margin: 6px 0 12px; }
.tft .tft-mock-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tft .tft-mock-tiles span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 72px; padding: 10px 6px; box-sizing: border-box; background: #fff; border: 1px solid var(--tft-line); border-radius: 8px; text-align: center; font-size: 12px; line-height: 1.3; color: var(--tft-text); }
.tft .tft-mock-tiles span:empty { padding: 0; }
.tft .tft-mock-tiles b { display: block; font-size: 22px; line-height: 1.1; color: var(--tft-ink); margin-bottom: 2px; }
.tft .tft-mock-note { margin-top: 12px; color: var(--tft-text); }
.tft .tft-mock-box { background: #fff; border: 1px solid var(--tft-line); border-radius: 10px; padding: 16px 18px; }
.tft .tft-mock-box > b { display: block; margin-bottom: 8px; }
.tft .tft-mock-box > span { display: block; padding: 8px 0; border-top: 1px solid #eeebe5; font-size: 15px; }
.tft .tft-mock-box > span.tft-mock-link { color: #a3360a; font-weight: 600; padding-bottom: 0; }
.tft .tft-mock-checks { display: flex; flex-direction: column; gap: 8px; }
.tft .tft-mock-checks span { background: #fff; border: 1px solid var(--tft-line); border-radius: 8px; padding: 12px 14px; font-size: 15px; }
.tft .tft-mock-checks span::before { content: "✓  "; color: var(--tft-ok); font-weight: 700; }
.tft .tft-wp { background: #f0f0f1; color: #1d2327; border-radius: 10px; padding: 22px; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 14px; }
.tft .tft-wp-title { font-size: 20px; font-weight: 600; margin-bottom: 14px; }
.tft .tft-wp-panel { background: #fff; border: 1px solid #c3c4c7; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.tft .tft-wp-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.tft .tft-wp-row > b { width: 110px; font-weight: 600; }
.tft .tft-wp-row > span { flex: 1; border: 1px solid #8c8f94; border-radius: 4px; padding: 6px 10px; }
.tft .tft-wp-btns { display: flex; gap: 8px; }
.tft .tft-wp-btns span { border-radius: 3px; padding: 6px 12px; border: 1px solid #2271b1; color: #2271b1; }
.tft .tft-wp-btns span:first-child { background: #2271b1; color: #fff; }
.tft .tft-wp-ok { background: #edfaef; border-left: 4px solid #00a32a; padding: 8px 12px; }
.tft.tft-dark ol.tft-steps-list { padding-left: 22px; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.tft.tft-dark ol.tft-steps-list li { color: #e7e5df; margin: 0; }

/* Plugin cards with icons (WooCommerce hero) */
.tft .tft-card-row:is(.tft-ico-db, .tft-ico-cart) { position: relative; padding-left: 88px !important; min-height: 48px; justify-content: center; }
.tft .tft-card-row:is(.tft-ico-db, .tft-ico-cart)::before { content: ""; position: absolute; left: 22px; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 10px; background: var(--tft-ink); }
.tft .tft-card-row:is(.tft-ico-db, .tft-ico-cart)::after { content: ""; position: absolute; left: 34px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; background: #f7f6f3; -webkit-mask: var(--tft-ico) center / contain no-repeat; mask: var(--tft-ico) center / contain no-repeat; }
.tft .tft-ico-db { --tft-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cellipse cx='12' cy='6' rx='8' ry='3'/%3E%3Cpath d='M4 6v12c0 1.7 3.6 3 8 3s8-1.3 8-3V6M4 12c0 1.7 3.6 3 8 3s8-1.3 8-3'/%3E%3C/svg%3E"); }
.tft .tft-ico-cart { --tft-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M3 4h2l2.5 11h11L21 7H6.5'/%3E%3Ccircle cx='9' cy='19' r='1.5'/%3E%3Ccircle cx='17' cy='19' r='1.5'/%3E%3C/svg%3E"); }
.tft .tft-ico-cart::before { background: var(--tft-accent); }
.tft .tft-ico-cart::after { background: #fff; }
.tft .tft-plus { text-align: center; color: #9a9da4; font-size: 20px; margin: -4px 0 !important; }
@media (max-width: 600px) {
	.tft .tft-mock-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/*
 * SEO Pages sets the body font, normal letter spacing and an inherited size on every paragraph of
 * these pages (body.tfp-shell .tfp-home-main p). These rules are written to win over that (1.0.17).
 */
body.tfp-shell .tft p, body.tfp-shell .tft li { font-size: 17px; }
body.tfp-shell .tft p.tft-lead { font-size: 20px; }
body.tfp-shell .tft p.tft-sub { font-size: 19px; }
body.tfp-shell .tft p.tft-small, body.tfp-shell .tft .tft-small { font-size: 14px; }
body.tfp-shell .tft p.tft-eyebrow { font-family: var(--tft-mono) !important; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
body.tfp-shell .tft p.tft-num, body.tfp-shell .tft p.tft-step-num { font-family: var(--tft-mono) !important; font-size: 15px; }
body.tfp-shell .tft p.tft-code { font-family: var(--tft-mono) !important; font-size: 13px; }
body.tfp-shell .tft p.tft-pick { font-family: var(--tft-display) !important; font-size: 1.4rem; }
body.tfp-shell .tft p.tft-offer-big { font-family: var(--tft-display) !important; font-size: 4.2rem; line-height: 1; }
body.tfp-shell .tft p.tft-badge-p { font-size: 12px; }
body.tfp-shell .tft p.tft-plus { font-size: 20px; }
body.tfp-shell .tft .tft-plan-feat li { font-size: 15px; }
body.tfp-shell .tft .tft-plans-note { font-size: 15px; margin-top: 28px !important; }

/* Home: illustration card with heading and text below */
.tft .tft-shot { display: flex; flex-direction: column; }
.tft .tft-shot-card { background: var(--tft-paper); border: 1px solid var(--tft-line); border-radius: 16px; padding: 32px; min-height: 200px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; gap: 12px; margin-bottom: 22px; font-size: 15px; color: var(--tft-ink); }
.tft .tft-shot h3 { font-size: 1.6rem; margin-bottom: 8px; }
.tft .tft-mock-go { background: var(--tft-accent); color: #fff; border-radius: 8px; padding: 14px; text-align: center; font-weight: 600; }
.tft .tft-mock-box--flat { border: 0; padding: 0; background: transparent; }
.tft .tft-mock-box--flat > span { color: var(--tft-text); }
.tft .tft-mock-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tft .tft-mock-chips span { background: var(--tft-ground); border-radius: 8px; padding: 6px 12px; font-size: 14px; }
.tft .tft-shot-card .tft-mock-title { margin: 0; }
.tft .tft-shot-card .tft-mock-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* Cards in one row are the same height, and their headings and texts line up (1.1.3) */
@supports (grid-template-rows: subgrid) {
	@media (min-width: 701px) {
		.tft .tft-shot { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; }
	}
}
/* Phones: heading and text above their illustration, and more room between features, so each title reads with its own card */
@media (max-width: 700px) {
	.tft .tft-grid-3:has(> .tft-shot), .tft .tft-grid-3 > .wp-block-group__inner-container:has(> .tft-shot) { gap: 44px; }
	.tft .tft-shot, .tft .tft-shot > .wp-block-group__inner-container { display: flex; flex-direction: column; }
	.tft .tft-shot h3 { order: 1; }
	.tft .tft-shot p { order: 2; }
	.tft .tft-shot-card { order: 3; margin: 14px 0 0; }
}

/* CSV page: quote cards and the offer card */
.tft .tft-quote h3 { font-family: inherit; font-size: 18px; font-weight: 600; line-height: 1.4; margin-bottom: 8px; }
body.tfp-shell .tft .tft-offer p.tft-offer-sub { font-size: 19px; color: #f7f6f3; margin-bottom: 20px; }
.tft .tft-offer-rows s { color: #a8abb2; }
.tft .tft-offer-rows b { color: #fff; }
.tft .tft-offer .tft-buttons { margin-top: 18px; }
.tft .tft-offer .wp-block-button { flex: 1 1 100%; }
.tft .tft-offer .wp-block-button__link { width: 100%; }

/* My account and other ordinary pages in API mode: sentence-case titles like the rest of the site */
body.tft-api .tft-title { text-transform: none; letter-spacing: -0.005em; }

/* 1.0.18: offer price rows as paragraphs, plan links, finder in three columns */
.tft .tft-offer-rows { margin: 4px 0 18px !important; }
body.tfp-shell .tft .tft-offer p.tft-offer-row { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 12px 0; border-top: 1px solid #2b2f37; color: #c9cbd0; font-size: 16px; }
body.tfp-shell .tft .tft-offer p.tft-offer-row:last-child { border-bottom: 1px solid #2b2f37; }
.tft .tft-offer .tft-was { text-decoration: line-through; color: #a8abb2; }
.tft .tft-offer .tft-offer-row strong { color: #fff; }
.tft p.tft-pick a { color: #a3360a; text-decoration: none; }
.tft p.tft-pick a:hover { text-decoration: underline; }
.tft .tft-finder-card .tfp-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 600px) { .tft .tft-finder-card .tfp-fields { grid-template-columns: minmax(0, 1fr); } }

/* 1.0.21: questions with a +/– marker inside the box (no arrow hanging outside on phones) */
.tft.tft-faq summary { list-style: none; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-right: 4px; }
.tft.tft-faq summary::-webkit-details-marker { display: none; }
.tft.tft-faq summary::marker { content: ""; }
.tft.tft-faq summary::after { content: "+"; flex: none; font-family: var(--tft-mono); font-weight: 500; font-size: 22px; line-height: 1.1; color: #a3360a; }
.tft.tft-faq details[open] > summary::after { content: "–"; }

/* 1.0.21: menu button visible on the light header */
body.tft-api .tft-header .tfp-menu-toggle { color: var(--tft-ink) !important; background: #fff !important; border: 1px solid var(--tft-line-2) !important; border-radius: 8px; }
body.tft-api .tft-header .tfp-menu-toggle svg { stroke: var(--tft-ink) !important; }
body.tft-api.tfp-menu-open .tft-header .tfp-menu-toggle { background: var(--tft-ground) !important; }

/* /api/ errors table (API Server markup): on phones each error is one row, status and code on top, meaning below, nothing cut off */
@media (max-width: 600px) {
	.tfa-table-wrap { overflow: visible; padding: 4px 16px; }
	.tfa-table, .tfa-table tbody, .tfa-table tr { display: block; min-width: 0 !important; width: auto !important; }
	.tfa-table thead { display: none; }
	.tfa-table tr { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 4px; padding: 12px 0; border-bottom: 1px solid rgba(0, 0, 0, .08); }
	.tfa-table tr:last-child { border-bottom: 0; }
	.tfa-table td { display: block; padding: 0 !important; border: 0 !important; white-space: normal !important; min-width: 0; }
	.tfa-table td:nth-child(3) { grid-column: 1 / -1; }
	.tfa-table td code { overflow-wrap: normal; word-break: normal; white-space: nowrap; }
}
