/* ==========================================================================
   Timfora base — tokens, reset, buttons, forms, notices, shared pieces.
   Design: white ground, black type, green actions. Mobile first.
   ========================================================================== */
:root {
  --tf-bg: #ffffff;
  --tf-soft: #f5f7f5;
  --tf-ink: #111411;
  --tf-text: #2b2f2c;
  --tf-muted: #6a706b;
  --tf-line: #e6eae6;
  --tf-green: #2f6a45;
  --tf-green-dark: #234f34;
  --tf-green-tint: #eaf2ec;
  --tf-brand-green: #37543f;
  --tf-red: #c43d3d;
  --tf-red-tint: #fdf1f1;
  --tf-star: #f2a71b;
  --tf-wa: #1fa855;
  --tf-font: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --tf-r: 12px;
  --tf-r-sm: 8px;
  --tf-max: 1280px;
  --tf-gap: 12px;
  --tf-gutter: 16px;
  --tf-ease: cubic-bezier(.2, .7, .2, 1);
  --tf-header-h: 0px;
  --tf-bottom-ui: 0px;
}
@media (min-width: 768px) { :root { --tf-gap: 18px; --tf-gutter: 24px; } }
@media (min-width: 1200px) { :root { --tf-gutter: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--tf-header-h) + 12px); }
body {
  margin: 0;
  background: var(--tf-bg);
  color: var(--tf-text);
  font-family: var(--tf-font);
  font-size: var(--tf-fs, 15px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
@media (max-width: 767px) { body { font-size: calc(var(--tf-fs, 15px) - .5px); } }
img, video, svg { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4 { color: var(--tf-ink); line-height: 1.25; margin: 0 0 .5em; font-weight: 600; text-wrap: balance; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--tf-green); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--tf-green-tint); color: var(--tf-ink); }
[hidden] { display: none !important; }

.tf-wrap { width: 100%; max-width: var(--tf-max); margin-inline: auto; padding-inline: var(--tf-gutter); }
.tf-i { width: 20px; height: 20px; flex: none; display: block; }
body.tf-no-scroll { overflow: hidden; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.tf-skip:focus {
  clip: auto; width: auto; height: auto;
  top: 8px; left: 8px; z-index: 1000;
  background: #fff; padding: 10px 16px; border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
}

/* Buttons ------------------------------------------------------------------ */
.tf-btn, .button, button.button, a.button, input.button, .wp-block-button__link,
.wc-block-components-button:not(.is-link),
.woocommerce-button, #place_order, .single_add_to_cart_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 22px;
  border: 1.5px solid var(--tf-green);
  border-radius: var(--tf-btn-r, var(--tf-r-sm));
  background: var(--tf-green);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.tf-btn:hover, .button:hover, .single_add_to_cart_button:hover, #place_order:hover { background: var(--tf-green-dark); border-color: var(--tf-green-dark); color: #fff; }
.tf-btn:active, .button:active { transform: translateY(1px); }
.tf-btn .tf-i, .button .tf-i { width: 18px; height: 18px; }
.tf-btn--ghost, .button.wc-backward, .woocommerce-mini-cart__buttons .button:not(.checkout) { background: #fff; color: var(--tf-green); }
.tf-btn--ghost:hover { background: var(--tf-green-tint); color: var(--tf-green-dark); }
.tf-btn--buy { background: var(--tf-ink); border-color: var(--tf-ink); }
.tf-btn--buy:hover { background: #000; border-color: #000; }
.tf-btn--wa { background: var(--tf-wa); border-color: var(--tf-wa); }
.tf-btn--wa:hover { background: #178a45; border-color: #178a45; }
.tf-btn--sm { min-height: 38px; padding: 6px 14px; font-size: 13.5px; }
.tf-btn--block { width: 100%; }
.button.loading, .tf-btn.is-loading { opacity: .7; pointer-events: none; }
.button:disabled, .button.disabled, .single_add_to_cart_button.disabled, .tf-btn.disabled { opacity: .5; cursor: not-allowed; }

.tf-icon-btn {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 0; border-radius: 10px;
  background: none; color: var(--tf-ink);
  cursor: pointer;
}
.tf-icon-btn:hover { background: var(--tf-green-tint); color: var(--tf-green); }

.tf-round {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--tf-line);
  background: #fff;
  color: var(--tf-ink);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, opacity .15s;
}
.tf-round:hover { background: var(--tf-green); border-color: var(--tf-green); color: #fff; }
.tf-round:disabled { opacity: .35; pointer-events: none; }
.tf-round .tf-i { width: 18px; height: 18px; }

/* Forms --------------------------------------------------------------------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"],
input[type="password"], input[type="search"], input[type="date"], select, textarea, .input-text {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1.5px solid var(--tf-line);
  border-radius: var(--tf-r-sm);
  background: #fff;
  font-size: 16px; /* 16px stops phones from zooming in */
  line-height: 1.4;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
textarea { min-height: 110px; resize: vertical; }
select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6a45' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
}
input:focus, select:focus, textarea:focus { border-color: var(--tf-green); box-shadow: 0 0 0 3px var(--tf-green-tint); outline: none; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--tf-green); width: 18px; height: 18px; }
label { display: block; font-weight: 500; font-size: 14px; color: var(--tf-ink); margin-bottom: 6px; }
.required { color: var(--tf-red); text-decoration: none; border: 0; }
.form-row { margin: 0 0 14px; }
.form-row label.checkbox, .form-row label.woocommerce-form__label-for-checkbox { display: flex; align-items: center; gap: 10px; font-weight: 400; }
@media (min-width: 768px) {
  .form-row-first, .form-row-last { width: calc(50% - 7px); float: left; }
  .form-row-last { float: right; }
  .form-row-wide { clear: both; }
}
.clear { clear: both; }
.tf-hidden-field { display: none !important; }

/* Quantity box with − / + (product page and cart) ----------------------------------- */
.quantity { display: inline-flex; align-items: center; height: 44px; border: 1.5px solid var(--tf-line); border-radius: var(--tf-r-sm); background: #fff; flex: none; }
.quantity label { display: none; }
.quantity .qty {
  width: 44px;
  min-height: 0;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  text-align: center;
  font-weight: 600;
  -moz-appearance: textfield;
  box-shadow: none !important;
}
.quantity .qty::-webkit-outer-spin-button, .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tf-qty__btn { width: 40px; height: 100%; border: 0; background: none; color: var(--tf-ink); display: grid; place-items: center; cursor: pointer; }
.tf-qty__btn:hover { color: var(--tf-green); }
.tf-qty__btn .tf-i { width: 18px; height: 18px; }
.quantity.hidden, .quantity:has(input[type="hidden"]) { display: none; }

/* Notices --------------------------------------------------------------------- */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: var(--tf-r-sm);
  border: 1px solid var(--tf-line);
  border-left: 4px solid var(--tf-green);
  background: var(--tf-green-tint);
  color: var(--tf-ink);
  font-size: 14.5px;
}
.woocommerce-error { border-left-color: var(--tf-red); background: var(--tf-red-tint); flex-direction: column; align-items: flex-start; }
.woocommerce-info { background: var(--tf-soft); }
.woocommerce-message .button, .woocommerce-info .button { order: 2; min-height: 38px; padding: 6px 14px; font-size: 13.5px; margin-left: auto; }
.woocommerce-notices-wrapper:empty { display: none; }

.tf-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--tf-r-sm);
  background: var(--tf-soft);
  border: 1px solid var(--tf-line);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--tf-text);
}
.tf-notice p { margin: 0; }
.tf-notice b { color: var(--tf-ink); display: block; }
.tf-notice .tf-i { color: var(--tf-green); margin-top: 1px; }
.tf-notice--ok { background: var(--tf-green-tint); border-color: #d3e5d8; }
.tf-notice--warn { background: var(--tf-red-tint); border-color: #f3d5d5; }
.tf-notice--warn .tf-i, .tf-notice--warn b { color: var(--tf-red); }

/* Stars --------------------------------------------------------------------- */
.tf-stars {
  --tf-rating: 0;
  display: inline-block;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 2px;
  background: linear-gradient(90deg, var(--tf-star) calc(var(--tf-rating) / 5 * 100%), #d8ddd9 0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.tf-stars::before { content: "★★★★★"; }
.star-rating {
  position: relative;
  display: inline-block;
  width: 5.6em;
  height: 1.1em;
  font-size: 14px;
  line-height: 1;
  overflow: hidden;
  letter-spacing: .12em;
}
.star-rating::before { content: "★★★★★"; position: absolute; inset: 0; color: #d8ddd9; }
.star-rating span { position: absolute; top: 0; left: 0; height: 100%; overflow: hidden; padding-top: 1.5em; }
.star-rating span::before { content: "★★★★★"; position: absolute; top: 0; left: 0; color: var(--tf-star); }

/* Price ----------------------------------------------------------------------- */
.price { color: var(--tf-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.price del { color: var(--tf-muted); font-weight: 400; font-size: .86em; margin-right: 6px; text-decoration-thickness: 1px; }
.price ins { text-decoration: none; color: var(--tf-green); }
.woocommerce-Price-currencySymbol { margin-right: 1px; }

/* Breadcrumbs ----------------------------------------------------------------- */
.tf-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; color: var(--tf-muted); padding-block: 14px 4px; }
.tf-crumbs a:hover { color: var(--tf-green); }
.tf-crumbs__sep { color: #c3c9c4; }

/* Section heads ------------------------------------------------------------------- */
.tf-sec { padding-block: 22px; }
.tf-sec--tight { padding-block: 10px; }
@media (min-width: 1024px) { .tf-sec { padding-block: 32px; } }
.tf-sec-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 14px; }
.tf-sec-head__title { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 600; margin: 0; }
/* small diamond from the logo mark */
.tf-sec-head__title::before { content: ""; width: 8px; height: 8px; background: var(--tf-green); transform: rotate(45deg); flex: none; }
@media (min-width: 768px) { .tf-sec-head__title { font-size: 22px; } .tf-sec-head { margin-bottom: 18px; } }
.tf-sec-head__more { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--tf-green); font-weight: 600; font-size: 14px; white-space: nowrap; }
.tf-sec-head__more .tf-i { width: 16px; height: 16px; transition: transform .15s; }
.tf-sec-head__more:hover .tf-i { transform: translateX(3px); }
.tf-scroll-arrows { display: none; gap: 8px; }
@media (hover: hover) and (min-width: 768px) { .tf-scroll-arrows { display: flex; } }
.tf-only-mobile-swipe { display: none !important; }
.tf-sec-head__more + .tf-scroll-arrows { margin-left: 0; }
.tf-sec-head .tf-scroll-arrows:only-of-type { margin-left: auto; }
@media (max-width: 767px) { .tf-sec-head .tf-timer { order: 5; flex-basis: 100%; } }
.tf-timer { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--tf-muted); }
.tf-timer b { min-width: 30px; padding: 3px 5px; border-radius: 6px; background: var(--tf-ink); color: #fff; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Icon lists (features strip, trust badges) ------------------------------------ */
.tf-features, .tf-trust { list-style: none; margin: 0; padding: 0; display: grid; }
.tf-features li, .tf-trust li { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tf-ic { width: 42px; height: 42px; border-radius: 50%; background: var(--tf-green-tint); color: var(--tf-green); display: grid; place-items: center; flex: none; }
.tf-ic .tf-i { width: 21px; height: 21px; }
.tf-features b, .tf-trust b { display: block; font-weight: 600; font-size: 13.5px; color: var(--tf-ink); line-height: 1.3; }
.tf-features small, .tf-trust small { display: block; font-size: 12px; color: var(--tf-muted); line-height: 1.35; }

/* Prose (page content) ---------------------------------------------------------- */
.tf-prose { max-width: 760px; }
.tf-prose--wide { max-width: none; }
.tf-prose > * + * { margin-top: 1em; }
.tf-prose > h2 { font-size: 22px; margin-top: 1.6em; }
.tf-prose > h3 { font-size: 18px; margin-top: 1.4em; }
/* Only links inside running text are underlined, not cards or buttons built by shortcodes */
.tf-prose:not(.tf-prose--wide) :is(p, blockquote, td, ol > li, ul:not(.products) > li) > a:not(.button):not(.tf-btn) { color: var(--tf-green); text-decoration: underline; text-underline-offset: 3px; }
.tf-prose--wide a:not(.button):not(.tf-btn):hover { color: var(--tf-green); }
.tf-prose > ul, .tf-prose > ol { padding-left: 1.3em; }
.tf-prose img { border-radius: var(--tf-r); }
.tf-prose table { width: 100%; border-collapse: collapse; }
.tf-prose th, .tf-prose td { padding: 10px; border-bottom: 1px solid var(--tf-line); text-align: left; }

/* Designed pages (About, Contact patterns) -------------------------------------------- */
.tf-page--designed { padding-top: 4px; }
.tf-page--designed .tf-prose > * + * { margin-top: 16px; }
.tf-pg { border-radius: 20px; padding: 26px 18px; }
/* Classic themes wrap group blocks in an extra inner div: let the grid and spacing see through it */
.tf-pg .wp-block-group__inner-container { display: contents; }
.tf-pg > *, .tf-pg > .wp-block-group__inner-container > * { margin: 0; }
.tf-pg > * + *, .tf-pg > .wp-block-group__inner-container > * + * { margin-top: 12px; }
.tf-pg-card > .wp-block-group__inner-container > * { margin: 0; }
@media (min-width: 768px) { .tf-pg { padding: 40px; } .tf-page--designed .tf-prose > * + * { margin-top: 22px; } }
.tf-pg h1 { font-size: clamp(30px, 7.5vw, 52px); line-height: 1.08; letter-spacing: -.02em; font-weight: 700; margin-top: 8px; }
.tf-pg h2 { font-size: clamp(22px, 4.8vw, 32px); line-height: 1.2; letter-spacing: -.01em; max-width: 26ch; }
.tf-pg h3 { font-size: 16px; margin: 0 0 6px; }
.tf-pg-accent { color: var(--tf-green); }
.tf-pg-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--tf-green); }
.tf-pg-kicker::before { content: ""; width: 7px; height: 7px; background: currentColor; transform: rotate(45deg); }
.tf-pg-lead { font-size: 15.5px; color: var(--tf-muted); max-width: 62ch; }
.tf-pg-hero { background: linear-gradient(135deg, #eaf3ed 0%, #f8f2e7 100%); padding-block: 34px; }
@media (min-width: 768px) { .tf-pg-hero { padding: 56px; } }
.tf-pg-soft { background: var(--tf-soft); }
.tf-pg-green { background: var(--tf-brand-green); color: #fff; }
.tf-pg-green h2, .tf-pg-green h3, .tf-pg-green strong { color: #fff; }
.tf-pg-green .tf-pg-kicker { color: #bfe0c9; }
.tf-pg-green .tf-pg-lead { color: rgba(255, 255, 255, .8); }
.tf-pg-section { padding-inline: 0; }
.tf-pg-section.tf-pg-soft, .tf-pg-section.tf-pg-green { padding-inline: 18px; }
@media (min-width: 768px) { .tf-pg-section { padding-inline: 0; } .tf-pg-section.tf-pg-soft, .tf-pg-section.tf-pg-green { padding-inline: 40px; } }

.tf-pg .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tf-pg .wp-block-button__link { border-radius: 999px; padding-inline: 24px; }
.tf-pg .is-style-outline .wp-block-button__link { background: transparent; color: var(--tf-ink); border-color: var(--tf-ink); }
.tf-pg .is-style-outline .wp-block-button__link:hover { background: var(--tf-ink); color: #fff; }
.tf-pg .tf-pg-wa .wp-block-button__link { background: var(--tf-wa); border-color: var(--tf-wa); }

.tf-pg-grid { display: grid; gap: 12px; margin-top: 20px !important; }
.tf-pg-grid--2 { grid-template-columns: minmax(0, 1fr); }
.tf-pg-grid--3, .tf-pg-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tf-pg-grid--3 > :last-child:nth-child(odd), .tf-pg-grid--3 > .wp-block-group__inner-container > :last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .tf-pg-grid { gap: 16px; }
  .tf-pg-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tf-pg-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tf-pg-grid--3 > :last-child:nth-child(odd), .tf-pg-grid--3 > .wp-block-group__inner-container > :last-child:nth-child(odd) { grid-column: auto; }
}
@media (min-width: 1024px) { .tf-pg-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tf-pg-card { background: #fff; border: 1px solid var(--tf-line); border-radius: 16px; padding: 16px; }
.tf-pg-card > * { margin: 0; }
.tf-pg-card h3::before { content: ""; display: block; width: 10px; height: 10px; margin-bottom: 12px; background: var(--tf-green); transform: rotate(45deg); }
.tf-pg-card p { font-size: 13.5px; color: var(--tf-muted); line-height: 1.55; }
@media (min-width: 768px) { .tf-pg-card { padding: 20px; } .tf-pg-card p { font-size: 14px; } }

.tf-pg-checks, .tf-pg-steps { list-style: none; padding: 0 !important; display: grid; gap: 10px; margin-top: 18px !important; }
@media (min-width: 768px) { .tf-pg-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .tf-pg-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tf-pg-checks li { position: relative; padding: 14px 14px 14px 48px; border: 1px solid var(--tf-line); border-radius: 14px; background: #fff; font-size: 13.5px; color: var(--tf-muted); }
.tf-pg-checks li::before { content: ""; position: absolute; left: 14px; top: 15px; width: 22px; height: 22px; border-radius: 50%; background: var(--tf-green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6a45' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.tf-pg-checks strong, .tf-pg-steps strong { display: block; color: var(--tf-ink); font-size: 14.5px; margin-bottom: 2px; }
.tf-pg-steps { counter-reset: tfstep; }
.tf-pg-steps li { counter-increment: tfstep; position: relative; padding: 16px 16px 16px 58px; border-radius: 14px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font-size: 13.5px; color: rgba(255, 255, 255, .82); }
.tf-pg-steps li::before { content: counter(tfstep); position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--tf-brand-green); font-weight: 700; display: grid; place-items: center; }

.tf-pg-cta { text-align: center; border: 1px solid var(--tf-line); background: #fff; }
.tf-pg-cta > h2, .tf-pg-cta > .wp-block-group__inner-container > h2 { margin-inline: auto; }
.tf-pg-cta p { color: var(--tf-muted); }
.tf-pg-cta .wp-block-buttons { justify-content: center; }

.tf-pg-faq { border: 1px solid var(--tf-line); border-radius: 14px; background: #fff; padding: 0 16px; }
.tf-pg-faq + .tf-pg-faq { margin-top: 8px !important; }
.tf-pg-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; font-weight: 600; color: var(--tf-ink); }
.tf-pg-faq summary::-webkit-details-marker { display: none; }
.tf-pg-faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--tf-green); transition: transform .2s; }
.tf-pg-faq[open] summary::after { transform: rotate(45deg); }
.tf-pg-faq p { margin: 0 0 14px; color: var(--tf-muted); font-size: 14px; }

/* Contact form */
.tf-contact { max-width: 720px; margin-top: 18px !important; }
.tf-contact__form { background: #fff; border: 1px solid var(--tf-line); border-radius: 16px; padding: 18px; }
@media (min-width: 768px) { .tf-contact__form { padding: 24px; } }
.tf-contact__form p { margin: 0 0 12px; }
.tf-contact__agree label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 13px; color: var(--tf-muted); }
.tf-contact__agree input { margin-top: 2px; flex: none; }
.tf-contact .tf-notice { margin-bottom: 12px; }

/* Pages, posts ------------------------------------------------------------------- */
.tf-page { padding-bottom: 48px; }
.tf-page__head { padding-block: 10px 18px; }
.tf-page__title { font-size: 26px; margin: 0; }
@media (min-width: 768px) { .tf-page__title { font-size: 32px; } }
.tf-page__desc { color: var(--tf-muted); margin-top: 8px; max-width: 640px; }
.tf-post__meta { color: var(--tf-muted); font-size: 13.5px; margin: 6px 0 0; }
.tf-post__cover { margin: 0 0 24px; }
.tf-post__cover img { border-radius: var(--tf-r); width: 100%; }
.tf-posts { display: grid; gap: var(--tf-gap); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tf-post-card { border: 1px solid var(--tf-line); border-radius: var(--tf-r); overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.tf-post-card__img { aspect-ratio: 16 / 10; background: var(--tf-soft); display: grid; place-items: center; color: var(--tf-green); overflow: hidden; }
.tf-post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.tf-post-card__body { padding: 14px 16px 18px; }
.tf-post-card__body small { color: var(--tf-muted); }
.tf-post-card__body h2 { font-size: 17px; margin: 4px 0 6px; }
.tf-post-card__body h2 a:hover { color: var(--tf-green); }
.tf-post-card__body p { color: var(--tf-muted); font-size: 14px; margin: 0; }

.tf-empty { color: var(--tf-muted); }
.tf-empty-state { text-align: center; padding: 48px 0; display: grid; justify-items: center; gap: 12px; }
.tf-empty-state > .tf-i { width: 40px; height: 40px; color: var(--tf-green); }
.tf-empty-state .tf-search { max-width: 520px; }
.tf-404__code { font-size: 80px; line-height: 1; color: var(--tf-green); font-weight: 700; }
.tf-404__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* Pagination ---------------------------------------------------------------------- */
.tf-pagination, .woocommerce-pagination { margin-top: 28px; }
.tf-pagination .nav-links, .woocommerce-pagination ul.page-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; padding: 0; margin: 0; }
.page-numbers { min-width: 42px; height: 42px; padding: 0 12px; display: inline-grid; place-items: center; border: 1px solid var(--tf-line); border-radius: 10px; font-weight: 500; }
.page-numbers.current { background: var(--tf-green); border-color: var(--tf-green); color: #fff; }
a.page-numbers:hover { border-color: var(--tf-green); color: var(--tf-green); }
.page-numbers .tf-i { width: 18px; height: 18px; }

/* Toast ---------------------------------------------------------------------------- */
.tf-toast {
  position: fixed;
  left: 50%;
  bottom: calc(18px + var(--tf-bottom-ui) + env(safe-area-inset-bottom, 0px));
  z-index: 300;
  transform: translate(-50%, 12px);
  opacity: 0;
  max-width: calc(100vw - 32px);
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--tf-ink);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4);
  transition: opacity .2s, transform .2s var(--tf-ease);
  pointer-events: none;
}
.tf-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Popup window (review forms). Bottom sheet on phones, centred box on bigger screens --- */
.tf-modal { position: fixed; inset: 0; z-index: 420; display: none; align-items: flex-end; justify-content: center; background: rgba(17, 20, 17, .5); opacity: 0; transition: opacity .25s; }
.tf-modal.is-open, .tf-modal:target { display: flex; }
.tf-modal.is-on, .tf-modal:target { opacity: 1; }
.tf-modal__box {
  position: relative;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 22px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  transform: translateY(24px);
  transition: transform .3s var(--tf-ease);
}
.tf-modal.is-on .tf-modal__box, .tf-modal:target .tf-modal__box { transform: none; }
.tf-modal__close { position: absolute; top: 10px; right: 10px; }
.tf-modal__title { font-size: 19px; margin: 0 40px 14px 0; }
.tf-modal #review_form_wrapper { margin: 0; padding: 0; background: none; }
.tf-modal .comment-reply-title { padding-right: 40px; }
@media (min-width: 768px) {
  .tf-modal { align-items: center; padding: 24px; }
  .tf-modal__box { max-width: 560px; border-radius: 20px; padding: 26px 26px 24px; transform: translateY(16px) scale(.98); }
}

/* Coupon popup ----------------------------------------------------------------------- */
.tf-popup { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; background: rgba(17, 20, 17, .5); opacity: 0; transition: opacity .25s; }
.tf-popup.is-on { opacity: 1; }
.tf-popup__box {
  position: relative;
  width: min(100%, 400px);
  background: #fff;
  border-radius: 18px;
  padding: 30px 24px 24px;
  text-align: center;
  transform: translateY(16px) scale(.98);
  transition: transform .3s var(--tf-ease);
}
.tf-popup.is-on .tf-popup__box { transform: none; }
.tf-popup__close { position: absolute; top: 8px; right: 8px; }
.tf-popup__offer { display: inline-block; font-size: 30px; font-weight: 700; color: var(--tf-green); line-height: 1.1; }
.tf-popup__title { font-size: 20px; margin: 8px 0 6px; }
.tf-popup__text { color: var(--tf-muted); font-size: 14px; margin: 0 0 16px; }
.tf-popup__code { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border: 2px dashed var(--tf-green); border-radius: 12px; margin-bottom: 8px; }
.tf-popup__code code { flex: 1; font-size: 20px; font-weight: 700; letter-spacing: .08em; color: var(--tf-ink); text-align: left; font-family: var(--tf-font); user-select: all; }
.tf-popup__fine { font-size: 12px; color: var(--tf-muted); margin: 0 0 14px; }
.tf-popup__note { font-size: 13px; font-weight: 600; color: var(--tf-green); margin: 0 0 14px; }
.tf-popup__code + .tf-btn, .tf-popup__code + .tf-popup__note, .tf-popup__code + .tf-popup__fine { margin-top: 14px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Blog post (sample design) ------------------------------------------------------------ */
.tf-post .tf-prose { font-size: 16px; line-height: 1.75; }
.tf-post .tf-prose > p:first-of-type { font-size: 17.5px; color: var(--tf-ink); }
.tf-post .tf-prose > h2 { font-size: 23px; line-height: 1.25; margin-top: 2em; padding-top: 14px; border-top: 1px solid var(--tf-line); color: var(--tf-ink); }
.tf-post .tf-prose > h2::before { content: ""; display: block; width: 36px; height: 3px; background: var(--tf-green); border-radius: 3px; margin: -15px 0 12px; }
.tf-post__meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.tf-post__meta .tf-post__tag { background: var(--tf-green-tint); color: var(--tf-green); border-radius: 99px; padding: 2px 10px; font-weight: 600; font-size: 12px; }
.tf-note { background: var(--tf-green-tint); border-radius: var(--tf-r); padding: 16px 18px; }
.tf-note b { display: block; color: var(--tf-green-dark); margin-bottom: 6px; }
.tf-note ul { margin: 0; padding-left: 1.2em; }
.tf-note li + li { margin-top: 4px; }
.tf-tip { border-left: 4px solid var(--tf-green); background: var(--tf-soft); border-radius: 0 var(--tf-r-sm) var(--tf-r-sm) 0; padding: 12px 16px; }
.tf-tip b { color: var(--tf-green-dark); }
.tf-post .tf-prose .products { margin: 6px 0 0; }
.tf-pickhead { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--tf-muted); margin-top: 1.6em !important; }
.tf-post .tf-prose details { border: 1px solid var(--tf-line); border-radius: var(--tf-r-sm); padding: 12px 16px; }
.tf-post .tf-prose details + details { margin-top: 8px; }
.tf-post .tf-prose summary { font-weight: 600; color: var(--tf-ink); cursor: pointer; }
.tf-post .tf-prose details p { margin: 8px 0 0; }
.tf-cta { background: var(--tf-brand-green); color: #fff; border-radius: 16px; padding: 22px 20px; text-align: center; }
.tf-cta b { display: block; font-size: 19px; margin-bottom: 4px; }
.tf-cta p { margin: 0 0 14px; opacity: .9; }
.tf-post .tf-prose .tf-cta a.tf-btn { text-decoration: none; background: #fff; color: var(--tf-green-dark); }
