/*
* Skeleton V1.1
* Copyright 2011, Dave Gamache
* www.getskeleton.com
* Free to use under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
* 8/17/2011
*/

/* Table of Content
==================================================
    #Site Styles
    #Page Styles
    #Media Queries
    #Font-Face */

/* #Site Styles
================================================== */

/* #Page Styles
================================================== */

/* #Media Queries
================================================== */

/* Large Desktop */

@media only screen and (min-width: 1200px) {
    #header .search_trigger {
        display: none;
    }

    #header .header_search_wrapper {
        visibility: visible;
        left: 650px;
        right: 10px;
    }

    #header.search_active #navigation {
        visibility: visible;
    }

    #productDetails .contactButton {
        margin-right: 20px;
    }

    #productDetails .listingInfo {
        margin-left: 20px;
        margin-right: 0px;
    }

    #productDetails .listing_contact_row.full-width .listingInfo {
        margin-right: 20px;
    }

    #productDetails .listing_contact_row:not(.full-width) .socialLinks,
    #productDetails .listing_contact_row:not(.full-width) .exportReady {
        margin-left: 20px;
    }
}

@media only screen and (min-width: 1024px) {
    .homebanner_grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .homebanner_search {
        grid-column-start: 2;
    }

    .listing_contact_row.full-width {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
    }
}

/* Tablet Portrait size to standard 960 (devices and browsers) */

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

    #header .social {
        order: 1;
    }

    #mainNav li a {
        padding: 11px 9px;
    }

    #mainNav .mega_menu .right_col {
        max-height: 80vh;
        overflow-y: auto;
    }

    .jcarousel-container-horizontal {
        width: 446px;
        padding: 12px 23px;
    }

    .jcarousel-clip-horizontal {
        width: 444px;
    }

    /* CATEGORY LIST STYLES */
    #categoryList .jcarousel-container-horizontal {
        width: 492px;
        padding: 12px 30px;
    }

    #content #categoryList #rotatingBanner li {
        margin: 0 38px 0 0;
    }

    #content #categoryList .jcarousel-clip-horizontal {
        width: 492px;
    }

    #content .browseCategory.thumbs li {
        width: calc(100%/3 - 20px);
    }
    /* END CATEGORY LIST STYLES */

    #categoryPage .productList h3 {
        clear: both;
    }

    #categoryPage .productList p,
    #categoryPage .productList h3,
    #categoryPage .productList h4,
    #categoryPage .productList .viewMoreLink {
        margin-left: 0px;
    }

    #homePage #categorySearch select {
        width: 185px;
    }

    .featuredHomeProducts .smallBanner img {
        width: 100%;
    }

    #newsLetter .newsInput {
        width: 165px;
    }

    #productDetails .form_content_wrapper {
        padding: 10px;
    }

    .addthis_toolbox_product {
        right: 0px;
        top: -5px;
    }

    .backList {
        left: 450px;
    }

    #listingPage #content #tabs > ul > li {
        margin: 0px -1px 0 0px;
    }

    #listingPage #tabs .ui-tabs,
    #tabs .ui-tabs-nav li a {
        padding: 6px 5px !important;
    }

    #categorySearch select {
        width: 115px;
    }

    #footer > div {
        background-size: 220px 20px;
    }

    iframe {
        max-width: 550px;
    }

    #salesBanner {}

    .videoContainer iframe {
        width: 100%;
    }

    .social {
        display: none;
    }
}


/* All Tablet & Desktop Sizes (devices and browser) */

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

    #headerFill.sticky {
        display: block;
    }

    #headerWrapper.sticky {
        position: fixed;
        top: -75px;
        width: 100%;
        z-index: 10;
    }

    /* Hide the extra slides while flexslider is still loading */
    #salesBanner ul.slides li + li { display: none; }
    #salesBanner .flex-viewport ul.slides li + li { display: block; }

    #sidebar {
        margin-top: -11px;
    }

    #sidebar > div {
        padding: 10px;
        background-color: #ffffff;
        position: relative;
        left: 10px;
        box-sizing: border-box;
    }

    #productDetails .additional-question .button {
        margin-top: 10px;
    }

    #productDetails .exportReady {
        margin-left: 10px;
    }
}


/* All Mobile Sizes (devices and browser) */

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

    #contentWrapper {
      background-image: none;
    }

    .contentBGWrapper {
        display: none;
    }

    #homePage #menu_mobile {}

    .grid_8.homeSidebar {
        margin-top: 67px;
    }

    .form_label {
        width: auto;
        padding: 0;
    }

    .form_required {
        width: 5%;
        padding: 0 0 0 5px;
    }

    .form_field {
        width: 100%;
        float: none;
        margin-top: 0;
    }

    .videoContainer iframe {
        width: 100%;
    }

    .fancy-form-input,
    .inner_form_fields {
        width: 100% !important;
    }

    /* Category Listings */
    #content .browseCategory.thumbs li {
        width: calc(100%/2 - 20px);
    }

    /* Product View */
    .product_view_columns {
        flex-wrap: wrap;
    }

    .product_view_columns .productImages {
        order: 1;
    }
}


/* Mobile Landscape Size to Tablet Portrait (devices and browsers) */

@media only screen and (min-width: 480px) and (max-width: 767px) {

    #homePage .contentHeader,
    .contentHeader {
        /*background-position:left 45px;*/
    }

    #loginSearch {
        height: 36px;
    }

    #account {
        line-height: 14px;
        padding: 5px 0 0;
        float: left;
    }

    .jcarousel-container-horizontal {
        width: 292px;
        padding: 12px 53px;
    }

    .jcarousel-clip-horizontal {
        width: 292px;
    }

    .jcarousel-next {
        right: 15px;
    }

    .jcarousel-prev {
        left: 15px;
    }

    /* CATEGORY LIST STYLES */
    #categoryList .jcarousel-container-horizontal {
        width: 318px;
        padding: 12px 40px;
    }

    #content #categoryList #rotatingBanner li {
        margin: 0 38px 0 0;
    }

    #content #categoryList .jcarousel-clip-horizontal {
        width: 318px;
    }

    /* END CATEGORY LIST STYLES */
    #categorySearch h3 {
        display: none;
    }

    #copy.inner {
        padding: 0px;
    }

    .productListImage img {
        width: 200px;
    }
    
    .productList .productListImage {
        margin: 0 0 10px 0;
        float: none;
    }

    .productList .productListImage img {
        max-width: 100%;
    }
    
    .productList h3, #content .productList p {
        margin-left: 0;
    }

    #categoryPage .productList p,
    #categoryPage .productList h3,
    #categoryPage .productList h4,
    #categoryPage .productList .viewMoreLink {
        margin-left: 0px;
    }

    #listingPage #content #tabs > ul > li {
        /*margin: 0px 2px 0 0px;*/
    }

    #listingPage #tabs .ui-tabs,
    #listingPage #tabs .ui-tabs-nav li a {
        padding: 6px 5px !important;
    }

    #listingPage #content #tabs > ul {
        padding-top: 0px;
    }

    #listingPage #content #tabs > ul > li {
        display: block;
        /*width: 99%;*/
    }

    #listingPage #tabs .ui-tabs,
    #listingPage #tabs .ui-tabs-nav li {
        top: 0px;
    }

    #listingPage #tabs .ui-tabs-selected,
    #listingPage #tabs .ui-state-active,
    #listingPage #tabs .ui-state-default {
        border-bottom: none !important;
    }

    #homePage #categorySearch select,
    #categoriesPage #categorySearch select,
    #categoryPage #categorySearch select,
    #listingPage #categorySearch select {
        -webkit-appearance: none;
        margin-bottom: 2px;
        height: 30px !important;
        line-height: 18px;
        position: relative;
        width: 100% !important;
        color: #FFF;
        font-size: 15px;
        font-weight: bold;
        padding: 4px 15px;
        border-radius: 4px;
        border: 1px solid #2988c2;
        background: url(/images/backgrounds/white-arrow.png) right 6px no-repeat #27aedf;
        /*
        background-image   : linear-gradient(bottom, rgb(39, 174, 223) 0%, rgb(41, 139, 195) 100%);
        background-image   : -o-linear-gradient(bottom, rgb(39, 174, 223) 0%, rgb(41, 139, 195) 100%);
        background-image   : -moz-linear-gradient(bottom, rgb(39, 174, 223) 0%, rgb(41, 139, 195) 100%);
        background-image   : -webkit-linear-gradient(bottom, rgb(39, 174, 223) 0%, rgb(41, 139, 195) 100%);
        background-image   : -ms-linear-gradient(bottom, rgb(39, 174, 223) 0%, rgb(41, 139, 195) 100%);
        background-image   : -webkit-gradient(linear, left bottom, left top, color-stop(0, rgb(39, 174, 223)), color-stop(1, rgb(41, 139, 195)));
        */
    }

    iframe {
        max-width: 400px;
    }

    #salesBanner {
        height: auto;
    }

    #categorySearch {
        display: none;
    }
}


/* All Mobile Sizes (devices and browser) */

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

    #homePage #headerWrapper,
    #homePage #headerFill,
    #headerWrapper,
    #headerFill,
    #header > .container_24,
    #headerMenu {
        height: auto;
    }

    #header > .container_24 {
        flex-wrap: wrap;
    }

    #header .header_buttons {
        display: none;
    }

    #headerMenu .search-fields {
        flex-wrap: wrap;
    }

    #headerMenu .search-fields select {
        flex-grow: 1;
    }

    #headerMenu .search-fields button {
        overflow: hidden;
    }

    #headerMenu .search-fields > * {
        transition: all 0.2s ease;
        margin-bottom: 0;
    }

    #headerMenu .search-fields.collapsed {

    }

    #headerMenu .search-fields.collapsed .cat_selector,
    #headerMenu .search-fields.collapsed .state_selector,
    #headerMenu .search-fields.collapsed .googleSearchBtn {
        height: 0;
        padding-top: 0;
        padding-bottom: 0;
        margin-top: 0;
    }


    /* FONTS */
    h1, .h1 {
        font-size: 20px;
        line-height: 28px;
        margin-bottom: 10px;
    }

    h2, .h2 {
        font-size: 18px;
        line-height: 24px;
    }

    h3, .h3 {
        font-size: 16px;
        line-height: 22px;
    }

    /* LAYOUT */
    /*
    #homePage .contentHeader,
    .contentHeader {
        background: #fff !important;
    }

    #header .inner {
        padding-left: 0px;
        padding-right: 0px;
    }

    #header .social,
    #header .nav_right {
        display: none;
    }
    */

    #footerSearch.header_search_wrapper {
        bottom: 0;
        right: 70px;
        visibility: visible !important;
    }

    #footerSearch.header_search_wrapper input[type="text"] {
        color: #444;
        background-color: #ffffff;
        box-shadow: inset 2px 2px 4px 0 rgba(0,0,0,0.2);
        padding-right: 40px;
    }

    #footerSearch.header_search_wrapper .cat_selector {
        display: none;
    }

    #footerSearch.header_search_wrapper .googleSearchBtn {
        background: transparent;
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 40px;
        padding: 0;
    }

    #footerSearch.header_search_wrapper .googleSearchBtn:hover {
        background-color: transparent;
    }

    /*
    .topBanner {
        position: absolute;
        margin-top: 50px;
    }

    #navigation {
        right: 10px;
        bottom: -9px;
    }

    #navigation #menu_mobile {
        width: 50px !important;
        color: transparent;
    }

    #navigation::before {
        content: '\f0c9';
        font-family: 'FontAwesome';
        font-size: 18px;
        color: #ffffff;
        position: absolute;
        z-index: 2;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        pointer-events: none;
    }

    #navigation #menu_mobile option {
        color: initial;
    }

    #mainNav {
        display: none;
    }
    */

    #categorySearch {
        /*margin-top: 67px;*/
    }

    .homeStickyContainer {
        display: none;
    }

    #homePage #copy {
        padding-top: 0px !important;
    }

    body.product_view #copy {
        padding-top: 5px !important;
    }

    #homePage #categorySearch select,
    #categoriesPage #categorySearch select,
    #categoryPage #categorySearch select,
    #listingPage #categorySearch select {
        width: 100% !important;
    }

    #content {
        padding-top: 6px;
    }

    #homePage .contentHeader,
    .contentHeader {
        background-position: left 34px;
    }

    #footerSearch.header_search_wrapper > form {
        height: 36px;
        min-width: 0;
    }

    #homePage h1,
    #homePage #copy > p,
    .homeNews img,
    #categoryPage #copy > p {
        display: none;
    }

    .displaying {
        display: none !important;
        margin-bottom: 5px !important;
    }

    #categorySearch,
    .homeNews > div,
    .homeNews > div p {
        margin-bottom: 0px !important;
    }

    .homeNews h2 {}

    .homeNews.omega p {
        margin-bottom: 10px !important;
    }

    #account {
        display: none;
    }

    #loginSearch {
        margin-top: -37px;
    }

    .smallBanner img {
        max-width: 100%;
        max-height: 100%;
        height: auto;
    }

    .controlsHome {
        margin-bottom: 0px;
    }

    .homeTabs {
        margin-top: 15px;
    }

    div.salesBannerOriginal {
      margin-bottom: 30px;
    }

    #footerCategoriesWrapper,
    #footerTagWrapper {
        display: none;
    }

    #footerDetails p {
        font-size: 10px;
        line-height: 14px;
    }


    #footer {
        padding-bottom: 10px;
    }

    #footer > div {
        background: none;
    }

    #footer ul {
        margin: 15px 0;
    }

    #footerDetails .right {
        text-align: left;
    }

    #footerDetails p {
        text-align: left;
    }

    #categoryPage #categorySearch select,
    #listingPage #categorySearch select {
        margin-bottom: 10px !important;
    }

    /* PRODUCT VIEW */
    .ui-tabs .ui-tabs-panel {
        padding: 1em 1em !important;
    }

    #content #tabs > ul {
        padding-top: 0px;
    }

    #listingPage #content #tabs > ul > li {
        width: 100%;
        border: none;
    }

    #listingPage #content #tabs > ul > li {
        margin: 0px 0px 0 0px;
    }

    .ui-corner-all,
    .ui-corner-top,
    .ui-corner-right,
    .ui-corner-tr {
        border-radius: 0px !important;
    }

    body.product_view #headerBanner {
        display: none;
    }

    .product_view_columns .product_content {
        display: flex;
        flex-direction: column;
    }

    #productDetails .additional-question {
        position: relative;
        padding-bottom: 35px;
    }

    #productDetails .additional-question::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 10px;
        width: 100%;
        height: 5px;
        background: transparent url(/images/backgrounds/header-line-bg.gif) 0 0 repeat;
    }

    #productDetails .visitButton {
        margin: 10px auto;
    }

    #productDetails .listingInfoGroup,
    #productDetails .listingInfo {
        width: 100%;
    }

    #productDetails .listingInfo {
        display: flex;
        text-align: left;
    }

    #productDetails .listingInfo span {
        width: 50%;
        min-width: 90px;
        flex-grow: 1;
    }

    #productDetails .listingInfo .label {
        max-width: 130px;
    }

    #productDetails .exportReady img {
        margin-top: 20px;
        width: 100px;
    }

    .form_label,
    .form_required,
    .form_field {
        margin-bottom: 0px;
    }

    #listingPage .grid_16 > hr {
        margin-top: 5px;
        margin-bottom: 5px;
    }

    .PremiumImageStroke {
        margin-bottom: 10px !important;
        box-sizing: border-box;
    }

    .productImages,
    .PremiumImageStroke {
        width: 100%;
    }

    /* BLOG */
    .blogListingThumb {
        display: none;
    }

    .blogListingContainerWImage {
        margin-left: 0px;
    }

    #article-viewPage #copy .pageimageright {
        display: none;
    }

    .blogListingContainerWYoutubeImage {
        margin-left: 0px;
        min-height: 0px;
    }

    #headerBanner.flexslider {
        margin-bottom: 10px;
    }

    #headerBanner.flexslider::after {
        content: '';
        display: block;
        clear: both;
    }

    #headerBanner.flexslider ul li {
        text-align: center;
        height: auto;
    }

    #categorySearch {
        display: none;
    }

    .mobileViewClear {
        display: block !important;
        width: 100% !important;
    }
}


/* Mobile Portrait Size to Mobile Landscape Size (devices and browsers) */

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

    #homePage .contentHeader,
    .contentHeader {
        /*background-position:left 45px;*/
    }

    #headerBanner {
        top: 50px;
    }

    .homebanner_grid {
        grid-template-columns: 1fr;
    }

    .homebanner_search {
        grid-column-end: auto;
    }

    #loginSearch {
        height: 36px;
    }

    #account {
        line-height: 14px;
        padding: 5px 0 0;
        float: left;
    }

    #categorySearch h3 {
        display: none;
    }

    /*
    body.home_page #content {
        padding-top: 65px !important
    }
    */

    #copy.inner {
        padding: 0px;
    }

    /* Category Listings */
    #content .browseCategory.thumbs li {
        width: calc(100% - 20px);
    }

    .jcarousel-container-horizontal {
        display: none !important;
    }

    .productList .productListImage {
        margin: 0 0px 10px 0;
    }

    #categoryPage .productList h3 {
        clear: left;
    }

    #categoryPage .productList p,
    #categoryPage .productList h3,
    #categoryPage .productList h4,
    #categoryPage .productList .viewMoreLink {
        margin-left: 0px;
    }

    #listingPage #content #tabs > ul > li {
        /*margin: 0px 2px 0 0px;*/
    }

    #listingPage #tabs .ui-tabs,
    #listingPage #tabs .ui-tabs-nav li a {
        padding: 6px 5px !important;
    }

    #listingPage content #tabs > ul {
        padding-top: 0px;
    }

    #listingPage #content #tabs > ul > li {
        display: block;
        /*width: 99%;*/
    }

    #listingPage #tabs .ui-tabs,
    #listingPage #tabs .ui-tabs-nav li {
        top: 0px;
    }

    #listingPage #tabs .ui-tabs-selected,
    #listingPage #tabs .ui-state-active,
    #listingPage #tabs .ui-state-default {
        border-bottom: none !important;
    }

    #productDetails .additional-question .button {
        margin-top: 10px;
    }

    #footer {
        padding-bottom: 10px;
    }

    #footer > div {
        background: none;
    }

    #footer .h4 {
        font-size: 20px;
    }

    #footer ul {
        margin: 15px -6px 25px;
        column-width: 120px;
        column-gap: 20px;
        column-count: 2;
    }

    #footer li {
        margin: 0;
        line-height: 1.2;
        display: inline-block;
        width: 100%;
    }

    #footer li a {
        display: inline-block;
        padding: 10px 6px;
    }

    #footerDetails .right {
        text-align: left;
    }

    #footerDetails p {
        text-align: left;
    }

    #homePage #categorySearch select,
    #categoriesPage #categorySearch select,
    #categoryPage #categorySearch select,
    #listingPage #categorySearch select {
        -webkit-appearance: none;
        margin-bottom: 2px;
        height: 30px !important;
        line-height: 18px;
        position: relative;
        width: 100% !important;
        color: #FFF;
        font-size: 15px;
        font-weight: bold;
        padding: 4px 15px;
        border-radius: 4px;
        border: 1px solid #2988c2;
        background: url(/images/backgrounds/white-arrow.png) right 6px no-repeat #27aedf;
        /*background-image   : linear-gradient(bottom, rgb(39, 174, 223) 0%, rgb(41, 139, 195) 100%);
            background-image   : -o-linear-gradient(bottom, rgb(39, 174, 223) 0%, rgb(41, 139, 195) 100%);
            background-image   : -moz-linear-gradient(bottom, rgb(39, 174, 223) 0%, rgb(41, 139, 195) 100%);
            background-image   : -webkit-linear-gradient(bottom, rgb(39, 174, 223) 0%, rgb(41, 139, 195) 100%);
            background-image   : -ms-linear-gradient(bottom, rgb(39, 174, 223) 0%, rgb(41, 139, 195) 100%);
            background-image   : -webkit-gradient(linear, left bottom, left top, color-stop(0, rgb(39, 174, 223)), color-stop(1, rgb(41, 139, 195)));*/
    }

    /*
    .topBanner {
        margin-top: 36px;
    }
    */

    #categorySearch {
        /*margin-top: 50px;*/
    }

    #homePage #copy {
        padding-top: 0px !important;
    }

    iframe {
        max-width: 280px;
    }

    iframe[title^='recaptcha'],
    iframe[title*='recaptcha'] {
        max-width: none;
    }

    #salesBanner {
        height: auto;
    }

    .featuredHomeProducts .smallBanner {
        margin-bottom: 10px;
    }
}
