/* Sycow Pilotage — CAPTCHA à lettres blanches sur bleu.
 * Ne s'applique qu'aux composants rendus par Sycow Pilotage : OTP, commentaires, avis.
 * Les CAPTCHA autonomes du thème conservent leurs couleurs de configuration.
 */

/* Les règles de bouton du thème ou de WooCommerce ne doivent pas écraser les touches. */
.sp-captcha-slot .sycow-captcha button.sycow-captcha__key {
    display: grid !important;
    place-items: center !important;
    position: relative !important;
    width: 43px !important;
    height: 43px !important;
    min-width: 43px !important;
    min-height: 43px !important;
    max-width: 43px !important;
    max-height: 43px !important;
    padding: 4px !important;
    margin: 0 !important;
    border: 1px solid #28aae2 !important;
    border-radius: 8px !important;
    background: #28aae2 !important;
    color: #fff !important;
    box-shadow: none !important;
    line-height: normal !important;
    font-size: 20px !important;
    text-transform: none !important;
    opacity: 1;
    cursor: pointer;
}

/* Important : le SVG contient une teinte foncée dans ses données.
 * Le filtre le rend blanc et les dimensions empêchent le rendu "point minuscule". */
.sp-captcha-slot .sycow-captcha button.sycow-captcha__key img.sycow-captcha__image {
    display: block !important;
    position: static !important;
    width: 24px !important;
    height: 31px !important;
    min-width: 24px !important;
    min-height: 31px !important;
    max-width: 24px !important;
    max-height: 31px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    opacity: 1 !important;
    visibility: visible !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
    filter: brightness(0) invert(1) !important;
    mix-blend-mode: normal !important;
}

.sp-captcha-slot .sycow-captcha button.sycow-captcha__key:hover:not(:disabled) {
    background: #168fbe !important;
    border-color: #168fbe !important;
}
.sp-captcha-slot .sycow-captcha button.sycow-captcha__key.is-selected {
    background: #137fae !important;
    border-color: #137fae !important;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.56) !important;
    opacity: 1 !important;
}
.sp-captcha-slot .sycow-captcha button.sycow-captcha__key:disabled:not(.is-selected) {
    opacity: .55 !important;
    cursor: default !important;
}
.sp-captcha-slot .sycow-captcha button.sycow-captcha__key:focus-visible {
    outline: 2px solid #28aae2 !important;
    outline-offset: 2px !important;
}

/* Changer / Effacer : petites actions, pas de grosses touches bleues. */
.sp-captcha-slot .sycow-captcha button.sycow-captcha__action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 29px !important;
    padding: 5px 7px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 7px !important;
    background: transparent !important;
    color: #28aae2 !important;
    box-shadow: none !important;
    font: inherit !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-transform: none !important;
}
.sp-captcha-slot .sycow-captcha button.sycow-captcha__action:hover:not(:disabled) {
    background: var(--sy-captcha-soft, #f6f8fb) !important;
    color: #137fae !important;
}
.sp-captcha-slot .sycow-captcha button.sycow-captcha__action:disabled {
    opacity: .4 !important;
    cursor: default !important;
}
.sp-captcha-slot .sycow-captcha button.sycow-captcha__action:focus-visible {
    outline: 2px solid #28aae2 !important;
    outline-offset: 2px !important;
}

@media (max-width: 460px) {
    .sp-captcha-slot .sycow-captcha button.sycow-captcha__key {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        max-width: 44px !important;
        max-height: 44px !important;
    }
}
