﻿.search-table {
    font-size: 12px;
    color: black;
}
.subheading {
    background: #2b2b2b !important;
    color: white!important;
}
.subheading a {
    color: white!important;
}
.search-table a:focus {
    outline: none;
}

.search-table label {
    color: #242a30;
}

.mobile-purchase-cost {
    display: none;
}

.mobile-info-div {
    display:none;
    border-bottom: 1px solid #cdcdcd;
}

    .mobile-info-div div {
        width: 24%;
        display: inline-block;
    }

.search-table > .row {
    display: flex;
    
    -ms-flex-direction: row;
    -webkit-flex-direction: row;
    flex-direction: row;
    margin:0;
    background:white;
}

.search-table > .row:not(.main-color):hover > div:not(.b-b-0)  {
        background-color: #ededed;
    }

.search-old > .row:not(.main-color):hover  {
        background-color: #ededed;
    }


.search-old > .row:not(.main-color):hover .main-color,
.search-old > .row:not(.main-color):hover .main-color > div {
    background: black !important; /* Old browsers */
}

/* иконки сортировки */
.search-table > .row.main-color > div > img:not(.sort-img) {
    height: 18px;
}

@media all and (min-width: 1750px) {
    .search-table > .row.main-color > div > img:not(.sort-img) {
        margin-left: 5px;
    }
}

.search-table > .row.main-color > div > img.sort-img {
    margin-left: 5px;
}

/* обрезка брендов и артикулов */
.search-table > .row:not(.main-color) > div:first-child > a,
.search-table > .row:not(.main-color) > div:nth-child(2),
.search-table > .row:not(.main-color) > div:nth-child(2) > a {
    overflow: hidden;
    -ms-text-overflow: ellipsis;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
}


/* обрезка текста описаний */
.search-table .desc-overflow {
    overflow: hidden;
    -ms-text-overflow: ellipsis;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* укорачивание строки "Остальные предложения" ...*/
.search-table .col-xs-12.fourth-color {
    padding: 1px;
}

/* Number */
.search-table .count, 
.table-custom .count {
    border-radius: 1em;
    text-align: center;
    border: 1px solid #808080;
    width: 2em;
    height: 2em;
    color: #333;
}

.search-table input[type=number]::-webkit-inner-spin-button,
.search-table input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0;
}

.search-table input[type=number] {
    -moz-appearance: textfield;
}

.search-table input::-o-outer-spin-button,
.search-table input::-o-inner-spin-button {
    -o-appearance: none;
    margin: 0;
}
/* Basket */
.search-table .addBasket,
.table-custom .addBasket {
    background: rgba(0, 0, 0, 0) url("/Content/images/cart.png") no-repeat scroll 0 0;
    background-size: 1.9em 1.9em;
    border: none;
    height: 2em;
    padding: 0;
    width: 2em;
    cursor:pointer;
}

    .search-table .addBasket:hover,
    .table-custom .addBasket:hover {
        opacity: 0.6;
    }

@media all and (max-width: 1050px) {
    .search-table .addBasket, .table-custom .addBasket {
        margin-left: 5px;
    }
}

.search-table > .row > div {
   padding: 5px 5px;
    line-height: 1.1;
}

    .search-table > .row > div.b-b-0[class*="col-"] {
        border-bottom: 1px solid transparent;
    }

    .search-table > .row > div[class*=col-] {
        border-right: 1px solid #ccc;
        border-bottom: 1px solid #ccc;
    }

        .search-table > .row > div[class*=col-]:first-child {
            border-left: 1px solid #ccc;
        }

/* Border none for v4 */
.search-table:not(.search-old) > .first-row > div[class*=col-]:nth-child(-n+3) {
    border-bottom: none;
}

.search-table:not(.search-old) > .row.last-row > div[class*=col-]:nth-child(-n+3) {
    border-bottom: 1px solid #ccc !important;
}

/* выравнивание слева для описания */
.search-table > .row:not(.main-color) > .col-xs-4.col-sm-4.col-md-4.col-lg-4,
.search-table > .row:not(.main-color) > .col-xs-5.col-sm-5.col-md-5.col-lg-5 {
    justify-content: flex-start;
    text-align: left;
}

/* Article image button*/
.article-image {
    position: absolute !important;
    top: calc(50% - 11px);
    right: 10px;
    width: 22px;
    height: 22px;
    background: url(/Content/images/photo.png) no-repeat;
    background-size: 100% 100%;
}
.google-image {
    position: absolute !important;
    top: calc(50% - 11px);
    right: 12px;
    width: 18px;
    opacity:0.7;
}
.google-image:hover {
    opacity:1;
}
    .article-image:hover {
        text-decoration: none;
    }


/* Choose brand spoiler */
#filtration-settings .form-group > .pull-left {
    margin: 8px 0 0 15px;
}

#filtration-settings .type-of-list > .pull-left {
    margin: 8px 10px 0 0;
}

#brands-selector.spoiler-head {
    background: #fff;
    color: #333;
    padding: 7px 15px;
    position: relative;
    border: 1px solid #ccc;
    cursor: pointer;
    margin-left: 175px;
    width: 150px;
}

    #brands-selector.spoiler-head:after {
        content: "";
        font-family: fontawesome;
        font-size: 20px;
        line-height: 20px;
        position: absolute;
        right: 10px;
        top: 8px;
        vertical-align: sub;
        -moz-transition: transform .15s ease 0s;
        -o-transition: transform .15s ease 0s;
        -webkit-transition: transform .15s ease 0s;
        transition: transform .15s ease 0s;
    }

    #brands-selector.spoiler-head.open:after {
        -moz-transform: rotate(180deg);
        -ms-transform: rotate(180deg);
        -o-transform: rotate(180deg);
        -webkit-transform: rotate(180deg);
        transform: rotate(180deg);
    }

#brands-filter {
    left: 30px;
    position: absolute;
    top: 45px;
    z-index: 2147483647;
    border: 1px solid #e0e0e0;
    box-shadow: 0 0 9px 0 rgba(0, 0, 0, 0.2);
    padding: 5px 15px;
    -ms-flex-flow: column wrap;
    -webkit-flex-flow: column wrap;
    flex-flow: column wrap;
    max-height: 400px;
    max-width: 97%;
    overflow: auto;
}

    #brands-filter.open {
        display: flex !important;
    }

    #brands-filter > div {
        position: relative;
        width: 157px;
    }

@media all and (max-width: 992px) {
    #brands-filter {
        width: 53%;
    }
}

#brands-filter > div > label {
    line-height: 1;
}

    #brands-filter > div > label > span {
        font-size: 12px;
        line-height: 12px;
        cursor: pointer;
        margin-left: 5px;
        display: block;
    }

.brand-item {
    position: absolute;
    left: 0;
    top: 0;
}

/* кнопки справа при выборке брендов */
#addon-body {
    margin: 0 0 10px;
    overflow: hidden;
    padding: 0 14px;
}

    #addon-body > div {
        float: left;
    }

#brands-filter-addon > div {
    background: #e7e7e7 none repeat scroll 0 0;
    border: 1px solid #a7a7a9;
    border-radius: 15px;
    float: left;
    margin: 4px 10px 0 0;
    padding: 5px 10px;
}

.close-addon {
    color: #a7a7a9;
    cursor: pointer;
    font-weight: bold;
    padding-left: 5px;
}

    .close-addon:hover {
        color: #555;
    }

#all-close-addon {
    cursor: pointer;
    float: left;
    font-size: 18px;
    padding: 9px 0 0;
}

    #all-close-addon:hover {
        color: #e71d3e;
    }

/* переключатель */
#change-view {
    margin: 0 17px 10px 0;
}

label[data-id="v4"]#change-view {
    margin-right: 0;
}

    label[data-id="v4"]#change-view + label {
        margin-right: 17px;
    }

.btn-group .line {
    background: #354a60 none repeat scroll 0 0;
    border-radius: 1px;
    display: block;
    height: 3px;
    width: 22px;
    margin: 3px 0;
}

.btn-group .line-small {
    background: #354a60 none repeat scroll 0 0;
    border-radius: 1px;
    display: block;
    height: 2px;
    width: 22px;
    margin: 2px 0;
}

    .btn-group .line-small:last-child {
        margin: 1px 0;
    }

/* колонки вып списка брендов */
#brands-filter.col-1 {
    max-height: 300px;
    left: 172px;
}

#brands-filter.col-2 {
    max-height: 300px;
    width: 325px;
    left: 89px;
}

#brands-filter.col-3 {
    max-height: 300px;
    width: 445px;
}
/* end Choose brand spoiler */

#toggle-original-replacements {
    position: absolute;
    right: 15px;
    top: 6px;
}

.pollAnswerBar {
    font-size: 24px;
    padding: 0;
}

    .pollAnswerBar > .pollBackground {
        z-index: 1;
        background-color: #7e7f7f !important;
    }

    .pollAnswerBar > .slice {
        height: 1.1em;
        width: 1.1em;
    }

        .pollAnswerBar > .slice > .pie {
            background-color: #7bb58b !important;
            z-index: 11;
        }

.fa.fa-2x.fa-question.pollAnswerBar {
    border: 1px solid #7bb58b;
    border-radius: 15px;
    color: #7e7f7f;
    line-height: 0.9 !important;
}

/* случай когда такого товара нет */
.col-xs-1.col-sm-1.col-md-1.col-lg-1 > strong.no-parts-line {
    margin-right: -50%;
}
.residue-count>div {
    width: 40%;
    display: inline-block;
    vertical-align: middle;
}
.residue-count>.fa-question {
    text-align: left;
    padding-left: 4px;
}

/* диалоговыe окна */
div.ui-dialog[aria-describedby="image-dialog"] {
    bottom: 0 !important;
    height: 554px !important;
    left: 0 !important;
    margin: auto !important;
    position: fixed !important;
    right: 0 !important;
    top: 0 !important;
    width: 692px !important;
}

#brand-info > h1:first-child {
    display: none;
}

#brand-info h1 {
    color: #333;
    font-family: Roboto Light;
    font-size: 21px;
    line-height: 1.1;
    margin: 0;
    text-align: left !important;
}

    #brand-info h1 strong {
        font-weight: normal;
    }

#brand-info hr {
    display: none;
}

#brand-info table {
    border: none;
    color: #333;
}

    #brand-info table tr td {
        border: 1px solid #333;
    }

    #brand-info table tr:last-child {
        display: none;
    }

#brand-info > div[style="clear:both;"] {
    color: #8f8f8f;
}

    #brand-info > div[style="clear:both;"] strong {
        color: #333;
    }

#brand-info > div[style="clear: both; text-align: right;"] {
    margin-top: 15px;
    text-align: left !important;
}

#image-dialog-information h6 {
    font-size: 16px
}

#image-dialog-information .dl-horizontal {
    width: 100%
}

#image-dialog-information .dl-horizontal tr td {
    text-align: left;
    border: 1px solid;
    padding: 3px 5px
}

#image-dialog-information.col-sm-6,#image-dialog-body.col-sm-6 {
    margin-top: 20px
}
#image-dialog-body img{
    max-height: 400px;
    margin: auto;
}
div.ui-dialog[aria-describedby="magnifier-dialog"] {
    background: #fff!important
}
/* end диалоговыe окна */

details {
    border: 1px solid #aaa;
    border-radius: 4px;
    padding: 0.5em 0.5em 0;
}

summary {
    font-weight: bold;
    margin: -0.5em -0.5em 0;
    padding: 0.5em;
}

details[open] {
    padding: 0.5em;
}

    details[open] summary {
        border-bottom: 1px solid #aaa;
        margin-bottom: 0.5em;
    }
/* Убираем стандартный маркер Chrome */
details summary::-webkit-details-marker {
    display: none;
}
/* Убираем стандартный маркер Firefox */
details > summary {
    list-style: none;
    cursor: pointer;
}
/* Добавляем собственный маркер для закрытого состояния */
details summary:before {
    content: '\f0fe';
    font-family: "FontAwesome";
    margin-right: 7px;
}
/* Добавляем собственный маркер для открытого состояния */
details[open] summary:before {
    content: '\f146';
}