/*
Theme Name: Blocksy Child
Theme URI: https://creativethemes.com/blocksy/
Template: blocksy
Author: CreativeThemes
Author URI: https://creativethemes.com



*/

a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart {
    height: 54px;
}


[data-products] .add_to_cart_button.added {
    display: inline-flex;
}

.quantity[data-type=type-2] {
    width: 100px;
}

.ct-woo-card-actions form.cart {
    display: flex;
    justify-content: space-between;
}

[data-sidebar]>aside {
    background: #fff;
    border-radius: 25px;
    padding: 25px;
}

.custom-added-to-cart-message {
    display: none;
    background-color: rgba(0, 128, 0, 0.618);
    color: white;
    padding: 10px;
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 9999;
    border-radius: 5px;
}



/* ============================================
IKS MENU
   ============================================ */
body .iksm-term--child .iksm-term__inner {
    background: rgb(228 230 231);
}

.iksm-876 .iksm-terms-tree--children>.iksm-terms-tree__inner {
    margin-left: 10px;
}


.ct-widget.widget_block.widget_text {
    margin-bottom: 0px;
}

p {
    margin-bottom: 10px;
}

img.attachment-woocommerce_single.size-woocommerce_single,
.ct-media-container picture,
figure.ct-media-container img {
    height: 500px;
    object-fit: contain;
}


.product img.attachment-woocommerce_archive_thumbnail.size-woocommerce_archive_thumbnail.wp-post-image,
.products img.attachment-woocommerce_archive_thumbnail.size-woocommerce_archive_thumbnail,
.products img.wp-post-image {
    height: 250px;
    object-fit: contain;
}

[data-products] .woocommerce-loop-product__title,
[data-products] .woocommerce-loop-category__title {
    text-align: center;
    font-size: 14px;
}

button#toggle-sidebar {
    margin: 0 auto;
    display: block;
    margin-bottom: 20px;
    width: 100%;
}




[data-products] .product .price {
    text-align: center;
    font-size: 20px;
}


[class*=ct-woocommerce] .shop_table [class*=product-thumbnail] img {
    border-radius: 2px;
    height: 50px;
    object-fit: contain;
}


.bapf_sfilter .bapf_body .mCSB_container>ul,
.bapf_sfilter .bapf_body>ul {
    padding-left: 0;
}


.bapf_ckbox_greychck input[type=checkbox] {

    border: 1px solid var(--theme-palette-color-6);
    background-color: var(--theme-palette-color-6);

}


.bapf_sfilter.bapf_button_berocket .bapf_button {
    background-color: var(--theme-button-background-initial-color);
    transition: .3s;
    border-radius: 5px;
    font-size: 13px;
    font-family: var(--theme-button-font-family, var(--theme-font-family));
}


.bapf_sfilter.bapf_button_berocket .bapf_button:hover {
    background-color: var(--theme-button-background-hover-color);
}

.bapf_head h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--theme-heading-color, var(--theme-heading-3-color, var(--theme-headings-color)))
}

.bapf_head {
    width: fit-content;
}

.select2-container--default .select2-results>.select2-results__options {
    max-height: 300px;
}

.divi_slider_class .bapf_slidr_all .bapf_slidr_main.ui-slider .ui-slider-range {
    background: var(--theme-button-background-initial-color);
}



#close-sidebar {
    display: none;
}


.woocommerce-cart .woocommerce-shipping-totals.shipping {
    display: none;
}


.ct-woo-card-actions form.cart {
    gap: 10px;
}

a.added_to_cart.wc-forward {
    display: none;
}



.woocommerce-checkout-payment .place-order .woocommerce-terms-and-conditions-wrapper,
table.shop_table {
    margin-bottom: 10px;
}

.woocommerce-checkout-payment .place-order {
    margin-top: 10px;
}

/*Цвет статусов остатков*/

/* Закончился */
.ended {
    color: rgb(206, 55, 55)
}

/* Заканчивается */
.finish {
    color: rgb(245, 173, 41);
}

/* Мало */
.few {
    color: rgb(224, 224, 31);

}

/* Много */
.many {
    color: rgb(31, 207, 31);
}

p.custom_stock {
    font-weight: 600;
}

.stock {
    display: none;
}

.products p.custom_stock {
    text-align: center;
}


/* ============================================
   Корзина
   ============================================ */
button[name="update_cart"] {
    display: none !important;
}

/*Личный кабинет*/
/* .address_book.shipping_address_book {
    display: none;
} */



/* ============================================
   Архив товаров
   ============================================ */
a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart.ct-cart-actions.added {
    background: rgb(16, 196, 76) !important;
}

[data-products=type-1] .ct-woo-card-actions[data-alignment=equal] {
	justify-content:center;
}

/*start responsive*/
@media (max-width: 768px) {

    /* .iksm-term__link {
        font-size: 11px !important;
    } */

    img.attachment-woocommerce_single.size-woocommerce_single {
        height: 300px;
    }

    h1.product_title.entry-title {
        font-size: 18px;
    }

    .ct-woo-card-actions form.cart {
        flex-direction: column;
    }

    .product img.attachment-woocommerce_archive_thumbnail.size-woocommerce_archive_thumbnail.wp-post-image,
    .products img.attachment-woocommerce_archive_thumbnail.size-woocommerce_archive_thumbnail {
        height: 120px;

    }

    .quantity[data-type=type-2] {
        width: 100%;
    }

    [data-products] .woocommerce-loop-product__title,
    [data-products] .woocommerce-loop-category__title {
        font-size: 12px;
    }

}


@media screen and (min-width:1000px) {
    button#toggle-sidebar {
        display: none;
    }
}


@media screen and (max-width:1000px) {
    #sidebar {
        position: fixed;
        left: -300px;
        top: 0;
        height: 100%;
        width: 250px;
        background: white;
        transition: left 0.3s;
    }

    #sidebar.open {
        left: 0;
        z-index: 99;
        width: 100%;
    }

    #close-sidebar {
        position: absolute;
        top: 0px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        border-radius: 5px;
        padding: 5px 10px;
        font-size: 12px;
        z-index: 99;
        display: block;
    }



    [data-sidebar]>aside {
        border-radius: 0;
    }

    header.woocommerce-products-header {
        position: sticky;
        /* top: 49px; */
        z-index: 99;
    }
}

#ship-to-different-address,
#shipping_address_book_field>label[for="shipping_address_book_shipping"] {
    display: none !important;
}

.ct-customer-details .col-2 {
    margin-top: 0 !important;
}

.woocommerce-additional-fields__field-wrapper {
    margin-top: 20px;
}

/* .woocommerce-checkout #billing_first_name_field, .woocommerce-checkout #billing_last_name_field, .woocommerce-checkout #billing_inn_field {
	display: none !important;
} */

.addresses.address-book,
.address_book.shipping_address_book {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.address_book.shipping_address_book {
    margin-top: 30px;
}

.woocommerce-account .address_book header {
    border: none !important;
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin: 0;
}

.wc-address-book-add-new-address.add-new-address {
    padding: 0;
}

.wc-address-book-address {
    padding: 1.5em;
    border-radius: 5px;
    border: 1px dashed var(--theme-border-color);
}


.menu_login {
    display: grid;
    align-items: end;
    grid-template-columns: repeat(auto-fit, minmax(150px, auto));
    column-gap: 40px;
    row-gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
    text-align: center;
}

.custom-link-container a {
    font-weight: 600;
    font-size: 18px;
}

/* Конец Страница авторизации */

@media(max-width:767px) {
    .wc-address-book-meta {
        font-size: 12px;
    }
}

#billing_country_field,
#shipping_country_field {
    display: none !important;
}

.woocommerce-shipping-fields:before {
    content: 'Сохранённые адреса доставки';
    display: block;
    width: 100%;
    font-size: 15px;
    margin: 0 0 0.5em 0;
    font-weight: 500;
}

input[readonly="readonly"] {
    background: #eeeeee !important;
    border-color: #e1e8ed !important;
}

input[readonly="readonly"]:hover {
    cursor: not-allowed;
}

.wc-address-book-delete,
.wc-address-book-add-new-address.add-new-address,
#customer_details #shipping_address_1_field,
#shipping_address_book_add_new,
label[for="shipping_address_book_add_new"] {
    display: none !important;
}

.login-to-see-prices,
.product .price>div {
    font-size: 16px !important;
    line-height: 20px !important;
}

.ui-datepicker {
    background: white;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.ui-datepicker-header {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 10px;
}

.ui-datepicker-header .ui-datepicker-next {
    order: 2;
}