/*
Theme Name: Porto Child
Theme URI: https://www.portotheme.com/wordpress/porto
Author: P-THEMES
Author URI: https://www.portotheme.com/
Description: Porto Responsive WordPress + eCommerce Theme.
Version: 1.3.0
Template: porto
License: Commercial
License URI: http://themeforest.net/licenses/regular_extended
Tags: woocommerce, corporate, ecommerce, responsive, blue, black, green, white, light, dark, red, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, fixed-layout, responsive-layout, custom-menu, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready
*/

/*************** ADD YOUR CUSTOM CSS HERE  ***************/

.summary-before .labels.shipping-label,
.product-image .labels.shipping-label {
    /*background-color: #91f5fe;
    color: #333;*/
    background-color: #222529;
    top: 0.8em;
    left: auto;
    right: 0.8em;
    font-size: .8571em;
    padding: 0.5833em 0.6333em;
    display: block;
}
.product-image .labels.shipping-label {
    top: auto;
    bottom: 0.8em;
}

/* Free shipping icon */
.free-shipping-icon {
    background-color: #62b959;
    background-image: url(images/shipping-icon.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 2rem auto;
    width: 42px;
    height: 42px;
    border-radius: 42px;
    color: #62b959;
    text-align: left;
    padding-left: 10px;
    line-height: 42px;
    font-size: 10px;
    font-weight: bold;
    position: absolute;
    top: 2rem;
    left: 0.8em;
    z-index: 5;
}
.single-product .free-shipping-icon {
    right: 0.8em;
    left: auto;
    top: 2.6rem;
}

/* Adjustments */
.cart-total .order-total td small,
.woocommerce-checkout-review-order-table .order-total td small {
    white-space: nowrap;
}

/* Always show address fields */
#billing_address_1_field,
#billing_postcode_field,
#billing_city_field,
#shipping_address_1_field,
#shipping_postcode_field,
#shipping_city_field {
    display: block !important;
}

/* Style fixes */
#side-nav-panel .accordion-menu li.menu-item.active>a,
#side-nav-panel .accordion-menu li.menu-item:hover>a,
#side-nav-panel .menu-custom-block a:hover {
    background-color: #2e3237 !important;
}

/* Hide top header for smaller screens */
@media (max-width: 991px) {
    #header .header-top {
        display: none !important;
    }
}

/* Hide phone in top header */
#header .header-top .nav-top li:not(.nav-item.email) {
    display: none !important;
}

/* Hide BNPL for LV and LT */
.lang-lv .payment_methods li.payment_method_wc_montonio_bnpl,
.lang-lt-lt .payment_methods li.payment_method_wc_montonio_bnpl,
.lang-lv .payment_methods li.payment_method_wc_montonio_hire_purchase,
.lang-lt-lt .payment_methods li.payment_method_wc_montonio_hire_purchase {
    display: none !important;
}

/* Hide country selector */
#billing_country_field,
#shipping_country_field {
    display: none !important;
}

/* Two column fields for checkout */
#billing_postcode_field,
#shipping_postcode_field {
    float: left;
    width: 50%;
    padding-right: 10px;
}
#billing_city_field,
#shipping_city_field {
    float: right;
    width: 50%;
    padding-left: 10px;
}
@media (max-width: 767px) {
    #billing_postcode_field,
    #shipping_postcode_field,
    #billing_city_field,
    #shipping_city_field {
        float: none;
        width: 100%;
        padding-right: 0;
    }
}

/* Language based logo */
body.lang-lv #header .logo,
body.lang-lt-lt #header .logo {
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    max-width: 256px;
    min-height: 96px;
}
body.lang-lv #header .logo {
    background-image: url(images/logo-lv.png);
}
body.lang-lt-lt #header .logo {
    background-image: url(images/logo-lt.png);
}
body.lang-lv #header .logo img,
body.lang-lt-lt #header .logo img {
    visibility: hidden;
}
@media (max-width: 991px) {
    body.lang-lv #header .logo,
    body.lang-lt-lt #header .logo {
        min-height: 48px;
        min-width: calc(100% - 32px);
        background-position: left center;
    }
}
body.lang-lv #header.sticky-header .logo,
body.lang-lt-lt #header.sticky-header .logo {
    max-width: 156px;
    min-height: 50px;
}

@media not all, only screen and (min-resolution: 1.5dppx), only screen and (min-resolution: 144dpi) {
    #header .logo .retina-logo, #header.sticky-header .logo .sticky-retina-logo {
        display: none;
    }
    #header .logo .retina-logo, #header.sticky-header .logo {
        min-width: calc(100% - 32px);
    }
}

/* Hide languages on sites */
body.lang-et .mega-menu.view-switcher .popup .sub-menu li.menu-item:nth-child(2),
body.lang-et .mega-menu.view-switcher .popup .sub-menu li.menu-item:nth-child(3),
body.lang-et .mega-menu.view-switcher .popup .sub-menu li.menu-item:nth-child(4),
body.lang-lv .mega-menu.view-switcher .popup .sub-menu li.menu-item:nth-child(1),
body.lang-lv .mega-menu.view-switcher .popup .sub-menu li.menu-item:nth-child(3),
body.lang-lv .mega-menu.view-switcher .popup .sub-menu li.menu-item:nth-child(4),
body.lang-lt-lt .mega-menu.view-switcher .popup .sub-menu li.menu-item:nth-child(1),
body.lang-lt-lt .mega-menu.view-switcher .popup .sub-menu li.menu-item:nth-child(3),
body.lang-lt-lt .mega-menu.view-switcher .popup .sub-menu li.menu-item:nth-child(4),
body.lang-fi #header .porto-view-switcher {
    display: none !important;
}
