@media (max-width: 1240px){
    #wrapper::before, #wrapper::after{
        content: none;
    }
}
@media (max-width: 1120px){
    .logos-wrapper li {
        width: 50%;
        margin: 0 0 15px;
    }
}
@media (max-width: 1120px) and (min-width: 992px), (max-width: 767px){
    .large .envelop{
        display: block;
        margin: 0 auto 20px;
    }
    .sign-up.large .subscribe{
        display: block;
    }
    .sign-up.large{
        padding: 10px;
    }
    .sign-up.large input[type="email"]{
        width: 100%;
        margin: 0 0 10px;
    }
}
@media (max-width: 991px){
    #content,
    #sidebar{
        border: none;
    }
    #content{
        padding-right: 15px;
    }
    .footer-menu .menu-block{
        height: auto;
        min-height: 0;
    }
    .footer-menu > li:last-child .menu-block{
        padding-bottom: 265px;
    }

    .single-post-pagination .pagination a{
        font-size: 25px;
        white-space: nowrap;
    }
    #sidebar{
        clear: both;
        padding: 0;
    }

    .image-404{
        text-align: center;
    }
    .error404 #content{
        padding: 15px;
    }
}
@media (max-width: 767px){
    .main-header.affix{
        position: fixed;
        background: transparent;
        z-index: 1000;
        width: 100%;
    }
    .main-header:before,
    .main-header:after{
        width: 100%;
        position: absolute;
        content: none;
        height: 1px;
        background: #a9e0d2;
        left: 0;
    }
    .main-header:after{
        top: 49px;
    }
    .mobile-header-ad{
        text-align: center;
        padding: 0 0 15px;
        background: #fff;
        margin: 0 -15px;
    }
    .menu-mobile-btn{
        width: 54px;
        height: 33px;
        background: url("../images/mobile/main-sprite.png");
        float: left;
        margin-top: 7px;
        border: none;
    }
    .logo{
        width: 65px;
        margin: -10px auto 0;
        position: relative;
        z-index: 100;
    }
    header .my-list{
        position: static;
        background: transparent;
        padding: 0;
        display: inline-block;
        vertical-align: top;
        margin-top: 7px;
        color: #a9e0d2;
        font-weight: bold;
        margin-right: 20px;
    }
    header .my-list:hover{
        background: none;
    }
    .right .header-top-menu{
        position: absolute;
        top: 50px;
        margin: 0;
        width: 150%;
        right: 0;
    }
    .search-mobile{
        display: inline-block;
    }
    .search-mobile-btn{
        width: 32px;
        height: 34px;
        background: url("../images/mobile/main-sprite.png") -56px 0;
        display: block;
        margin-top: 7px;
    }
    /*.main-header .left,
    .main-header .center,
    .main-header .right{
        height: 50px;
        border-top: 1px solid #a9e0d2;
        border-bottom: 1px solid #a9e0d2;
        /*position: static;*/
    /*}*/
    .main-header .left,
    .main-header .right{
        padding: 0;
        position: static;
        height: 48px;
    }

    .main-header{
        /*padding-bottom: 30px;*/
    }
    .header-top-menu > li {
        margin-left: 0;
        padding-left: 7px;
        position: relative;
    }
    .header-top-menu > li a{
        font-size: 12px;
    }
    .header-top-menu > li:before{
        right: -8px;
    }

    /*#content{
        padding: 0 15px;
    }*/

    /* post excerpt */

    .post-excerpt-container{
        padding: 10px 0;
        background: #f9fbfa;
    }

    .post-excerpt-container:before,
    .post-excerpt-container:after{
        width: 100%;
        right: 0;
        left: 0;
    }
    .post-excerpt-container:before{
        bottom: auto;
        top: 0;
    }
    .post-excerpt{
        padding: 0;
    }
    a.view-post {
        bottom: 0;
        position: absolute;
        right: 15px;
        background: #a9e0d2;
        box-shadow: 1px 1px #b0bdbb;
        color: #657974;
        font-family: "Fjalla One";
        padding: 0 10px 0 15px;
        font-size: 12px;
        text-transform: uppercase;
    }
    a.view-post::before {
        background: rgba(0, 0, 0, 0) url("../images/mobile/main-sprite.png") repeat scroll -91px 0;
        content: "";
        height: 23px;
        left: -18px;
        position: absolute;
        top: -2px;
        width: 23px;
    }
    .post-excerpt-heading {
        padding: 0 0 30px;
    }
	
	.post-expired{
		top: -13px;
	}
	

    /* footer */

    .footer-top{
        border: none;
    }
    .footer-top .left,
    .footer-top .center{
        width: 100%;
        text-align: center;
    }
    .footer-top .center{
        top: 0;
    }
    .socials{
        background: #f5fbfa;
        margin: 0 -15px 10px;
        padding: 10px 0;
    }

    .ad-wrapper{
        margin: 0 0 10px;
    }

    .sub-header{
        height: 48px;
        background: #fff;
        width: auto;
        margin: 0 -15px;
        padding: 0 15px;
    }

    /*header .center::before,
    header .center::after,*/
    .sub-header:before,
    .sub-header:after{
        background: #a9e0d2 none repeat scroll 0 0;
        content: "";
        height: 1px;
        position: absolute;
        right: 0;
        top: -1px;
        left: 0;
    }
    .sub-header:after{
        top: 48px;
    }

    .sign-up-mobile{
        text-align: center;
        background: #f5fbfa;
        clear: both;
        border-top: 2px solid #a9e0d2;
        border-bottom: 2px solid #a9e0d2;
        padding: 0 15px;
    }
    .sign-up-mobile .envelop{
        width: 108px;
        height: 59px;
        background: url(../images/mobile/main-sprite.png) 0 -38px;
        margin: 0 10px 0 0;
    }
    /*.sign-up-mobile div{
        width: 60%;
    }*/
    .sign-up-mobile input[type="submit"]{
        background: #a9e0d2;
        text-transform: uppercase;
        font-family: "Fjalla One";
        box-shadow: 1px 2px #adbdbb;
        padding: 10px;
        position: absolute;
        right: 0;
        top: 0;
    }
    .sign-up-mobile input[type="email"]{
        padding: 10px;
        text-transform: uppercase;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        width: 100%;
    }
    .sign-up-mobile *{
        display: inline-block;
        vertical-align: middle;
    }
    .sign-up-mobile form{
        width: 70%;
        padding: 0 55px 0 0;
        position: relative;
    }
    .breadcrumbs, .mobile-header-top-menu{
        width: 50%;
        float: left;
    }
    .mobile-header-top-menu{
        text-align: right;
        margin: 5px 0;
    }
    .breadcrumbs{
        margin: 5px 0;
        padding-left: 15px;
    }
    .mobile-header-top-menu{
        padding-right: 15px;
    }
    .breadcrumbs a{
        color: #5a5c59;
        text-transform: uppercase;
        font-size: 12px;
        font-family: "Josefin Sans";
    }
    .header-bottom {
        clear: both;
        position: relative;
    }
    .header-bottom::after {
        clear: both;
        content: "";
        display: table;
    }

    /* my state block */

    #my-state-collapse{
        background: #dcf0eb;
        position: absolute;
        left: -15px;
        right: -15px;
        border-top: 1px solid #b0e2d5;
        border-bottom: 1px solid #b0e2d5;
        z-index: 100;
        top: 100%;
        box-shadow: 0 7px 7px rgba(0, 1, 1, 0.22);
    }
    #my-state-collapse h2{
        margin: 0;
        text-align: center;
        padding: 10px 15px 5px;
        border-bottom: 2px solid #abdcd0;
        color: #5a5c59;
        text-transform: uppercase;
        font-family: "Josefin Sans";
        font-size: 20px;
    }
    .my-state-mobile{
        font-family: "Sacramento";
        font-size: 27px;
        color: #a9e0d2;
        display: inline-block !important;
        font-weight: bold;
        margin-top: 7px;
        margin-left: 20px;
    }
    .my-state-mobile:hover,
    .my-state-mobile:active,
    .my-state-mobile:focus{
        color: #a9e0d2;
    }
    header #my-state-collapse .bootstrap-select.btn-group .btn .caret{
        width: 12px;
        height: 7px;
        background: url("../images/mobile/main-sprite.png") 0 -100px;
        margin-top: -3px;
    }
    header #my-state-collapse .btn-group.bootstrap-select{
        margin: 0;
    }
    header #my-state-collapse .selectpicker.btn-default,
    header #my-state-collapse .btn-default.active,
    header #my-state-collapse .btn-default.focus,
    header #my-state-collapse .btn-default:active,
    header #my-state-collapse .btn-default:focus,
    header #my-state-collapse .btn-default:hover, .open > .dropdown-toggle.btn-default{
        height: 35px;
        font-size: 20px;
    }
    #my-state-collapse input[type="submit"]{
        height: 35px;
        display: inline-block;
        vertical-align: middle;
    }
    .my-state-mobile-filter{
        padding: 45px 0;
        text-align: center;
    }

    /* sign in */

    #mobile-sign-in, #mobile-register{
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        z-index: 100;
        border-bottom: 1px solid #b4e4d8;
        border-top: 1px solid #b4e4d8;
        padding: 20px 15px;
        box-shadow: 0 7px 7px rgba(0, 1, 1, 0.22);
    }
    #mobile-sign-in h2, #mobile-register h2{
        color: #5a5c59;
        text-transform: uppercase;
        font-family: "Josefin Sans";
        font-size: 20px;
        border-bottom: 1px solid #abdcd0;
        margin: 0 0 20px;
        padding: 0 0 5px;
    }
    #mobile-sign-in label, #mobile-register label{
        display: block;
        font-weight: normal;
        text-transform: uppercase;
        color: #6eceb7;
    }
    .mobile-log-in-form {
        margin: 0 0 40px;
    }
    .button-checkbox .icon {
        background: url("../images/mobile/main-sprite.png");
        width: 18px;
        height: 14px;
        display: inline-block;
        vertical-align: top;
    }
    .button-checkbox .icon.cb-icon-check{
        background-position: -13px -100px;
    }
    .button-checkbox .icon.cb-icon-check-empty{
        background-position: -32px -100px;
    }
    .button-checkbox.bootstrap-checkbox.custom-checkbox,
    .button-checkbox .btn.clearfix.btn-link {
        border: medium none;
        height: 14px;
        padding: 0;
        width: 18px;
        display: inline-block;
        vertical-align: top;
        outline: none !important;
        margin: 2px 2px 0 0;
    }
    .forgot-pass{
        margin-left: 10px;
    }
    #mobile-sign-in input[type="submit"],
    #mobile-register input[type="submit"]{
        padding: 0 10px;
    }

    /* mobile search block */

    #mobile-search-wrapper{
        background: #f9fbfa;
        border-top: 1px solid #b9e5da;
        border-bottom: 1px solid #b9e5da;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 100;
        text-align: center;
        padding: 10px 15px;
    }
    #mobile-search-wrapper input[type="search"]{
        float: none;
        display: inline-block;
        vertical-align: top;
        padding: 0 10px;
        width: 100%;
        height: 43px;
    }
    #mobile-search-wrapper input[type="submit"]{
        width: 42px;
        height: 42px;
        position: absolute;
        right: 0;
        top: 0;
    }
    .mobile-search-form{
        padding-right: 50px;
        max-width: 305px;
        margin: 0 auto;
        position: relative;
    }


    /* sidebar fixed nav */

    .navmenu-default, .navbar-default .navbar-offcanvas{
        background-color: #dcf0eb;
        border-color: #5ab8a1;
    }

    .navmenu-default .navmenu-nav > li > a,
    .navbar-default .navbar-offcanvas .navmenu-nav > li > a{
        color: #5a5c59;
    }
    .navmenu-default .navmenu-nav > li:last-child > a,
    .navbar-default .navbar-offcanvas .navmenu-nav > li:last-child > a{
        /*color: #f79422;*/
    }
    /*.navmenu-default .navmenu-nav > li:last-child > a:hover,
    .navbar-default .navbar-offcanvas .navmenu-nav > li:last-child > a:hover{
        color: #f4ab3e;
    }*/
    .navmenu-default .navmenu-nav.dropdown-menu,
    .navbar-default .navbar-offcanvas .navmenu-nav.dropdown-menu{
        background: #fff;
    }
    .navmenu-default .navmenu-nav > .open > a,
    .navbar-default .navbar-offcanvas .navmenu-nav > .open > a,
    .navmenu-default .navmenu-nav > .open > a:hover,
    .navbar-default .navbar-offcanvas .navmenu-nav > .open > a:hover,
    .navmenu-default .navmenu-nav > .open > a:focus,
    .navbar-default .navbar-offcanvas .navmenu-nav > .open > a:focus{
        background-color: #a9e0d2;
    }
    .off-canvas-menu .dropdown-menu > li > a {
        font-size: 16px;
        padding: 10px 15px;
        text-transform: uppercase;
    }
    .off-canvas-menu .dropdown-menu > li:last-child > a{
        color: #5a5c59;
    }
    .navmenu, .navbar-offcanvas{
        width: 200px;
    }

    .off-canvas-menu .sub-menu{
        background: #f9fbfa;
    }
    .off-canvas-menu .sub-menu li a{
        text-transform: uppercase;
        color: #52b59c;
    }
    .off-canvas-menu .sub-menu .sub-menu li a{
        color: #8a8b8a;
    }
    .off-canvas-menu .sub-menu .sub-menu .sub-menu li a{
        color: #a6a7a6;
        text-transform: none;
    }
    /*#menu-mobile-menu .sub-menu li:last-child a{
        color: #5a5c59;
    }*/
    .off-canvas-menu .menu-item-has-children{

    }

    body.expanded {
        left: 200px;
        overflow: hidden;
        position: fixed;
    }
    .expanded .off-canvas-menu {
        left: 0;
    }

    .off-canvas-menu .sub-menu {display: none;}

    /* footer */

    .footer-menu .col-md-3{
        padding: 0;
    }
    .footer-menu{
        margin: 0 -15px;
    }
    .logos-wrapper li{
        width: 25%;
    }
    .logos-wrapper li{
        margin: 0 10px;
        width: auto;
        display: inline-block;
    }
    .logos-wrapper{
        border-top: 3px solid #a9e0d2;
        border-bottom: 3px solid #a9e0d2;
        background: #f5fbfa;
        margin: 0 -15px 10px;
        padding: 10px 0;
    }
    .logos-wrapper span.visible-xs{
        display: inline-block !important;
        color: #52b59c;
        font-family: "Sacramento";
        font-size: 27px;
        text-shadow: -1px 1px #a3d4c7;;
        vertical-align: middle;
    }
    .clients-logos{
        display: inline-block;
        vertical-align: middle;
        margin: 0;
    }
    .error404 h1{
        margin-top: 2em;
    }
    .error404 h1 span{
        font-size: 20px;
    }
    .error404 h1 span:first-child{
        font-size: 50px;
    }
    .navmenu-nav{
        margin: 0;
    }

    /* Hide Livechat Mobile */

    #livechat-compact-container {
        display:none !important;
    }
    .post-entry-img img {
        width: 160px;
    }
    .page-template-referrals .post-entry h3 {
        line-height: 33px;
        font-size: 23px;
        margin-bottom: 12px;
    }
    .page-template-referrals .post-entry p {
        font-size: 17px;
        line-height: 30px;
    }
    .page-template-referrals .login-section .title {
        font-size: 46px;
    }
    .page-template-referrals .login-section .login-lk,
    .page-template-referrals .login-section .join-lk {
        font-size: 19px;
        padding: 10px 25px;
    }
    .item-coupon {
        width: calc(100% / 2 - 4px);
    }
    .page-template-referrals .squad-tips .title {
        font-size: 40px;
    }
    .page-template-referrals .squad-tips .categ {
        font-size: 17px;
    }
    .item-coupon .item-bt .lf .availability {
        font-size: 30px;
    }
}

@media
only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and (min-device-pixel-ratio: 2) {
    .menu-mobile-btn,
    a.view-post:before,
    .search-mobile-btn,
    .sign-up-mobile .envelop,
    header #my-state-collapse .bootstrap-select.btn-group .btn .caret,
    .button-checkbox .icon,
    .socials li a,
    .scroll-top-button
    {
        background-image: url("../images/mobile/main-sprite@2.png");
        background-size: 149px 340px;
    }
}

@media (max-width: 580px){
    .my-state-mobile, .search-mobile{
        display: none !important;
    }
    header .my-list{
        font-size: 23px;
        margin-right: 0;
    }
    .post-footer .col-xs-6{
        width: 100%;
    }
    .post-footer .comments{
        float: left;
    }
}

@media (max-width: 450px){
    .sign-up-mobile .envelop{
        position: absolute;
        left: 15px;
        top: 3px;
    }
    .sign-up-mobile{
        padding: 10px 15px 10px 130px;
        position: relative;
    }
    .sign-up-mobile div{
        width: 100%;
    }
    header #my-state-collapse .selectpicker.btn-default,
    header #my-state-collapse .btn-default.active,
    header #my-state-collapse .btn-default.focus,
    header #my-state-collapse .btn-default:active,
    header #my-state-collapse .btn-default:focus,
    header #my-state-collapse .btn-default:hover, .open > .dropdown-toggle.btn-default{
        width: 200px;
    }
    .clients-logos{
        float: left;
        width: 100%;
    }
    .logos-wrapper li{
        width: 50%;
        float: left;
        margin: 0;
    }
    .coupon_100 .item-bt .rg .reff {
        line-height: 18px;
    }
    .item-coupon .item-top .img-wrap img {
        width: 110px;
    }
    .item-coupon .item-top .img-wrap {
        height: 130px;
    }
    .coupon_100 .item-bt .rg .reff,
    .item-coupon .item-bt .rg .discount{
        width: 92px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .item-coupon .item-bt .lf .availability {
        font-size: 20px;
    }
    .item-coupon .item-bt .rg .reff {
        font-size: 18px;
        line-height: 30px;
    }
    .item-coupon .item-bt {
        min-height: 57px;
    }
}
@media (min-width: 992px) {
    .previous-post-link a,
    .next-post-link a {
        display: block;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        margin-top: 30px;

    }
    .single-post-pagination .pagination {
        margin-left: -15px;
        margin-right: -15px;
        width: 100%;
    }
    .single-post-pagination .pagination a {
        font-size: 27px;
        line-height: 40px;
    }
    .coupon_100 .item-bt .lf .availability {
        font-size: 23px;
    }
}

@media screen and (max-width: 600px){
    #wpadminbar {
        top: -46px;
    }
}