/*
Theme Name: Salient Child Theme
Theme URI: http://mysite.com/
Description: This is a custom child theme for Salient
Author: JETPULP
Author URI: http://mysite.com/
Template: salient
Version: 0.1
*/

/* Variables */
:root {
    --color-red: #ff0000;
    --color-black: #000000;
    --color-gray-bg: #f7f7f7;
    --color-white: #fff;
    --font-theme: 'Work sans', sans-serif;
}

/* PAGE & SINGLE POSTS : link behavior */
.page .post-area a,
.single-post .post-area a {
    text-decoration: underline;
}

.page .post-area a:hover,
.single-post .post-area a:hover {
    color: var(--color-red);
}

/* Theme fixes */
@media only screen and (max-width: 1000px) and (min-width: 1px) {
    #ajax-content-wrap .container-wrap {
        z-index: 10;
    }
}

/* HEADER : Logo */
h1.logo-h1 {
    margin-bottom: 0;
}

@media only screen and (min-width: 1201px) and (max-width: 1439px) {
    #header-outer #logo img {
        height: 50px;
    }

    #header-outer[data-lhe="animated_underline"] #top nav > ul > li > a {
        margin-right: 10px;
        margin-left: 10px;
    }
}

/* Menu item hover effect */
.menu-item.no-hover:hover > a,
.menu-item.no-hover > a:hover {
    cursor: default;
    pointer-events: none;
}

/* Signature JETPULP */
.signature-jetpulp {
    display: inline-block;
    line-height: 1.5;
    text-align: right;
}

.signature-jetpulp .jetpulp-svg {
    width: 20px;
    vertical-align: middle;
}

.signature-jetpulp .jetpulp-icon {
    fill: #fff;
    transition: fill .2s ease-out;
}

/* Signature is a link */
a.signature-jetpulp {
    transition: color .2s ease-out;
}

a.signature-jetpulp:hover .jetpulp-icon {
    fill: #ffda04;
}

/* Product */
.woocommerce div.product .summary p.price {
    width: 100%;
}

.woocommerce .product .summary .woocommerce-product-details__short-description a,
.nectar-quick-view-box .product .summary .woocommerce-product-details__short-description a {
    text-decoration: underline;
    color: var(--color-red);
}

.woocommerce .product .summary .woocommerce-product-details__short-description a:hover,
.nectar-quick-view-box .product .summary .woocommerce-product-details__short-description a:hover {
    text-decoration: none;
    color: var(--color-black);
}

.nectar-recent-post-slide .recent-post-container .inner-wrap > .grav-wrap {
    display: none;
}

body.material #header-outer:not([data-format=left-header]) #top nav > .buttons > li {
    margin: 0 10px;
}

.woocommerce .product_meta .posted_in,
.nectar-quick-view-box .product_meta .posted_in {
    display: none;
}

/* General */
#logo {
    display: block;
}

#header-secondary-outer .jetpulp-preheader-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

#header-secondary-outer .nectar-center-text {
    max-width: unset !important;
}

/* HEADER - MENU : Shop tag */
#header-outer .sf-menu li ul .menu-item-object-product.menu-shop a .menu-title-text,
.off-canvas-menu-container .sub-menu .menu-shop a .menu-title-text {
    margin-right: 5px;
}

#header-outer .sf-menu li ul .menu-item-object-product.menu-shop a::after,
.off-canvas-menu-container .sub-menu .menu-shop a::after {
    content: 'Vente web';
    background: #000;
    padding: 3px 5px;
    z-index: 9;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.off-canvas-menu-container .sub-menu .menu-shop a::before {
    outline: none;
    margin-left: 0;
}

/* HEADER - MENU : Third level submenu */
.sf-menu > li ul {
    width: 25em;
}

.sf-menu li .sfHover ul,
.sf-menu li li:hover ul,
.sf-menu li li ul {
    margin-top: 0;
    left: 25em;
}

.sf-menu li.megamenu li ul {
    padding-top: 0;
}

#header-secondary-outer .sf-menu li li .on-left-side,
#header-secondary-outer sf-menu li .sfHover .on-left-side,
.sf-menu li .sfHover .on-left-side, .sf-menu li li .on-left-side {
    right: 25em;
}

body .container-wrap .before-footer input[type=submit] {
    background: #5E5E5E;
}

#header-outer[data-header-button_style="shadow_hover_scale"] #top nav > ul > li[class*="button_solid_color"] > a:before {
    padding: 14px 0;
}

#header-outer[data-lhe="animated_underline"]:not([data-format="left-header"]) #top nav > ul > li:not([class*="button_"]) > a .menu-title-text:after {
    position: relative;
}

body .nectar-social.fixed {
    display: none;
}

.jetpulp-reassurance .iwt-icon img {
    filter: invert(100%);
}

body .nectar-global-section.before-footer {
    padding-top: 0 !important; /* have to override salient injections */
}

body .blog-recent[data-style=list_featured_first_row] .featured > .img-thumbnail {
    border-radius: 0;
}

/* PRODUCT : Variations (configurator) */
.woocommerce .wc-product-variations {
    display: flex;
    flex-wrap: wrap;
    padding: 45px 20px;
    border: 1px solid var(--color-black);
}

.woocommerce .wc-product-variations .cell {
    width: 30%;
    margin-bottom: 20px;
    margin-right: 3%;
}

/* Select : big selectors to override existing styles */
body[data-fancy-form-rcs="1"] .variations .wc-product-variations .cell .fancy-select-wrap,
body[data-fancy-form-rcs="1"] .variations .wc-product-variations .cell .selection,
body[data-fancy-form-rcs="1"] .variations .wc-product-variations .cell .select2,
body[data-fancy-form-rcs="1"] .variations .wc-product-variations .cell .select2-container--default .select2-selection--single {
    width: 100% !important;
    padding: 0;
}

.woocommerce div.product form.cart .reset_variations {
    position: absolute;
    bottom: 20px;
    left: 20px;
    margin: 20px 0 0 0;
    font-size: 16px;
    font-weight: 500;
    text-decoration: underline;
}

/* PRODUCT : Responsive configurator */
/* Product Small desktop */
@media screen and (max-width: 1440px) {
    .woocommerce .wc-product-variations .cell {
        width: 45%;
        margin-right: 5%;
    }
}

/* Product Small desktop */
@media screen and (max-width: 1280px) {
    .woocommerce .wc-product-variations .cell {
        width: 100%;
        margin-right: 0;
    }
}

/* Product Tablet */
@media screen and (max-width: 999px) {
    .woocommerce .wc-product-variations .cell {
        width: 45%;
        margin-right: 5%;
    }
}

/* Product mobile */
@media screen and (max-width: 767px) {
    .woocommerce .wc-product-variations .cell {
        width: 100%;
        margin-right: 0;
    }
}

/* PRODUCT : Tabs & sections responsive */
.woocommerce-tabs[data-tab-style=fullwidth_stacked] .wc-tab .hidden-tab-heading {
    display: block;
    margin-bottom: 30px;
}

@media only screen and (min-width: 1000px) {
    .woocommerce div.product .woocommerce-tabs[data-tab-style=fullwidth_stacked],
    .single-product [data-tab-pos=fullwidth_stacked] .products.related,
    .single-product [data-tab-pos=fullwidth_stacked] .products.upsells,
    .woocommerce #ajax-content-wrap .woocommerce-tabs[data-tab-style=fullwidth_stacked] > div:not(.tab-container) {
        padding: 40px 0;
    }
}

/* Page list */
.woocommerce.archive #page-header-wrap,
.woocommerce.archive #page-header-bg {
    max-height: 160px;
    background-color: #eee !important; /* have to override woocommerce styles */
}

/* Responsive */
@media screen and (max-width: 999px) {
    /* Override menu items styles */
    #header-secondary-outer .jetpulp-preheader-row {
        justify-content: center;
    }
}

@media screen and (min-width: 1001px) and (max-width: 1200px) {
    /* Override ugly menu items selector */
    #header-outer[data-lhe="animated_underline"] header#top nav > ul > li[class*="button_solid_color"] > a {
        padding: 0 10px;
        min-width: 130px;
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    .mobile-none { /* Helper class */
        display: none;
    }

    .jetpulp-main-slider .swiper-slide h2 {
        font-size: 27px !important;
    }

    .jetpulp-main-slider .swiper-slide p {
        font-size: 16px !important;
    }

    .jetpulp-preheader-row a span {
        font-size: 17px !important;
    }

    .woocommerce.archive #page-header-wrap,
    .woocommerce.archive #page-header-bg {
        max-height: unset;
    }
}

@media screen and (max-width: 480px) {
    .wpb_row.full-width-content .woocommerce .nectar-woo-flickity,
    body .wpb_row:not(.full-width-content) .woocommerce .nectar-woo-flickity:not([data-controls=arrows-overlaid]) {
        padding-bottom: 4px;
    }

    .jetpulp-contact-banner .vc_col-sm-2.wpb_column {
        margin: 0 auto;
        width: 100% !important;
    }
}

/* WOOCOMMERCE : product category */
.tax-product_cat .term-description {
    margin-bottom: 30px;
}

.tax-product_cat .post-area .term-description h2 {
    font-size: 36px;
    line-height: 1.4;
}

.tax-product_cat .post-area .term-description h3 {
    font-size: 32px;
    line-height: 1.4;
}

.tax-product_cat .post-area .term-description h4 {
    font-size: 28px;
    line-height: 1.4;
}

.tax-product_cat .term-description p {
    padding-bottom: 10px;
    line-height: 1.4;
}

/* GRAVITY FORM : Select 2 */
.gform_wrapper.gravity-theme .ginput_container_address .fancy-select-wrap span {
    flex: 1;
    padding-left: 0;
    padding-right: 0;
}

body[data-fancy-form-rcs="1"] .gform_wrapper .select2-container--default .select2-selection--single {
    padding: 7px;
}

body[data-fancy-form-rcs="1"] .gform_wrapper .fancy-select-wrap {
    padding-top: 0;
}

body[data-fancy-form-rcs="1"] .gform_wrapper .select2 {
    width: 100% !important;
}

body[data-fancy-form-rcs="1"] .gform_wrapper .fancy-select-wrap label {
    color: var(--color-black) !important;
}

.gform_wrapper label.gfield_label {
    margin-bottom: 5px !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
}

/* GRAVITY FORM : Address fields */
@media (min-width: 641px) {
    .gform_wrapper.gravity-theme .ginput_container_address span:not(.ginput_full):not(:last-of-type):not(:nth-last-of-type(2)),
    .gform_wrapper.gravity-theme .ginput_full:not(:last-of-type) {
        margin-bottom: 0;
    }
}

/* NECTAR SLIDER : custom align when only text / image */
.jp-slider-align .nectar-flickity.nectar-carousel .flickity-slider .inner-wrap {
    display: flex;
    flex-direction: column;
}

.jp-slider-align .nectar-flickity.nectar-carousel .flickity-slider .img-with-aniamtion-wrap {
    margin-top: auto !important; /* Override inline style */
}

/* NECTAR COLUMNS : Align images on bottom (only works with Single image bloc) */
.jp-columns-align.vc_row-o-equal-height .wpb_wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.jp-columns-align.vc_row-o-equal-height .img-with-aniamtion-wrap {
    margin-top: auto !important; /* Override inline style */
}

/* SINGLE POST : Article metas */
.single #page-header-bg #single-below-header > .meta-date {
    padding-right: 10px;
    margin-right: 10px;
    border-right: 1px solid var(--color-white);
}

.single #page-header-bg #single-below-header > span {
    line-height: 1.2;
}

/* NECTAR : Category grid */
body.material .main-content .nectar-category-grid .bg-overlay,
body.material .main-content .nectar-category-grid .nectar-category-grid-item .inner {
    border-radius: 0;
}

/* SIDEBAR : Title, apply H4 styles */
.sidebar-title {
    padding-bottom: 0;
    letter-spacing: 0;
    font-family: var(--font-theme);
    font-size: 16px;
    line-height: 22px;
    font-weight: 400;
}

/* PRODUCT SLIDER : legende  */
.single-product .pswp__caption__center {
    display: none;
}

/* Single Product Title */
.single-product div.product h1.product_title,
.nectar-shop-header .page-title {
    text-transform: none;
}

/* CTA Continue shopping */
a.button-continue-shopping.close-cart::before {
    display: none !important; /* overide .close-cart */
}

a.button-continue-shopping {
    color: #fff !important; /* overide .close-cart */
    margin-top: .5rem !important; /* overide .close-cart */
}