#consent-banner {
    display: none;
    position: fixed;
    bottom: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 100;
}

#consent-banner.active {
    display: block;
}

#toggle-consent-banner-button {
    position: fixed;
    bottom: 5px;
    right: 5px;
    background: none;
    border: none;
    max-width: 50px;
    cursor: pointer;
    z-index: 100;
}
#toggle-consent-banner-button:hover{
    box-shadow: none !important;
}

#toggle-consent-banner-button svg {
    width: 30px;
}

#consent-banner_container {
    background-color: white;
    color: #2f7bf6;
    padding: 10px;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: end;
}

#consent-banner_buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#consent-banner-text{
    font-size: 1.5em;
}

.consent-banner-btn {
    background-color: grey;
    color: white;
    border: 0;
    padding: 5px 10px !important;
}
.consent-banner-btn:hover, .consent-banner-btn:focus{
    color: white !important;
}

#consent-banner_services {
    display: none;
}

#consent-banner_services.active {
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 8px;
}

#accept-button {
    background-color: green;
}

#reject-button {
    display: none;
    background-color: red;
}

#manage-services-button{
    background-color: #2f7bf6;
}

#service-list {
    padding: 5px 0;
    display: flex;
    flex-direction: column;
    align-items: baseline;
    gap: 8px;
}

#validate-button {
    background-color: green;
}

/* Ne pas toucher */
#consent-banner label {
    display: grid;
    grid-template-columns: 1em auto;
    gap: 0.5em;
    place-content: end;
}

#consent-banner input[type=checkbox] {
    /* Add if not using autoprefixer */
    -webkit-appearance: none;
    /* Remove most all native input styles */
    -moz-appearance: none;
    appearance: none;
    /* For iOS < 15 */
    background-color: white;
    /* Not removed via appearance */
    margin: 0;
    font: inherit;
    color: currentColor;
    width: 1.15em;
    height: 1.15em;
    border: 0.15em solid currentColor;
    border-radius: 0.15em;
    transform: translateY(-0.075em);
    display: grid;
    place-content: center;
}

#consent-banner input[type=checkbox]::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    -webkit-clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    transform: scale(0);
    transform-origin: bottom left;
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em var(--form-control-color);
    /* Windows High Contrast Mode */
    background-color: CanvasText;
}

#consent-banner input[type=checkbox]:checked::before {
    transform: scale(1);
}

#consent-banner input[type=checkbox]:focus {
    outline: max(2px, 0.15em) solid currentColor;
    outline-offset: max(2px, 0.15em);
}

#consent-banner input[type=checkbox]:disabled {
    --form-control-color: var(--form-control-disabled);
    color: var(--form-control-disabled);
    cursor: not-allowed;
}

@media all and (max-width:767px) {
    #consent-banner_buttons {
        display: flex;
        flex-direction: column;
        align-items: end;
        justify-content: end;
        gap: 8px;
    }
}