/*
 * Файл с дополнительными стилевыми правками по продуктам для компонента JoomShopping
 */

.header__logo>.logo{
    padding-top: 8px;

}
#page-header.container-fluid > .row-flex .header__logo > a > svg{
    height: 100%!important;
    width: 100%!important;
}

.common-class p, .jshop_prod_description p {
    line-height: 1.5;
    margin: 25px 0;
}

.common-class blockquote p, .jshop_prod_description blockquote p {
    margin-top: 0;
}


.common-class h2, .jshop_prod_description h2, .articleBody h2 {
    margin-top: 21px;
    margin-bottom: 29px;
}

.common-class h3, .jshop_prod_description h3, .articleBody h3 {
    margin-top: 27px;
    margin-bottom: 28px;
}

.common-class h3 + p, .articleBody h3 + p, .common-class h3 + table, .articleBody h3 + table, .jshop_prod_description h3 + p, .jshop_prod_description h3 + table {
    margin-top: -3px;
}

.common-class h3 + p > .fancybox > img, .common-class h3 + p > .fancybox > img, .articleBody h3 + p > .fancybox > img {
    margin-top: -9px;
}

.common-class p + ul, .jshop_prod_description p + ul {
    margin-top: 22px;
    padding-left: 20px;
    list-style: disc;

}

.articleBody h2, .articleBody h3
{
    font-weight: 600;
    line-height: 37px;
}

.articleBody h4, .articleBody h5
{
    font-weight: 500;
    line-height: 37px;
}

.common-class p + ul li, .jshop_prod_description p + ul li {
    margin-top: 22px;
    padding-left: 0px;
    list-style: disc;
}


.common-class ul li, .jshop_prod_description  ul li {
    margin-top: 22px;
    padding-left: 0px;
    list-style: disc;
}


details{

    box-sizing: border-box;
    border-left: 2px solid white;
    border-right: 2px solid white;

}

details[open] {

    border-left: 2px solid #E5E5E5;
    border-right: 2px solid #E5E5E5;
    border-bottom: 10px solid #E5E5E5;
    width: calc(100% - 4px );
    margin-left: 2px;
    padding-bottom: 57px;
}

details summary {
    padding: 3px 0 2px 15px;
}

details[open] summary {
    margin-bottom: 28px;
    margin-left: -2px;

}

details summary::marker, details summary::-webkit-details-marker {
    display: none;
    content: "";
}

details summary::before, details[open] summary::before {
    content: url("/templates/melissa/img/details-marker.svg");
    display: inline-block;
}

details summary::before {
    transform: rotate(270deg);
    padding: 3px 0 3px;
}

details[open] summary::before {
    transform: rotate(0deg);
}

details[open] p:nth-child(n) {
    margin: 0 22px 25px;
}

details[open] blockquote:nth-child(n) {
    margin: 0 22px 23px;
}

details[open] blockquote p:nth-child(n) {
    margin: 0;
}

#adapter-sleeve {
    display: flex;
    align-items: center;
}

#adapter-sleeve img {
    margin-left: 25px;
}

#adapter-sleeve p {
    text-align: justify;
}
.added-products-by-ajax .jshop_list_product{
    max-width: 100%;
}
.added-products-by-ajax .jshop.list_product.is-grid{/*GRID label*/
    grid-template-columns: repeat(4, 1fr);
}


.jshop_list_product .list_similar > tbody > tr {
    flex-wrap: wrap;
    align-items: flex-end;
}

.popup__list-cart{
    position: fixed;
    top: 170px;
    right: 170px;
    z-index: -1;/*Доработать скрытие*/
    display: block;
    min-width: 250px;
    min-height: 70px;
    background: #005781;
    opacity: 0;
    -webkit-transition: opacity 1s ease-in-out;
    -moz-transition: opacity 1s ease-in-out;
    -o-transition: opacity 1s ease-in-out;
    transition: opacity 1s ease-in-out;

}
.popup__list-cart__visible{
    z-index: 100;
    display: block;
    opacity: 1;

    -webkit-transition: opacity 1s ease-in-out;
    -moz-transition: opacity 1s ease-in-out;
    -o-transition: opacity 1s ease-in-out;
    transition: opacity 1s ease-in-out;
}

.popup__item-cart{
    display: flex;
    justify-content: center;
    height: 66px;
    margin: 10px;
    line-height: 65px;
}
.popup__success-img{

}
.popup_text{
    color: white;
}
.cart_empty_text__hidden{
    display: none;
}

@media (max-width: 768px) {

    #adapter-sleeve {
        display: block;
    }

    #adapter-sleeve p {
        text-align: left;
    }

    #adapter-sleeve img {
        margin: 0 auto 16px;
    }
    .added-products-by-ajax .jshop.list_product.is-grid{
        display: grid;
        gap: 0 30px;
        padding: 0 15px;
        grid-template-columns: repeat(2, 1fr);
    }
}



.box_products_sorting > .control-label, .box_products_sorting > .controls option{
    font-family: Montserrat;
    font-style: normal;
    font-weight: normal;
    font-size: 14px;
    line-height: 17px;
    color: #333333;
}


.icon_up:after{
    content: url('https://xrs.ru/components/com_jshopping/images/arrow_up.svg');
    margin-left: 10px;
}

.icon_down:after{
    content: url('https://xrs.ru/components/com_jshopping/images/arrow_down.svg');
    margin-left: 10px;
}


.order{
    display: flex;
    flex-wrap: wrap;
    margin-top: 7px;
}
.controls select{
    display: none;
}
.controls select option{
    font-family: "Montserrat";
    font-style: normal;
    font-weight: normal;
    font-size: 12px;
    line-height: 15px;
    color: #333333;
}
.order__btn{
    display: flex;
    margin: 0 26px;
}
.btn-active .order__name{
    color: #005781;
    text-decoration-line: underline;
}
.order__mobile .order__name{
    margin: 5px 0;
}
.order__mobile img{
    margin-top: 7px;
}
.order__name{
    font-family: "Montserrat";
    font-style: normal;
    font-weight: normal;
    font-size: 14px;
    line-height: 17px;
    color: #333333;
    cursor: pointer;
}
.order__name:hover{
    color: #005781;
}
.order__mobile{
    width: 194px;
    border: 0.5px solid #d9d9d9;
    padding: 5px 10px;
    font-family: "Montserrat";
    font-style: normal;
    font-weight: normal;
    font-size: 12px;
    line-height: 15px;
    display: none;
    flex-wrap: wrap;
    align-items: flex-start;
    flex-direction: column;
    justify-content: start;
    position: relative;
    border-radius: 2px;
}
.order__mobile img{
    right: 7px;
    top: 9px;
    position: absolute;
}
.order-mobile{
    display: none;
    cursor: pointer;
}

.controls .inputbox{
    height: 40px;
}
@media(max-width: 1340px){
    .order__btn{
        display: none;
    }
    .order__mobile{
        display: flex;
        margin-top: -10px;
        margin-left: 28px;
    }
    .controls select{
        /*display: inline-block;*/
        border: 0.5px solid #D9D9D9;
        width: 200px;
        height: 22px;
        border-radius: 2px;
        padding-left: 10px;
    }
    .controls .inputbox{
        /*display: flex;*/

        margin-left: 26px;
        margin-top: -5px;
        /*height: 100px;*/
    }

    .controls .inputbox option{
        margin-bottom: 10px;
    }
    .added-products-by-ajax .jshop.list_product.is-grid{/*GRID label*/
        grid-template-columns: repeat(4, 21%);
    }
}


@media (max-width: 585px) {
    .order__mobile{
        display: flex;
        margin-top: -5px;
        margin-left: 8px;
    }
    .control-group.box_products_count_to_page {
        float: none !important;
    }

    .form-horizontal .form_sort_count .controls {
        margin-left: 0;
        float: left;
    }

    .form-horizontal .form_sort_count .controls .inputbox {
        width: max-content;
    }

    .box_products_count_to_page .controls {
        margin-top: 12px;
    }

    .form_sort_count #order {
        margin-left: 12px;
    }
}

@media (min-width: 586px) and (max-width: 767px) {
    .form_sort_count .block_sorting_count_to_page {
        display: flex;
        align-items: baseline;
        margin-bottom: 35px;
    }

    .control-group.box_products_sorting {
        width: auto;
    }

    .control-group.box_products_sorting .control-label {
        margin-top: 6px;
    }

    .control-group.box_products_sorting .controls {
        margin-left: 100px;
    }

    .control-group.box_products_sorting .controls .inputbox {
        width: max-content;
    }

    .control-group.box_products_count_to_page {
        width: 45%;
    }

    .control-group.box_products_count_to_page .controls {
        margin-left: 0;
    }
}

@media (min-width: 768px) and (max-width: 837px) {
    .form-horizontal .box_products_count_to_page .controls {
        margin: 0;
    }

    .control-group.box_products_count_to_page {
        width: 45%;
    }
    .added-products-by-ajax .jshop.list_product.is-grid{/*GRID label*/
        grid-template-columns: repeat(4, 21%);
    }
}

@media (min-width: 838px) and (max-width: 1653px) {
    .form-horizontal .block_sorting_count_to_page .box_products_sorting {
        width: 55%;
    }

    .control-group.box_products_count_to_page {
        width: 45%;
    }

    .control-group.box_products_count_to_page {
        margin-bottom: 0;
    }

    .form-horizontal .box_products_count_to_page .controls {
        margin-left: 0;
    }

    .block_sorting_count_to_page {
        display: flex;
        align-items: center;
        margin-bottom: 35px;
    }
}
.common-class blockquote, .jshop_prod_description blockquote{
    margin: 30px 0 20px;
}
.common-class  details, .jshop_prod_description  details{
    padding-bottom: 0;

}
.jshop_list_product .jshop_similar {
    padding-bottom: 35px;
}
.jshop_list_product .sblock3{
    padding-bottom: 35px;
}

.details-content {
  }

/*Отключение адаптивности таблиц по умолчанию */
.jshop_prod_description .table_wrap table tbody tr td {
    display: table-cell;
}
/*Включение адаптивности таблиц через добавление класса with-adaptivity для таблиы*/
.jshop_prod_description .table_wrap table.with-adaptivity tbody tr td {
    display: block;
}
.common-class blockquote p:last-child, .jshop_prod_description p:last-child {
    margin: 0;
}


@media screen and (min-width: 992px){

    .blog-info-catalog .row.flex-row.items{

        display: flex;
        flex-wrap: wrap;

    }


}


@media screen and (max-width: 1016px) and (min-width: 992px) {

    .article_edit_button {
        top: 20px;
    }
    /*.jshop.list_product.is-grid{!*GRID label*!*/
    /*    grid-template-columns: repeat(4, 21%);*/
    /*}*/
}

@media screen and (min-width: 768px) {
    .form-horizontal .block_sorting_count_to_page .controls{
        margin-left: 100px;
    }

    .form-horizontal .block_sorting_count_to_page .control-label {
        width: max-content;
    }

    .form-horizontal .block_sorting_count_to_page .box_products_sorting {
        width: 70%;
    }

    .form-horizontal .block_sorting_count_to_page .controls .inputbox {
        width: max-content;
    }

    .control-group.box_products_count_to_page {
        width: 30%;
    }

    .block_sorting_count_to_page {
        display: flex;
        align-items: center;
        margin-bottom: 35px;
    }

    .control-group.box_products_count_to_page {
        margin-bottom: 0;
    }
    .label_products .block_item {
        margin-bottom: 10px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }
    /*.jshop.list_product.is-grid{!*GRID label*!*/
    /*    grid-template-columns: repeat(4, 1fr);*/
    /*}*/
}
@media screen and (max-width: 767px) {
    .label_products .block_item {
        width: 50%;
        margin-bottom: 10px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }
    .added-products-by-ajax .jshop.list_product.is-grid{/*GRID label*/
        grid-template-columns: repeat(2, 1fr);
    }
}
@media screen and (max-width: 484px) {
    .label_products .block_item {
        width: 100%;
    }
    .added-products-by-ajax .jshop.list_product.is-grid{
        display: unset;
        gap: unset;
    }
}
/*.label_products .block_item*/

.article_edit_button {

    position: absolute;
    top: -12px;
    right: 10px;

}


.btn-product {
    text-transform: capitalize;
    margin-bottom: 20px;
    margin-top: 20px;
    background: #005782;
    border-radius: 3px;
    font-family: Montserrat;
    font-style: normal;
    font-weight: bold;
    font-size: 20px;
    line-height: 24px;
    color: #FFFFFF;


}
.btn-product span {
    margin: auto;
}

.btn-product:before{

    content: initial;

}
.btn-product i.fa-bars {

    display: none;

}

#show_more_main {

    display:block;
    text-align:center;
    margin:20px 0 0px 0;
    font-size:20px;
    cursor:pointer;

}
.category-view, .list_related, .list_similar, .jshop_list_product {

    max-width: 950px;
    /*max-width: 100%;*/

}
mark, .mark {

    padding: 0;

}
.th-date{
    margin: 5px;
    width: fit-content;
    padding: 5px 15px;
    border-style: solid;
    border-radius: 5px;
    border-color: #A7C74A;
    border-width: 3px;
    font-size: 21px;
    font-weight: 700;
    position: relative;
}
.th-date:before{
    content: '\2714';
}

.tooltip-custom-container {

    position: relative;

}

.tooltip-custom {
    width: fit-content;
    border-bottom: 1px dotted #0077AA;
    background: rgba(0, 0, 0, 1);
    border-radius: 4px;
    box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5);
    color: #FFF;
    margin-top: -100px;
    opacity: 0; /* Наш элемент прозрачен... */
    padding: 5px 7px;
    position: absolute;
    visibility: hidden; /* ...и скрыт. */
    font-size: 17px;
    font-weight: bold;
    transition: all 0.4s ease-in-out; /* Добавить плавности по вкусу */
}
.tooltip-custom:hover {
    opacity: 1; /* Показываем его */
    visibility: visible;
}
.tooltip-custom-date {
    width: fit-content;
    font-size: 14px;
    font-weight: normal;
    padding: 5px;
    background-color: black;
    margin-top: 5px;
}

.tooltip-custom::before {
    background: rgba(0, 0, 0, 1);
    content:"\00a0";
    display: block;
    height: 16px;
    width: 16px;
    position: absolute;
    bottom: -7.5px;
    left: calc(49%);
    transform: rotate(65deg) skew(37deg);
    -moz-transform: rotate(65deg) skew(37deg);
    -ms-transform: rotate(65deg) skew(37deg);
    -o-transform: rotate(65deg) skew(37deg);
    -webkit-transform: rotate(65deg) skew(37deg);
    box-shadow: 2px 2px 2px 0 rgba(178, 178, 178, .4);
}

.tooltip-1c{
    margin-left: -86px;
    margin-top: -97px;
    display: none;
}

.dev-test{
    display: none !important;
}
.medium-hint-wrapper{
    position: relative;
    display: inline-block;
}
.medium-hint-body{
    display: none;
    position: absolute;
    bottom: 57px;
    width: 300px;
    padding: 15px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 0 5px 5px rgb(200 200 200);
}
.visible-hint{
    display: block;
    z-index: 20;
}
.medium-hint-target{
    border-radius: 10px;
    box-sizing: border-box;
    width: fit-content;
    padding: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    cursor: pointer;
    background: #41b0d8;
    font-weight: bold;
}
.medium-hint-body-close-button{
    position: absolute;
    right: 15px;
    top: 15px;
}
