/*
    Author: CommerceGurus
    Author URI: http://www.commercegurus.com
    License: GNU General Public License version 3.0
    License URI: http://www.gnu.org/licenses/gpl-3.0.html

----------------------------------------------------------------
>>> RESPONSIVE
----------------------------------------------------------------
*/

@media only screen and (min-width: 1100px) {

  .contained {
    padding: 0px 80px;
  }

  .mobile-search {
    display: none;
  }

  .fixed .cg-menu-below .container.width-auto { 
    padding: 0px 0px; 
  }

  .fixed .leftnav .cg-main-logo img {
    height: 26px;
  }

  .fixed .cg-menu-below {
    height: 76px;
    box-shadow: 0 2px 3px -2px rgba(0,0,0,.3);
  }

  .fixed .cg-menu-below .menu > li > a, 
  .fixed .cg-menu-below .leftnav a {
    line-height: 76px;
    transition: all 0.5s;
  }

}

@media only screen and (max-width: 1100px) {

  body {
    overflow-x: hidden;
  }

  body.logged-in .cg-menu-below {
    top: auto;
  }

  body #wrapper {
    padding-top: 0px;
  }

  #wrapper.cg-mobile-fixed-menu .cg-menu-below.fixed-menu { 
    position: fixed; 
  } 

  .cg-menu-below {
    position: relative;
  }

  .container.width-auto {
    position: relative;
  }

  .cg-menu-below.fixed-menu {
    position: inherit;
  }

  .cg-menu-below {
    border-bottom: 1px solid #eee;
  }

  .page-container {
    top: auto;
    margin-bottom: auto;
  }

  #mobile-menu {
    display: none !important; /* Required */ 
  }

  body #live-preview .open {
    display: none;
  }

  .rightnav .extra {
    display: none;
  }



  /* Responsive Header */

  .cg-menu-below .leftnav.text-logo {
    position: absolute;
    top: 7px;
  }

  .cg-transparent-header {
    height: 60px; /* Mobile height is fixed */
    line-height: inherit;
    background: #eee;
    top: 0px !important; /* Required to overrule inline style */
  }

   .cg-transparent-header .container {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }

  .cg-menu-below .cg-header-cart {
    position: absolute;
    left: 15px;
  }

  .cg-menu-below .logo a {
    line-height: 60px;
  }

  .cg-primary-menu-below-wrapper .container {
    position: relative;
    padding: 0px 15px;
  }

  .cg-logo-below .leftnav {
    line-height: 60px;
    height: 60px;
    left: 0px;
    right: 0px;
  }

  .cg-transparent-header .col-lg-12 {
    position: inherit;
  }

  .cg-primary-menu,
  .cg-header-fixed-wrapper {
    display: none;
  }

  .logo img,
  .cg-menu-below .logo img {
    max-height: 32px;
  }

  .leftnav.logo {
    position: absolute;
    width: 100%;
    top: 0px;
  }

  body.page-template-page-full-width .content-area .entry-content .cg-section .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  body .vc_tta-color-grey.vc_tta-style-flat .vc_tta-panel .vc_tta-panel-heading:hover, 
  body .vc_tta-color-grey.vc_tta-style-flat .vc_tta-panel .vc_tta-panel-heading:focus {
    background-color: transparent;
  }

  body.blog .site-main, 
  body.archive .site-main, 
  body.single-post .site-main {
    padding-right: 0px;
  }

  body.blog .site-main.with-left-sidebar,
  body.archive .site-main.with-left-sidebar,
  body.single-post .site-main.with-left-sidebar {
    padding-left: 0px;
  }

}


@media (min-width: 992px) and (max-width: 1200px) {

  .rightnav input.search-field {
    width: 135px;
  }

}

@media only screen and (max-width: 992px) {

  /* Hide Share Options on mobile */
  .breadcrumbs-wrapper p.cg-share {
    display: none;
  }

  .first-footer h4.widget-title {
    margin-top: 40px;
  }

  .row-eq-height {
    display: block;
  }

  .author-info {
    margin-bottom: 50px;
  }

  /* Mobile Footer */
  .first-footer {
    padding-top: 25px;
    padding-bottom: 25px;
    margin-bottom: auto !important; /* Required */
  }

  .first-footer .inner-widget-wrap {
    width: 100%;
  }

  .first-footer .inner-widget-wrap {
    padding: 0px;
    border: none;
    flex: auto;
  }

  .first-footer .inner-widget-wrap .text, .first-footer .inner-widget-wrap .button {
    display: block;
    padding: 0px 15px;
  }

  .first-footer .inner-widget-wrap .text {
    margin-bottom: 15px;
  }

  .first-footer .textwidget img {
    display: none;
  }

  .second-footer {
    position: relative;
    height: auto !important; /* Required */
    padding-top: 30px;
    padding-bottom: 20px;
  }

  .second-footer ul.inline.right {
    text-align: left;
    margin-top: 7px;
    margin-left: -16px;
  }

  .second-footer .inner-widget-wrap {
    padding-left: 0px;
  }

  .top-bar-right {
    text-align: left;
  }

  .cg-announcements {
    font-size: 14px;
  }

  .cg-announcements .top-bar-right .textwidget {
    float: none;
    padding-top: 0px;
    padding-bottom: 0px;
  }

  .cg-announcements.mobile-visible .top-bar-right {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .cg-announcements.mobile-visible .top-bar-right ul {
    margin: 0px;
  }

  .cg-announcements.mobile-visible .top-bar-left ul li {
    display: block;
  }

  .cg-announcements .top-bar-right ul li {
    margin-left: 0px;
  }

  body .cg-announcements ul li a:hover {
    background: transparent;
  }

  .cg-announcements ul li a {
    padding-left: 0px;
  }

  body #jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post {
    width: 50%;
  }

  body #jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post:nth-of-type(2n+1) {
    clear: both;
  }

  /* Portfolio */
  #project {
    margin-left: -15px;
    margin-right: -15px;
  }

  .sidebar #secondary {
    flex: auto;
    padding-bottom: 0px;
  }

  .second-footer ul {
    margin-bottom: 20px;
  }

}

@media only screen and (max-width: 768px) {

  textarea,
  input[type="text"],
  input[type="tel"],
  input[type="email"],
  input[type="search"],
  input[type="button"],
  input[type="submit"] {
     -webkit-appearance: none;
     border-radius: 0;
  }

  #css-awards {
    display: none;
  }

  .request-callback div.wpcf7 {
    padding: 15px;
  } 

  .content-area .grid-of-two ul.display-posts-listing li,
  .content-area .grid-of-three ul.display-posts-listing li,
  .content-area .grid-of-four ul.display-posts-listing li,
  .content-area .grid-of-five ul.display-posts-listing li,
  .content-area .grid-of-six ul.display-posts-listing li,
  body .content-area ul.display-posts-listing li {
    width: 100%;
    display: block;
    margin-bottom: 30px;
  }

  .m-15 {
    margin-left: -15px;
    margin-right: -15px;
  }

  body .vc_tta.vc_general .vc_tta-panel-body img {
    margin-bottom: 20px;
  }

  body .vc_row.vc_row-flex {
    display: block;
    -webkit-flex-wrap: block;
    -ms-flex-wrap: block;
    overflow: hidden;
  }

  body .vc_row.vc_row-flex {
    flex-wrap: inherit;
  }

  body.home .vc_row.vc_row-flex {
    flex-wrap: inherit;
    padding-left: 15px;
    padding-right: 15px;
  }

  body .vc_row.vc_row-flex .container, 
  body .vc_row.vc_row-flex .container > .vc_column_container {
    display: block;
  }

  .shadow .wpb_wrapper .wpb_text_column:last-child {
    padding-bottom: 10px;
  }

  .vc_custom_heading {
    padding-left: 15px;
    padding-right: 15px;
  }

  body .vc_row.vc_row-flex > .vc_column_container > .vc_column-inner {
    display: block;
  }

  body.page-template-default .content {
    padding-bottom: 0px;
  }

  .wpb_single_image .vc_figure {
    width: 100%;
  }

  .shadow .vc_column-inner > .wpb_wrapper {
    margin-bottom: 30px;
    padding-bottom: 1px;
  }

  /* Hide top bar */
  .cg-announcements {
    display: none;
  }

  .cg-announcements.mobile-visible {
    display: block;
  }

  .mobile-header-details {
    display: block;
  }

  .cg-heading-align-left .header-wrapper p {
    max-width: 100%;
  }

  body .ls-noskin .ls-nav-prev,
  body .ls-noskin .ls-nav-next {
    display: none;
  }

  .vertical-align {
    display: block;
  }

  .top-bar-right {
    text-align: left;
  }

  .rightnav {
    float: none;
  }

  .blog-meta span.comments {
    float: none;
    display: block;
  }

  .comments-area {
    padding: 10px 15px 30px 15px;
    margin-left: -15px;
    margin-right: -15px;
  }

  .content-area .comment-form p.comment-notes {
    margin-bottom: 10px;
  }

  .comments-area h2.comments-title {
    font-size: 24px;
  }

  .comment-list li.comment {
    padding-left: 0px;
  }

  .comment-list .avatar {
    position: relative;
    display: block;
    margin-bottom: 20px;
  }

  .comment-form input, .comment-form textarea {
    width: 100%;
    float: none;
  }

  .comment-form input.submit {
    margin-left: 0px;
    margin-top: 20px;
  }

  .cg-blog-layout article.type-post {
    padding: 45px 25px;
  }

  .cg-blog-article .image {
    margin-left: -27px;
    margin-right: -27px
  }

  .cg-blog-layout article.type-post:last-child {
    margin-bottom: 50px;
  }

  .content-area .cg-blog-article h2 {
    font-size: 30px;
  }

  .content-area h2.entry-title a {
    margin-right: 0px;
  }

  body.single-post .header-wrapper .entry-header {
    width: 100%;
  }

  .blog-meta span.cg-blog-author:after {
    display: none;
  }

  .blog-meta span.comments {
    display: block;
  }

  .header-wrapper h1.cg-page-title,
  body.single-post .header-wrapper h1.cg-page-title, 
  body.search-results .header-wrapper h1.cg-page-title,
  body .content-area h1 {
    font-size: 40px;
    line-height: 1.25em;
    max-width: 100%;
    letter-spacing: 0px;
  }

  .cg-share.btn-group {
    display: none;
  }

  body.page-template-default .content-area {
    padding-bottom: 50px;
  }

  body.home .content-area {
    padding-bottom: 0px;
  }

  .comment-form label {
    margin-bottom: 0px;
  }

  .content-area .comments-area p {
    margin-bottom: 15px;
  }

  .content-area .grid-news article {
    margin-bottom: 50px;
  }

  .author-avatar, .author-description {
    display: block;
    width: 100%;
  }

  .author-avatar img {
    margin: 0px auto 20px auto;
  }

  .comments-wrapper {
    margin-top: 30px;
  }

  body #jp-relatedposts .jp-relatedposts-items-visual .jp-relatedposts-post {
    padding-right: 0px;
  }

  .sidebar #secondary .widget.feature .image img {
    max-width: 80px;
  }

  #project.project-four-cols .grid-sizer,
  #project.project-three-cols .grid-sizer {
    width: 100%;
  }

  .first-footer .textwidget img.logo {
    max-width: 200px;
  }

  .second-footer ul.inline.right {
    text-align: left;
    margin: 5px 0px 0px 20px;
  }

  .second-footer ul.inline.right li {
    margin-left: 0px;
    margin-right: 20px;
  }

  /* Responsive Images */
  .vc_single_image-wrapper,
  .vc_single_image-wrapper img {
    width: 100%;
  }

  .testimonial .vc_single_image-wrapper img {
    width: auto;
  }

  /* Responsive WooCommerce */
  .woocommerce-result-count {
    width: 100%;
  }

  body.woocommerce .woocommerce-ordering {
    float: none;
    margin-bottom: 10px;
  }

  .woocommerce ul.products li.product, 
  .woocommerce-page ul.products li.product {
    width: 47.5%;
    margin-bottom: 2em;
  }

  .woocommerce .products ul, 
  .woocommerce ul.products {
    margin-right: -2px;
  }

  .woocommerce #review_form p.stars span {
    left: auto;
    float: none;
    width: 100%;
  }

  .woocommerce #review_form #respond p.stars {
    clear: both;
  }

  body.woocommerce #review_form #respond textarea {
    width: 100%;
  }

  .woocommerce table.shop_table {
    font-size: 14px;
    line-height: 1.45em;
  }

  .woocommerce table.shop_table thead th {
    padding: 7px 4px;
    font-size: 13px;
  }

  .woocommerce table.shop_table td {
    padding-left: 4px;
    padding-right: 4px;
  }

  .woocommerce table.cart td.actions .button {
    width: 100%;
  }

  .woocommerce-cart table.cart td.actions .coupon .button {
    width: 100%;
  }

  .woocommerce-cart table.cart td.actions .coupon .input-text {
    float: none;
    width: 100%;
    margin-bottom: 5px;
  }

  .woocommerce-info a.showlogin,
  .woocommerce-info a.showcoupon {
    display: inline-block;
    clear: both;
  }

  .woocommerce form .form-row-first, .woocommerce form .form-row-last, 
  .woocommerce-page form .form-row-first, .woocommerce-page form .form-row-last {
    width: 100%;
  }

  .woocommerce-checkout #payment {
    padding: 0px;
  }

  .woocommerce table.woocommerce-checkout-review-order-table tfoot th,
  .shop_table.order_details th {
    width: 40%;
  }

  .woocommerce .order_details li {
    border: none;
    float: none;
    margin: 0px;
    margin-bottom: 15px;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation,
  body.woocommerce-account .woocommerce-MyAccount-content {
    float: none;
    width: 100%;
  }

  .homepage-form .wpb_single_image.vc_align_right {
    text-align: center;
  }

  .content-area .vc_wp_posts.col-2 ul li,
  .content-area .vc_wp_posts.col-3 ul li,
  .content-area .vc_wp_posts.col-4 ul li,
  .content-area .vc_wp_posts.col-5 ul li,
  .content-area .vc_wp_posts.col-6 ul li {
    width: 100%;
  }

  .content-area .vc_wp_posts ul li {
    display: block;
    border: none;
    padding: 0px;
    margin-bottom: 15px;
  }

  .content-area .latest-news h5 a {
    display: block;
    text-align: center;
    top: 0px;
    margin-top: 15px;
    float: none;
  }

  .staff-member .wpb_single_image .vc_figure,
  .staff-member .wpb_single_image img {
    width: 100%;
  }

  .staff-member .wpb_text_column {
    padding: 30px 0px;
  }

  .below-main-content .text, .below-main-content .button {
    display: block;
    width: 100%;
  }

  .below-main-content .button {
    text-align: inherit;
    padding-left: 0px;
    margin-top: 20px;
    min-width: auto;
  }

  .second-footer .row .widget_text {
    display: block;
    padding-bottom: 20px;
  }

  .second-footer img.logo {
    float: none;
  }

}