/* ============================================================
   Coxeur WhatsApp — whatsapp.css
   Floating button + popup chat widget
   ============================================================ */
:root {
    --wa-green: #25d366;
    --wa-dark: #128c7e;
}

/* ── Floating button ── */
.cxr-wa {
    position: fixed;
    z-index: 9999;
    cursor: pointer;
    transition: transform .2s;
}

.cxr-wa:hover {
    transform: scale(1.08);
}

.cxr-wa--bottom-right {
    bottom: 28px;
    right: 28px;
}

.cxr-wa--bottom-left {
    bottom: 28px;
    left: 28px;
}

.cxr-wa__icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--wa-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 20px rgba(37, 211, 102, .45);
    position: relative;
    z-index: 2;
}

/* Pulse animation */
.cxr-wa__pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--wa-green);
    opacity: .5;
    animation: cxr-pulse 2s ease-out infinite;
    z-index: 1;
}

@keyframes cxr-pulse {
    0% {
        transform: scale(1);
        opacity: .5;
    }

    70% {
        transform: scale(1.6);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Tooltip label */
.cxr-wa__tooltip {
    position: absolute;
    right: 72px;
    top: 50%;
    transform: translateY(-50%);
    background: #1e293b;
    color: #fff;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: .78rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .2);
}

.cxr-wa--bottom-left .cxr-wa__tooltip {
    right: auto;
    left: 72px;
}

.cxr-wa:hover .cxr-wa__tooltip {
    opacity: 1;
}

/* ── Popup chat widget ── */
.cxr-wa-popup {
    position: fixed;
    z-index: 9998;
    width: 300px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, .2);
    overflow: hidden;
    animation: popIn .3s ease;
    font-family: 'Inter', sans-serif;
}

.cxr-wa-popup--bottom-right {
    bottom: 104px;
    right: 28px;
}

.cxr-wa-popup--bottom-left {
    bottom: 104px;
    left: 28px;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.96);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.cxr-wa-popup__header {
    background: var(--wa-dark);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.cxr-wa-popup__avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, .2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.cxr-wa-popup__header strong {
    display: block;
    font-size: .9rem;
}

.cxr-wa-popup__status {
    font-size: .72rem;
    opacity: .75;
}

.cxr-wa-popup__close {
    margin-left: auto;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: .7;
}

.cxr-wa-popup__close:hover {
    opacity: 1;
}

.cxr-wa-popup__body {
    background: #e5ddd5;
    padding: 18px;
}

.cxr-wa-popup__bubble {
    background: #fff;
    border-radius: 0 12px 12px 12px;
    padding: 12px 14px;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}

.cxr-wa-popup__bubble p {
    margin: 0 0 6px;
    font-size: .88rem;
    color: #1e293b;
    line-height: 1.5;
}

.cxr-wa-popup__time {
    font-size: .68rem;
    color: #94a3b8;
    display: block;
    text-align: right;
}

.cxr-wa-popup__btn {
    display: block;
    background: var(--wa-green);
    color: #fff;
    text-align: center;
    padding: 14px;
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none;
    transition: background .2s;
}

.cxr-wa-popup__btn:hover {
    background: var(--wa-dark);
    color: #fff;
    text-decoration: none;
}