/* ==========================================================================
   Sticky "Call Now" — every service page (includes/service-call-sticky.php,
   TSK8642 2026-11-18). Bottom right; above the floating cart when the cart is
   showing. The cart's own dark-glass pill (floating-cart.css), with a red
   phone disc so it reads as the action — not .tv-cta--red, which stays the
   page's one main CTA.
   ========================================================================== */

.tv-call-sticky {
    position: fixed;
    right: calc(1.5rem + env(safe-area-inset-right, 0px));
    bottom: calc(1.75rem + env(safe-area-inset-bottom, 0px));
    z-index: 1190; /* under the cart (1200), the nav and every overlay */

    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    height: 3.25rem;
    padding: 0 1.25rem 0 0.45rem;
    border-radius: 999px;

    background: linear-gradient(150deg, rgba(20, 22, 30, 0.94) 0%, rgba(12, 14, 20, 0.97) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    color: #fff;
    font-weight: 600;
    font-size: 0.98rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, bottom 0.25s ease;
}

.tv-call-sticky:hover,
.tv-call-sticky:focus-visible {
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5);
}

.tv-call-sticky:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 3px;
}

.tv-call-sticky__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: var(--tv-cta-red-bg, #aa0000);
    border: 1px solid var(--tv-cta-red-border, rgb(185, 18, 18));
    box-shadow: 0 4px 14px rgba(170, 0, 0, 0.36);
    font-size: 0.95rem;
}

/* With the cart showing, step up above it (the cart is 3.25rem tall). */
body:has(.cart-link--floating:not(.is-hidden)) .tv-call-sticky {
    bottom: calc(1.75rem + 3.25rem + 0.75rem + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 560px) {
    .tv-call-sticky {
        right: calc(1rem + env(safe-area-inset-right, 0px));
        bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
        height: 3rem;
        padding-right: 1.05rem;
        font-size: 0.92rem;
    }

    body:has(.cart-link--floating:not(.is-hidden)) .tv-call-sticky {
        bottom: calc(1rem + 3rem + 0.6rem + env(safe-area-inset-bottom, 0px));
    }
}

/* Design and Build on the models pages (includes/build-sticky.php): this same
   pill with a cube in the disc, always showing, as Call Now is. */

/* /compare-models: the compare bar (.lineup-bar, models-compare.css) is fixed
   bottom-centre and 3.56rem tall in every state. From 1100px down it reaches
   the pill's corner, and on a phone it spans the width, so while it is showing
   the pill steps up above it, as Call Now does for the cart. The offsets are
   the bar's own bottom (1.25rem; 0.85rem at 640px and under) + its height + a
   gap; move them with the bar. */
@media (max-width: 1100px) {
    body:has(.lineup-bar.is-visible) .tv-call-sticky--build {
        bottom: calc(1.25rem + 3.6rem + 0.75rem + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 640px) {
    body:has(.lineup-bar.is-visible) .tv-call-sticky--build {
        bottom: calc(0.85rem + 3.6rem + 0.6rem + env(safe-area-inset-bottom, 0px));
    }
}

@media print {
    .tv-call-sticky {
        display: none;
    }
}
