#wppc-root * {
    box-sizing: border-box;
}

#wppc-root .wppc-desktop {
    position: fixed;
    right: 20px;
    z-index: 99997;
}

#wppc-root .wppc-whatsapp {
    bottom: 96px;
}

#wppc-root .wppc-phone {
    bottom: 20px;
}

#wppc-root .wppc-desktop a {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--wppc-desktop-bg);
    color: var(--wppc-text-color);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    position: relative;
}

#wppc-root .wppc-phone a {
    background: var(--wppc-phone-bg);
}

#wppc-root .wppc-desktop a:hover {
    transform: translateY(-3px);
    opacity: 0.95;
}

#wppc-root .wppc-desktop a span {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    right: 72px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    background: #111;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    transition: opacity 0.2s ease;
}

#wppc-root .wppc-desktop a:hover span {
    opacity: 1;
}

#wppc-root svg {
    width: 24px;
    height: 24px;
}

#wppc-root .wppc-mobile-bar {
    display: none;
}

#wppc-root .wppc-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 99999;
}

#wppc-root .wppc-popup-overlay.is-visible {
    display: flex;
}

#wppc-root .wppc-popup {
    width: min(460px, 100%);
    background: var(--wppc-popup-bg);
    border-radius: 14px;
    padding: 36px 24px 24px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#wppc-root .wppc-popup h3 {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.3;
    color: #1f2937;
}

#wppc-root .wppc-popup p {
    margin: 0 0 26px;
    color: #4b5563;
    line-height: 1.55;
}

#wppc-root .wppc-popup-close {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    position: absolute;
    left: 50%;
    top: 100%;
    margin-top: 8px;
    transform: translateX(-50%);
    width: 34px;
    height: 34px;
    font-size: 30px;
    font-weight: 400;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #9ca3af;
    z-index: 2;
}

#wppc-root .wppc-popup-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--wppc-popup-button-bg);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-weight: 600;
}

#wppc-root .wppc-popup-cta svg {
    width: 20px;
    height: 20px;
}

@keyframes wppc-shake {
    0%,
    100% {
        transform: rotate(0deg);
    }
    10% {
        transform: rotate(0deg);
    }
    16% {
        transform: rotate(-16deg);
    }
    22% {
        transform: rotate(14deg);
    }
    28% {
        transform: rotate(-12deg);
    }
    34% {
        transform: rotate(10deg);
    }
    40% {
        transform: rotate(-8deg);
    }
    46% {
        transform: rotate(5deg);
    }
    52% {
        transform: rotate(0deg);
    }
}

@media (max-width: 768px) {
    #wppc-root .wppc-desktop {
        display: none;
    }

    #wppc-root .wppc-mobile-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 99998;
        display: flex;
        background: var(--wppc-mobile-bar-bg);
        box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.22);
    }

    #wppc-root .wppc-mobile-item {
        flex: 1;
        color: var(--wppc-text-color);
        text-decoration: none;
        padding: 12px 10px calc(12px + env(safe-area-inset-bottom, 0px));
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 14px;
        font-weight: 600;
        border-right: 1px solid rgba(255, 255, 255, 0.15);
    }

    #wppc-root .wppc-mobile-item:last-child {
        border-right: none;
    }

    #wppc-root .wppc-mobile-whatsapp {
        background: #25d366;
    }

    #wppc-root .wppc-mobile-phone {
        background: var(--wppc-phone-bg);
    }

    #wppc-root .wppc-popup {
        padding: 34px 16px 20px;
    }

    #wppc-root .wppc-popup h3 {
        font-size: 20px;
    }
}

