/* ============================================
   MOBILE CRO OVERHAUL — Tasani Solutions
   1. Compact cookie banner on mobile
   2. Sticky click-to-call bar
   3. WhatsApp float removed
   ============================================ */

/* --- 1. COMPACT COOKIE BANNER ON MOBILE --- */
@media (max-width: 768px) {
    .tasani-cookie-banner--bottom {
        padding: 0;
    }

    .tasani-cookie-banner__container {
        max-width: 100%;
        border-radius: 0;
        padding: 12px 16px;
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
    }

    /* Hide decorative elements on mobile */
    .tasani-cookie-banner__header {
        display: none !important;
    }

    .tasani-cookie-banner__icon {
        display: none !important;
    }

    .tasani-cookie-banner__content {
        margin-bottom: 10px;
        gap: 0;
    }

    .tasani-cookie-banner__title {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .tasani-cookie-banner__description {
        font-size: 12px;
        line-height: 1.4;
        margin-bottom: 4px;
    }

    .tasani-cookie-banner__link {
        font-size: 12px;
    }

    /* Buttons side by side, compact */
    .tasani-cookie-banner__actions {
        flex-direction: row !important;
        gap: 8px;
    }

    .tasani-cookie-banner__actions .tasani-cookie-btn {
        width: auto !important;
        padding: 10px 16px;
        font-size: 13px;
        flex: 1;
    }

    .tasani-cookie-btn--settings {
        flex: 0 !important;
        padding: 10px 12px !important;
        font-size: 12px !important;
    }

    /* Settings panel compact */
    .tasani-cookie-settings {
        margin-top: 10px;
        padding-top: 10px;
    }

    /* Push cookie banner up above the call bar */
    .tasani-cookie-banner--bottom {
        bottom: 56px;
    }

    /* --- 2. HIDE WHATSAPP FLOAT ON MOBILE --- */
    .whatsapp-float {
        display: none !important;
    }
}

/* --- 3. STICKY CLICK-TO-CALL BAR (mobile only) --- */
.mobile-call-bar {
    display: none;
}

@media (max-width: 768px) {
    .mobile-call-bar {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999999;
        background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
        transform: translateY(100%);
        animation: slideUpCallBar 0.4s ease-out 0.8s forwards;
    }

    @keyframes slideUpCallBar {
        to { transform: translateY(0); }
    }

    .call-bar-link {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 14px 20px;
        padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
        color: #ffffff !important;
        text-decoration: none !important;
        font-weight: 700;
        font-size: 16px;
        -webkit-tap-highlight-color: rgba(255,255,255,0.2);
    }

    .call-bar-link:hover,
    .call-bar-link:active {
        color: #ffffff !important;
        text-decoration: none !important;
    }

    .call-bar-link:active {
        background: rgba(255,255,255,0.15);
    }

    .call-bar-link svg {
        flex-shrink: 0;
        animation: phoneRing 2.5s ease-in-out infinite;
    }

    @keyframes phoneRing {
        0%, 50%, 100% { transform: rotate(0deg); }
        5% { transform: rotate(-12deg); }
        10% { transform: rotate(12deg); }
        15% { transform: rotate(-8deg); }
        20% { transform: rotate(8deg); }
        25% { transform: rotate(0deg); }
    }

    .call-bar-text {
        font-size: 15px;
        font-weight: 600;
    }

    .call-bar-number {
        font-size: 15px;
        font-weight: 800;
        background: rgba(255,255,255,0.2);
        padding: 3px 10px;
        border-radius: 20px;
    }

    body {
        padding-bottom: 56px;
    }
}
