
@keyframes mgb_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 mgb_status_blink {
    0%,100% { opacity:1; } 50% { opacity:0.3; }
}

/* ── WIDGET CONTAINER ── */
#mgb_wpp {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 999999;
    font-family: 'Jost', sans-serif;
}

/* ── BOTÃO PRINCIPAL ── */
#mgb_wpp_btn, div#mgb_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: mgb_wpp_pulse 2.5s infinite !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    -webkit-tap-highlight-color: transparent !important;
}

#mgb_wpp_btn:hover, div#mgb_wpp_btn:hover,
#mgb_wpp_btn:focus, div#mgb_wpp_btn:focus,
#mgb_wpp_btn:active, div#mgb_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;
}

#mgb_wpp_btn svg {
    width: 36px;
    height: 36px;
    fill: #ffffff;
    display: block;
    pointer-events: none;
}

/* ── MENU ── */
#mgb_wpp_menu {
    display: none;
    position: absolute;
    bottom: 76px;
    right: 0;
    width: 320px;
    background: linear-gradient(160deg, #1C1B0E 0%, #221E08 100%);
    border-radius: 18px;
    border: 1px solid rgba(201,168,76,0.22);
    box-shadow: 0 12px 50px rgba(0,0,0,0.65);
    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;
}
#mgb_wpp_menu.mgb_open {
    opacity: 1;
    transform: translateY(0) scale(1);
}
/* faixa topo dourada */
#mgb_wpp_menu::before {
    content: '';
    display: block;
    height: 2px;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(90deg, transparent, #9A7530 20%, #C9A84C 50%, #9A7530 80%, transparent);
    margin: 0 -20px 16px;
}
/* seta */
#mgb_wpp_menu::after {
    content: '';
    position: absolute;
    bottom: -9px;
    right: 22px;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 9px solid #1C1B0E;
}
#mgb_wpp_menu::-webkit-scrollbar { width: 4px; }
#mgb_wpp_menu::-webkit-scrollbar-thumb { background: #9A7530; border-radius: 2px; }

/* STATUS */
#mgb_wpp_status {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.70rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 7px 14px;
    border-radius: 50px;
    border: 1px solid rgba(201,168,76,0.15);
    background: rgba(255,255,255,0.04);
    margin-bottom: 14px;
    color: rgba(240,230,204,0.45);
    font-family: 'Jost', sans-serif;
}
#mgb_wpp_status.open  { color: #4ade80; border-color: rgba(74,222,128,0.28); }
#mgb_wpp_status.closed{ color: rgba(240,230,204,0.38); }
#mgb_wpp_status .dot  {
    width: 7px; height: 7px; border-radius: 50%;
    background: currentColor; flex-shrink: 0;
    animation: mgb_status_blink 2s infinite;
}

/* HEADER */
#mgb_wpp_header {
    text-align: center;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(201,168,76,0.15);
}
#mgb_wpp_header h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #F5E4AE;
    margin: 0 0 3px;
    letter-spacing: 3px;
    text-transform: uppercase;
}
#mgb_wpp_header p {
    font-size: 0.62rem;
    font-weight: 300;
    color: #C9A84C;
    margin: 0;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

/* LINKS */
.mgb_wpp_link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 13px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    border: 1px solid rgba(201,168,76,0.10);
    text-decoration: none;
    color: #F0E6CC;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}
.mgb_wpp_link:last-child { margin-bottom: 0; }
.mgb_wpp_link:hover {
    transform: translateY(-2px);
    background: rgba(201,168,76,0.08);
    border-color: rgba(201,168,76,0.28);
    text-decoration: none;
    color: #F0E6CC;
}
.mgb_wpp_link .ico {
    width: 36px; height: 36px; min-width: 36px;
    border-radius: 50%;
    background: rgba(201,168,76,0.10);
    border: 1px solid rgba(201,168,76,0.18);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem;
    transition: background 0.3s ease;
    flex-shrink: 0;
}
.mgb_wpp_link:hover .ico {
    background: rgba(201,168,76,0.20);
    border-color: rgba(201,168,76,0.40);
}
.mgb_wpp_link b {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: #F0E6CC;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-family: 'Jost', sans-serif;
}
.mgb_wpp_link small {
    display: block;
    font-size: 0.65rem;
    font-weight: 300;
    color: rgba(201,168,76,0.60);
    font-family: 'Jost', sans-serif;
}
.mgb_wpp_link:hover b     { color: #F5E4AE; }
.mgb_wpp_link:hover small { color: #C9A84C; }

/* CTA VERDE */
.mgb_wpp_link.cta {
    background: #25D366;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(37,211,102,0.28);
}
.mgb_wpp_link.cta .ico { background: rgba(255,255,255,0.15); border-color: transparent; }
.mgb_wpp_link.cta b,
.mgb_wpp_link.cta small { color: #fff; }
.mgb_wpp_link.cta small { color: rgba(255,255,255,0.75); }
.mgb_wpp_link.cta:hover {
    background: #1ebe5b;
    border-color: transparent;
    box-shadow: 0 6px 22px rgba(37,211,102,0.40);
    color: #fff;
}
.mgb_wpp_link.cta:hover b,
.mgb_wpp_link.cta:hover small { color: #fff; }
.mgb_wpp_link.cta:hover .ico  { background: rgba(255,255,255,0.20); }

/* OVERLAY MOBILE */
#mgb_wpp_overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    z-index: 999998;
}
#mgb_wpp_overlay.mgb_open { display: block; }

/* FECHAR MOBILE */
#mgb_wpp_close {
    all: unset;
    display: none;
    position: absolute;
    top: 14px; right: 14px;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: rgba(201,168,76,0.15);
    color: #C9A84C;
    font-size: 1.1rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}
#mgb_wpp_close:hover { background: rgba(201,168,76,0.30); }

/* POPUP */
#mgb_wpp_popup {
    display: none;
    position: fixed;
    bottom: 22px; left: 22px;
    background: linear-gradient(135deg, #1C1B0E, #2A2408);
    border: 1px solid rgba(201,168,76,0.28);
    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: #F0E6CC;
    text-decoration: none;
    box-shadow: 0 5px 22px rgba(0,0,0,0.45);
    z-index: 999997;
    opacity: 0;
    transform: translateY(14px);
    transition: all 0.4s ease;
    font-family: 'Jost', sans-serif;
}
#mgb_wpp_popup.mgb_open { display: flex; opacity: 1; transform: translateY(0); }
#mgb_wpp_popup:hover {
    background: linear-gradient(135deg, #25D366, #1ebe5b);
    border-color: transparent;
    color: #fff;
    transform: translateY(-3px);
    text-decoration: none;
}
#mgb_wpp_popup .px { opacity: 0.5; font-size: 0.9rem; cursor: pointer; }
#mgb_wpp_popup:hover .px { color: #fff; opacity: 0.8; }

/* MOBILE */
@media (max-width: 768px) {
    #mgb_wpp { bottom: 16px; right: 16px; }
    #mgb_wpp_btn, div#mgb_wpp_btn { width: 58px !important; height: 58px !important; min-width: 58px !important; min-height: 58px !important; }
    #mgb_wpp_btn svg { width: 32px; height: 32px; }
    #mgb_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;
    }
    #mgb_wpp_menu.mgb_open { transform: translate(-50%, -50%) scale(1); }
    #mgb_wpp_menu::after { display: none; }
    #mgb_wpp_close { display: flex; }
    #mgb_wpp_popup { left: 10px; right: 10px; font-size: 0.68rem; }
}
