/*
 * Profilo GiocaGiaco - radio Sì/No
 * Corregge i radio nascosti o non cliccabili da alcuni template Joomla/Helix.
 */

fieldset[id$="_remove_avatar"].radio,
fieldset[id$="_consenso_pubblicazione"].radio,
fieldset[id$="_remove_avatar"].gg-profile-choice,
fieldset[id$="_consenso_pubblicazione"].gg-profile-choice {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    min-height: 42px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

fieldset[id$="_remove_avatar"] input[type="radio"],
fieldset[id$="_consenso_pubblicazione"] input[type="radio"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

fieldset[id$="_remove_avatar"] label,
fieldset[id$="_consenso_pubblicazione"] label {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    float: none !important;
    width: auto !important;
    min-width: 58px;
    min-height: 38px;
    margin: 0 !important;
    padding: 7px 15px !important;
    color: #29445f !important;
    background: #ffffff !important;
    border: 1px solid #b9c8d6 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    cursor: pointer !important;
    user-select: none;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

fieldset[id$="_remove_avatar"] label:hover,
fieldset[id$="_consenso_pubblicazione"] label:hover {
    border-color: #0b5aa5 !important;
    background: #eef6ff !important;
}

fieldset[id$="_remove_avatar"] input[type="radio"]:checked + label,
fieldset[id$="_consenso_pubblicazione"] input[type="radio"]:checked + label,
fieldset[id$="_remove_avatar"] label.gg-profile-selected,
fieldset[id$="_consenso_pubblicazione"] label.gg-profile-selected {
    color: #ffffff !important;
    background: #0b5aa5 !important;
    border-color: #0b5aa5 !important;
    box-shadow: 0 3px 9px rgba(11, 90, 165, .22);
}

fieldset[id$="_remove_avatar"] input[type="radio"]:focus + label,
fieldset[id$="_consenso_pubblicazione"] input[type="radio"]:focus + label {
    outline: 3px solid rgba(11, 90, 165, .25) !important;
    outline-offset: 2px;
}

@media (max-width: 575.98px) {
    fieldset[id$="_remove_avatar"] label,
    fieldset[id$="_consenso_pubblicazione"] label {
        flex: 1 1 72px;
    }
}
