
@keyframes ea_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); }
}

/* ── WIDGET CONTAINER ── */
#ea_wpp {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 999999;
    font-family: 'Jost', sans-serif;
}

/* ── BOTÃO PRINCIPAL ── */
#ea_wpp_btn, div#ea_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: ea_wpp_pulse 2.5s infinite !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    -webkit-tap-highlight-color: transparent !important;
}

#ea_wpp_btn:hover, div#ea_wpp_btn:hover,
#ea_wpp_btn:focus, div#ea_wpp_btn:focus,
#ea_wpp_btn:active, div#ea_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;
}

#ea_wpp_btn svg {
    width: 36px;
    height: 36px;
    fill: #ffffff;
    display: block;
    pointer-events: none;
}

/* ── MENU (FUNDO CLARO) ── */
#ea_wpp_menu {
    display: none;
    position: absolute;
    bottom: 76px;
    right: 0;
    width: 320px;
    background: linear-gradient(160deg, #FFFFFF 0%, #F8F4EC 100%);
    border-radius: 18px;
    border: 1px solid rgba(197,164,109,0.30);
    box-shadow: 0 12px 50px rgba(59,42,42,0.18);
    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;
}
#ea_wpp_menu.ea_open {
    opacity: 1;
    transform: translateY(0) scale(1);
}
/* faixa topo dourada */
#ea_wpp_menu::before {
    content: '';
    display: block;
    height: 2px;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(90deg, transparent, #C5A46D 20%, #E6D2B5 50%, #C5A46D 80%, transparent);
    margin: 0 -20px 16px;
}
/* seta */
#ea_wpp_menu::after {
    content: '';
    position: absolute;
    bottom: -9px;
    right: 22px;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 9px solid #FFFFFF;
}
#ea_wpp_menu::-webkit-scrollbar { width: 4px; }
#ea_wpp_menu::-webkit-scrollbar-thumb { background: #C5A46D; border-radius: 2px; }

/* HEADER */
#ea_wpp_header {
    text-align: center;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(197,164,109,0.20);
}
#ea_wpp_header h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: #3B2A2A;
    margin: 0 0 3px;
    letter-spacing: 4px;
    text-transform: uppercase;
}
#ea_wpp_header p {
    font-size: 0.62rem;
    font-weight: 400;
    color: #C5A46D;
    margin: 0;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

/* LINKS */
.ea_wpp_link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 13px;
    background: rgba(255,255,255,0.7);
    border-radius: 12px;
    border: 1px solid rgba(197,164,109,0.18);
    text-decoration: none;
    color: #3B2A2A;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}
.ea_wpp_link:last-child { margin-bottom: 0; }
.ea_wpp_link:hover {
    transform: translateY(-2px);
    background: rgba(197,164,109,0.10);
    border-color: rgba(197,164,109,0.40);
    text-decoration: none;
    color: #3B2A2A;
    box-shadow: 0 4px 12px rgba(59,42,42,0.06);
}
.ea_wpp_link .ico {
    width: 36px; height: 36px; min-width: 36px;
    border-radius: 50%;
    background: rgba(197,164,109,0.15);
    border: 1px solid rgba(197,164,109,0.25);
    display: flex; align-items: center; justify-content: center;
    color: #C5A46D;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.ea_wpp_link .ico svg {
    width: 17px; height: 17px;
    stroke: #C5A46D;
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.3s ease;
}
.ea_wpp_link:hover .ico {
    background: rgba(197,164,109,0.30);
    border-color: rgba(197,164,109,0.55);
}
.ea_wpp_link:hover .ico svg { stroke: #8B6F47; }
.ea_wpp_link b {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: #3B2A2A;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-family: 'Jost', sans-serif;
}
.ea_wpp_link small {
    display: block;
    font-size: 0.65rem;
    font-weight: 300;
    color: rgba(59,42,42,0.55);
    font-family: 'Jost', sans-serif;
    margin-top: 1px;
}
.ea_wpp_link:hover b     { color: #3B2A2A; }
.ea_wpp_link:hover small { color: #8B6F47; }

/* CTA VERDE */
.ea_wpp_link.cta {
    background: #25D366;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(37,211,102,0.28);
}
.ea_wpp_link.cta .ico { background: rgba(255,255,255,0.18); border-color: transparent; }
.ea_wpp_link.cta .ico svg { stroke: #fff; }
.ea_wpp_link.cta b,
.ea_wpp_link.cta small { color: #fff; }
.ea_wpp_link.cta small { color: rgba(255,255,255,0.85); }
.ea_wpp_link.cta:hover {
    background: #1ebe5b;
    border-color: transparent;
    box-shadow: 0 6px 22px rgba(37,211,102,0.40);
    color: #fff;
}
.ea_wpp_link.cta:hover b,
.ea_wpp_link.cta:hover small { color: #fff; }
.ea_wpp_link.cta:hover .ico  { background: rgba(255,255,255,0.25); }
.ea_wpp_link.cta:hover .ico svg { stroke: #fff; }

/* OVERLAY MOBILE */
#ea_wpp_overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(59,42,42,0.45);
    backdrop-filter: blur(4px);
    z-index: 999998;
}
#ea_wpp_overlay.ea_open { display: block; }

/* FECHAR MOBILE */
#ea_wpp_close {
    all: unset;
    display: none;
    position: absolute;
    top: 14px; right: 14px;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: rgba(197,164,109,0.18);
    color: #C5A46D;
    font-size: 1.1rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}
#ea_wpp_close:hover { background: rgba(197,164,109,0.35); color: #8B6F47; }

/* POPUP */
#ea_wpp_popup {
    display: none;
    position: fixed;
    bottom: 22px; left: 22px;
    background: linear-gradient(135deg, #FFFFFF, #F8F4EC);
    border: 1px solid rgba(197,164,109,0.35);
    border-radius: 50px;
    padding: 11px 20px;
    align-items: center;
    gap: 9px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #3B2A2A;
    text-decoration: none;
    box-shadow: 0 5px 22px rgba(59,42,42,0.15);
    z-index: 999997;
    opacity: 0;
    transform: translateY(14px);
    transition: all 0.4s ease;
    font-family: 'Jost', sans-serif;
}
#ea_wpp_popup.ea_open { display: flex; opacity: 1; transform: translateY(0); }
#ea_wpp_popup:hover {
    background: linear-gradient(135deg, #25D366, #1ebe5b);
    border-color: transparent;
    color: #fff;
    transform: translateY(-3px);
    text-decoration: none;
}
#ea_wpp_popup .px { opacity: 0.5; font-size: 0.9rem; cursor: pointer; }
#ea_wpp_popup:hover .px { color: #fff; opacity: 0.8; }

/* MOBILE */
@media (max-width: 768px) {
    #ea_wpp { bottom: 16px; right: 16px; }
    #ea_wpp_btn, div#ea_wpp_btn { width: 58px !important; height: 58px !important; min-width: 58px !important; min-height: 58px !important; }
    #ea_wpp_btn svg { width: 32px; height: 32px; }
    #ea_wpp_menu {
        position: fixed;
        bottom: auto; top: 50%; left: 50%; right: auto;
        transform: translate(-50%, -48%) scale(0.97);
        width: 91%; max-width: 340px;
        z-index: 1000000;
        max-height: 86vh;
    }
    #ea_wpp_menu.ea_open { transform: translate(-50%, -50%) scale(1); }
    #ea_wpp_menu::after { display: none; }
    #ea_wpp_close { display: flex; }
    #ea_wpp_popup { left: 10px; right: 10px; font-size: 0.68rem; }
}
