/*
 * Tinkerbell v6 — tb-mobile-fix.css
 * ─────────────────────────────────────────────────────────────
 * Fixes: mobile overflow / content clipping / layout breaking,
 *        footer text visibility, homepage hero stacking,
 *        sidebar layout, pricing tables, CTA sections.
 * Reference: Shelby theme mobile patterns.
 * ─────────────────────────────────────────────────────────────
 */

/* ═══════════════════════════════════════════════════════════
   1. GLOBAL — prevent horizontal scroll bleed (top priority)
   Mirrors Shelby: html { overflow-x: hidden } body { overflow-x: hidden; max-width: 100vw }
   ═══════════════════════════════════════════════════════════ */

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Ensure every image is contained */
img {
    max-width: 100%;
    height: auto;
}

/* ═══════════════════════════════════════════════════════════
   2. PAGE HOLDER — contain all content
   ═══════════════════════════════════════════════════════════ */

.page_holder {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* ═══════════════════════════════════════════════════════════
   3. .width CONTAINER — proper mobile padding at all breakpoints
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
    .width {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .width {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   4. HOMEPAGE HERO / MAIN CALCULATOR — mobile stacking
   The grid is 2-col on desktop; must stack to 1-col on mobile.
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1209px) {
    .main_calculator .width {
        grid-template-columns: 1fr !important;
        display: block !important;
    }

    .main_calculator .slogan {
        text-align: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .main_calculator .calculator.home-calculator {
        max-width: 480px !important;
        margin: 1.5rem auto 0 !important;
        width: 100% !important;
    }
}

@media (max-width: 767px) {
    /* Hero section — prevent oversized elements bleeding out */
    .main_calculator {
        overflow: hidden;
    }

    .main_calculator .width {
        display: block !important;
        padding-top: 1.5rem !important;
        padding-bottom: 2rem !important;
    }

    /* Slogan heading — shrink for small screens */
    .main_calculator .slogan .h1,
    .main_calculator .slogan h2 {
        font-size: 1.65rem !important;
        line-height: 1.2 !important;
        letter-spacing: -0.5px !important;
    }

    .main_calculator .slogan p.t22px {
        font-size: 0.98rem !important;
        max-width: 100% !important;
    }

    /* Discount chip — prevent overflow */
    .discount_chip {
        max-width: calc(100% - 30px);
        white-space: normal !important;
        text-align: center;
    }

    /* Trustpilot widget — clip to viewport */
    .main_calculator .trustpilot {
        max-width: 100% !important;
        overflow: hidden;
    }

    /* Calculator box — full width, no overflow */
    .main_calculator .calculator.home-calculator {
        max-width: 100% !important;
        width: 100% !important;
        margin: 1rem auto 0 !important;
        padding: 0 !important;
    }

    /* violet_decor decorative elements — clip them */
    .main_calculator .violet_decor:before,
    .main_calculator .violet_decor:after {
        max-width: 100vw;
        overflow: hidden;
    }

    /* Buttons stack nicely */
    .main_calculator .buttons_wrapper {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.75rem !important;
    }

    .main_calculator .buttons_wrapper .content_button {
        width: 100% !important;
        max-width: 280px !important;
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    .main_calculator .slogan .h1,
    .main_calculator .slogan h2 {
        font-size: 1.4rem !important;
    }

    .main_calculator .slogan p.t22px {
        font-size: 0.9rem !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   5. TRUST STRIP TICKER — prevent overflow
   ═══════════════════════════════════════════════════════════ */

.tb-trust-strip {
    overflow: hidden !important;
    max-width: 100vw !important;
}

/* ═══════════════════════════════════════════════════════════
   6. TWO-COLUMN LAYOUT GRID (single posts, pages)
   Must collapse to single column before any sidebar overlap.
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .tb-layout-grid,
    .tb-archive-wrap .tb-layout-grid,
    .read_more_text .tb-layout-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .tb-sidebar,
    #tbPageSidebar {
        max-width: 100% !important;
        width: 100% !important;
        position: static !important; /* disable sticky on tablet/mobile */
    }

    .tb-sidebar-sticky {
        position: static !important;
    }
}

@media (max-width: 767px) {
    .tb-layout-wrap {
        padding: 1rem 0 !important;
    }

    /* Sidebar goes below content on mobile */
    .tb-layout-grid {
        padding-top: 1rem !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   7. POST HERO — mobile sizing
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
    .tb-post-hero {
        padding: 1.5rem 0 1.75rem !important;
        overflow: hidden;
    }

    .tb-post-hero-title {
        font-size: 1.35rem !important;
        line-height: 1.25 !important;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .tb-post-hero-inner {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .tb-post-meta-row {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .tb-post-hero-title {
        font-size: 1.2rem !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   8. ARTICLE CONTENT — prevent tables/code/pre from breaking layout
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
    .tb-article,
    .tb-post-content,
    .tb-service-content,
    .expanded_content {
        overflow-x: hidden;
        max-width: 100%;
    }

    /* Tables — scrollable on mobile */
    .tb-post-content table,
    .tb-service-content table,
    .expanded_content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }

    /* Inline CTAs — stack buttons */
    .tb-icta-actions {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .tb-icta-btn-primary,
    .tb-icta-btn-gold,
    .tb-icta-btn-ghost {
        width: 100% !important;
        text-align: center !important;
    }

    /* Guarantees strip — wrap cleanly */
    .tb-guarantees-strip {
        padding: 0.85rem 1rem !important;
        gap: 0.5rem !important;
    }

    .tb-guarantee-item {
        font-size: 0.78rem !important;
    }

    /* Author box */
    .tb-author-box {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   9. SIDEBAR WIDGETS — full width on mobile
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .tb-sw {
        max-width: 100% !important;
    }

    /* Price calculator widget */
    .tb-sw-select {
        width: 100% !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   10. WHY CHOOSE US — mobile grid
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
    .why_choose_us .items_wrapper {
        grid-template-columns: 1fr !important;
    }

    .why_choose_us .security_icons {
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }

    .why_choose_us .security_icons .item {
        flex: 1 1 calc(50% - 0.5rem) !important;
        min-width: 120px !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   11. HOW IT WORKS — mobile
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
    .how_it_works {
        overflow: hidden;
    }

    .how_it_works .steps_wrapper {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    .how_it_works .step {
        width: 100% !important;
        max-width: 400px !important;
        margin: 0 auto !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   12. ACTION BLOCK / CTA CALC — mobile stacking
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
    .action_block .width.dark_violet_bg,
    .action_block > .width > .dark_violet_bg {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .action_block .t-center {
        text-align: center !important;
    }
}

@media (max-width: 767px) {
    .action_block {
        overflow: hidden;
    }

    .action_block .uvocalc {
        max-width: 100% !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   13. PRICING TABLE — horizontal scroll on mobile
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
    .tb-pricing-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tb-pricing-table {
        min-width: 520px;
    }

    .tb-pricing-cta-bar {
        flex-direction: column !important;
        text-align: center !important;
        gap: 0.75rem !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   14. SCROLLABLE ARTICLE BOX — mobile heights already set;
       ensure header/footer don't overflow
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
    .tb-scrollart-wrap {
        padding: 0 1rem !important;
    }

    .tb-scrollart-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }

    .tb-scrollart-footer {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 0.6rem !important;
    }

    .tb-scrollart-cta {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   15. FOOTER PRE-BAR (CTA bar above footer) — mobile
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
    .tb-footer-cta-bar {
        padding: 1rem 0 !important;
    }

    .tb-footer-cta-inner {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.85rem !important;
    }

    .tb-footer-cta-actions {
        width: 100%;
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }

    .tb-footer-wa-btn,
    .tb-footer-order-btn {
        flex: 1 1 auto !important;
        justify-content: center !important;
        text-align: center !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   16. FOOTER MAIN — VISIBILITY FIXES (dark bg, readable text)
   ─────────────────────────────────────────────────────────
   Problem: on dark #0f0a2e background, some text colours
   were too faint (rgba white at very low opacity).
   Fix: boost all text to at least rgba(255,255,255,0.75)
   and links to white on hover.
   ═══════════════════════════════════════════════════════════ */

/* Ensure footer base text is clearly readable */
.tb-footer {
    color: rgba(255, 255, 255, 0.80) !important;
}

/* Footer About text */
.tb-footer-about {
    color: rgba(255, 255, 255, 0.78) !important;
}

/* Rating line */
.tb-footer-rating {
    color: rgba(255, 255, 255, 0.78) !important;
}

/* Column headings — bright white */
.tb-footer-heading {
    color: #ffffff !important;
}

/* Nav links — visible on dark bg */
.tb-footer-list a {
    color: rgba(255, 255, 255, 0.75) !important;
}

.tb-footer-list a:hover {
    color: #ffffff !important;
}

/* Contact items */
.tb-footer-contact-item {
    color: rgba(255, 255, 255, 0.75) !important;
}

.tb-footer-contact-item:hover {
    color: #ffffff !important;
}

/* Trust bar badges */
.tb-footer-trust-badges span {
    color: rgba(255, 255, 255, 0.78) !important;
}

/* Payment badges — legible */
.tb-pay-badge {
    color: rgba(255, 255, 255, 0.85) !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Bottom bar copyright — darker background needs lighter text */
.tb-footer-bottom {
    background: rgba(0, 0, 0, 0.25) !important;
}

/* Copyright text — boost from 0.45 to 0.70 */
.tb-footer-copy {
    color: rgba(255, 255, 255, 0.72) !important;
}

.tb-footer-copy span {
    color: rgba(255, 255, 255, 0.60) !important;
}

/* Legal links in bottom bar — boost from 0.40 to 0.65 */
.tb-footer-legal-links a {
    color: rgba(255, 255, 255, 0.65) !important;
}

.tb-footer-legal-links a:hover {
    color: rgba(255, 255, 255, 0.92) !important;
}

/* Discount box — keep amber highlight pop */
.tb-footer-disc {
    color: rgba(255, 255, 255, 0.88) !important;
    background: rgba(245, 166, 35, 0.18) !important;
    border-color: rgba(245, 166, 35, 0.40) !important;
}

/* Social icon circles — subtle lift */
.tb-soc-link {
    background: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.85) !important;
}

.tb-soc-link:hover {
    background: rgba(255, 255, 255, 0.22) !important;
}

/* ═══════════════════════════════════════════════════════════
   17. FOOTER GRID — mobile responsive column stacking
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .tb-footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 2rem !important;
    }
}

@media (max-width: 640px) {
    .tb-footer-grid {
        grid-template-columns: 1fr !important;
        gap: 1.75rem !important;
    }

    .tb-footer {
        padding: 2.5rem 0 0 !important;
    }

    /* Trust bar — stack vertically */
    .tb-footer-trust-inner {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.85rem !important;
    }

    .tb-footer-trust-badges {
        gap: 0.5rem !important;
    }

    /* Bottom bar — stack on mobile */
    .tb-footer-bottom-inner {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.65rem !important;
    }

    .tb-footer-copy {
        flex-direction: column !important;
        gap: 0.3rem !important;
    }

    .tb-footer-legal-links {
        gap: 0.75rem !important;
        flex-wrap: wrap !important;
    }
}

@media (max-width: 480px) {
    .tb-footer-grid {
        padding-bottom: 1.75rem !important;
    }

    .tb-footer-about {
        max-width: 100% !important;
    }

    .tb-footer-trust-badges span {
        font-size: 0.72rem !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   18. MOBILE FLOATING CTA BAR (like Shelby)
   Visible on ≤768px — sticky bottom bar with Order Now button
   ═══════════════════════════════════════════════════════════ */

.tb-mobile-cta-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
    padding: 0.65rem 1rem;
    z-index: 9000;
    align-items: center;
    gap: 0.75rem;
    border-top: 1px solid #e2e8f0;
}

.tb-mobile-cta-text {
    font-size: 0.82rem;
    color: #1e293b;
    font-weight: 600;
    flex: 1;
    line-height: 1.3;
}

.tb-mobile-cta-text span {
    display: block;
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 400;
}

.tb-mobile-cta-btn {
    background: linear-gradient(135deg, #6857d0, #160647);
    color: #ffffff !important;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 0.6rem 1.25rem;
    border-radius: 25px;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(104, 87, 208, 0.35);
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tb-mobile-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(104, 87, 208, 0.45);
    color: #ffffff !important;
}

@media (max-width: 768px) {
    .tb-mobile-cta-bar {
        display: flex;
    }

    /* Push footer up so it's not hidden behind sticky bar */
    body {
        padding-bottom: 62px;
    }

    /* Also bump Tawk.to / other fixed buttons above the bar */
    #tawkchat-minified-box,
    .tawk-min-container,
    .tb-whatsapp-float {
        bottom: 72px !important;
    }
}

@media (max-width: 768px) and (max-width: 360px) {
    .tb-mobile-cta-bar {
        padding: 0.55rem 0.75rem;
    }

    .tb-mobile-cta-btn {
        font-size: 0.78rem;
        padding: 0.55rem 1rem;
    }
}

/* Safe area for iPhone notch/home bar */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .tb-mobile-cta-bar {
        padding-bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
    }

    @media (max-width: 768px) {
        body {
            padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px));
        }
    }
}

/* ═══════════════════════════════════════════════════════════
   19. RELATED POSTS GRID — mobile
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 600px) {
    .tb-related-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   20. BREADCRUMBS — wrap on mobile
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
    .tb-breadcrumb {
        flex-wrap: wrap;
        gap: 0.25rem;
        font-size: 0.75rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   21. FAQ ACCORDION — mobile touch targets
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
    .tb-faq-section .accordion .item {
        border-radius: 10px !important;
    }

    .accordion .title {
        padding: 0.9rem 1rem !important;
        font-size: 0.92rem !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   22. SERVICE HERO — mobile
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
    .tb-service-hero {
        padding: 2rem 1rem 1.75rem !important;
        overflow: hidden;
    }

    .tb-service-hero-title {
        font-size: clamp(1.3rem, 5vw, 1.8rem) !important;
    }

    .tb-service-hero-cta {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
    }

    .tb-service-hero-cta .content_button {
        width: 100% !important;
        text-align: center !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   23. ARCHIVE / CATEGORY GRID — mobile
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
    .tb-blog-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .tb-archive-intro-box {
        padding: 1.1rem 1rem !important;
    }

    .tb-archive-cta-inner {
        flex-direction: column !important;
        text-align: center !important;
        gap: 1rem !important;
    }

    .tb-archive-cta-text h2 {
        font-size: 1.25rem !important;
    }

    .tb-archive-cta-actions {
        justify-content: center !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   24. HEADER — mobile touch targets & logo centering
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
    /* Header height is fixed 60px; keep logo visible */
    header .logo {
        max-height: 44px;
        overflow: hidden;
    }

    header .logo img {
        max-height: 40px;
        width: auto;
    }

    /* Order button transitions handled by existing JS; just ensure it's not clipped */
    header .order_button {
        max-width: calc(100vw - 120px);
    }
}

/* ═══════════════════════════════════════════════════════════
   25. MISC — overflow containment on decorative elements
   ═══════════════════════════════════════════════════════════ */

/* Prevent any absolutely-positioned decorative divs from causing scrollbar */
.violet_decor,
.violet_gradient_bg,
.main_calculator .violet_decor {
    overflow: hidden;
}

@media (max-width: 767px) {
    .violet_decor:before,
    .violet_decor:after {
        max-width: 100vw;
        left: 0;
        right: 0;
    }

    /* Samples section overflow */
    .samples {
        overflow: hidden;
    }

    /* Testimonials overflow */
    .testimonials_block {
        overflow: hidden;
    }
}

/* ═══════════════════════════════════════════════════════════
   26. FAQ BTN — new accordion style for single-country pages
   ═══════════════════════════════════════════════════════════ */

.tb-faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 0.6rem;
    overflow: hidden;
    background: #fff;
}

.tb-faq-btn {
    width: 100%;
    background: #fff;
    border: none;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-align: left;
    gap: 0.75rem;
    transition: background 0.2s;
}

.tb-faq-btn:hover {
    background: #f8faff;
}

.tb-faq-btn h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    flex: 1;
    line-height: 1.4;
}

.tb-faq-btn[aria-expanded="true"] {
    background: #f0eeff;
}

.tb-faq-btn[aria-expanded="true"] h3 {
    color: #6857d0;
}

.tb-faq-icon {
    font-size: 1.25rem;
    font-weight: 300;
    color: #6857d0;
    line-height: 1;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
    transition: transform 0.2s;
}

.tb-faq-panel {
    padding: 0 1.25rem 1rem;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.7;
    border-top: 1px solid #e2e8f0;
}

.tb-faq-panel p {
    margin: 0.75rem 0 0;
}

@media (max-width: 767px) {
    .tb-faq-btn {
        padding: 0.85rem 1rem;
    }

    .tb-faq-btn h3 {
        font-size: 0.88rem;
    }

    .tb-faq-panel {
        padding: 0 1rem 0.85rem;
        font-size: 0.86rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   27. SERVICE COUNTRY SIDEBAR — mobile collapse
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
    .tb-single-service-layout {
        grid-template-columns: 1fr !important;
    }

    .tb-service-sidebar {
        order: -1; /* sidebar above content on mobile */
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .tb-sidebar-box.tb-sidebar-order,
    .tb-sidebar-box.tb-sidebar-discount,
    .tb-sidebar-whatsapp {
        grid-column: 1 / -1; /* full width for key CTAs */
    }
}

@media (max-width: 600px) {
    .tb-service-sidebar {
        grid-template-columns: 1fr;
    }
}

/* Service sidebar box styling */
.tb-sidebar-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.tb-sidebar-box h3 {
    font-size: 0.95rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 0.75rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid #f0eeff;
}

.tb-sidebar-box.tb-sidebar-order {
    background: linear-gradient(135deg, #160647, #2d1b72);
    border-color: transparent;
}

.tb-sidebar-box.tb-sidebar-order h3 {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.12);
}

.tb-sidebar-box.tb-sidebar-order p {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    margin: 0 0 0.75rem;
}

.tb-sidebar-note {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    text-align: center;
    margin: 0;
}

.tb-guarantee-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid #f0eeff;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
}

.tb-guarantee-item:last-child {
    border-bottom: none;
}

.tb-guarantee-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.tb-sidebar-whatsapp {
    background: #f0fff4;
    border: 1.5px solid rgba(37,211,102,0.3);
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
    margin-bottom: 1rem;
    text-align: center;
}

.tb-sidebar-whatsapp h3 {
    font-size: 0.9rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 0.4rem;
}

.tb-sidebar-whatsapp p {
    font-size: 0.8rem;
    color: #475569;
    margin: 0 0 0.75rem;
}

.tb-sidebar-whatsapp .tb-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #25d366;
    color: #fff !important;
    padding: 0.55rem 1.1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: background 0.2s;
}

.tb-sidebar-whatsapp .tb-whatsapp-btn:hover {
    background: #1da851;
}

/* ═══════════════════════════════════════════════════════════
   28. MOBILE CTA BAR — transition & safe-area polish
   ═══════════════════════════════════════════════════════════ */

.tb-mobile-cta-bar {
    /* transition added by JS after first scroll to avoid flash */
    will-change: transform, opacity;
}

/* ═══════════════════════════════════════════════════════════
   29. HOW-IT-WORKS STEPS GRID — inline in country pages
   ═══════════════════════════════════════════════════════════ */

.tb-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.tb-step {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    background: #f8faff;
    border-radius: 12px;
    padding: 1.1rem;
    border: 1px solid #e2e8f0;
}

.tb-step-num {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #6857d0, #160647);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    flex-shrink: 0;
}

.tb-step-body h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.3rem;
}

.tb-step-body p {
    font-size: 0.82rem;
    color: #475569;
    margin: 0;
    line-height: 1.55;
}

@media (max-width: 700px) {
    .tb-steps-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   30. TABLE SCROLL WRAPPER (added by JS)
   ═══════════════════════════════════════════════════════════ */

.tb-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    border-radius: 8px;
    margin: 1rem 0;
}

/* ═══════════════════════════════════════════════════════════
   31. RELATED POSTS CARD (country pages)
   ═══════════════════════════════════════════════════════════ */

.tb-related-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #f8faff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b !important;
    text-decoration: none !important;
    transition: background 0.18s, border-color 0.18s;
}

.tb-related-card:hover {
    background: #f0eeff;
    border-color: rgba(104,87,208,0.25);
    color: #6857d0 !important;
}

.tb-related-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .tb-related-card {
        font-size: 0.82rem;
        padding: 0.65rem 0.8rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   32. PRINT & REDUCED-MOTION
   ═══════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    .tb-mobile-cta-bar,
    .tb-trust-strip-inner {
        animation: none !important;
        transition: none !important;
    }
}

@media print {
    .tb-mobile-cta-bar,
    .tb-footer-cta-bar,
    .tb-whatsapp-float,
    #tawkchat-minified-box {
        display: none !important;
    }
}
