/* T29 — 360px fixes. Custom CSS only. Does not change Bootstrap core.
 *
 * H1  overflow-x + max-width on containers — home scrolled 10px sideways
 * H5  clip Owl tracks so they cannot widen the body
 * C4  show #body immediately — Loading... must not blank the page if JS is late
 * C1  language pill: compact, 44px tap, room below content
 * C2  chat widget: dock bottom-right instead of left:0 (that covered cards)
 * C3  MENU / hamburger: 44px tap
 * C5  custom buttons and refine labels: 44px tap
 * H4  terms label is the tap target
 * P2  profile action icon buttons
 * M2  View Plan Detail
 * S3  refine labels
 */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}
img,
video,
iframe,
.img-responsive {
    max-width: 100%;
}
/* height:auto is not set here — it made myHome / search thumbs
   different heights (T29 leftover). Card frames are in member-cards.css. */
.container,
.container-fluid,
.navbar-header,
.navbar > .container,
.inPrem2Nav .container {
    max-width: 100%;
}
.owl-wrapper-outer,
.owl-carousel {
    overflow: hidden;
}

/* C4 — T27 already did this on home/login; same rule site-wide */
.preloader-wrapper {
    display: none !important;
}
#body {
    display: block !important;
}

/* C1 + C2 — keep overlays off the form and cards */
body {
    padding-bottom: 64px;
}
.fixLangugeBtn {
    min-height: 44px;
    padding: 10px 14px;
    z-index: 1040;
}
.onlineWidget {
    z-index: 1035;
}

@media (max-width: 767px) {
    .fixLangugeBtn {
        left: 8px;
        right: auto;
        bottom: 8px;
        border-radius: 22px;
        min-width: 44px;
        box-sizing: border-box;
    }
    .fixLangugeBtn span {
        /* keep the word; icon-only is harder to discover */
        display: inline;
    }

    /* Beat custom.css 479px rule that pinned the chat to left:0 */
    .onlineWidget {
        left: auto !important;
        right: 8px !important;
        top: auto !important;
        bottom: 60px !important;
        width: 44px !important;
        height: 44px !important;
        margin-top: 0 !important;
        padding: 0 !important;
        overflow: hidden;
        border-radius: 22px;
        box-sizing: border-box;
    }
    .onlineWidget .label,
    .onlineWidget .channel,
    .onlineWidget .arrow {
        display: none !important;
    }
    .onlineWidget .count {
        float: none !important;
        width: 44px !important;
        height: 44px !important;
        margin: 0 !important;
        line-height: 44px;
        font-size: 16px !important;
    }

    /* C3 / H3 — MENU and homepage hamburger */
    .navbar-toggle,
    .gt-navbar-green .navbar-toggle,
    .inPrem2Nav .navbar-toggle {
        min-height: 44px;
        min-width: 44px;
        padding: 10px 14px;
        margin-top: 4px;
        margin-bottom: 4px;
    }

    /* C5 / P2 / M2 */
    a.gt-refine,
    a.gtMobPlan,
    button.gt-cursor.btn,
    a.gt-cursor.btn,
    .gt-navbar-green .navbar-toggle {
        min-height: 44px;
        min-width: 44px;
    }
    a.gt-refine,
    a.gtMobPlan {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* H4 — whole terms row is the tap, not the 13px box */
    .inTerms {
        display: flex;
        align-items: flex-start;
        min-height: 44px;
        padding-top: 8px;
        padding-bottom: 8px;
    }
    .inTerms input[type="checkbox"] {
        width: 22px;
        height: 22px;
        min-width: 22px;
        min-height: 22px;
        margin-top: 2px;
        flex-shrink: 0;
    }

    /* S3 */
    .gt-filter-result label {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    /* Footer links: keep readable; full 44px on every footer <a> would balloon the footer */
    .gt-footer a {
        min-height: 36px;
        display: inline-block;
        padding-top: 8px;
        padding-bottom: 8px;
    }
}
