
@keyframes lm_wpp_pulse {
    0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.7); }
    70%  { box-shadow: 0 0 0 18px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
@keyframes lm_status_blink {
    0%,100% { opacity:1; } 50% { opacity:0.3; }
}

/* ── WIDGET CONTAINER ── */
#lm_wpp {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 999999;
    font-family: 'Poppins', sans-serif;
}

/* ── BOTÃO PRINCIPAL ── */
#lm_wpp_btn, div#lm_wpp_btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    min-height: 64px !important;
    border-radius: 50% !important;
    background-color: #25D366 !important;
    background: #25D366 !important;
    cursor: pointer !important;
    box-shadow: 0 6px 22px rgba(37,211,102,0.45) !important;
    animation: lm_wpp_pulse 2.5s infinite !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    -webkit-tap-highlight-color: transparent !important;
}

#lm_wpp_btn:hover, div#lm_wpp_btn:hover,
#lm_wpp_btn:focus, div#lm_wpp_btn:focus,
#lm_wpp_btn:active, div#lm_wpp_btn:active {
    background-color: #20c05a !important;
    background: #20c05a !important;
    transform: scale(1.08) translateY(-2px) !important;
    box-shadow: 0 10px 30px rgba(37,211,102,0.6) !important;
    outline: none !important;
}

#lm_wpp_btn svg {
    width: 36px;
    height: 36px;
    fill: #ffffff;
    display: block;
    pointer-events: none;
}

/* ── MENU ── */
#lm_wpp_menu {
    display: none;
    position: absolute;
    bottom: 76px;
    right: 0;
    width: 320px;
    background: linear-gradient(160deg, #fdfcfb 0%, #f3f1ed 100%);
    border-radius: 18px;
    border: 1px solid rgba(27,60,41,0.09);
    box-shadow: 0 12px 50px rgba(27,60,41,0.14);
    padding: 0 20px 20px;
    max-height: 82vh;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(10px) scale(0.97);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
#lm_wpp_menu.lm_open {
    opacity: 1;
    transform: translateY(0) scale(1);
}
/* faixa topo */
#lm_wpp_menu::before {
    content: '';
    display: block;
    height: 3px;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(90deg, transparent, #1b3c29 20%, #ebd58a 50%, #1b3c29 80%, transparent);
    margin: 0 -20px 16px;
}
/* seta */
#lm_wpp_menu::after {
    content: '';
    position: absolute;
    bottom: -9px;
    right: 22px;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 9px solid #f3f1ed;
}

/* STATUS */
#lm_wpp_status {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.4px;
    padding: 7px 14px;
    border-radius: 50px;
    border: 1px solid rgba(27,60,41,0.1);
    background: rgba(255,255,255,0.8);
    margin-bottom: 14px;
    color: #555;
}
#lm_wpp_status.open  { color: #1aaa55; border-color: rgba(37,211,102,0.25); }
#lm_wpp_status.closed{ color: #888; }
#lm_wpp_status .dot  {
    width: 7px; height: 7px; border-radius: 50%;
    background: currentColor; flex-shrink: 0;
    animation: lm_status_blink 2s infinite;
}

/* HEADER */
#lm_wpp_header {
    text-align: center;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(27,60,41,0.09);
}
#lm_wpp_header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1b3c29;
    margin: 0 0 2px;
    letter-spacing: 2px;
}
#lm_wpp_header p {
    font-size: 0.7rem;
    font-weight: 300;
    color: #777;
    margin: 0;
    font-style: italic;
}

/* LINKS */
.lm_wpp_link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 14px;
    background: #fff;
    border-radius: 13px;
    border: 1px solid rgba(27,60,41,0.07);
    text-decoration: none;
    color: #111;
    margin-bottom: 9px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(27,60,41,0.04);
}
.lm_wpp_link:last-child { margin-bottom: 0; }
.lm_wpp_link:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 22px rgba(27,60,41,0.11);
    border-color: rgba(27,60,41,0.14);
    text-decoration: none;
}
.lm_wpp_link .ico {
    width: 36px; height: 36px; min-width: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1b3c29, #2d6647);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem;
    transition: background 0.3s ease;
    flex-shrink: 0;
}
.lm_wpp_link:hover .ico {
    background: linear-gradient(135deg, #ebd58a, #c9a84c);
}
.lm_wpp_link b {
    display: block;
    font-size: 0.83rem;
    font-weight: 600;
    color: #111;
}
.lm_wpp_link small {
    display: block;
    font-size: 0.68rem;
    font-weight: 300;
    color: #777;
}

/* CTA */
.lm_wpp_link.cta {
    background: linear-gradient(135deg, #1b3c29, #2d6647);
    border-color: transparent;
}
.lm_wpp_link.cta .ico { background: rgba(235,213,138,0.18); }
.lm_wpp_link.cta b,
.lm_wpp_link.cta small { color: #fff; }
.lm_wpp_link.cta small { color: rgba(235,213,138,0.75); }
.lm_wpp_link.cta:hover {
    background: linear-gradient(135deg, #ebd58a, #c9a84c);
}
.lm_wpp_link.cta:hover b { color: #1b3c29; }
.lm_wpp_link.cta:hover small { color: rgba(27,60,41,0.7); }
.lm_wpp_link.cta:hover .ico { background: rgba(27,60,41,0.15); }

/* OVERLAY MOBILE */
#lm_wpp_overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10,20,14,0.35);
    backdrop-filter: blur(4px);
    z-index: 999998;
}
#lm_wpp_overlay.lm_open { display: block; }

/* FECHAR MOBILE */
#lm_wpp_close {
    all: unset;
    display: none;
    position: absolute;
    top: 14px; right: 14px;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1b3c29, #2d6647);
    color: #ebd58a;
    font-size: 1.1rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

/* POPUP */
#lm_wpp_popup {
    display: none;
    position: fixed;
    bottom: 22px; left: 22px;
    background: linear-gradient(135deg, #fdfcfb, #f3f1ed);
    border: 1px solid rgba(27,60,41,0.1);
    border-radius: 50px;
    padding: 11px 20px;
    align-items: center;
    gap: 9px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #111;
    text-decoration: none;
    box-shadow: 0 5px 22px rgba(27,60,41,0.13);
    z-index: 999997;
    opacity: 0;
    transform: translateY(14px);
    transition: all 0.4s ease;
}
#lm_wpp_popup.lm_open { display: flex; opacity: 1; transform: translateY(0); }
#lm_wpp_popup:hover {
    background: linear-gradient(135deg, #1b3c29, #2d6647);
    color: #ebd58a;
    transform: translateY(-3px);
    text-decoration: none;
}
#lm_wpp_popup .px { opacity: 0.5; font-size: 0.9rem; }
#lm_wpp_popup:hover .px { color: #ebd58a; opacity: 0.8; }

/* MOBILE */
@media (max-width: 768px) {
    #lm_wpp { bottom: 16px; right: 16px; }
    #lm_wpp_btn, div#lm_wpp_btn { width: 58px !important; height: 58px !important; min-width: 58px !important; min-height: 58px !important; }
    #lm_wpp_btn svg { width: 32px; height: 32px; }
    #lm_wpp_menu {
        position: fixed;
        bottom: auto; top: 50%; left: 50%; right: auto;
        transform: translate(-50%, -48%) scale(0.97);
        width: 91%; max-width: 350px;
        z-index: 1000000;
        max-height: 86vh;
    }
    #lm_wpp_menu.lm_open { transform: translate(-50%, -50%) scale(1); }
    #lm_wpp_menu::after { display: none; }
    #lm_wpp_close { display: flex; }
    #lm_wpp_popup { left: 10px; right: 10px; font-size: 0.72rem; }
}
