:root {
    --phone-pak-primary: #0693e3;
    --phone-pak-text: #ffffff;
}

.phone-pak-container {
    position: fixed;
    bottom: 30px;
    z-index: 9999;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.phone-pak-container.pos-right {
    right: 30px;
}

.phone-pak-container.pos-left {
    left: 30px;
}

.phone-pak-btn {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    text-decoration: none;
    color: var(--phone-pak-text);
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

/* Style: Glassmorphism */
.style-glassmorphism .phone-pak-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-image: linear-gradient(135deg, var(--phone-pak-primary) 0%, rgba(0, 0, 0, 0.2) 100%);
}

/* Style: Solid */
.style-solid .phone-pak-btn {
    background: var(--phone-pak-primary);
}

/* Style: Minimal */
.style-minimal .phone-pak-btn {
    background: #fff;
    color: var(--phone-pak-primary);
    border: 2px solid var(--phone-pak-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.phone-pak-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.3);
}

.phone-pak-icon {
    font-size: 20px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: phoneShake 2s infinite;
}

.phone-pak-text {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Animations */
@keyframes phoneShake {

    0%,
    100% {
        transform: rotate(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: rotate(-10deg);
    }

    20%,
    40%,
    60%,
    80% {
        transform: rotate(10deg);
    }
}

@keyframes entrance {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.phone-pak-container {
    animation: entrance 0.8s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: 1s;
}

/* ── Mobile: Compact Pill Shape ───────────────────────── */
@media screen and (max-width: 768px) {
    .phone-pak-container {
        /* Raise above browser bottom nav bar + safe area (notch phones) */
        bottom: calc(85px + env(safe-area-inset-bottom, 0px));
    }

    #phone-pak-floating-button.phone-pak-container.pos-right {
        right: 12px !important;
        left: auto !important;
    }

    #phone-pak-floating-button.phone-pak-container.pos-left {
        left: 12px !important;
        right: auto !important;
    }

    /* Smaller compact pill button */
    #phone-pak-floating-button .phone-pak-btn {
        width: auto !important;
        height: auto !important;
        min-width: 0 !important;
        padding: 8px 16px !important;
        /* Smaller padding */
        border-radius: 40px !important;
        justify-content: center;
        align-items: center;
        display: flex !important;
    }

    /* Show the phone number text but smaller */
    #phone-pak-floating-button .phone-pak-text {
        display: inline-block !important;
        width: auto !important;
        overflow: visible !important;
        font-size: 13px !important;
        /* Smaller text */
        letter-spacing: 0.3px !important;
    }

    /* Smaller icon */
    #phone-pak-floating-button .phone-pak-icon {
        margin-right: 8px !important;
        /* Smaller gap */
        font-size: 18px !important;
    }

    /* Glassmorphism on mobile — force solid so it doesn't go black */
    #phone-pak-floating-button.style-glassmorphism .phone-pak-btn {
        background: var(--phone-pak-primary) !important;
        background-image: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: none !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
        color: var(--phone-pak-text) !important;
    }

    /* Solid on mobile — already solid, just clean up */
    #phone-pak-floating-button.style-solid .phone-pak-btn {
        background: var(--phone-pak-primary) !important;
        background-image: none !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
        color: var(--phone-pak-text) !important;
    }

    /* Minimalist on mobile — white pill with primary border */
    #phone-pak-floating-button.style-minimal .phone-pak-btn {
        background: #ffffff !important;
        background-image: none !important;
        border: 2px solid var(--phone-pak-primary) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
        color: var(--phone-pak-primary) !important;
    }
}