.wp-lgpd-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    padding: 16px;
    background: rgba(0, 0, 0, 0.38);
    font-family: Verdana, Arial, sans-serif;
}

.wp-lgpd-card {
    max-width: 1180px;
    margin: 0 auto;
    background: #ffffff;
    color: #1f2933;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
}

.wp-lgpd-texto strong {
    display: block;
    font-size: 17px;
    margin-bottom: 6px;
}

.wp-lgpd-texto p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

.wp-lgpd-opcoes {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    padding-top: 8px;
    font-size: 13px;
}

.wp-lgpd-opcoes label {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.wp-lgpd-acoes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.wp-lgpd-btn {
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    font-family: Verdana, Arial, sans-serif;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}

.wp-lgpd-primario {
    background: #111827;
    color: #ffffff;
}

.wp-lgpd-secundario {
    background: #f0f2f5;
    color: #111827;
}

.wp-lgpd-neutro {
    background: #ffffff;
    color: #111827;
    border: 1px solid #d7dce2;
}

@media (max-width: 780px) {
    .wp-lgpd-card {
        grid-template-columns: 1fr;
    }

    .wp-lgpd-acoes {
        justify-content: stretch;
    }

    .wp-lgpd-btn {
        width: 100%;
    }
}

/* V252 - controle persistente de Web Push por aparelho, inspirado no comportamento do OneSignal. */
.wp-webpush-control {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 99998;
    font-family: Verdana, Arial, sans-serif;
}

.wp-webpush-bell {
    position: relative;
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgb(17, 24, 39);
    color: rgb(255, 255, 255);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.28);
    cursor: pointer;
    font-family: Verdana, Arial, sans-serif;
}

.wp-webpush-bell-icon {
    font-size: 23px;
    line-height: 1;
}

.wp-webpush-state-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgb(255, 255, 255);
    background: rgb(148, 163, 184);
}

.wp-webpush-control.is-active .wp-webpush-state-dot {
    background: rgb(22, 163, 74);
}

.wp-webpush-control.is-inactive .wp-webpush-state-dot,
.wp-webpush-control.is-working .wp-webpush-state-dot {
    background: rgb(245, 158, 11);
}

.wp-webpush-control.is-blocked .wp-webpush-state-dot,
.wp-webpush-control.is-unsupported .wp-webpush-state-dot {
    background: rgb(220, 38, 38);
}

.wp-webpush-control.is-ios-install .wp-webpush-state-dot {
    background: rgb(124, 58, 237);
}

.wp-webpush-panel {
    position: absolute;
    right: 0;
    bottom: 66px;
    width: min(360px, calc(100vw - 32px));
    padding: 18px;
    border: 1px solid rgb(226, 232, 240);
    border-radius: 18px;
    background: rgb(255, 255, 255);
    color: rgb(15, 23, 42);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
}

.wp-webpush-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    color: rgb(71, 85, 105);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.wp-webpush-panel-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 26px;
}

.wp-webpush-panel-head img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: contain;
}

.wp-webpush-panel-head strong,
.wp-webpush-panel-head span {
    display: block;
}

.wp-webpush-panel-head strong {
    font-size: 14px;
    margin-bottom: 4px;
}

.wp-webpush-panel-head span {
    font-size: 11px;
    line-height: 1.35;
    color: rgb(71, 85, 105);
}

.wp-webpush-switch-row {
    margin-top: 16px;
    padding: 13px 0;
    border-top: 1px solid rgb(241, 245, 249);
    border-bottom: 1px solid rgb(241, 245, 249);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.wp-webpush-switch {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    width: 46px;
    height: 26px;
}

.wp-webpush-switch input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.wp-webpush-slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgb(203, 213, 225);
    transition: background 0.2s ease;
}

.wp-webpush-slider::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    border-radius: 50%;
    background: rgb(255, 255, 255);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
    transition: transform 0.2s ease;
}

.wp-webpush-switch input:checked + .wp-webpush-slider {
    background: rgb(22, 163, 74);
}

.wp-webpush-switch input:checked + .wp-webpush-slider::after {
    transform: translateX(20px);
}

.wp-webpush-switch input:disabled + .wp-webpush-slider {
    opacity: 0.55;
    cursor: not-allowed;
}

.wp-webpush-panel small {
    display: block;
    margin-top: 12px;
    color: rgb(100, 116, 139);
    font-size: 11px;
    line-height: 1.5;
}


.wp-webpush-ios-help {
    margin-top: 14px;
    padding: 12px;
    border: 1px solid rgb(221, 214, 254);
    border-radius: 14px;
    background: rgb(245, 243, 255);
    color: rgb(55, 48, 163);
    font-size: 11px;
    line-height: 1.55;
}

.wp-webpush-ios-help strong {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
}

.wp-webpush-ios-help ol {
    margin: 0 0 0 18px;
    padding: 0;
}

.wp-webpush-ios-help li + li {
    margin-top: 4px;
}

@media (max-width: 780px) {
    .wp-webpush-control {
        right: 14px;
        bottom: 14px;
    }

    .wp-webpush-bell {
        width: 50px;
        height: 50px;
    }

    .wp-webpush-panel {
        position: fixed;
        left: 14px;
        right: 14px;
        bottom: 76px;
        width: auto;
    }
}

/*
Arquivo: lgpd.css
Pasta: /wp/assets/css/
Versao: V252
Data e hora da criacao: 16/08/2026 14:26
Mudanca: adiciona o botao flutuante e painel de ativacao/desativacao do Web Push por aparelho.
Como estava antes: o arquivo possuia apenas o visual do banner LGPD.
Restauracao: remover o bloco V252 acima ou restaurar a versao anterior de /wp/assets/css/lgpd.css.
*/

/*
Arquivo: lgpd.css
Pasta: /wp/assets/css/
Versao: V254
Data e hora da criacao: 16/08/2026 14:58
Mudanca: adiciona estado visual e bloco de instrucoes para ativacao Web Push no iPhone/iPad pela Tela de Inicio.
Como estava antes: V252 possuia estados ativo, desativado, bloqueado e sem suporte, sem estado orientativo para iOS.
Restauracao: restaurar lgpd.css V252.
*/


/* V255 - reforco visual do guia de ativacao no iPhone/iPad. */
.wp-webpush-ios-note {
    margin: 0 0 9px;
    font-size: 11px;
    line-height: 1.5;
    color: rgb(55, 48, 163);
}

.wp-webpush-ios-tip {
    display: block;
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid rgb(221, 214, 254);
    font-weight: 700;
    color: rgb(76, 29, 149);
}

@media (max-width: 780px) {
    .wp-webpush-control.is-ios-install .wp-webpush-panel {
        width: min(390px, calc(100vw - 24px));
        max-height: min(72vh, 560px);
        overflow-y: auto;
    }
}

/*
Arquivo: lgpd.css
Pasta/caminho sugerido: /wp/assets/css/
Versao: V255
Data e hora da criacao/geracao: 16/08/2026 15:14
Mudanca: melhora a leitura do passo a passo de instalacao no iPhone/iPad e limita o painel em telas pequenas.
Como estava antes: V254 usava apenas o estilo basico do bloco de ajuda iOS.
Restauracao: remover somente o bloco V255 acima ou restaurar a versao V254 deste arquivo.
*/


/* V260 - reforco de visibilidade do controle Web Push. */
#wp-webpush-control.wp-webpush-control {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 2147483000 !important;
}
#wp-webpush-control .wp-webpush-bell {
    display: inline-flex !important;
}

/*
Arquivo: lgpd.css
Pasta/caminho sugerido: /wp/assets/css/lgpd.css
Versao: V260
Data e hora da criacao/geracao: 16/08/2026 18:18
Mudanca: adiciona fallback CSS para impedir que o sininho Web Push fique invisivel.
Como estava antes: V255 possuia o visual do controle, sem um override final de visibilidade.
Restauracao: remover somente o bloco V260 acima ou restaurar a versao anterior deste arquivo.
*/

/*
Arquivo: lgpd.css
Pasta/caminho sugerido: /wp/assets/css/lgpd.css
Versao: V261
Data e hora da criacao/geracao: 16/08/2026 18:21
Mudanca: entregue com o componente Web Push V261, preservando o fallback de visibilidade do sininho e painel responsivo.
Como estava antes: V260.
Restauracao: restaurar V260.
*/


/* V263 - icone vetorial do sino para evitar mojibake e manter proporcao em qualquer navegador. */
.wp-webpush-bell-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    line-height: 1;
}
.wp-webpush-bell-icon svg {
    display: block;
    width: 25px;
    height: 25px;
}

/*
Arquivo: lgpd.css
Pasta/caminho sugerido: /wp/assets/css/lgpd.css
Versao: V263
Data e hora da criacao/geracao: 16/08/2026 20:32 -03:00
Mudanca: dimensiona o SVG do sino sem depender de emoji/fonte do sistema.
Como estava antes: o icone era tratado como caractere de fonte.
Restauracao: remover o bloco V263 ou restaurar V261.
*/
