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

.jshop_prod_description p {
  line-height: 1.5;
  margin-top: 25px;
}

.jshop_prod_description h2 {
  margin-top: 21px;
  margin-bottom: 29px;
}

.jshop_prod_description h3 {
  margin-top: 27px;
  margin-bottom: 28px;
}

.in-store.error-of-store {
  display: none !important;
}

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

.jshop_prod_description h3 + p > .fancybox > img {
  margin-top: -9px;
}

.jshop_prod_description p + ul {
  margin-top: 22px;
}

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;
}

@media (max-width: 768px) {
  
  #adapter-sleeve {
    display: block;
  }
  
  #adapter-sleeve p {
    text-align: left;
  }

  #adapter-sleeve img {
  	margin: 0 auto 16px;
  }
}



.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;
}



@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{
    height: 40px;
}

@media(max-width: 585px){
    .order__mobile{
        display: flex;
        margin-top: -5px;
        margin-left: 8px;
    }
}
@media (max-width: 1340px){
    .controls .inputbox{
        /*display: flex;*/
        
        margin-left: 26px;
        margin-top: -5px;
        /*height: 100px;*/
    }
  
    .controls .inputbox option{
        margin-bottom: 10px;
    }
}
@media (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;
  }
}

@media (max-width: 585px) {
  .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%;
  }
}

@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;
  }
}
.jshop_prod_description blockquote{
    margin: 30px 0 20px;
}
.jshop_prod_description  details{
    padding-bottom: 0;

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

.details-content {
    /*New styles for <details>*/
    /*padding-top: 28px;*/
    /*border-left: 2px solid #E5E5E5;*/
    /*border-right: 2px solid #E5E5E5;*/
    /*padding-bottom: 1px;*/

}

/*Отключение адаптивности таблиц по умолчанию */
.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;
}

.manufacturer_name a span {

    font-weight: bolder;
    color: #005781;

}


.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;

}
mark, .mark {

    padding: 0;

}


.item-discontinued{
    background:#fff;
    display:flex;
    justify-content:center;
    align-items:center;
    height:100px;
}

.item-discontinued > span{
    font-size:24px;
    color:#A5A5A5;
    text-align:center;
}

.jshop_prod_description * em {

    font-style: italic;

}
.brand_name{
    display: flex;
    flex-direction: row;
}
.brand-wrapper{

}
.brand-wrapper a{
    display: block;
    width: 100%;
}
.in-store{
    width: fit-content;
    float: right;
    margin-left: 10px;
}
.not__current .in-store{
    float: left;
    margin-right: 13px;
}
/*.in-store:before{*/
/*    content: "⚫";*/
/*    сolor: #19e019;*/

/*}*/
.in-store .dotAttr {
    /*display: block;*/
    height: 11px;
    width: 11px;
    background-color: #19e019;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}
.in-store.out-of-store .dotAttr {
    background-color: rgba(224, 168, 25, 0.96);
}
.in-store{
        display: inline-block;
    position: relative;
}
.dott-and-price{
    align-items: center;
}
.jshop_list_product .in-store.out-of-store .dotAttr::after {
    color: rgba(224, 168, 25, 0.96); /* Выбери нужный цвет */
    content: "под заказ";
}

.jshop_list_product .in-store .dotAttr::after {
    font-size: 14px;
    vertical-align: middle;
    white-space: nowrap;
    position: absolute;
    top: 40%;
    left: calc(100% + 5px);
    transform: translateY(-50%);
    font-weight: bold;
}

.jshop_list_product .in-store.test1 .dotAttr::after {
    content: "в наличии";
    color: #19e019;
}

#price_label:contains("По запросу") + .in-store {
  width: 54% !important;
}

.product-custom-attributes{
    display: none;
}


.custom-data-attr-button{
    margin: 5px;
    padding: 5px;
    background: #005782;
    color: white;
    border-style: none;
    border-radius: 2px;
    font-weight: bold;
}
.custom-data-attr-button:focus{
    border: none;
}
.custom-data-attr-button.selectedAttr {
    border-color: #005782;
    border-width: 1px;
    border-style: solid;
    background: white;
    color: #005782;
}
