/* ===== CORE STYLES ===== */
.wcp-widget {
    position: fixed;
    bottom: 25px;
    z-index: 9999;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.wcp-widget[data-position="right"] {
    right: 5px !important;
    left: auto;
}

.wcp-widget[data-position="left"] {
    left: 5px !important;
    right: auto;
}

/* Regras FORÇADAS para Font Awesome */
.wcp-widget i,
.wcp-widget .fab,
.wcp-widget .fas {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands' !important;
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
}

/* Regras específicas para ícones de marcas */
.wcp-widget .fab,
.wcp-widget i.fab {
    font-family: 'Font Awesome 6 Brands' !important;
    font-weight: 400 !important;
}

/* Regras específicas para ícones sólidos */
.wcp-widget .fas,
.wcp-widget i.fas {
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
}

/* ===== BUTTON ===== */
.wcp-button {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: var(--wcp-widget-bg, #25D366);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    margin: 0;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, background-color;
}

.wcp-button:hover {
    background: var(--wcp-hover-bg, #128C7E);
    transform: scale(1.05);
}

.wcp-button.active {
    background: var(--wcp-active-bg, #128C7E);
    transform: scale(1.05);
}

.wcp-button:not(:hover):not(.active) {
    background: var(--wcp-widget-bg, #25D366);
}

.wcp-button .dashicons,
.wcp-button .fab,
.wcp-button .fas {
    color: var(--wcp-icon-color, #FFFFFF);
    font-size: var(--wcp-icon-size, 30px);
    width: var(--wcp-icon-size, 30px);
    height: var(--wcp-icon-size, 30px);
    line-height: var(--wcp-icon-size, 30px);
    text-align: center;
    display: inline-block;
}

.wcp-button .custom-icon {
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.wcp-button .wcp-icon-open,
.wcp-button .wcp-icon-close {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.25s ease-in-out, transform 0.25s ease-in-out;
    backface-visibility: hidden; /* Para melhor performance da animação de rotação */
    display: flex; /* Para garantir alinhamento se o ícone for SVG ou img */
    align-items: center;
    justify-content: center;
}

.wcp-button .wcp-icon-open {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg);
}

.wcp-button .wcp-icon-close {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-180deg); /* Começa rotacionado e invisível */
}

.wcp-button.active .wcp-icon-open {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(180deg); /* Rotaciona para fora ao abrir */
}

.wcp-button.active .wcp-icon-close {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg); /* Rotaciona para dentro ao abrir */
}

/* Ícone dentro do botão */
.wcp-button i {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands'; /* Priorizar Free para ícones sólidos/regulares */
    font-weight: 900; /* Para Brands e Solid */
    font-style: normal;
    display: inline-block;
    line-height: 1;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: var(--wcp-icon-size, 30px); /* Usar variável para tamanho */
    color: var(--wcp-icon-color, #FFFFFF); /* Usar variável para cor */
    width: var(--wcp-icon-size, 30px);
    height: var(--wcp-icon-size, 30px);
}

.wcp-button i.fas, /* Ícones Sólidos */
.wcp-button i.far { /* Ícones Regulares (se usar) */
    font-weight: 900; /* Ou 400 para Regular se necessário */
}

.wcp-button i.fab { /* Ícones de Marca */
    font-weight: 400; /* Marcas geralmente usam peso 400 */
}

/* Esconder ícone de abrir quando ativo, mostrar ícone de fechar */
.wcp-button.active .wcp-icon-open {
    display: none;
}

.wcp-button:not(.active) .wcp-icon-close {
    display: none;
}

.wcp-button .wcp-icon-close {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: var(--wcp-icon-size, 30px) !important;
    color: var(--wcp-icon-color, #FFFFFF) !important;
    width: var(--wcp-icon-size, 30px) !important;
    height: var(--wcp-icon-size, 30px) !important;
    line-height: var(--wcp-icon-size, 30px) !important;
    text-align: center !important;
}

.wcp-button .dashicons.dashicons-no-alt {
    display: block !important;
    font-family: dashicons !important;
    font-size: var(--wcp-icon-size, 30px) !important;
    width: var(--wcp-icon-size, 30px) !important;
    height: var(--wcp-icon-size, 30px) !important;
    line-height: var(--wcp-icon-size, 30px) !important;
    color: var(--wcp-icon-color, #FFFFFF) !important;
}

/* ===== MODAL ===== */
.wcp-modal {
    position: fixed;
    bottom: 87px;
    width: 380px;
    max-height: 65vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    will-change: transform, opacity;
    backface-visibility: hidden;
    perspective: 1000px;
    box-sizing: border-box;
}

.wcp-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.wcp-widget[data-position="right"] .wcp-modal {
    right: 5px;
    margin-right: 5px;
    left: auto;
    transform-origin: bottom right;
}

.wcp-widget[data-position="left"] .wcp-modal {
    left: 5px;
    margin-left: 5px;
    right: auto;
    transform-origin: bottom left;
}

/* Header */
.wcp-modal-header {
    background: #25D366;
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}

.wcp-modal-header .dashicons,
.wcp-modal-header .fab,
.wcp-modal-header .fas {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: white;
    display: inline-block;
}

.wcp-modal-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 5px;
    line-height: 1.3;
}

.wcp-modal-subtitle {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
    line-height: 1.4;
}

.wcp-modal-response-time {
    font-size: 13px;
    margin: 8px 0 0;
    opacity: 0.8;
}

/* Body */
.wcp-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
    scrollbar-width: thin;
    scrollbar-color: #25D366 #f1f1f1;
}

.wcp-modal-body::-webkit-scrollbar {
    width: 6px;
}

.wcp-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.wcp-modal-body::-webkit-scrollbar-thumb {
    background-color: #25D366;
    border-radius: 3px;
}

/* Accounts */
.wcp-account {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 15px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.wcp-account::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(37, 211, 102, 0.05);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.wcp-account:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.wcp-account:hover::before {
    opacity: 1;
}

.wcp-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
    border: 2px solid #f0f0f0;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.wcp-account:hover .wcp-avatar {
    transform: scale(1.05);
}

.wcp-account-info {
    flex-grow: 1;
    min-width: 0;
}

.wcp-account-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 3px;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wcp-account-area {
    font-size: 14px;
    color: #666;
    margin: 0 0 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wcp-account-status {
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.wcp-account-status::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    transition: background-color 0.3s ease;
}

.wcp-account-status.online::before {
    background: #28a745;
}

.wcp-account-status.offline::before {
    background: #dc3545;
}

.wcp-account-status.online {
    color: #28a745;
}

.wcp-account-status.offline {
    color: #dc3545;
}

.wcp-account .dashicons,
.wcp-account .fab,
.wcp-account .fas {
    font-size: 24px;
    width: 24px;
    height: 24px;
    line-height: 24px;
    color: #666;
    margin-left: auto;
    display: inline-block;
}

.wcp-account .custom-icon {
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Ícone da Conta no Modal */
.wcp-account i.wcp-account-icon {
    margin-left: auto; /* Empurra para a direita */
    font-size: 22px; /* Tamanho ajustado */
    color: var(--wcp-account-icon-color, #777); /* Cor padrão */
    padding-left: 10px; /* Espaçamento */
    flex-shrink: 0;
}

.wcp-account i.wcp-account-icon.fab {
     font-weight: 400;
}

/* ===== TOOLTIP ===== */
.wcp-tooltip {
    position: absolute;
    padding: 8px 12px;
    background: #25D366;
    color: #FFFFFF;
    font-size: 14px;
    border-radius: 8px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    text-transform: none;
}

.wcp-button:not(.active) .wcp-tooltip {
    opacity: 1;
    visibility: visible;
}

.wcp-button.active .wcp-tooltip {
    opacity: 0;
    visibility: hidden;
}

.wcp-tooltip[data-tooltip-pos="left"] {
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    margin-right: 10px;
}

.wcp-tooltip[data-tooltip-pos="right"] {
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    margin-left: 10px;
}

.wcp-tooltip[data-tooltip-pos="top"] {
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
}

.wcp-tooltip[data-tooltip-pos="bottom"] {
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 10px;
}

.wcp-tooltip::after {
    content: '';
    position: absolute;
    border: 6px solid transparent;
}

.wcp-tooltip[data-tooltip-pos="left"]::after {
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
}

.wcp-tooltip[data-tooltip-pos="right"]::after {
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
}

.wcp-tooltip[data-tooltip-pos="top"]::after {
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.wcp-tooltip[data-tooltip-pos="bottom"]::after {
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
    .wcp-widget {
        bottom: 15px;
    }
    
    .wcp-widget[data-position="right"] {
        right: 10px !important;
    }
    
    .wcp-widget[data-position="left"] {
        left: 10px !important;
    }
    
    .wcp-button {
        width: 50px;
        height: 50px;
    }
    
    .wcp-button .dashicons,
    .wcp-button .fab,
    .wcp-button .fas {
        font-size: 25px;
        width: 25px;
        height: 25px;
        line-height: 25px;
    }
    
    .wcp-modal {
        width: calc(100vw - 20px);
        max-width: 380px;
        bottom: 70px;
        max-height: 80vh;
    }
    
    .wcp-widget[data-position="right"] .wcp-modal {
        right: 10px;
        left: auto;
        transform-origin: bottom right;
    }
    
    .wcp-widget[data-position="left"] .wcp-modal {
        left: 10px;
        right: auto;
        transform-origin: bottom left;
    }
    
    .wcp-modal-header {
        padding: 15px;
    }
    
    .wcp-modal-body {
        padding: 15px;
    }
    
    .wcp-account {
        padding: 12px;
    }
    
    .wcp-avatar {
        width: 40px;
        height: 40px;
    }
    
    .wcp-account-name {
        font-size: 14px;
    }
    
    .wcp-account-area {
        font-size: 12px;
    }
    
    /* Ajuste do tooltip para mobile */
    .wcp-tooltip {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        right: auto;
        left: auto;
        bottom: auto;
        top: auto;
        margin-left: 10px;
        padding: 8px 12px;
        font-size: 12px;
        white-space: nowrap;
        background: rgba(0, 0, 0, 0.8);
        color: white;
        border-radius: 4px;
        box-shadow: none;
    }
    
    .wcp-widget[data-position="right"] .wcp-tooltip {
        margin-left: 10px;
    }
    
    .wcp-widget[data-position="left"] .wcp-tooltip {
        margin-right: 10px;
    }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 374px) {
    .wcp-button {
        width: 45px;
        height: 45px;
    }
    
    .wcp-button .dashicons,
    .wcp-button .fab,
    .wcp-button .fas {
        font-size: 22px;
        width: 22px;
        height: 22px;
        line-height: 22px;
    }
    
    .wcp-modal {
        width: calc(100vw - 10px);
        bottom: 60px;
    }
    
    .wcp-widget[data-position="right"] .wcp-modal {
        right: 5px;
        left: auto;
    }
    
    .wcp-widget[data-position="left"] .wcp-modal {
        left: 5px;
        right: auto;
    }
    
    .wcp-account {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .wcp-account-info {
        width: 100%;
    }
}

/* ===== SOCIAL ICONS ===== */
.dashicons-discord:before {
    content: "\f1c6";
    font-family: dashicons;
}

.dashicons-youtube:before {
    content: "\f1c7";
    font-family: dashicons;
}

.dashicons-tiktok:before {
    content: "\f1c8";
    font-family: dashicons;
}

.dashicons-snapchat:before {
    content: "\f1c9";
    font-family: dashicons;
}

.dashicons-pinterest:before {
    content: "\f1ca";
    font-family: dashicons;
}

.dashicons-reddit:before {
    content: "\f1cb";
    font-family: dashicons;
}

.dashicons-tumblr:before {
    content: "\f1cc";
    font-family: dashicons;
}

.dashicons-vimeo:before {
    content: "\f1cd";
    font-family: dashicons;
}

.dashicons-wordpress:before {
    content: "\f1ce";
    font-family: dashicons;
}

.dashicons-github:before {
    content: "\f1cf";
    font-family: dashicons;
}

.dashicons-slack:before {
    content: "\f1d0";
    font-family: dashicons;
}

.dashicons-skype:before {
    content: "\f1d1";
    font-family: dashicons;
}

.dashicons-viber:before {
    content: "\f1d2";
    font-family: dashicons;
}

.dashicons-line:before {
    content: "\f1d3";
    font-family: dashicons;
}

.dashicons-wechat:before {
    content: "\f1d4";
    font-family: dashicons;
}

.dashicons-telegram:before {
    content: "\f1c5";
    font-family: dashicons;
}

.ez-whatsapp-account-icon {
    font-size: 20px;
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: inherit;
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
}

.wcp-button .ez-whatsapp-account-icon {
    font-size: 24px;
    margin-right: 0;
    width: 24px;
}

.wcp-button .ez-whatsapp-account-icon.fab,
.wcp-button .ez-whatsapp-account-icon.fas {
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
}

.wcp-button .ez-whatsapp-account-icon.fab:before,
.wcp-button .ez-whatsapp-account-icon.fas:before {
    font-family: 'Font Awesome 5 Brands', 'Font Awesome 5 Free';
    font-weight: 900;
}

/* Estilos para ícones */
.wcp-button i,
.wcp-modal-header i,
.wcp-account i {
    font-family: 'Font Awesome 6 Brands', 'Font Awesome 6 Free';
    font-weight: 900;
    font-style: normal;
    font-size: 30px;
    color: var(--wcp-icon-color, #FFFFFF);
    display: inline-block;
    line-height: 1;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

/* Estilos específicos para ícones no botão */
.wcp-button i {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estilos específicos para ícones no modal */
.wcp-modal-header i {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands';
    font-weight: 900;
    font-style: normal;
    font-size: 24px;
    margin-right: 10px;
}

.wcp-modal-header i.fab {
     font-weight: 400;
}

/* Estilos específicos para ícones nas contas */
.wcp-account i {
    font-size: 20px;
    margin-left: 10px;
    color: var(--wcp-account-icon-color, #25D366);
}

/* Esconder Dashicons */
.dashicons {
    display: none !important;
}

/* Ícones GERAL (base para FA) - FORÇADO */
.wcp-widget i,
.wcp-widget .fab,
.wcp-widget .fas {
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands' !important; /* TESTE: Forçar FA6 */
    line-height: 1;
}

/* Ícone DENTRO DO BOTÃO PRINCIPAL */
.wcp-button > i {
    font-size: var(--wcp-icon-size, 30px) !important;
    color: var(--wcp-icon-color, #FFFFFF) !important;
    width: var(--wcp-icon-size, 30px) !important;
    height: var(--wcp-icon-size, 30px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Ajuste de Font Weight para Ícones FA */
.wcp-widget i.fas, /* Solid */
.wcp-widget i.far { /* Regular */
    font-weight: 900 !important; /* TESTE */
}

.wcp-widget i.fab { /* Brands */
    font-weight: 400 !important; /* TESTE */
}

/* Controladores de Abrir/Fechar */
.wcp-button:not(.active) .wcp-icon-close {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(180deg);
    pointer-events: none;
}

.wcp-button.active .wcp-icon-open {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-180deg);
    pointer-events: none;
}

.wcp-button.active .wcp-icon-close {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg);
    pointer-events: auto;
}

.wcp-button .wcp-icon-close {
    display: block !important;
    font-size: var(--wcp-icon-size, 30px) !important;
    color: var(--wcp-icon-color, #FFFFFF) !important;
    width: var(--wcp-icon-size, 30px) !important;
    height: var(--wcp-icon-size, 30px) !important;
    line-height: var(--wcp-icon-size, 30px) !important;
}

/* Ícone no CABEÇALHO do Modal */
.wcp-modal-header > i {
    font-size: 28px !important;
    width: auto !important;
    height: auto !important;
    color: var(--wcp-header-icon-color, #FFFFFF) !important;
    margin-right: 15px !important;
    flex-shrink: 0 !important;
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands' !important;
}

.wcp-modal-header > i.fab {
    font-family: 'Font Awesome 6 Brands' !important;
    font-weight: 400 !important;
}

.wcp-modal-header > i.fas {
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
}

/* Container do ícone da conta */
.wcp-account-icon-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: auto !important;
    padding-left: 10px !important;
    flex-shrink: 0 !important;
}

/* Ícones das contas individuais */
.wcp-account-icon {
    font-size: 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands' !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    transition: color 0.3s ease !important;
}

/* Cor do ícone quando a conta está online */
.wcp-account.online .wcp-account-icon {
    color: var(--wcp-account-status-online, #28a745) !important;
}

/* Cor do ícone quando a conta está offline */
.wcp-account.offline .wcp-account-icon {
    color: var(--wcp-account-status-offline, #666) !important;
}

/* Garantir que o ícone seja exibido */
.wcp-account .wcp-account-icon-container {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.wcp-account .wcp-account-icon-container i {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.wcp-account-icon.fab {
    font-family: 'Font Awesome 6 Brands' !important;
    font-weight: 400 !important;
}

.wcp-account-icon.fas {
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
}

/* Ícone do cabeçalho do modal */
.wcp-modal-header-icon {
    font-size: 28px !important;
    color: var(--wcp-header-icon-color, #FFFFFF) !important;
    margin-right: 15px !important;
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands' !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

.wcp-modal-header-icon.fab {
    font-family: 'Font Awesome 6 Brands' !important;
    font-weight: 400 !important;
}

.wcp-modal-header-icon.fas {
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
}

/* Ícone do widget */
.wcp-icon-open,
.wcp-icon-close {
    font-size: var(--wcp-icon-size, 30px) !important;
    color: var(--wcp-icon-color, #FFFFFF) !important;
    width: var(--wcp-icon-size, 30px) !important;
    height: var(--wcp-icon-size, 30px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands' !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

.wcp-icon-open.fab,
.wcp-icon-close.fab {
    font-family: 'Font Awesome 6 Brands' !important;
    font-weight: 400 !important;
}

.wcp-icon-open.fas,
.wcp-icon-close.fas {
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
}

/* Estilo para conta offline */
.wcp-account.offline {
    opacity: 0.7;
    filter: grayscale(30%);
}

/* Resolução de conflitos de ícones */
.wcp-widget i,
.wcp-widget .fab,
.wcp-widget .fas {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands' !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    line-height: 1;
}

/* Esconder Dashicons */
.dashicons {
    display: none !important;
}

/* Ícone do widget */
.wcp-icon-open,
.wcp-icon-close {
    font-size: var(--wcp-icon-size, 30px) !important;
    color: var(--wcp-icon-color, #FFFFFF) !important;
    width: var(--wcp-icon-size, 30px) !important;
    height: var(--wcp-icon-size, 30px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Ícone do cabeçalho do modal */
.wcp-modal-header > i {
    font-size: 28px !important;
    width: auto !important;
    height: auto !important;
    color: var(--wcp-header-icon-color, #FFFFFF) !important;
    margin-right: 15px !important;
    flex-shrink: 0 !important;
}

/* Ícones das contas */
.wcp-account-icon {
    font-size: 22px !important;
    margin-left: auto !important;
    padding-left: 10px !important;
    display: flex !important;
    align-items: center !important;
}

/* Não esconder Dashicons */
.dashicons {
    display: inline-block !important;
}

/* Limite para imagens de ícone personalizadas */
.wcp-img-icon {
    max-width: 36px;
    max-height: 36px;
    min-width: 24px;
    min-height: 24px;
    width: 36px;
    height: 36px;
    display: inline-block;
    object-fit: contain;
    vertical-align: middle;
    margin: 0 auto;
}

/* Ícone do cabeçalho do modal */
.wcp-modal-header-icon.wcp-img-icon {
    max-width: 48px;
    max-height: 48px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ícone das contas individuais */
.wcp-account-icon.wcp-img-icon {
    max-width: 28px;
    max-height: 28px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wcp-account.not-clickable {
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.6;
}

/* --- MODERNIZAÇÃO DO FORMULÁRIO DE LEAD NO MODAL --- */
.wcp-lead-form-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    padding: 28px 22px 22px 22px;
    max-width: 420px;
    margin: 24px auto 0 auto;
    font-family: 'Inter', 'Roboto', Arial, sans-serif;
    transition: box-shadow 0.2s;
}
.wcp-lead-form-container:focus-within {
    box-shadow: 0 6px 32px rgba(37,211,102,0.13);
}
.wcp-lead-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.wcp-form-group label {
    font-size: 15px;
    color: #222;
    margin-bottom: 6px;
    font-weight: 500;
}
.wcp-form-group input,
.wcp-form-group textarea {
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 15px;
    background: #fafbfc;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    resize: none;
}
.wcp-form-group input:focus,
.wcp-form-group textarea:focus {
    border-color: #25D366;
    outline: none;
    box-shadow: 0 0 0 2px rgba(37,211,102,0.10);
}
.wcp-form-group textarea {
    min-height: 70px;
    max-height: 180px;
}
.wcp-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}
.wcp-form-actions .button,
.wcp-form-actions .button-primary {
    flex: 1;
    padding: 12px 0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.wcp-form-actions .button-primary {
    background: #25D366;
    color: #fff;
}
.wcp-form-actions .button-primary:disabled {
    background: #b7eac7;
    color: #fff;
    cursor: not-allowed;
}
.wcp-form-actions .button {
    background: #f3f3f3;
    color: #444;
    border: 1.5px solid #e0e0e0;
}
.wcp-form-actions .button:hover {
    background: #ededed;
}
.wcp-form-actions .button-primary:hover {
    background: #20b058;
}
.wcp-form-error {
    color: #dc3545;
    background: #fff0f3;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    margin-top: 2px;
    display: block;
    text-align: center;
}
.wcp-success-message {
    color: #218838;
    background: #e6f9ed;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 15px;
    margin-top: 10px;
    text-align: center;
    display: block;
}
@media (max-width: 600px) {
    .wcp-lead-form-container {
        max-width: 100vw;
        padding: 16px 6vw 16px 6vw;
        margin: 0;
    }
    .wcp-form-actions .button,
    .wcp-form-actions .button-primary {
        font-size: 15px;
        padding: 11px 0;
    }
}
/* --- FIM MODERNIZAÇÃO FORMULÁRIO DE LEAD --- */

/* Notificações personalizadas dentro do modal */
.wcp-modal .wcp-notification {
    width: calc(100% - 30px);
    margin: 12px auto;
    box-sizing: border-box;
}
.wcp-modal .wcp-notification.success {
    background-color: #e6ffed;
    color: #2c662d;
    border-color: #c3e6cb;
}
.wcp-modal .wcp-notification.error {
    background-color: #ffe6e6;
    color: #661111;
    border-color: #f5c6cb;
}
.wcp-modal .wcp-notification button {
    background: transparent;
    border: none;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: inherit;
}

/* --- Widget Only Mode --- */
.wcp-widget-only-stack {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 9999;
}
.wcp-widget-left.wcp-widget-only-stack {
  left: 30px;
  right: auto;
}
.wcp-widget-only-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  font-size: 28px;
  color: #fff;
  transition: transform 0.15s, box-shadow 0.15s;
  background: #25D366;
  border: none;
  outline: none;
  cursor: pointer;
  text-decoration: none;
}
.wcp-widget-only-btn:hover {
  transform: translateY(-2px) scale(1.07);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  opacity: 0.92;
}
.wcp-widget-messenger { background: #0084FF !important; }
.wcp-widget-phone { background: #00E676 !important; }
.wcp-widget-close { background: #5A6FF0 !important; }

@media (max-width: 600px) {
  .wcp-widget-only-stack {
    bottom: 16px;
    right: 16px;
    gap: 12px;
  }
  .wcp-widget-left.wcp-widget-only-stack {
    left: 16px;
    right: auto;
  }
  .wcp-widget-only-btn {
    width: 46px;
    height: 46px;
    font-size: 22px;
  }
}

/* --- CORREÇÃO: FAB MENU CIRCULAR --- */
.wcp-widget .wcp-fab-menu {
    position: absolute;
    bottom: 70px; 
    right: 0;
    display: none; /* Começa escondido */
    flex-direction: column;
    gap: 18px;
    padding: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
    z-index: 999998;
    min-width: unset;

    opacity: 0;
    pointer-events: none;
    transform: scale(0.95) translateY(10px);
    transition: opacity 0.18s cubic-bezier(.4,0,.2,1), transform 0.18s cubic-bezier(.4,0,.2,1), visibility 0s 0.18s;
    visibility: hidden;
}

.wcp-widget[data-position="left"] .wcp-fab-menu {
    right: auto;
    left: 0;
}

.wcp-widget .wcp-fab-menu.wcp-fab-menu-open {
    display: flex; 
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) translateY(0);
    visibility: visible;
    transition: opacity 0.18s cubic-bezier(.4,0,.2,1), transform 0.18s cubic-bezier(.4,0,.2,1);
}

.wcp-widget .wcp-fab-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.2s;
    font-size: 28px;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    background: #25D366; 
    border: none;
    outline: none;
    cursor: pointer;
    margin: 0;
    padding: 0;
    opacity: 1;
}

/* Animação do menu */
@keyframes menuSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wcp-widget .wcp-fab-menu {
    animation: menuSlideIn 0.3s ease;
}

/* --- CHATBOT MODERNO --- */
.wcp-chatbot-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #f7f7f7;
    position: relative;
}

.wcp-chatbot-messages {
    flex: 1;
    padding: 20px 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

/* Bolhas de mensagem */
.wcp-chatbot-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    animation: messageAppear 0.3s ease-out;
}

@keyframes messageAppear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mensagem do bot */
.wcp-chatbot-message.bot-bubble {
    align-self: flex-start;
    background: #fff;
    color: #333;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    border-bottom-left-radius: 4px;
}

/* Mensagem do usuário */
.wcp-chatbot-message.user-bubble {
    align-self: flex-end;
    background: #25D366;
    color: #fff;
    border-bottom-right-radius: 4px;
}

/* Área de opções */
.wcp-chatbot-options {
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.05);
    gap: 0; /* Zera o gap para usar apenas margin */
}

/* Botões de opção modernos */
.wcp-chatbot-option-button {
    margin: 6px !important; /* Força margem em todos os botões */
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.wcp-chatbot-option-button:hover {
    background: #f8f8f8;
    border-color: #25D366;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.wcp-chatbot-option-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Área do formulário de lead */
.wcp-chatbot-lead-form-area {
    padding: 16px;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* Mensagem de carregamento */
.wcp-chatbot-message.loading {
    align-self: flex-start;
    background: #f0f0f0;
    color: #666;
    padding: 8px 16px;
    border-radius: 16px;
    font-size: 13px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Mensagem de erro */
.wcp-chatbot-message.error {
    align-self: center;
    background: #ffebee;
    color: #d32f2f;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    text-align: center;
    max-width: 90%;
}

/* Responsividade */
@media (max-width: 767px) {
    .wcp-chatbot-messages {
        padding: 16px 12px;
    }
    
    .wcp-chatbot-message {
        max-width: 90%;
        font-size: 13px;
    }
    
    .wcp-chatbot-options {
        padding: 12px;
    }
    
    .wcp-chatbot-option-button {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* Scrollbar personalizada */
.wcp-chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.wcp-chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

.wcp-chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 3px;
}

.wcp-chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.2);
}

/* Formulário de lead como bolha no chatbot */
.wcp-chatbot-lead-form-bubble {
    padding: 24px 22px 18px 22px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(37,211,102,0.08);
    border-radius: 18px;
    margin: 0 auto 12px auto;
    max-width: 440px;
    width: 100%;
    box-sizing: border-box;
    align-self: center;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.wcp-chatbot-lead-form-bubble form.wcp-chatbot-lead-form {
    background: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
}
.wcp-chatbot-lead-form-bubble .wcp-form-group {
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.wcp-chatbot-lead-form-bubble .wcp-form-group label {
    font-size: 13px;
    color: #333;
    margin-bottom: 2px;
    font-weight: 500;
}
.wcp-chatbot-lead-form-bubble .wcp-form-group input,
.wcp-chatbot-lead-form-bubble .wcp-form-group textarea {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    background: #fafbfc;
    margin-bottom: 0;
    width: 100%;
    box-sizing: border-box;
}
.wcp-chatbot-lead-form-bubble .wcp-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
.wcp-chatbot-lead-form-bubble .wcp-form-actions .button,
.wcp-chatbot-lead-form-bubble .wcp-form-actions .button-primary {
    flex: 1;
    padding: 10px 0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.wcp-chatbot-lead-form-bubble .wcp-form-actions .button-primary {
    background: #25D366;
    color: #fff;
}
.wcp-chatbot-lead-form-bubble .wcp-form-actions .button-primary:disabled {
    background: #b7eac7;
    color: #fff;
    cursor: not-allowed;
}
.wcp-chatbot-lead-form-bubble .wcp-form-actions .button {
    background: #f3f3f3;
    color: #444;
    border: 1px solid #e0e0e0;
}
.wcp-chatbot-lead-form-bubble .wcp-form-actions .button:hover {
    background: #ededed;
}
.wcp-chatbot-lead-form-bubble .wcp-form-actions .button-primary:hover {
    background: #20b058;
}
.wcp-chatbot-lead-form-bubble .wcp-form-error {
    color: #dc3545;
    background: #fff0f3;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    margin-top: 2px;
    display: block;
    text-align: center;
}

@media (max-width: 767px) {
    .wcp-chatbot-lead-form-bubble {
        padding: 12px 2vw 10px 2vw;
        max-width: 98vw;
        margin: 0 0 10px 0;
    }
    .wcp-chatbot-lead-form-bubble form.wcp-chatbot-lead-form {
        max-width: 100vw;
        width: 100%;
    }
    .wcp-chatbot-lead-form-bubble .wcp-form-group input,
    .wcp-chatbot-lead-form-bubble .wcp-form-group textarea {
        font-size: 12px;
        padding: 8px 8px;
    }
    .wcp-chatbot-lead-form-bubble .wcp-form-actions .button,
    .wcp-chatbot-lead-form-bubble .wcp-form-actions .button-primary {
        font-size: 12px;
        padding: 8px 0;
    }
}

.wcp-chatbot-radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  align-items: flex-start;
}

.wcp-chatbot-radio-group label {
  display: flex;
  align-items: center;
  font-weight: 400;
  margin: 0;
  gap: 0.4em;
  white-space: nowrap;
}

.wcp-chatbot-fixed-actions {
  margin-top: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.wcp-chatbot-fixed-actions .wcp-chatbot-option-button {
  background: transparent;
  border: none;
  color: #aaa;
  font-size: 16px;
  padding: 4px;
  border-radius: 50%;
  box-shadow: none;
  transition: background 0.2s, color 0.2s;
  min-width: 28px;
  min-height: 28px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wcp-chatbot-fixed-actions .wcp-chatbot-option-button:hover {
  background: #f0f0f0;
  color: #25D366;
}
.wcp-chatbot-fixed-actions .wcp-action-prev::before {
  content: '\f104'; /* fa-arrow-left */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
}
.wcp-chatbot-fixed-actions .wcp-action-restart::before {
  content: '\f2f9'; /* fa-redo-alt */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
}
.wcp-chatbot-fixed-actions .wcp-action-end::before {
  content: '\f00d'; /* fa-times */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
}
.wcp-chatbot-fixed-actions .wcp-chatbot-option-button span {
  display: none;
}

/* ===== D.H.E WORKS CREDIT ===== */
.wcp-dhe-credit {
  position: fixed;
  bottom: 5px;
  right: 5px;
  z-index: 9998;
  font-size: 10px;
  color: #666;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.wcp-dhe-credit:hover {
  opacity: 1;
}

.wcp-dhe-credit a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}

.wcp-dhe-credit a:hover {
  color: #25D366;
}

@media (max-width: 767px) {
  .wcp-dhe-credit {
    font-size: 9px;
    bottom: 3px;
    right: 3px;
  }
}