/* Phone Styles */

@media (max-width: 767px) {
    /* Global */
    .xs-hide {
        display: none;
    }
    .xs-only {
        display: block;
    }
    .logo {
        .xs-only {
            max-width: 100%;
        }
    }
    /* Header */
    .global-header {
        background: @dark-grey;
    }
    .global-header.white-mobile {
        background: @white;
        .xs-nav-icons .language-select {
            color: @dark-grey;

            .language-dropdown-toggle {
                color: @dark-grey;

                &:hover {
                    color: @dark-grey
                }
            }
    	}
    }
    .vanity-header.white-mobile {
    	.hndlp-vanity-bar {
	        background: @white;
	        .language-select {
	        	color: @dark-grey;
	    	}
    	}
    }
    .advantage-medicare {
        .global-header {
            min-height: none;
        }
        .xs-nav-icons {
            position: absolute;
            top: 0px;
            right: 0px;
        }
    }
    .xs-nav-icons {
        padding-top: 10px;
        padding-bottom: 8px;
    }
    .xs-nav-icons img {
        margin-left: 10px;
    }
    .xs-nav-icons .language-select {
        float: none;
        color: @white;

        .language-dropdown-toggle {
            color: @white;

            &:hover {
                color: @white;
            }
        }
    }
    .mobiletopnavigation ul {
        display: none;
    }
    .xs-global-nav ul {
        display: none;
        list-style-type: none;
        margin: 0px;
        padding: 0px;
        position: relative;
        z-index: 9;
    }
    .xs-global-nav ul ul {
        z-index: 9;
        display: none;
    }
    .xs-global-nav ul ul ul {
        z-index: 8;
        display: none;
    }
    .xs-global-nav ul ul ul ul {
        z-index: 7;
        display: none;
    }
    .xs-global-nav .first-level-nav a {
        display: block;
        padding: 10px;
        font-size: @md4-font-size;
        text-transform: uppercase;
        text-decoration: none;
        color: @white;
        background: @brand-color;
        border-top: 1px solid @white;
        line-height: 1.4em;
        text-transform: capitalize;
    }
    .xs-global-nav .second-level-nav a {
        display: block;
        padding: 10px;
        font-size: @md3-font-size;
        text-transform: none;
        text-decoration: none;
        color: @dark-grey;
        background: @off-white;
        border-top: none;
    }
    .xs-global-nav .third-level-nav a {
        display: block;
        padding: 10px 10px 10px 20px;
        font-size: @md3-font-size;
        text-transform: none;
        text-decoration: none;
        color: @dark-grey;
        background: @white;
        border-top: none;
    }
    .xs-global-nav .fourth-level-nav a {
        display: block;
        padding: 10px 10px 10px 30px;
        font-size: @md3-font-size;
        text-transform: none;
        text-decoration: none;
        color: @white;
        background: @dark-grey;
        border-top: 1px solid @white;
    }
    .xs-global-nav ul li:first-of-type a {
        box-shadow: inset 0px 3px 5px -3px @dark-grey;
    }
    .xs-global-nav .fourth-level-nav li:first-of-type a {
        box-shadow: inset 0px 3px 5px -3px @darker-grey;
    }
    .xs-global-nav .glyphicon-plus-sign,
    .xs-global-nav .glyphicon-minus-sign {
        top: 0px;
        float: right;
        line-height: 1.4em;
    }
    .xs-global-nav .mobile-search {
        display: none;
        text-align: center;
        padding: 15px 0;
    }
    .xs-global-nav .global-search {
        float: none;
        background-color: @white;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }
    .xs-global-nav .mobile-search .input-group-btn {
        display: inline;
    }
    .xs-global-nav .mobile-search .btn {
        width: auto;
        display: inline;
        color: @white;
        background: @brand-color;
        margin: -2px 0 0 -4px;
        border-top-right-radius: 10px;
        border-bottom-right-radius: 10px;
        padding: 3px 10px 1px 6px;
    }
    .homepageNav ul {
        display: none;
        list-style-type: none;
        margin: 0px;
        padding: 0px;
        position: relative;
        z-index: 9;
    }
    .homepageNav ul {
        display: block;
    }
    .homepageNav ul ul {
        z-index: 9;
        display: none;
    }
    .homepageNav ul ul ul {
        z-index: 8;
        display: none;
    }
    .homepageNav ul ul ul ul {
        z-index: 7;
        display: none;
    }
    .homepageNav .first-level-nav a {
        display: block;
        padding: 10px;
        font-size: @md4-font-size;
        text-transform: uppercase;
        text-decoration: none;
        color: @white;
        background: @brand-color;
        border-top: 1px solid @white;
        line-height: 1.4em;
        text-transform: capitalize;
        outline-color: @black;
        outline-width: 3px;
    }
    .homepageNav .second-level-nav a {
        display: block;
        padding: 10px;
        font-size: @md3-font-size;
        text-transform: none;
        text-decoration: none;
        color: @dark-grey;
        background: @off-white;
        border-top: none;
    }
    .homepageNav .third-level-nav a {
        display: block;
        padding: 10px 10px 10px 20px;
        font-size: @md3-font-size;
        text-transform: none;
        text-decoration: none;
        color: @dark-grey;
        background: @white;
        border-top: none;
    }
    .homepageNav .fourth-level-nav a {
        display: block;
        padding: 10px 10px 10px 30px;
        font-size: @md3-font-size;
        text-transform: none;
        text-decoration: none;
        color: @white;
        background: @dark-grey;
        border-top: 1px solid @white;
    }
    .homepageNav ul li:first-of-type a {
        box-shadow: inset 0px 3px 5px -3px @dark-grey;
    }
    .homepageNav .fourth-level-nav li:first-of-type a {
        box-shadow: inset 0px 3px 5px -3px @darker-grey;
    }
    .homepageNav .glyphicon-plus-sign,
    .homepageNav .glyphicon-minus-sign {
        top: 0px;
        float: right;
        line-height: 1.4em;
    }
    .homepageNav .mobile-search {
        display: none;
        text-align: center;
        padding: 15px 0;
    }
    .homepageNav .global-search {
        float: none;
        background-color: @white;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }
    .homepageNav .mobile-search .input-group-btn {
        display: inline;
    }
    .homepageNav .mobile-search .btn {
        width: auto;
        display: inline;
        color: @white;
        background: @brand-color;
        margin: -2px 0 0 -4px;
        border-top-right-radius: 10px;
        border-bottom-right-radius: 10px;
        padding: 3px 10px 1px 6px;
    }
    .sidebar-nav {
        display: relative;
        z-index: 5;
    }
    .sidebar-nav .first-level-sidebar-nav>li {
        display: list-item;
    }
    .sidebar-nav .first-level-sidebar-nav>li.show {
        display: list-item;
    }
    .sidebar-nav .first-level-sidebar-nav .parent-page-title {
        display: block;
    } // Fix leftnavigationchild vertcenter
    // .sidebar-nav .first-level-sidebar-nav .parent-page-title {
    // 	height: 53px;
    // 	position: relative;
    // 	a {
    // 		.vert-center;
    // 	}
    // }
    .sidebar-nav .first-level-sidebar-nav .parent-page-title a,
    .sidebar-nav .first-level-sidebar-nav .parent-page-title a:visited,
    .category-nav.sidebar-nav h1 {
        display: block;
        background: @brand-color;
        color: @white;
    }
    .active-nav .second-level-sidebar-nav,
    .active-parent .second-level-sidebar-nav,
    .active-nav .second-level-sidebar-nav {
        display: none;
    } //switch plus and minus sign on mobile because the active item's children should be hidden initailly
    .first-level-sidebar-nav>.active-nav>a>span.glyphicon-plus-sign:before {
        content: "\e082";
    }
    .second-level-sidebar-nav>.active-nav>a>span.glyphicon-plus-sign:before {
        content: "\e081";
    }
    .first-level-sidebar-nav>.active-nav>a>span.glyphicon-minus-sign:before {
        content: "\e081";
    }
    .second-level-sidebar-nav>.active-nav>a>span.glyphicon-plus-sign:before {
        content: "\e082";
    }
    .sidebar-nav .first-level-sidebar-nav .parent-page-title a {
        padding: 20px 10px 20px 10px;
        text-transform: capitalize;
    }
    .large-sidebar.sidebar-nav .first-level-sidebar-nav a,
    .large-sidebar.sidebar-nav .first-level-sidebar-nav a:visited {
        text-transform: capitalize;
        padding: 10px 15px 10px 15px;
        li {
            line-height: 30px;
        }
    }
    .advantage-medicare .sidebar-nav .first-level-sidebar-nav .parent-page-title a,
    .advantage-medicare .sidebar-nav .first-level-sidebar-nav .parent-page-title a:visited,
    .category-nav.sidebar-nav h1 {
        display: block;
        background: @white;
        color: @brand-color;
        box-shadow: 0px 3px 5px -3px @dark-grey;
    }
    .category-nav.sidebar-nav h1 {
        font-size: @lg2-font-size;
        text-transform: uppercase;
        padding: 20px 10px 20px 10px;
        margin: 0;
        border-bottom: 1px solid @white;
    }
    .category-nav.sidebar-nav h1 .glyphicon {
        display: block;
    }
    .category-nav.sidebar-nav .first-level-sidebar-nav a,
    .category-nav.sidebar-nav .first-level-sidebar-nav a:visited {
        display: block;
        padding: 10px 15px;
        background: @brand-color;
        color: @white;
        font-size: @md3-font-size;
        text-decoration: none;
        border-bottom: 1px solid @white;
        line-height: 1em;
    }
    .sidebar-nav .parent-page-title a .glyphicon {
        display: block;
        position: absolute;
        top: 20px;
        right: 10px;
    }
    .sidebar-nav.mobile-static .first-level-sidebar-nav>li {
        display: block;
        a {
            text-transform: capitalize;
        }
    }
    /* Footer */
    .footer-socmed {
        text-align: left;
    }
    /* Homepage */
    .showcase-circle,
    .one-plan-showcase-circle {
        top: -50px;
        left: 20%;
        top: -50px;
        left: 50%;
        margin-left: -155px;
    }
    .home-showcase {
        padding-top: 210px;
        .large-showcase {
            min-height: 320px !important;
        }
        .x-large-showcase {
            min-height: 380px !important;
        }
    }
    .three-plan-showcase,
    .one-plan-showcase {
        min-height: 0px;
    }
    .home-showcase.one-plan-showcase {
        min-height: 260px;
    }
    .one-plan-showcase {
        background: white;
        .one-plan-showcase-circle {
            left: 50% !important;
        }
    }
    .showcase-menu li:last-child a {
        padding-bottom: 15px;
    }
    .showcase-wrapper {
        position: static;
        margin-top: -210px;
    }
    .showcase-image {
        display: none;
    }
    .showcase-image.active {
        display: block;
        position: absolute;
        top: 0px;
        left: 0px;
    }
    /* Get Insured */
    .get-insured-plan {
        height: auto;
    }
    /* Wide Plan List */
    .wide-plan-list-item {
        h2,
        h3,
        h4,
        h5,
        h6 {
            color: @brand-color;
        }
    }
    /* Events */
    .upcoming-events .event-list li {
        border-left: none;
    }
    .upcoming-events .event-date {
        float: left;
        margin: -8px 15px 0 0;
    }
    .upcoming-events .event-list .block-anchor {
        padding: 15px 20px;
    }
    .event-item .event-image {
        float: none;
        display: block;
        margin: 0 0 10px 0;
        height: auto;
        max-width: 100%;
    }
    /* Contact */
    .contact-form {
        padding: 10px;
    }
    /* Alerts */
    .home-main-alert {
        margin-top: 0 !important;
    }
    /* Health & Wellness */
    .health-wellness-search input {
        width: 100%;
        padding: 5px 5px;
        font-size: @md1-font-size;
    }
    .health-wellness-browse-alpha a.health-letter {
        font-size: @md4-font-size;
        color: @brand-color;
        font-weight: bold;
        text-transform: uppercase;
        margin-right: 2px;
    }
    /* Medicare Benefits */
    .showHide {
        margin-top: 35px;
        span {
            display: inline-block;
        }
        .sh-toggle.showing {
            display: inline-block;
            margin-left: 5px;
        }
        .sh-toggle.notShowing {
            display: none;
        }
        .excerpt.showing {
            display: inline-block;
        }
        .excerpt.notShowing {
            display: none;
        }
    }
    .sticky-wrap {
        width: 100%;
        padding: 0 20px 0 0;
    }
    /* First Visit Mobile Footer */
    .first-visit-footer {
        background: @brand-color;
        color: @white;
        padding: 10px 20px 5px;
        position: fixed;
        bottom: 0;
        left: 0;
        z-index: 100;
        width: 100%;
    }
    .first-visit-footer .first-visit-close {
        background: @white;
        color: @brand-color;
        border: 3px solid @brand-color;
        font-size: @lg1-font-size;
        font-weight: bold;
        width: 35px;
        height: 35px;
        text-align: center;
        line-height: 23px;
        padding: 3px;
        position: absolute;
        top: -15px;
        right: 0px;
        border-radius: 50%;
        -moz-border-radius: 50%;
    }
    .first-visit-footer h3 {
        color: @white;
        margin: 0;
    }
    .first-visit-footer p {
        color: @white;
        margin: 0;
    }
    .first-visit-footer .btn {
        float: right;
        margin-top: 5px;
    }
    /* Ambetter */
    .ambetter-styles {
        padding-bottom: 70px;
    }
    .ambetter-enrollment-cta {
        padding: 10px 20px 5px;
        position: fixed;
        bottom: 0;
        left: 0;
        z-index: 100;
        width: 100%;
    }
    .ambetter-enrollment-cta .cta-close {
        background: @white;
        color: @brand-color;
        border: 3px solid @brand-color;
        font-size: @lg1-font-size;
        font-weight: bold;
        width: 35px;
        height: 35px;
        text-align: center;
        line-height: 23px;
        padding: 3px;
        position: absolute;
        top: -15px;
        right: 0px;
        border-radius: 50%;
        -moz-border-radius: 50%;
    }
    .ambetter-enrollment-cta .xs-learn-more-link {
        color: @white;
        font-style: italic;
        text-decoration: underline;
        float: right;
        margin-top: 1em;
    }
    .ambetter-health-plan-item .plan-links {
        clear: both;
    }
    .no-gutter.page-content {
        padding: 0 20px;
    }
    .ambetter-showcase {
        .ambetter-showcase-item {
            height: 355px;
            width: 100%;
            .block-anchor {
                h2 {
                    padding: 5% 10%;
                }
                .ambetter-showcase-inner-item {
                    //display: none;
                }
            }
        }
    }
    /* Ambetter Landing Page */
    .ambetter-landing-header {
        .ambetter-landing-title {
            margin-left: 0%;
        }
        .ambetter-landing-tagline {
            margin-left: 0%;
        }
    }
    .landing-content-wrapper {
        .landing-content {
            width: 100%;
            padding-right: 0px;
            padding-bottom: 20px;
            border-right: 0px;
        }
        .landing-form {
            width: 100%;
            padding-left: 0px;
            padding-top: 20px;
            border-left: 0px;
            border-top: 2px solid;
        }
    }
    /* Ambetter Language Selector */
    .dropdown-menu {
        padding: 10px 0px;
        width: 210px;
        left: auto;
        right: 0;
    }
    .dropdown-menu>li {
        display: block;
        width: 100%;
        margin-left: 1px;
    }
    /* experimental showcase*/
    .home-showcase {
        min-height: 220px;
        .showcase-wrapper {
            min-height: 220px;
            .showcase-menu {
                min-height: 220px;
            }
        }
    }
    /* Provider Representative Map */
    #map-canvas {
        height: 525px;
    }
    /* Vanity Template */
    .vanity-header {
        .vanity-bar {
            .vanity-language-switcher {
                background-color: @dark-grey;
                width: 100%;
                margin-top: 0px;
            }
        }
        .vanity-banner {
            min-height: 100px !important;
            max-height: 200px !important;
        }
    }
    .vanity.container {
        .vanity-left {
            margin-top: 0px;
            min-height: 20em;
        }
        .vanity-right {
            min-height: 20em;
        }
        .vanity-footer {
            .vanity-copyright {
                background-color: @brand-color;
                height: 55px;
                .copyright {
                    margin-top: 0px;
                    padding-top: 10px;
                }
            }
        }
    }
    .vanity-tagline {
        padding-left: 25px;
        padding-right: 25px;
        padding-bottom: 25px;
    }
    .vanitymodal {
        .modal {
            width: 25em;
        }
    }
    .ambetter-landing-header-with-cta {
        margin: 0px -20px 10px -20px;
        .landing-header-main {
            p {
                top: 3.75vw;
                left: 4.125vw;
                font-size: 4.125vw;
            }
            p.ambetter-landing-header-small-text {
                font-size: 3.275vw;
            }
        }
    }
    .dynamic-header {
        display: block;
        .logo {
            display: block;
            float: left;
        }
        .xs-right-section {
            float: none;
            display: inline;
        }
        .md-right-section {
            display: none;
        }
    }
    .ambetter-landing-header-with-cta.hn-version {
        height: 200px;
        .landing-header-main {
            height: 200px;
            .banner-text {
                padding: 15px 5px 5px 15px;
                margin-left: 30%;
                height: 200px;
                .main {
                    font-size: @lg4-font-size;
                }
            }
        }
    }
    .hn-landing-header-cta {
        margin: 0px -20px 10px -20px;
    }
    .hn-footer-navigation {
        ul.footer-links {
            li {
                a {
                    margin: 10px 0px;
                }
            }
        }
    }
    /* ICF Modal */
    .icf-modal.modal-dialog {
        margin: auto 12%;
        width: 76%;
        .modal-title {
            top: 105px;
        }
    }
    #spinner {
        /* Main Site Search Spinner*/
        &.search-spinner {
            top: 25px !important;
        }
        /* ICF Modal Spinner */
        &.icf-spinner {
            top: 181px !important;
        }
    }
    /* Ambetter Homepage Banner */
    .ambetter-homepage-banner {
        p.banner-tagline,
        .banner-button {
            margin: 10%;
        }
        .banner-button {
            .indent {
                margin: 0;
            }
        }
    }

    .sidebar-nav.flyoutmenu {
        & > ul.openMobile {
            & > li {
                display: block;
                a, button {
                    font-size: 1.3em;
                }
                a {
                    display: -webkit-inline-box;
                    width: 83%;
                }
                button {
                    border: none;
                    display: block;
                    top: 10px;
                    right: 10px;
                }
                &.parent-page-title {
                    a, button {
                        font-size: 1.7em;
                        top: 20px;
                    }
                }
                & > ul > li {
                    a {
                        font-size: 1.1em;
                    }
                    button {
                        font-size: medium;
                    }
                }
                &:not(.parent-page-title) {
                    &:not(.has-submenu) {
                        a {
                            width: 100%;
                        }
                    }
                }
            }
        }
        & > ul.closeMobile {
            & > li {
                &:not(.parent-page-title) {
                    display: none;
                }
                &.parent-page-title {
                    a {
                        display: -webkit-inline-box;
                        width: 83%;
                    }
                    button {
                        border: none;
                        display: block;
                        font-size: 1.7em;
                        top: 20px;
                        right: 10px;
                    }
                }
            }
        }
    }
}

@media only screen and (max-width: 767px) and (-webkit-min-device-pixel-ratio: 1) {
    .ambetter-showcase {
        .ambetter-showcase-item {
            .block-anchor {
                .ambetter-showcase-inner-item {
                    padding: 50px 30px 0 55px;
                }
            }
        }
    }
}

/* Mobile header */

.mobilesecondaryheader {
    font-size: 14px;
    position: relative;
    background-color: @lighter-grey;
    .languageselector {
        height: 35px;
        width: 28%;
        .language-select {
            .vert-center;
            margin-top: 0px;
            color: @black;
            padding-right: 5px;
            button {
                text-transform: capitalize;
            }
        }
    }
    .topmenu {
        width: 72%;
        float: right;
        ul {
            padding-left: 0px;
            margin-bottom: 0px;
            margin-top: 3px;
            li {
                display: inline-block;
                text-decoration: none;
                padding: 5px 4px;
                a {
                    color: @black;
                    &:hover {
                        color: @black;
                        text-decoration: none;
                    }
                }
            }
        }
    }
}

.mobile-nav-button,
.mobile-search-button {
    vertical-align: top;
    display: inline-block;
    text-align: center;
    width: 50%;
    float: left;
    img {
        height: 22px;
        margin-left: 0px;
        margin-bottom: 3px;
        max-width: 100%;
    }
    span {
        font-size: 8px;
        display: block;
        color: @white;
        overflow: hidden;
        text-overflow: ellipsis;
        &:hover {
            color: white;
            text-decoration: white;
        }
    }
}

.mobile-nav-button {
    padding-right: 5px;
}

.home-icons {
    z-index: 9;
}

.mobiletopnavigation {
	.first-level-nav {
		li.secondary-color {
			a { background-color: @brand-secondary-color; }
			ul.second-level-nav {
				a { color: @white; }
			}
		}
	}
    .second-level-nav a {
        background: white;
        color: @brand-color;
        border-top: 1px solid @brand-color;
        box-shadow: none !important;
        padding-left: 20px;
    }
}