/* ======================================================
   ROOT – isola completamente do CSS global do site
====================================================== */
#cookie-root {
    all: initial;
    font-family: Arial, sans-serif;
    color: #333;
    z-index: 9999;
}

/* ======================================================
   OVERLAY
====================================================== */
#cookie-root .cookie-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    z-index: 9998;
}

#cookie-root .cookie-overlay.show {
    opacity: 1;
    pointer-events: all;
}

/* ======================================================
   BANNER
====================================================== */
#cookie-root .cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 3px solid #00995d;
    padding: 16px 24px;
    display: none;
    justify-content: space-between;
    align-items: center;
    z-index: 9997;
    box-shadow: 0 -4px 10px rgba(0,0,0,.1);
}

#cookie-root .cookie-banner-text {
    font-size: 13px;
    color: #555;
    max-width: 720px;
    line-height: 1.5;
}

#cookie-root .cookie-banner-text a {
    color: #00995d;
    text-decoration: underline;
}

#cookie-root .cookie-banner-actions {
    display: flex;
    gap: 10px;
}

/* ======================================================
   BOTÕES
====================================================== */
#cookie-root .btn-primary {
    background: #00995d;
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

#cookie-root .btn-secondary {
    background: #e5e5e5;
    color: #333;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

/* ======================================================
   PAINEL LATERAL
====================================================== */
#cookie-root .cookie-panel {
    position: fixed;
    top: 0;
    left: -420px;
    width: 400px;
    height: 100%;
    background: #ffffff;
    box-shadow: 4px 0 25px rgba(0,0,0,.25);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transition: left .3s ease;
}

#cookie-root .cookie-panel.show {
    left: 0;
}

/* HEADER */
#cookie-root .cookie-panel-header {
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
}

#cookie-root .cookie-panel-header button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

/* CONTENT */
#cookie-root .cookie-panel-content {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
}

/* FOOTER */
#cookie-root .cookie-panel-footer {
    padding: 16px;
    border-top: 1px solid #e5e5e5;
}

/* ======================================================
   BLOCO FIXO – COOKIES ESTRITAMENTE NECESSÁRIOS
====================================================== */
#cookie-root .cookie-fixed {
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    padding: 14px 16px;
    background: #ffffff;
    margin-bottom: 14px;
}

#cookie-root .cookie-fixed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#cookie-root .cookie-fixed-header strong {
    font-size: 14px;
    font-weight: 600;
    color: #4d4d4d;
}

#cookie-root .cookie-fixed .always-on {
    font-size: 13px;
    font-weight: 600;
    color: #1e5fd8; /* azul padrão OneTrust */
}

#cookie-root .cookie-fixed-text {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.55;
    color: #666;
}

#cookie-root .cookie-fixed:hover {
    background: #ffffff;
    cursor: default;
}

/* ======================================================
   ACCORDION – DEMAIS CATEGORIAS
====================================================== */
#cookie-root .cookie-accordion {
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    margin-bottom: 14px;
    overflow: hidden;
    background: #ffffff;
}

#cookie-root .cookie-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
}

#cookie-root .accordion-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

#cookie-root .accordion-icon {
    font-size: 18px;
    width: 16px;
    color: #333;
}

#cookie-root .cookie-accordion-header strong {
    font-size: 14px;
    font-weight: 600;
    color: #4d4d4d;
}

/* BODY */
#cookie-root .cookie-accordion-body {
    display: none;
    padding: 14px 16px;
    background: #f9f9f9;
    font-size: 13px;
    line-height: 1.55;
    color: #666;
}

#cookie-root .cookie-accordion.open .cookie-accordion-body {
    display: block;
}

/* HOVER */
#cookie-root .cookie-accordion:hover {
    background: #f5f6f7;
}

/* ======================================================
   SWITCH
====================================================== */
#cookie-root .switch {
    position: relative;
    width: 42px;
    height: 22px;
    flex-shrink: 0;
}

#cookie-root .switch input {
    display: none;
}

#cookie-root .slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 20px;
    cursor: pointer;
    transition: background .2s;
}

#cookie-root .slider::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    background: #ffffff;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform .2s;
}

#cookie-root .switch input:checked + .slider {
    background: #00995d;
}

#cookie-root .switch input:checked + .slider::before {
    transform: translateX(20px);
}

/* ======================================================
   LINKS
====================================================== */
#cookie-root .cookie-third-party {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    color: #00995d;
    text-decoration: underline;
}

/* ======================================================
   FAB – BOTÃO FLUTUANTE DE COOKIES
====================================================== */
#cookie-root .cookie-fab {
    position: fixed;
    left: 24px;
    bottom: 24px;

    width: 52px;
    height: 52px;
    border-radius: 50%;

    background: #00995d;
    color: #ffffff;
    font-size: 22px;

    border: none;
    cursor: pointer;

    display: none;

    align-items: center;
    justify-content: center;

    box-shadow: 0 6px 18px rgba(0,0,0,.28);
    z-index: 9996;

    transition: transform .2s ease, box-shadow .2s ease;
}


#cookie-root .cookie-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 22px rgba(0,0,0,.35);
}

/* Mobile – evita conflito com barra do navegador */
@media (max-width: 768px) {
    #cookie-root .cookie-fab {
        bottom: 84px;
        right: 20px;
    }
}

/* ÍCONE SVG DO FAB */
#cookie-root .cookie-icon {
    width: 24px;
    height: 24px;
    fill: #ffffff;
    display: block;
}

#cookie-root .cookie-fab:hover .cookie-icon {
    transform: rotate(-8deg);
    transition: transform .2s ease;
}
