/* =============================================
   ModuloPS - Gestione Clienti Pro
   ============================================= */

/* Popup styles (Leo QuickLogin) */
.modulops-container{margin:15px 0;font-family:inherit}
.modulops-type-selector{display:flex;gap:0;margin-bottom:15px;border:1px solid #ddd;border-radius:6px;overflow:hidden}
.modulops-type-btn{flex:1;padding:10px;border:none;background:#f5f5f5;cursor:pointer;font-size:13px;transition:all .2s;text-align:center}
.modulops-type-btn:not(:last-child){border-right:1px solid #ddd}
.modulops-type-btn:hover{background:#e9e9e9}
.modulops-type-btn.active{background:#2fb5d2;color:#fff}

/* =============================================
   REGISTRATION PAGE: Hide native radio buttons
   PS9 structure: .form-group.row > label[for] + div > label.radio-inline > span.custom-radio > input
   ============================================= */

/* Hide the entire form-group row containing the native radio buttons */
.form-group:has(input[name="modulops_customer_type"]) {
    display: none !important;
}

/* Fallback: hide individual elements for browsers without :has() support */
label[for="field-modulops_customer_type"] {
    display: none !important;
}
label[for^="field-modulops_customer_type-"] {
    display: none !important;
}
label.radio-inline:has(input[name="modulops_customer_type"]) {
    display: none !important;
}
.form-control-label[for="field-modulops_customer_type"] {
    display: none !important;
}
/* Hide radio inputs directly */
input[name="modulops_customer_type"] {
    display: none !important;
}
/* Hide the js-input-column containing the radios */
.form-control-valign:has(input[name="modulops_customer_type"]) {
    display: none !important;
}

/* =============================================
   Custom tabs for standard registration page
   ============================================= */
.modulops-tabs-standard{margin:0 0 20px 0;font-family:inherit}
@media(min-width:768px){.modulops-tabs-standard{margin:0 20% 20px 20%}}
.modulops-tabs-standard .modulops-type-selector{display:flex;gap:0;border:1px solid #ddd;border-radius:6px;overflow:hidden}
.modulops-tabs-standard .modulops-type-btn{flex:1;padding:12px 10px;border:none;background:#f5f5f5;cursor:pointer;font-size:13px;transition:all .2s;text-align:center}
.modulops-tabs-standard .modulops-type-btn:not(:last-child){border-right:1px solid #ddd}
.modulops-tabs-standard .modulops-type-btn:hover{background:#e9e9e9}
.modulops-tabs-standard .modulops-type-btn.active{background:#2fb5d2;color:#fff}

/* =============================================
   ADDRESS PAGE: Injected fields
   ============================================= */
.modulops-injected-field {
    /* Match PS9 form-group styling */
}
.modulops-injected-field .form-control {
    transition: border-color .2s;
}

/* Validation feedback */
.modulops-feedback {
    display: block;
    font-size: 12px;
    margin-top: 4px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media(max-width:600px){
    .modulops-type-selector{flex-direction:column}
    .modulops-type-btn:not(:last-child){border-right:none;border-bottom:1px solid #ddd}
}
