/*
Theme Name:    Electro Child
Theme URI:     https://themeforest.net/item/electro-electronics-store-woocommerce-theme/15720624
Description:   This is the child theme of Electro
Author:        MadrasThemes
Author URI:    https://madrasthemes.com/
Template:      electro
Version:       3.7.0
License:       GNU General Public License v2 or later
License URI:   http://www.gnu.org/licenses/gpl-2.0.html
Tags:          light, dark, two-columns, right-sidebar, responsive-layout
Text Domain:   electro-child
*/


/* =========================================================
   FOXMART CUSTOM STYLES
   ========================================================= */


/* Checkout */
.woocommerce-checkout h3{
    display: none;
}


/* WPML */
.menu-item-wpml-ls-65-uk a,
.menu-item-wpml-ls-65-ru a{
    padding: 20px !important;
}


/* Footer */
.desktop-footer .footer-newsletter .footer-newsletter-inner{
    align-items: center;
}

.footer-social-icons .social-icons>li>a{
    margin-left: 0 !important;
    margin-right: 20px;
}

footer a{
    color: #333e48;
}

.footer-payment-logo .card-item>img{
    width: 80px;
    margin-top: 8px;
}


/* Comments */
#commentform p{
    padding-left: 0;
}


/* Media widget */
#media_image-4 img{
    height: 30px;
    width: 120px;
    margin: 15px auto;
}


/* Customer login */
.customer-login-form{
    padding: 0 15px;
}


/* General labels */
label{
    margin-bottom: 0;
}


/* Products */
.products>.product:hover .product-inner{
    position: relative;
}

.owl-item>.product .product-thumbnail>img{
    height: 140px;
    object-fit: contain;
}


/* Layered navigation */
.woocommerce-widget-layered-nav-list__item.wc-layered-nav-term.woocommerce-widget-layered-nav-list__item--chosen.chosen a::before{
    content: url(/wp-content/themes/electro-child/img/check.png);
    position: absolute;
    top: 9px;
    left: 0;
}

.widget_layered_nav ul li>a{
    position: relative;
    padding-left: 30px;
}

.widget_layered_nav ul li>a::before{
    content: url(/wp-content/themes/electro-child/img/check-no.png);
    position: absolute;
    top: 9px;
    left: 0;
}


/* WPForms */
div.wpforms-container-full{
    margin-bottom: 0 !important;
}

#wpforms-form-1696{
    display: flex;
}

div.wpforms-container-full.ec-newsletter-form .wpforms-form .wpforms-field-container{
    flex-basis: 0;
    flex-grow: 1;
}

#wpforms-form-1696 input[type=email]{
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    background-color: #fff;
    border: 0;
    height: 41px;
    padding: 0.734em 2em;
    border-top-left-radius: 1.571em;
    border-bottom-left-radius: 1.571em;
    max-width: 100%;
}

#wpforms-form-1696 button[type=submit]{
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    padding: 0.715em 2.134em;
    background-color: #333e48;
    color: #fff;
    font-weight: 400;
    line-height: 1.5;
    border-width: 0;
}


/* Account */
.my-account{
    display: none;
}

#menu-top-ru-2 ul{
    padding-left: 0;
}


/* Handheld footer */
.handheld-footer .handheld-footer-bar .footer-call-us{
    max-width: 210px;
    text-align: center;
}


/* =========================================================
   CHECKOUT HEADINGS
   ========================================================= */

.foxmart-shipping-heading,
.foxmart-payment-title{
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: #333e48;
}

.foxmart-shipping-heading{
    margin: 0 0 16px;
}

.foxmart-payment-title{
    margin: 22px 0 14px;
}


/* =========================================================
   SHIPPING
   ========================================================= */

#foxmart-shipping-position{
    width: 100%;
    margin: 0 0 28px;
}

/* Прибираємо старі стилі Electro для span всередині label */
#foxmart-shipping-position #shipping_method li label > span{
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline !important;
}

/* Список способів доставки */
#foxmart-shipping-position #shipping_method{
    display: flex;
    width: 100%;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Кожна кнопка */
#foxmart-shipping-position #shipping_method li{
    flex: 1 1 0;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
    position: relative;
}

/* Прибираємо стандартний radio */
#foxmart-shipping-position #shipping_method input[type="radio"]{
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

/* Кнопка */
#foxmart-shipping-position #shipping_method label{
    display: flex !important;
    width: 100%;
    min-height: 54px;

    align-items: center;
    justify-content: center;

    margin: 0 !important;
    padding: 10px 20px !important;

    border: 1px solid #d7d7d7;
    border-radius: 30px;

    background: #fff;
    color: #333e48;

    font-size: 15px;
    font-weight: 400;
    line-height: 1.25;

    text-align: center;
    white-space: normal;

    cursor: pointer;

    box-sizing: border-box;

    transition:
        border-color .2s ease,
        background-color .2s ease,
        box-shadow .2s ease,
        color .2s ease;
}

/* Hover */
#foxmart-shipping-position #shipping_method label:hover{
    border-color: #e9a23b;
}

/* Активна доставка */
#foxmart-shipping-position #shipping_method input[type="radio"]:checked + label{
    border-color: #e9a23b;
    background: #fff9ef;
    box-shadow: inset 0 0 0 1px #e9a23b;
}

/* Focus */
#foxmart-shipping-position #shipping_method input[type="radio"]:focus + label{
    box-shadow: 0 0 0 3px rgba(233,162,59,.15);
}


/* =========================================================
   HIDE SHIPPING IN ORDER REVIEW
   ========================================================= */

.woocommerce-checkout-review-order-table
tr.woocommerce-shipping-totals.shipping{
    display: none !important;
}


/* =========================================================
   PAYMENT
   ========================================================= */

.woocommerce-checkout #payment ul.payment_methods{
    margin-top: 0;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px){

    .site-header{
        border-bottom: none;
    }

    #place_order{
        font-size: 14px !important;
    }

    .home-v1-da-block{
        display: none;
    }


    /* Checkout headings */

    .foxmart-shipping-heading,
    .foxmart-payment-title{
        font-size: 17px;
        font-weight: 600;
    }

    .foxmart-shipping-heading{
        margin-bottom: 12px;
    }

    .foxmart-payment-title{
        margin: 18px 0 12px;
    }


    /* Shipping */

    #foxmart-shipping-position{
        margin-bottom: 22px;
    }

    #foxmart-shipping-position #shipping_method{
        flex-direction: column;
        gap: 9px;
    }

    #foxmart-shipping-position #shipping_method li{
        width: 100%;
        flex: 0 0 auto;
    }

    #foxmart-shipping-position #shipping_method label{
        min-height: 48px;

        justify-content: center;

        padding: 10px 16px !important;

        border-radius: 25px;

        font-size: 14px;
        text-align: center;
    }


    /* =====================================================
       WooCommerce product tabs - mobile
       ===================================================== */

    .woocommerce-tabs ul.tabs.wc-tabs{
        display: flex !important;
        justify-content: flex-start !important;
        align-items: flex-end !important;
        gap: 18px !important;

        padding: 0 !important;
        margin: 0 0 20px !important;

        overflow-x: auto;
        overflow-y: hidden;

        white-space: nowrap;

        border-bottom: 1px solid #d9d9d9 !important;

        scrollbar-width: none;
        -ms-overflow-style: none;

        background: transparent !important;
    }

    .woocommerce-tabs ul.tabs.wc-tabs::-webkit-scrollbar{
        display: none;
    }

    .woocommerce-tabs ul.tabs.wc-tabs:before,
    .woocommerce-tabs ul.tabs.wc-tabs:after,
    .woocommerce-tabs ul.tabs.wc-tabs li:before,
    .woocommerce-tabs ul.tabs.wc-tabs li:after,
    .woocommerce-tabs ul.tabs.wc-tabs li a:before,
    .woocommerce-tabs ul.tabs.wc-tabs li a:after{
        content: none !important;
        display: none !important;
    }

    .woocommerce-tabs ul.tabs.wc-tabs li{
        flex: 0 0 auto !important;

        width: auto !important;
        min-width: auto !important;

        margin: 0 !important;
        padding: 0 !important;

        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;

        text-align: center !important;
    }

    .woocommerce-tabs ul.tabs.wc-tabs li a{
        display: block !important;

        padding: 0 0 12px !important;

        font-size: 18px !important;
        font-weight: 400 !important;
        line-height: 1.2 !important;

        white-space: nowrap;

        border: 0 !important;
        border-bottom: 3px solid transparent !important;

        box-shadow: none !important;
        background: transparent !important;
    }

    .woocommerce-tabs ul.tabs.wc-tabs li.active a{
        border-bottom: 3px solid #f6a623 !important;
        box-shadow: none !important;
    }
}

/* =========================================================
   FOXMART - ЛОГО РОЗСТРОЧКИ PLATON
   ========================================================= */

.payment_method_platononline > label{
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
}

/* Наш логотип Mono + Privat + A-Bank */
.payment_method_platononline > label img.foxmart-installment-banks{
    width: 290px !important;
    max-width: 290px !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 auto !important;
    object-fit: contain !important;
    object-position: left center !important;
}

/* Platon */
.payment_method_platononline > label img.doneby{
    display: block !important;

    width: auto !important;
    max-width: none !important;

    height: 28px !important;
    max-height: 28px !important;

    margin: 0 0 0 20px !important;
    padding: 0 !important;

    flex: 0 0 auto !important;
}


/* ========================
   MOBILE
   ======================== */

@media (max-width: 768px){

    .payment_method_platononline > label img.foxmart-installment-banks{
        width: 220px !important;
        max-width: 220px !important;
        height: auto !important;
        max-height: none !important;
    }
}

    .payment_method_platononline > label img.doneby{
        height: 22px !important;
        max-height: 22px !important;
        margin-left: 10px !important;
    }

/* Посилання на правила / privacy policy у checkout */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a{
    color: #d98a1d !important;
    font-weight: 500;
    text-decoration: none;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a:hover{
    color: #b96f0d !important;
    text-decoration: underline;
}
/* =========================================================
   PRIVACY POLICY POPUP
   ========================================================= */

.foxmart-privacy-popup{
    color: #d98a1d !important;
    font-weight: 600;
    text-decoration: none;
}

.foxmart-privacy-popup:hover{
    color: #b96f0d !important;
    text-decoration: underline;
}


/* Modal */

.foxmart-privacy-modal{
    position: fixed;
    inset: 0;
    z-index: 999999;

    display: none;
}

.foxmart-privacy-modal.is-open{
    display: block;
}


/* Затемнення */

.foxmart-privacy-overlay{
    position: absolute;
    inset: 0;

    background: rgba(0,0,0,.45);
}


/* Вікно */

.foxmart-privacy-window{
    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: min(850px, calc(100% - 40px));
    max-height: 85vh;

    background: #fff;

    border-radius: 12px;

    box-shadow:
        0 20px 60px rgba(0,0,0,.22);

    overflow: hidden;
}


/* Вміст */

.foxmart-privacy-content{
    padding: 35px 40px;

    max-height: 85vh;
    overflow-y: auto;

    color: #333e48;

    font-size: 14px;
    line-height: 1.65;
}


/* Закрити */

.foxmart-privacy-close{
    position: absolute;

    top: 10px;
    right: 14px;

    z-index: 5;

    width: 36px;
    height: 36px;

    padding: 0;

    border: 0;
    background: transparent;

    color: #333e48;

    font-size: 30px;
    line-height: 36px;

    cursor: pointer;
}

.foxmart-privacy-close:hover{
    color: #d98a1d;
}


/* Забороняємо прокрутку сторінки під popup */

body.foxmart-modal-open{
    overflow: hidden;
}


/* Mobile */

@media (max-width: 768px){

    .foxmart-privacy-window{
        width: calc(100% - 24px);
        max-height: 88vh;

        border-radius: 10px;
    }

    .foxmart-privacy-content{
        padding: 30px 20px 25px;

        max-height: 88vh;

        font-size: 14px;
    }

}