/* Tyrefix static-site overrides */
/* dead WP search UI */
.search-toggle, .searchform-popup { display: none !important; }
/* static map embed */
.tfc-map-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 4px; }
.tfc-map-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* ------------------------------------------------------------------
   Elementor image-carousel WITHOUT its JS chunk (never archived; zip
   builds mismatch this site's Elementor build) renders slides stacked
   vertically. Static fallback: seamless infinite marquee (pure CSS,
   no JS) - the slide set is duplicated in the markup (aria-hidden
   second copy) and the track animates translateX 0 -> -50%, which
   equals exactly one set width, so the loop is seamless.
   ------------------------------------------------------------------ */
.elementor-widget-image-carousel .elementor-image-carousel-wrapper,
.elementor-widget-image-carousel .swiper-wrapper {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
}
.elementor-widget-image-carousel .elementor-image-carousel-wrapper {
    overflow: hidden;
    scrollbar-width: none;               /* Firefox: no visible scrollbar */
    /* soft fade at both edges so logos melt out before leaving the frame */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 70px, #000 calc(100% - 70px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 70px, #000 calc(100% - 70px), transparent);
}
.elementor-widget-image-carousel .elementor-image-carousel-wrapper::-webkit-scrollbar {
    display: none;
}
.elementor-widget-image-carousel .swiper-wrapper {
    flex: 0 0 auto !important;
    width: max-content !important;
    will-change: transform;
    animation: tfc-logo-marquee 40s linear infinite;
}
.elementor-widget-image-carousel .elementor-image-carousel-wrapper:hover .swiper-wrapper {
    animation-play-state: paused;        /* pause_on_hover, as designed */
}
.elementor-widget-image-carousel .swiper-slide {
    flex: 0 0 auto !important;
    width: auto !important;
    padding: 10px 14px !important;
    box-sizing: border-box;
}
.elementor-widget-image-carousel .swiper-slide img {
    display: block;
    width: auto !important;
    max-height: 96px !important;
    object-fit: contain;
}
@keyframes tfc-logo-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .elementor-widget-image-carousel .swiper-wrapper {
        animation: none !important;
    }
}
/* consent banner */
#tfc-cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 999999; background: #fff;
  border-top: 1px solid #ddd; box-shadow: 0 -2px 12px rgba(0,0,0,.12); font: 13px/1.5 Poppins, Arial, sans-serif;
  color: #333; padding: 14px 20px; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: center; }
#tfc-cookie p { margin: 0; max-width: 720px; }
#tfc-cookie a { color: #e30613; }
#tfc-cookie button { border: 0; border-radius: 3px; padding: 8px 18px; cursor: pointer; font: 600 13px/1 Poppins, Arial, sans-serif; }
#tfc-cookie .tfc-ok { background: #4e8221; color: #fff; }
#tfc-cookie .tfc-no { background: #e0e0e0; color: #333; }
/* cookie-choice withdrawal button (cookie policy page) */
.tfc-consent-reset {
    border: 1px solid #c00; border-radius: 3px; background: #fff; color: #c00;
    font: 600 14px/1 Poppins, Arial, sans-serif; padding: 9px 20px; cursor: pointer;
}
/* Form spam guards for the tyre-repair request form.
   Honeypot field is visually hidden but present in the DOM; bots that
   autofill every text input trip it server-side. */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

/* depot map */
#tyrefix-depot-map { width: 100%; height: 520px; margin: 1.2rem 0 0.4rem; border-radius: 4px; }
@media (max-width: 575px) { #tyrefix-depot-map { height: 380px; } }

/* homepage promo video (self-hosted, replaces the Wave.video embed) */
.tfc-video-wrap { max-width: 800px; margin: 0 auto; }
.tfc-video-wrap video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
    background: #000;
}

/* 404 page */
.tfc-404 { padding: 70px 0 90px; text-align: center; }
.tfc-404-inner { max-width: 640px; margin: 0 auto; }
.tfc-404-code {
    font: 700 96px/1 Poppins, Arial, sans-serif; color: #e30613; margin: 0 0 8px;
}
.tfc-404 h1 { font: 600 30px/1.2 Poppins, Arial, sans-serif; color: #111; margin: 0 0 14px; }
.tfc-404-lead { font: 400 16px/1.6 Poppins, Arial, sans-serif; color: #555; margin: 0 0 26px; }
.tfc-404-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.tfc-btn {
    display: inline-block; background: #e30613; color: #fff !important; text-decoration: none;
    font: 600 15px/1 Poppins, Arial, sans-serif; padding: 12px 26px; border-radius: 3px;
}
.tfc-btn:hover { background: #b80510; }
.tfc-btn-alt { background: #222; }
.tfc-btn-alt:hover { background: #000; }
.tfc-404-hint { font: 400 14px/1.7 Poppins, Arial, sans-serif; color: #777; margin: 0; }
.tfc-404-hint a { color: #e30613; }
@media (max-width: 575px) { .tfc-404-code { font-size: 64px; } }
