/****************************************************/
/*            selon parametrage ordinateur          */
/****************************************************/
@media (prefers-color-scheme: dark) {
     .altcha {
        color: #fff;
        background-color: #213547;
        border: var(--altcha-border-width, 1px) solid var(--altcha-color-border, #444);
    }
}

@media (prefers-color-scheme: light) {
     .altcha {
        color: #213547;
        background-color: #fff;
        border: var(--altcha-border-width, 1px) solid var(--altcha-color-border, #a0a0a0);
    }
}

/****************************************************/
/*            selon parametrage module ME           */
/****************************************************/
 .dark .altcha {
    color: #fff;
    background-color: #213547;
    border: var(--altcha-border-width, 1px) solid var(--altcha-color-border, #444) !important;
}

.light .altcha,
 .altcha {
    color: #213547;
    background-color: #fff;
    border: var(--altcha-border-width, 1px) solid var(--altcha-color-border, #a0a0a0) !important;
}

/****************************************************/
/*                        CSS                       */
/****************************************************/
#body .altcha {
    font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.3;
    font-size: 1em;
    font-weight: 400;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    margin-top: 1em !important;
    margin-bottom: 1em !important;
    -moz-osx-font-smoothing: grayscale;
    background: var(--altcha-color-base, transparent);
    border-radius: var(--altcha-border-radius, 3px);
    display: flex;
    flex-direction: column;
    min-width: fit-content;
    width: 260px;
    position: relative
}

#body .altcha:focus-within {
    border-color: var(--altcha-color-border-focus, currentColor)
}

#body .altcha[data-floating] {
    background: var(--altcha-color-base, white);
    display: none;
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, .2));
    left: -100%;
    position: fixed;
    top: -100%;
    width: var(--altcha-max-width, 260px);
    z-index: 999999
}

#body .altcha[data-floating=top] .altcha-anchor-arrow {
    border-bottom-color: transparent;
    border-top-color: var(--altcha-color-border, #a0a0a0);
    bottom: -12px;
    top: auto
}

#body .altcha[data-floating=bottom]:focus-within:after {
    border-bottom-color: var(--altcha-color-border-focus, currentColor)
}

#body .altcha[data-floating=top]:focus-within:after {
    border-top-color: var(--altcha-color-border-focus, currentColor)
}

#body .altcha[data-floating]:not([data-state=unverified]) {
    display: block
}

#body .altcha-anchor-arrow {
    border: 6px solid transparent;
    border-bottom-color: var(--altcha-color-border, #a0a0a0);
    content: "";
    height: 0;
    left: 12px;
    position: absolute;
    top: -12px;
    width: 0
}

#body .altcha-main {
    align-items: center;
    display: flex;
    gap: .4rem;
    padding: .7rem;
    position: relative
}


#body .altcha-label {
    cursor: pointer;
    flex-grow: 1;
    margin: 0px !important;
    font-size: 16px;
}

#body .altcha-logo {
    color: currentColor !important;
    opacity: .7;
    display: flex;
}

#body .altcha-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    position: relative;
    width: 24px
}

#body .altcha-checkbox .altcha-spinner {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    position: absolute
}

#body .altcha-checkbox input {
    width: 18px;
    height: 18px;
    margin: 0;
    opacity: 1 !important;
    display: block !important;
}

#body altcha-widget a[target=_blank]:after {
    display: none;
}


#body .altcha-spinner {
    animation: altcha-spinner .75s infinite linear;
    transform-origin: center
}

@keyframes altcha-spinner {
    to {
        transform: rotate(360deg)
    }
}