/**
 * Globalny Reset Obramowań (Tailwind Preflight) - Eliminuje efekt FOUC i ramki w Firefoxie
 */
*, ::before, ::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e2e8f0;
}

/* Podstawowe klasy obramowań używane w sekcjach i widżetach */
.border { border-width: 1px !important; }
.border-0 { border-width: 0px !important; }
.border-t { border-top-width: 1px !important; }
.border-b { border-bottom-width: 1px !important; }
.border-l { border-left-width: 1px !important; }
.border-r { border-right-width: 1px !important; }

.border-slate-100 { border-color: #f1f5f9 !important; }
.border-slate-200 { border-color: #e2e8f0 !important; }
.border-slate-300 { border-color: #cbd5e1 !important; }
.border-slate-700 { border-color: #334155 !important; }
.border-slate-800 { border-color: #1e293b !important; }

/* Eliminacja domyślnych obrysów i ramek w przeglądarce Firefox */
section, div, article, header, footer, a {
    outline: none !important;
}
section:focus, div:focus, a:focus {
    outline: none !important;
}
:-moz-focusring {
    outline: none !important;
}

/**
 * Style Frontendowe dla Thermomix Landing Elementor Addon
 */

/* Konfiguracja czcionek i podstawowych zmiennych */
:root {
    --tm-vorwerk-50: #eaf3ec;
    --tm-vorwerk-100: #d5e5da;
    --tm-vorwerk-500: #2f8453;
    --tm-vorwerk-600: #2f8453;
    --tm-vorwerk-700: #276f46;
    --tm-vorwerk-800: #1f5938;
    --tm-vorwerk-900: #164329;
    --tm-amber-accent: #f59e0b;
}

body, .elementor-widget-tm_header, .elementor-widget-tm_nav_menu, .elementor-widget-tm_hero,
.elementor-widget-tm_trustbar, .elementor-widget-tm_pricing_calculator,
.elementor-widget-tm_presentation_steps, .elementor-widget-tm_target_audience,
.elementor-widget-tm_about, .elementor-widget-tm_about_page, .elementor-widget-tm_coverage,
.elementor-widget-tm_comparison, .elementor-widget-tm_testimonials,
.elementor-widget-tm_faq, .elementor-widget-tm_contact_form,
.elementor-widget-tm_contact_page, .elementor-widget-tm_promotions,
.elementor-widget-tm_floating_cta, .elementor-widget-tm_blog_archive,
.elementor-widget-tm_single_post, .elementor-widget-tm_footer {
    font-family: 'Alegreya', Georgia, serif;
}

button, input[type="submit"], .tm-btn, .tm-hero-btn, .tm-about-cta-btn,
.tm-about-btn-primary, .tm-about-btn-phone, .tm-promo-btn-primary,
.tm-promo-btn-phone, .tm-calc-btn, .tm-contact-submit-btn,
.tm-form-submit-btn, .tm-badge, .tm-promo-top-badge,
.tm-about-section-badge, .tm-promo-savings-pill {
    font-family: 'Poppins', 'Alegreya', sans-serif;
}

/* Szklany nagłówek */
.glass-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Gradient tła sekcji Hero */
.hero-bg-gradient {
    background: radial-gradient(circle at top right, rgba(47, 132, 83, 0.08), transparent 50%),
                radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.05), transparent 40%);
}

/* Płynne przejścia */
.tm-transition {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animacja Fade In */
@keyframes tmFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: tmFadeIn 0.4s ease-out forwards;
}

/* Reset marginesów w kontenerach Elementora */
.elementor-widget-tm_hero .elementor-widget-container,
.elementor-widget-tm_header .elementor-widget-container,
.elementor-widget-tm_nav_menu .elementor-widget-container,
.elementor-widget-tm_trustbar .elementor-widget-container,
.elementor-widget-tm_pricing_calculator .elementor-widget-container,
.elementor-widget-tm_presentation_steps .elementor-widget-container,
.elementor-widget-tm_target_audience .elementor-widget-container,
.elementor-widget-tm_about .elementor-widget-container,
.elementor-widget-tm_about_page .elementor-widget-container,
.elementor-widget-tm_coverage .elementor-widget-container,
.elementor-widget-tm_comparison .elementor-widget-container,
.elementor-widget-tm_testimonials .elementor-widget-container,
.elementor-widget-tm_faq .elementor-widget-container,
.elementor-widget-tm_contact_form .elementor-widget-container,
.elementor-widget-tm_contact_page .elementor-widget-container,
.elementor-widget-tm_promotions .elementor-widget-container,
.elementor-widget-tm_floating_cta .elementor-widget-container,
.elementor-widget-tm_blog_archive .elementor-widget-container,
.elementor-widget-tm_single_post .elementor-widget-container,
.elementor-widget-tm_footer .elementor-widget-container {
    width: 100%;
}

/* Styl suwaka kalkulatora rat (Perfekcyjna obsługa Chrome, Edge, Firefox, Safari) */
.tm-calc-slider {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    height: 28px;
    background: transparent;
    outline: none;
    margin: 6px 0;
    cursor: pointer;
    pointer-events: auto !important;
    touch-action: pan-x !important;
    position: relative;
    z-index: 10;
    display: block;
}

.tm-calc-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 10px;
    cursor: pointer;
    background: #334155;
    border-radius: 9999px;
    border: none;
}

.tm-calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 26px;
    height: 26px;
    margin-top: -8px;
    border-radius: 50%;
    background: #2f8453;
    cursor: grab;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.15s ease, background 0.15s ease;
}

.tm-calc-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.15);
    background: #2f8453;
}

.tm-calc-slider::-moz-range-track {
    width: 100%;
    height: 10px;
    cursor: pointer;
    background: #334155;
    border-radius: 9999px;
    border: none;
}

.tm-calc-slider::-moz-range-thumb {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #2f8453;
    cursor: grab;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* Domyślne style dla górnych odznak sekcji (Badges / Subtitles) */
.tm-hero-badge,
.tm-steps-badge,
.tm-audience-badge,
.tm-about-section-badge,
.tm-coverage-badge,
.tm-comparison-badge,
.tm-testimonials-badge,
.tm-blog-badge,
.tm-single-category-badge,
.tm-faq-badge {
    background-color: rgba(209, 250, 229, 0.85);
    color: #276f46;
    border: 1px solid rgba(167, 243, 208, 0.9);
}

.tm-hero-badge i {
    color: #2f8453;
}

.tm-contact-badge {
    background-color: #1f5938;
    color: #389b62;
    border: 1px solid #276f46;
}

.tm-topbar-badge {
    background-color: #1f5938;
    color: #6ee7b7;
    border: 1px solid #276f46;
}

.tm-review-badge {
    background-color: #eaf3ec;
    color: #047857;
}

/* Domyślne style boxów */
.tm-hero-inner-box {
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.tm-hero-card-badge {
    background-color: #f59e0b;
    color: #ffffff;
}

.tm-hero-card-pill {
    background-color: #0f172a;
    color: #ffffff;
}

.tm-package-price-box {
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.tm-calc-result-box {
    border: 1px solid rgba(51, 65, 85, 0.8);
}

/* ==========================================================================
   GWARANCJA KONTRASTU I CZYTELNOŚCI (HIGH CONTRAST & READABILITY)
   ========================================================================== */

/* --- 1. STRONA KONTAKTU (TM - Strona Kontaktu) --- */
/* Główny nagłówek i opis na jasnym tle */
.tm-contact-page-wrapper .tm-contact-page-title,
.elementor-widget-tm_contact_page h1.tm-contact-page-title,
h1.tm-contact-page-title {
    color: #0f172a !important;
}
.tm-contact-page-wrapper .tm-contact-page-desc,
.elementor-widget-tm_contact_page p.tm-contact-page-desc,
p.tm-contact-page-desc {
    color: #334155 !important;
}

/* 4 Karty Szybkiego Kontaktu - wysoki kontrast i czytelność */
.tm-quick-contact-card {
    background-color: #0f172a !important;
    border: 1px solid #334155 !important;
    transition: all 0.3s ease;
}
.tm-quick-contact-card .tm-quick-contact-label,
.tm-quick-contact-label {
    color: #cbd5e1 !important;
}
.tm-quick-contact-card .tm-quick-contact-val,
.tm-quick-contact-val {
    color: #ffffff !important;
    font-weight: 800 !important;
}
.tm-quick-contact-card .tm-quick-contact-sub,
.tm-quick-contact-sub {
    color: #94a3b8 !important;
}
.tm-quick-contact-card .tm-quick-contact-status,
.tm-quick-contact-status {
    color: #389b62 !important;
    font-weight: 700 !important;
}
.tm-quick-contact-card .tm-quick-contact-icon {
    background-color: rgba(16, 185, 129, 0.2) !important;
    color: #389b62 !important;
}

/* Główna karta formularza kontaktowego */
.tm-contact-main-form-card {
    background-color: #0f172a !important;
    border: 1px solid #334155 !important;
}
.tm-contact-main-form-card h2,
.tm-contact-main-form-card .tm-form-title {
    color: #ffffff !important;
}
.tm-contact-main-form-card p,
.tm-contact-main-form-card .tm-form-subtitle {
    color: #cbd5e1 !important;
}
.tm-contact-main-form-card label,
.tm-contact-main-form-card .tm-field-label {
    color: #f1f5f9 !important;
    font-weight: 700 !important;
}
.tm-contact-main-form-card .tm-contact-input,
.tm-contact-main-form-card input,
.tm-contact-main-form-card select,
.tm-contact-main-form-card textarea {
    background-color: #1e293b !important;
    border: 1px solid #475569 !important;
    color: #ffffff !important;
}
.tm-contact-main-form-card .tm-contact-input::placeholder,
.tm-contact-main-form-card input::placeholder,
.tm-contact-main-form-card textarea::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}
.tm-contact-main-form-card .tm-rodo-text,
.tm-contact-main-form-card label[for="rodoContactPage"],
.tm-contact-main-form-card label[for="rodoCheck"] {
    color: #cbd5e1 !important;
}

/* Panel Doradcy (Trust Card po prawej) */
.tm-advisor-trust-card {
    background-color: #0f172a !important;
    border: 1px solid #334155 !important;
}
.tm-advisor-trust-card .tm-advisor-name,
.tm-advisor-trust-card h3 {
    color: #ffffff !important;
}
.tm-advisor-trust-card .tm-advisor-role {
    color: #389b62 !important;
}
.tm-advisor-trust-card .tm-advisor-rating {
    color: #fbbf24 !important;
}
.tm-advisor-trust-card h4,
.tm-advisor-trust-card .tm-advisor-heading {
    color: #f1f5f9 !important;
}
.tm-advisor-trust-card ul li,
.tm-advisor-trust-card .tm-advisor-bullet {
    color: #f1f5f9 !important;
}
.tm-advisor-trust-card ul li i,
.tm-advisor-trust-card .tm-advisor-bullet i {
    color: #389b62 !important;
}
.tm-advisor-trust-card .tm-advisor-note-box {
    background-color: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #e2e8f0 !important;
}

/* FAQ na stronie kontaktu */
.tm-faq-wrapper .tm-contact-faq-item,
.tm-contact-faq-item {
    background-color: #0f172a !important;
    border: 1px solid #334155 !important;
}
.tm-contact-faq-item .faq-toggle,
.tm-contact-faq-item button {
    color: #ffffff !important;
    font-weight: 700 !important;
}
.tm-contact-faq-item .faq-toggle i {
    color: #389b62 !important;
}
.tm-contact-faq-item .faq-content {
    color: #e2e8f0 !important;
    border-top: 1px solid #334155 !important;
}


/* --- 2. STRONA O MNIE (TM - Strona O Mnie) --- */
/* Główny nagłówek H1 i biogram na jasnym tle */
.tm-about-page-section h1.tm-about-page-title,
.elementor-widget-tm_about_page h1.tm-about-page-title,
h1.tm-about-page-title {
    color: #0f172a !important;
}
.tm-about-page-section p.tm-about-page-desc,
.elementor-widget-tm_about_page p.tm-about-page-desc,
p.tm-about-page-desc {
    color: #334155 !important;
}

/* Karta wizytówki po lewej */
.tm-about-profile-card {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}
.tm-about-profile-card h3 {
    color: #0f172a !important;
}
.tm-about-profile-card p {
    color: #475569 !important;
}
.tm-about-profile-card a,
.tm-about-profile-card span {
    color: #1e293b !important;
}

/* Cytat pod biogramem */
.tm-about-quote-box {
    background-color: #f0fdf4 !important;
    border-left: 4px solid #2f8453 !important;
}
.tm-about-quote-text {
    color: #0f172a !important;
    font-style: italic !important;
}
.tm-about-quote-author {
    color: #276f46 !important;
    font-weight: 800 !important;
}

/* Sekcja Statystyk (Ciemna sekcja kontrastowa) */
.tm-about-stats-container {
    background-color: #0f172a !important;
    color: #ffffff !important;
}
.tm-about-stat-number {
    color: #ffffff !important;
}
.tm-about-stat-label {
    color: #e2e8f0 !important;
}
.tm-about-stat-sub {
    color: #94a3b8 !important;
}

/* Sekcja Filarów Współpracy (Ciemne karty z białym tekstem) */
.tm-about-pillar-card {
    background-color: #1e293b !important;
    border: 1px solid #334155 !important;
}
.tm-about-pillar-card h3,
.tm-about-pillar-card .tm-pillar-title {
    color: #ffffff !important;
}
.tm-about-pillar-card p,
.tm-about-pillar-card .tm-pillar-desc {
    color: #cbd5e1 !important;
}


/* --- 3. STRONA PROMOCJI (TM - Aktualna Promocja) --- */
/* Nagłówek H2 i podtytuł na jasnym tle */
.tm-promotions-section h2.tm-promo-title,
.elementor-widget-tm_promotions h2.tm-promo-title,
h2.tm-promo-title {
    color: #0f172a !important;
}
.tm-promotions-section p.tm-promo-subtitle,
.elementor-widget-tm_promotions p.tm-promo-subtitle,
p.tm-promo-subtitle {
    color: #334155 !important;
}

/* Kafelki Dat (Start i Koniec) */
.tm-promo-date-card {
    background-color: #ffffff !important;
}
.tm-promo-date-card .tm-date-label-start,
.tm-promo-start-val-lbl {
    color: #276f46 !important;
}
.tm-promo-date-card .tm-promo-start-val {
    color: #0f172a !important;
}
.tm-promo-date-card .tm-promo-end-val {
    color: #0f172a !important;
}
.tm-promo-date-card .tm-promo-date-sub {
    color: #64748b !important;
}

/* Licznik czasu na żywo (Countdown) */
.tm-countdown-unit {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}
.tm-countdown-unit .tm-countdown-num {
    color: #0f172a !important;
}
.tm-countdown-unit .tm-countdown-seconds {
    color: #2f8453 !important;
}
.tm-countdown-unit .tm-countdown-lbl {
    color: #475569 !important;
    font-weight: 800 !important;
}

/* Główna karta oferty promocyjnej */
.tm-promo-main-card {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}
.tm-promo-main-card h3 {
    color: #0f172a !important;
}
.tm-promo-main-card p {
    color: #475569 !important;
}
.tm-promo-main-card ul li span {
    color: #1e293b !important;
}
.tm-promo-current-price {
    color: #2f8453 !important;
}
.tm-promo-old-price {
    color: #94a3b8 !important;
}
.tm-promo-finance-box {
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

/* ========================================================================= */
/* TM - WIDŻET MENU NAWIGACYJNEGO & OFF-CANVAS DRAWER                        */
/* ========================================================================= */

/* Blokada scrollowania strony przy otwartej szufladzie */
body.tm-drawer-open {
    overflow: hidden !important;
    touch-action: none !important;
}

/* Efekty hover dla linków na desktopie */
.tm-hover-underline .tm-desktop-nav-link {
    position: relative;
}

.tm-hover-underline .tm-desktop-nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 12px;
    right: 12px;
    height: 2px;
    background-color: var(--tm-vorwerk-600, #2f8453);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tm-hover-underline .tm-desktop-nav-link:hover::after {
    transform: scaleX(1);
}

.tm-hover-pill .tm-desktop-nav-link {
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Przycisk Hamburger (3 linie animowane do X) */
.tm-hamburger-btn {
    border: none;
    outline: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.tm-hamburger-btn .tm-hamburger-box {
    width: 22px;
    height: 16px;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.tm-hamburger-btn .tm-bar {
    display: block;
    width: 22px;
    height: 2.2px;
    border-radius: 4px;
    background-color: currentColor;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}

.tm-hamburger-btn.is-active .tm-bar-1 {
    transform: translateY(6.9px) rotate(45deg);
}

.tm-hamburger-btn.is-active .tm-bar-2 {
    opacity: 0;
    transform: scaleX(0);
}

.tm-hamburger-btn.is-active .tm-bar-3 {
    transform: translateY(-6.9px) rotate(-45deg);
}

/* Szuflada Off-Canvas - DOMYŚLNIE W 100% NIEWIDOCZNA, NIEMOŻLIWA DO KLIKNIĘCIA I SCHOWANA */
.tm-offcanvas-drawer {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 999999 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
    will-change: transform, opacity, visibility;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.25s ease,
                visibility 0.35s ease !important;
}

/* Pozycja ZAMKNIĘTA - z prawej */
.tm-offcanvas-drawer.tm-drawer-right {
    right: 0 !important;
    left: auto !important;
    transform: translate3d(100%, 0, 0) !important;
    --tw-translate-x: 100% !important;
}

/* Pozycja ZAMKNIĘTA - z lewej */
.tm-offcanvas-drawer.tm-drawer-left {
    left: 0 !important;
    right: auto !important;
    transform: translate3d(-100%, 0, 0) !important;
    --tw-translate-x: -100% !important;
}

/* Stan OTWARTY szuflady (po kliknięciu hamburgera) */
.tm-offcanvas-drawer.tm-drawer-active {
    visibility: visible !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) !important;
    --tw-translate-x: 0 !important;
}

/* Tło przyciemniające (Backdrop) */
.tm-offcanvas-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999990 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
    will-change: opacity, visibility;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.tm-offcanvas-backdrop.tm-backdrop-active {
    visibility: visible !important;
    pointer-events: auto !important;
    opacity: 1 !important;
}

/* Przycisk zamknięcia 'X' */
.tm-drawer-close-btn {
    border: none;
    outline: none;
    cursor: pointer !important;
    pointer-events: auto !important;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.tm-drawer-close-btn:hover {
    transform: rotate(90deg) scale(1.05);
}

/* Płynne wejście pozycji w szufladzie (kaskadowa mikroanimacja) */
@keyframes tmDrawerLinkEnter {
    from {
        opacity: 0;
        transform: translateX(15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.tm-drawer-active .tm-drawer-nav-item {
    animation: tmDrawerLinkEnter 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.tm-drawer-active .tm-drawer-nav-item:nth-child(1) { animation-delay: 0.05s; }
.tm-drawer-active .tm-drawer-nav-item:nth-child(2) { animation-delay: 0.08s; }
.tm-drawer-active .tm-drawer-nav-item:nth-child(3) { animation-delay: 0.11s; }
.tm-drawer-active .tm-drawer-nav-item:nth-child(4) { animation-delay: 0.14s; }
.tm-drawer-active .tm-drawer-nav-item:nth-child(5) { animation-delay: 0.17s; }
.tm-drawer-active .tm-drawer-nav-item:nth-child(6) { animation-delay: 0.20s; }
.tm-drawer-active .tm-drawer-nav-item:nth-child(7) { animation-delay: 0.23s; }
.tm-drawer-active .tm-drawer-nav-item:nth-child(8) { animation-delay: 0.26s; }
.tm-drawer-active .tm-drawer-nav-item:nth-child(n+9) { animation-delay: 0.29s; }

/* Pływający Przycisk Skocz do Góry (Scroll To Top) */
.tm-scroll-top-wrapper {
    position: fixed !important;
    z-index: 50 !important;
    pointer-events: none !important;
}

.tm-scroll-top-wrapper.tm-scroll-left {
    left: 20px;
    right: auto;
    bottom: 20px;
}

.tm-scroll-top-wrapper.tm-scroll-right {
    right: 20px;
    left: auto;
    bottom: 20px;
}

.tm-scroll-to-top {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    outline: none !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
    text-decoration: none !important;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                background-color 0.2s ease, 
                color 0.2s ease !important;
}

/* Tryb: Zawsze widoczny (pływający na stałe jak kontakt) */
.tm-scroll-mode-always .tm-scroll-to-top {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
}

/* Tryb: Dopiero po przewinięciu strony w dół */
.tm-scroll-mode-on_scroll .tm-scroll-to-top {
    opacity: 0;
    pointer-events: none !important;
    transform: translateY(15px) scale(0.9);
}

.tm-scroll-mode-on_scroll .tm-scroll-to-top.tm-visible {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
}

/* ==========================================================================
   WIDŻET FAQ - STYLE I ANIMACJE
   ========================================================================== */
.tm-faq-box {
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

/* Neutralizacja globalnych stylów button:hover z motywów WP (np. różowego/fioletowego akcentu) */
.tm-faq-box button.faq-toggle,
.tm-faq-wrapper button.faq-toggle,
button.faq-toggle {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.tm-faq-box button.faq-toggle:hover,
.tm-faq-box button.faq-toggle:focus,
.tm-faq-box button.faq-toggle:active,
.tm-faq-wrapper button.faq-toggle:hover,
.tm-faq-wrapper button.faq-toggle:focus,
.tm-faq-wrapper button.faq-toggle:active,
button.faq-toggle:hover,
button.faq-toggle:focus,
button.faq-toggle:active {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.tm-faq-box .tm-faq-icon {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
}

.tm-faq-box.is-open .tm-faq-icon.fa-chevron-down {
    transform: rotate(180deg);
}

/* Formatowanie treści odpowiedzi FAQ (WYSIWYG) */
.tm-faq-answer {
    word-break: break-word;
}

.tm-faq-answer p {
    margin-bottom: 0.75rem;
}

.tm-faq-answer p:last-child {
    margin-bottom: 0;
}

.tm-faq-answer ul {
    list-style-type: disc;
    margin-left: 1.25rem;
    margin-bottom: 0.75rem;
}

.tm-faq-answer ol {
    list-style-type: decimal;
    margin-left: 1.25rem;
    margin-bottom: 0.75rem;
}

.tm-faq-answer li {
    margin-bottom: 0.35rem;
}

.tm-faq-answer a {
    color: #2f8453;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s ease;
}

.tm-faq-answer a:hover {
    color: #276f46;
}

.tm-faq-answer strong,
.tm-faq-answer b {
    font-weight: 700;
}

/* ==========================================================================
   BLOKADA PRZYCISKU WYSYŁKI BEZ ZGODY (CONSENT LOCK & SHAKE)
   ========================================================================== */
.tm-contact-submit-btn:disabled,
.tm-form-submit-btn:disabled,
button[data-lock-until-consent="yes"]:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    filter: grayscale(35%) !important;
    transition: opacity 0.25s ease, filter 0.25s ease !important;
}

.tm-rodo-wrapper {
    transition: all 0.25s ease;
}

.tm-rodo-error {
    animation: tmShakeError 0.4s ease-in-out;
}

@keyframes tmShakeError {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* ==========================================================================
   FORMATOWANA TREŚĆ Z EDYTORA WYSIWYG (.tm-richtext)
   ========================================================================== */
.tm-richtext p {
    margin-bottom: 0.75rem;
}

.tm-richtext p:last-child {
    margin-bottom: 0;
}

.tm-richtext h1,
.tm-richtext h2,
.tm-richtext h3,
.tm-richtext h4 {
    font-weight: 800;
    line-height: 1.25;
    color: inherit;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.tm-richtext h1:first-child,
.tm-richtext h2:first-child,
.tm-richtext h3:first-child,
.tm-richtext h4:first-child {
    margin-top: 0;
}

.tm-richtext h2 {
    font-size: 1.375rem;
}

.tm-richtext h3 {
    font-size: 1.15rem;
}

.tm-richtext h4 {
    font-size: 1rem;
}

.tm-richtext strong,
.tm-richtext b {
    font-weight: 700;
    color: inherit;
}

.tm-richtext em {
    font-style: italic;
}

.tm-richtext ul {
    list-style-type: disc;
    margin-left: 1.25rem;
    margin-bottom: 0.75rem;
}

.tm-richtext ol {
    list-style-type: decimal;
    margin-left: 1.25rem;
    margin-bottom: 0.75rem;
}

.tm-richtext ul:last-child,
.tm-richtext ol:last-child {
    margin-bottom: 0;
}

.tm-richtext li {
    margin-bottom: 0.35rem;
}

.tm-richtext blockquote {
    border-left: 3px solid #2f8453;
    padding-left: 1rem;
    margin: 0.75rem 0;
    font-style: italic;
}

.tm-richtext a {
    color: #2f8453;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s ease;
}

.tm-richtext a:hover {
    color: #276f46;
}

.tm-richtext.tm-richtext-inverse a {
    color: #ffffff;
}

.tm-richtext.tm-richtext-inverse blockquote {
    border-left-color: #a7f3d0;
}


