/* ═══════════════════════════════════════════════════════════
   WHATSAPP FLOATING BUTTON
   ─────────────────────────────────────────────────────────── */

.wa-widget {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    font-family: 'Poppins', sans-serif;
}

/* ─── FAB BUTTON ─────────────────────────────────────────── */
.wa-fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D9593C, #B75C3C);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(183, 92, 60, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    flex-shrink: 0;
}

.wa-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 28px rgba(183, 92, 60, 0.55);
}

.wa-fab svg {
    width: 30px;
    height: 30px;
}

/* Green online dot */
.wa-fab-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 12px;
    height: 12px;
    background: #25D366;
    border-radius: 50%;
    border: 2px solid #fff;
}

/* ─── POPUP ──────────────────────────────────────────────── */
.wa-popup {
    width: 320px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    animation: wa-slide-up 0.25s ease;
}

@keyframes wa-slide-up {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Header */
.wa-popup-header {
    background: linear-gradient(135deg, #D9593C, #B75C3C);
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.wa-popup-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wa-popup-avatar svg {
    width: 24px;
    height: 24px;
}

.wa-popup-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.wa-popup-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.wa-popup-status {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
}

.wa-popup-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 0.25rem;
    transition: color 0.15s;
}

.wa-popup-close:hover {
    color: #fff;
}

/* Body */
.wa-popup-body {
    background: #f0ebe3;
    padding: 1.25rem 1rem;
    min-height: 100px;
}

.wa-chat-bubble {
    background: #fff;
    border-radius: 0 12px 12px 12px;
    padding: 0.75rem 1rem;
    max-width: 85%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.wa-chat-sender {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #B75C3C;
    margin-bottom: 0.35rem;
}

.wa-chat-bubble p {
    font-size: 0.88rem;
    color: #363636;
    line-height: 1.6;
    margin: 0;
}

/* Footer */
.wa-popup-footer {
    padding: 1rem;
    background: #fff;
}

.wa-start-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #D9593C, #B75C3C);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.wa-start-btn:hover {
    opacity: 0.9;
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 480px) {
    .wa-widget {
        bottom: 1.25rem;
        right: 1.25rem;
    }

    .wa-popup {
        width: calc(100vw - 2.5rem);
    }
}
