/* iEducação: controles fixos compartilhados, 1.0.1.
   Mantém os acionadores nativos e o espaço reservado às faixas publicitárias. */
:root {
    --iedu-fab-size: 40px;
    --iedu-fab-right: 30px;
    --iedu-fab-base: 30px;
}
body .generate-back-to-top,
body > a.gb-text-bbe5b8f9,
#cmplz-manage-consent button.cmplz-manage-consent {
    right: var(--iedu-fab-right) !important;
    left: auto !important;
    width: var(--iedu-fab-size) !important;
    box-sizing: border-box;
}
body .generate-back-to-top {
    bottom: calc(var(--iedu-fab-base)) !important;
    height: var(--iedu-fab-size) !important;
}
#cmplz-manage-consent button.cmplz-manage-consent {
    bottom: calc(var(--iedu-fab-base) + 50px) !important;
    top: auto !important;
    min-width: var(--iedu-fab-size) !important;
    max-width: var(--iedu-fab-size) !important;
    height: var(--iedu-fab-size) !important;
    min-height: var(--iedu-fab-size) !important;
    padding: 0 !important;
    margin: 0 !important;
    transform: none !important;
    border: 1px solid rgba(38, 59, 83, .18) !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    color: #95482f !important;
    box-shadow: 0 2px 9px rgba(38, 59, 83, .14) !important;
    /* O texto nativo permanece disponível como nome acessível do botão. */
    font-size: 0 !important;
    line-height: 0 !important;
    text-indent: 0 !important;
    cursor: pointer;
}
#cmplz-manage-consent button.cmplz-manage-consent::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 23px;
    height: 23px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 12a9 9 0 1 1-9-9 4 4 0 0 0 4 4 4 4 0 0 0 5 5Z' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'/%3E%3Ccircle cx='7.5' cy='9.5' r='1.2'/%3E%3Ccircle cx='8.5' cy='15.5' r='1.2'/%3E%3Ccircle cx='14.5' cy='15' r='1.2'/%3E%3Ccircle cx='12' cy='10.5' r='1'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 12a9 9 0 1 1-9-9 4 4 0 0 0 4 4 4 4 0 0 0 5 5Z' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'/%3E%3Ccircle cx='7.5' cy='9.5' r='1.2'/%3E%3Ccircle cx='8.5' cy='15.5' r='1.2'/%3E%3Ccircle cx='14.5' cy='15' r='1.2'/%3E%3Ccircle cx='12' cy='10.5' r='1'/%3E%3C/svg%3E") center / contain no-repeat;
    pointer-events: none;
}
#cmplz-manage-consent button.cmplz-manage-consent:hover {
    background: #fff2e8 !important;
}
#cmplz-manage-consent button.cmplz-manage-consent:focus-visible {
    outline: 3px solid #e77535 !important;
    outline-offset: 3px !important;
}
body > a.gb-text-bbe5b8f9 {
    bottom: calc(var(--iedu-fab-base) + 100px) !important;
}
@media (max-width: 768px) {
    :root {
        --iedu-fab-right: 10px;
        --iedu-fab-base: max(20px, env(safe-area-inset-bottom, 0px));
    }
}

/* Compensa somente controles próprios na composição, sem recalcular o fluxo.
   translate individual preserva transformações nativas de entrada e saída. */
body .generate-back-to-top,
body > a.gb-text-bbe5b8f9,
#cmplz-manage-consent button.cmplz-manage-consent {
    translate: 0 calc(-1 * var(--iedu-ad-bottom, 0px));
}
/* A home mantém a distância comercial aprovada entre os dois controles. */
html body.home > a.gb-text-bbe5b8f9 {
    bottom: calc(var(--iedu-fab-base, 30px) + var(--iedu-fab-size, 40px) + 30px) !important;
}
