/*
Theme Name: OceanWP Child
Theme URI: https://oceanwp.org/
Description: OceanWP WordPress theme example child theme.
Author: Nick
Author URI: https://oceanwp.org/
Template: oceanwp
Version: 1.0
*/

/* Parent stylesheet should be loaded from functions.php not using @import */

/* Жирные названия в архиве товаров */
.woocommerce ul.products li.product li.title a {font-weight: 700;}

/* Цвет кнопок товаров на главной странице */
.wp-block-button__link.add_to_cart_button {background-color: #13aff0; padding: 6px 24px; border-radius: 0px;}
.wp-block-button__link.add_to_cart_button:hover {background-color: #0b7cac;}

/* Отступ тела страницы сверху  */
#main #content-wrap {padding-top: 30px; padding-bottom: 30px;}

/* Цена вариации в товаре */
div.woocommerce-variation-price { font-size: 30px; }
div.woocommerce-variation-price span del { font-size: 80%; }

/* На странице статей уменьшаем массштаб товара. У текста, в котором шорткод, задаем .custom_woo_container  */
body .custom_woo_container .oceanwp-row .span_1_of_1 {
    float: none;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

/* В таблице заголовки жирнным */
.wprt-container .table > tbody > tr > th { font-weight: bold; }

/* В ленте статей убираем большой отступ перед кусочком статьи */
.blog-entry.post .blog-entry-summary .wpb_content_element { margin-bottom: 0px; }

/* Сдвигаем вниз кнопку выпадающего сайдбара */
#mojo-sp-left-wrap > button { top: 160px; opacity: 1; }

/* Убираем рамку ссылки которая появляетя после нажатия на нее */
a:focus { outline: none !important; }
.page:not(.elementor-page):not(.woocommerce-page) .entry a:not(.wp-block-button__link):not(.wp-block-file__button):focus:not(.wp-block-button__link):not(.wp-block-file__button) { text-decoration: none; }

/* Ссылки на странице голубого цвета */
article.single-page-article a, table a { color: #13aff0; }
article.single-page-article a:hover, table a:hover { color: #0b7cac; }
.blog-entry.large-entry .blog-entry-readmore a { color: #13aff0; border: 1px solid #13aff0; }
.blog-entry.large-entry .blog-entry-readmore a:hover { color: #0b7cac; border: 1px solid #0b7cac; }
/* Меню на главной странице - задаем голубой цвет при наведении */
h2.h2-as-menu a { color: #555; }
h2.h2-as-menu a:hover { color: #13aff0; }

/* Убираем подчеркивание в ссылках в продуктах на главной странице сайта */
.page:not(.elementor-page):not(.woocommerce-page) .entry a:not(.wp-block-button__link):not(.wp-block-file__button) { text-decoration: none; }
.page:not(.elementor-page):not(.woocommerce-page) .entry a:not(.wp-block-button__link):not(.wp-block-file__button):hover  { text-decoration: none; }
/* Убираем подчеркивание в ссылках в продуктах на остальных страницах сайта */
.woo-product-info li a { text-decoration: none !important; }
.woo-product-info li a:hover  { text-decoration: none !important; }
.woocommerce ul.products li.product:not(.product-category) .image-wrap .button { text-decoration: none; }
.woocommerce ul.products li.product:not(.product-category) .image-wrap .button:hover { text-decoration: none; }

/* Стили панели фильтров */
.berocket_single_filter_widget {
    background-color: #f5f5f5;
    padding: 0 12px 1px;
    border-right: 1px solid #f2f2f2;
    border-left: 1px solid #f2f2f2;
}
.berocket_single_filter_widget:nth-child(2) {
    border-top: 1px solid #f2f2f2;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}
.berocket_single_filter_widget:nth-child(2) .bapf_head h3 {
    margin-top: 18px;
}
.berocket_single_filter_widget:last-child {
    border-bottom: 1px solid #f2f2f2;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}
.bapf_head h3 {
    position: relative;
    font-weight: 400;
    padding-left: 12px;
    cursor: pointer;
    margin-bottom: 0;
    font-weight: bold;
    font-size: 13px;
}
.bapf_head h3:after {
    position: absolute;
    content: '';
    left: 0;
    top: 50%;
    margin-top: -4px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 3.5px 0 3.5px 4px;
    border-color: transparent transparent transparent #13aff0;
    transition: all .4s ease;
}
.bapf_ccolaps .bapf_head h3:after {
    border-color: transparent transparent transparent #5D6C8C;
    transform: rotate(90deg);
}
.bapf_head h3 i.bapf_colaps_smb {
    display: none;
}
.bapf_sfilter {
    padding-bottom: 9px;
    margin-bottom: 9px;
    border-bottom: 1px solid #FFF;
}
.bapf_slidr_jqrui .bapf_from, .bapf_slidr_jqrui .bapf_to {
    width: auto;
}
.bapf_sfilter.bapf_ckbox input[type=checkbox] {
    border-radius: 3px;
    background-color: #fff;
    border: 0;
    margin-right: 7px;
    cursor: pointer;
}
.bapf_sfilter.bapf_ckbox input[type=checkbox]:before {
        line-height: 18px;
}
.bapf_sfilter ul li {
    display: flex;
    align-items: center;
}
.bapf_sfilter.bapf_button_berocket .bapf_button {
    width: 100%;
    height: 32px;
    background: #13aff0;
    line-height: 1;
    padding: 0;
    font-weight: 600;
    font-size: 12px;
}
.bapf_button_berocket .bapf_body {
    padding-left: 0;
    text-align: center;
}
.bapf_sfilter.bapf_button_berocket .bapf_button:hover {
    background-color: #0b7cac;
    transition: all 0.6s;
}

.irs--flat .irs-bar {
    background-color: #13aff0;
    height: 4px;
    top: 42px;
}
.irs--flat .irs-handle {
    background-color: #13aff0;
    border-radius: 50%;
    top: 36px;
    width: 16px;
    height: 16px;
}
.irs--flat .irs-handle i {
    color: #13aff0;
    background-color: #13aff0;
}
.irs--flat .irs-handle>i:first-child {
    color: #13aff0;
    background-color: #13aff0;
}
.irs--flat .irs-from, .irs--flat .irs-to {
    position: absolute;
    top: 0px;
    font-size: 12px;
    padding: 6px;
    background-color: #fff;
    color: #333;
    border: 1px solid #E8E8E8;
    visibility: visible!important;
    min-width: 55px;
}
.irs--flat .irs-from {
    left: 0!important;
}
.irs--flat .irs-from:after {
    content: '-';
    position: absolute;
    right: -30px;
}
.irs--flat .irs-to {
    left: 65%!important;
}
.irs--flat .irs-single {
    display: none!important;
}
.irs--flat .irs-handle:hover {
    cursor: pointer;
}
.irs--flat .irs-handle:hover i {
    background-color: transparent!important;
}
.irs--flat .irs-from:before, .irs--flat .irs-single:before, .irs--flat .irs-to:before {
    display: none!important;
}
.irs--flat .irs-max, .irs--flat .irs-min {
    display: none!important;
}
.irs--flat .irs-line {
    background-color: #f5f5f5;
}
.bapf_head.bapf_colaps_togl, .bapf_head h3 {
    padding-bottom: 6px;
}
.irs--flat {
    height: 54px;
}
.irs--flat .irs-handle.state_hover>i:first-child, .irs--flat .irs-handle:hover>i:first-child {
    background-color: #13aff0;
}
.irs-handle { z-index: 0; }

/* Убираем заглавные буквы в заказах */
.woocommerce table.shop_table td {
    text-transform: none !important;
}

.woocommerce #order_review table.shop_table td {
    padding: 6px 6px !important;
}
.woocommerce #order_review table.shop_table ul#shipping_method.woocommerce-shipping-methods {
    padding-bottom: 0px !important;
}
.woocommerce #order_review table.shop_table ul#shipping_method.woocommerce-shipping-methods li {
    padding-bottom: 0px !important;
}
.woocommerce #order_review table.shop_table th {
    border: none;
    padding: 10px 20px !important;
}
.woocommerce table.shop_table dl {
    margin: 0px 0 0 !important;
}
.woocommerce td.product-name dl.variation dt {
    font-weight: 400 !important;
}

/* Расположение надписи Распродажа на изображениях товаров для мобильных устройств */
/* Нет в наличии располагаем в одну строку с Распродажей */
.woocommerce ul.products li.product.outofstock div.outofstock-badge {
    top: 1.25rem;
}

@media only screen and (max-width: 1080px) {
    .woocommerce .has-product-nav li.image-wrap span.onsale, .woocommerce ul.products li.product.outofstock div.outofstock-badge {
	top: 1.5rem;
    }
}
@media only screen and (max-width: 767px) {
    .woocommerce .has-product-nav li.image-wrap span.onsale, .woocommerce ul.products li.product.outofstock div.outofstock-badge {
	top: 2rem !important;
    }
}

/* Убираем косяк с двойным перечеркиванием распродажной цены */
.woocommerce ul.products li.product .price del {
    text-decoration: none;
}

/* Отступы для списков в товарах */
.woocommerce .summary ul, .woocommerce #tab-description ul {
    margin: -10px 0 20px 20px !important;
}

/* Форма стикеров */
.woosticker.custom_sticker_text {
    font-size: 14px;
}
@media only screen and (max-width: 767px) {
    .woocommerce div.product .woosticker.custom_sticker_text.woosticker_ribbon { top: 6rem !important; }
}

/* Скидка в товаре */
.discount { padding-top: 20px; }
.discount_header, .discount_value, .discount_text { font-size: 13px; }
.discount_header, .discount_value { font-weight: 600; padding-top: 2px; padding-bottom: 2px; }
.discount_value { background-color: #13aff0; color: #fff; }

/* Центрируем вывод одного продукта на страницах. У продукта должен быть класс .center-1prod-on-mobile */
.center-1prod-on-mobile .woocommerce .products.mobile-2-col .product {
    margin: 0 auto;
}

/* Уберем заглавные буквы у виджета в категориях товара */
.widget_product_categories .product-categories li a { text-transform: none; }

/* На странице корзины поправляем ссылки */
article.single-page-article .woocommerce-cart-form a { color: #333333; }
article.single-page-article .wc-proceed-to-checkout a { color: #ffffff; }

/* Меняем размер шрифта у категорий на главной и в магазине */
div.little-h2 h2 { font-size: 15px; }
h2.woocommerce-loop-category__title { font-size: 18px; }

/* Вывод каатегорий на главной */
.home-page h2.woocommerce-loop-category__title {
    font-size: 15px;
}

/* Голубой цвет ссылок и убираем подчеркивание в статьях */
.single-post #content.site-content .entry-content a:not(.woocommerce a) { color: #13aff0; text-decoration: none; }
.single-post #content.site-content .entry-content a:hover:not(.woocommerce a) { color: #0b7cac; text-decoration: none; }

/* В плагине выбора атрибутов неактивные атрибуты делаем менее заметными */
.variations_form .cfvsw-swatches-blur-disable::before, .variations_form .cfvsw-swatches-blur::before { opacity: .7; }

/* WPBackery исправление глюка с отступом виджета для видео */
body .wpb_video_widget .wpb_video_wrapper, body .wpb_video_widget.vc_video-aspect-ratio-169 .wpb_video_wrapper { padding-top: 0%; }




