/* GSMUnlockUSA Home Service Fold V7.9
   - Group 1: first subgroup full; later subgroups independently collapsible.
   - Groups 2-10: retain V7.8 safe-fold behavior.
   - Strictly scoped to the Home service root. */

/* ============================================================
   GROUP 1 - SUBGROUP CONTROLS
   ============================================================ */

#gsm-home-services-v79-root [data-home-group="1"]
tr.gsm-home-v79-subgroup-heading > td {
    position: relative;
    padding-right: 118px !important;
}

#gsm-home-services-v79-root .gsm-home-v79-subgroup-toggle {
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    min-width: 106px;
    height: 24px;
    margin: 0;
    padding: 0 7px;
    border: 1px solid #8fbbe8;
    border-radius: 3px;
    background: #f4f9ff;
    color: #14519a;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: bold;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    z-index: 2;
}

#gsm-home-services-v79-root .gsm-home-v79-subgroup-toggle:hover,
#gsm-home-services-v79-root .gsm-home-v79-subgroup-toggle:focus {
    border-color: #4b8bc9;
    background: #e7f2ff;
    color: #0d4384;
    outline: none;
}

/* ============================================================
   GROUPS 2-10 - SAFE FOLD (V7.8 behavior retained)
   ============================================================ */

#gsm-home-services-v79-root .gsm-home-v79-foldable > .divHeaderR {
    position: relative;
    padding-right: 118px;
}

#gsm-home-services-v79-root .gsm-home-v79-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    min-width: 104px;
    height: 24px;
    margin: 0;
    padding: 0 7px;
    border: 1px solid rgba(255,255,255,0.72);
    border-radius: 3px;
    background: rgba(255,255,255,0.16);
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: bold;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
}

#gsm-home-services-v79-root .gsm-home-v79-toggle:hover,
#gsm-home-services-v79-root .gsm-home-v79-toggle:focus {
    background: rgba(255,255,255,0.28);
    outline: none;
}

/* No CSS rule hides .divContentR, .id-group, generic description rows,
   or content outside #gsm-home-services-v79-root. Visibility is changed
   only by the JS after a legacy service/subgroup row is positively identified. */

@media (max-width: 767px) {
    #gsm-home-services-v79-root [data-home-group="1"]
    tr.gsm-home-v79-subgroup-heading > td {
        padding-right: 104px !important;
    }

    #gsm-home-services-v79-root .gsm-home-v79-subgroup-toggle {
        right: 3px;
        min-width: 94px;
        height: 23px;
        padding: 0 4px;
        font-size: 9px;
        line-height: 21px;
    }

    #gsm-home-services-v79-root .gsm-home-v79-foldable > .divHeaderR {
        padding-right: 108px;
    }

    #gsm-home-services-v79-root .gsm-home-v79-toggle {
        right: 4px;
        min-width: 98px;
        height: 23px;
        padding: 0 5px;
        font-size: 10px;
        line-height: 21px;
    }
}
