/* EconomyEnergy - Custom Styles & Conversions */

/* ==========================================================================
   BOTAOECONOMY: Centralização Rigorosa sem Interferência no Bitrix24
   ========================================================================== */

/* 1. Padronização Geométrica Geral de Botões Nativos */
.widget-button, .whatsapp-btn, a[href^="tel:"], .btn-call {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: normal !important;
    gap: 8px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    overflow: visible !important;
    cursor: pointer;
}

/* 2. Neutralização do Overlay Landingi */
.widget-button .widget-overlay {
    pointer-events: none !important;
}

/* 3. Centralização Bi-Axial Geral do Nó de Texto Interno */
.widget-button .widget-text,
.widget-button span,
.whatsapp-btn .widget-text,
.whatsapp-btn span,
a[href^="tel:"] .widget-text,
a[href^="tel:"] span {
    position: static !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    -webkit-transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: normal !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: auto !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
}

.widget-button .widget-text p,
.widget-button .widget-text span,
.whatsapp-btn .widget-text p,
.whatsapp-btn .widget-text span {
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: normal !important;
}

/* 4. Ícones dos Botões (WhatsApp, Tel, etc.): Harmonia e Proximidade com o Texto */
.btn-whatsapp-icon,
.widget-button svg,
.whatsapp-btn svg,
a[href^="tel:"] svg,
a[href^="tel:"] img,
.widget-button img {
    width: 22px !important;
    min-width: 22px !important;
    height: 22px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    fill: currentColor !important;
}

/* 5. Dimensionamento Adaptativo de Todos os Botões de Ação / CTA / Preenchimento */
.widget-button:has(svg),
.widget-button:has(.btn-whatsapp-icon),
.widget-button:has(img),
.whatsapp-btn,
#M240ddiqIJd5U5V5IwbFaLU4Xm2ztDtw,
#Su1hiKUpkT923JxZoUWe10GV1d0Z2c11,
#TLPu4VlSGpqPmXe59G5bHuigiZUJ7spL,
#TeKKzZDsiVV7IZOwR3QAJ3QTA0fn5WXg,
#Tt9OVVULbNETDeptZ1B91J00ertyVtcH,
#e6PNTXt1f9RFJdfRINREq3HlikGA6zX0,
#ebXECeCJI8nIPEw8gDT1w0go2p17QPf5,
#fraZd64HLsZdn27isuVsNXo4y4scJWZp,
#hIzaT5FXuBXcVhkAuNuFQ4S7HxQT4pv5,
#k4m3s45CN8PqB0PqN6Xy24nu3BO0MOUp,
#y95E5SMJidkAIHHGoS9Sumrq9xG2shr8,
#NgHqxUxyGUWFh9pgQEvoLu5eLsNLw3tg,
#xnVmBzaheibkTMhniPD6TM0UZkCeV1mx {
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    border-left: none !important;
}

/* 6. Centralização Específica dos Botões dos Cards de Planos */
#QOozqTbUCLOKMme7ZWOHams7mXmLrTRK,
#yVgQwAwUA3ZTH4JN7nNnHFah2f12Qn95 {
    display: inline-flex !important;
    text-align: center !important;
    justify-content: center !important;
    align-items: center !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
}

#QOozqTbUCLOKMme7ZWOHams7mXmLrTRK .widget-text,
#yVgQwAwUA3ZTH4JN7nNnHFah2f12Qn95 .widget-text {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    margin: 0 auto !important;
}

/* 7. Centralização do Balão Flutuante do WhatsApp */
.whatsapp-bubble {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

/* Salvaguarda Desktop tel: */
@media only screen and (min-width: 764px) {
    a[href^="tel:"],
    .widget-button[href^="tel:"] {
        display: none !important;
    }
}

/* 8. Salvaguarda Mobile: Ajuste de Larguras e Respiro Proporcional */
@media only screen and (max-width: 763px) {
    .widget-button, .whatsapp-btn, a[href^="tel:"], .btn-call {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    .widget-button:has(svg),
    .widget-button:has(.btn-whatsapp-icon),
    .widget-button:has(img),
    .whatsapp-btn,
    #M240ddiqIJd5U5V5IwbFaLU4Xm2ztDtw,
    #Su1hiKUpkT923JxZoUWe10GV1d0Z2c11,
    #TLPu4VlSGpqPmXe59G5bHuigiZUJ7spL,
    #TeKKzZDsiVV7IZOwR3QAJ3QTA0fn5WXg,
    #Tt9OVVULbNETDeptZ1B91J00ertyVtcH,
    #e6PNTXt1f9RFJdfRINREq3HlikGA6zX0,
    #ebXECeCJI8nIPEw8gDT1w0go2p17QPf5,
    #fraZd64HLsZdn27isuVsNXo4y4scJWZp,
    #hIzaT5FXuBXcVhkAuNuFQ4S7HxQT4pv5,
    #k4m3s45CN8PqB0PqN6Xy24nu3BO0MOUp,
    #y95E5SMJidkAIHHGoS9Sumrq9xG2shr8,
    #NgHqxUxyGUWFh9pgQEvoLu5eLsNLw3tg,
    #xnVmBzaheibkTMhniPD6TM0UZkCeV1mx {
        width: auto !important;
        min-width: 0 !important;
        max-width: calc(100% - 1rem) !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    #QOozqTbUCLOKMme7ZWOHams7mXmLrTRK {
        width: 8.625rem !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    #yVgQwAwUA3ZTH4JN7nNnHFah2f12Qn95 {
        width: 8.625rem !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
}

/* Botão Flutuante de WhatsApp e Balão de Fala */
.pulsozap { animation: pulsozap 2s infinite; }
@keyframes pulsozap {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-floating-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 999999 !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
}
.whatsapp-floating-container.visible {
    opacity: 1;
    visibility: visible;
}

/* Balão de Fala (Speech Bubble) Semântico */
.whatsapp-bubble {
    position: relative;
    background-color: #0f1cb3;
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 6px;
    font-family: 'Figtree', sans-serif;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s ease;
}
.whatsapp-bubble:hover {
    transform: scale(1.04);
}
.whatsapp-bubble::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -8px;
    transform: translateY(-50%);
    border-width: 6px 0 6px 8px;
    border-style: solid;
    border-color: transparent transparent transparent #0f1cb3;
    display: block;
    width: 0;
}

.whatsapp-float-btn {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    text-decoration: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.whatsapp-float-btn:hover {
    transform: scale(1.08);
}
.whatsapp-float-btn img {
    width: 34px;
    height: 34px;
    filter: brightness(0) invert(1);
}

@media only screen and (max-width: 480px) {
    .whatsapp-bubble {
        font-size: 11px;
        padding: 6px 10px;
    }
    .whatsapp-bubble::after {
        right: -6px;
        border-width: 5px 0 5px 6px;
    }
}
