/* Стили только для блока #priceBody / .page-blocks (подключаются при показе блока под спойлером).
   Контент вставляется в .render-block-spoiler-container, глобальные normalize/html/body удалены. */

/* ===== основные стили из pricenew.css ===== */
.page-blocks {
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    margin-bottom: 20px;
    border-radius: 3px;
}
.page-blocks h1 {
    margin: 20px;
}
.page-blocks .pager {
    margin-left: 20px;
}
.page-blocks--padding {
    padding: 20px;
}
.page-blocks--padding .pager {
    margin-left: 0;
}
.page-blocks--padding h1 {
    margin: 0 0 20px 0;
}
.page-blocks--padding-vertical {
    padding: 20px 0;
}
.page-blocks--padding-vertical h1 {
    margin: 0 20px 20px;
    font-size: 12px;
    line-height: 1.35;
    font-weight: bold;
}
#priceBody {
    float: right;
    border-top: 1px solid #e4e4e2;
    width: 78%;
    width: calc(100% - 260px);
    box-sizing: border-box;
}
.page-blocks--padding-vertical .menu-tab {
    margin-left: 20px;
}
.page-blocks--margin-right {
    margin-right: 20px;
}

#priceBody .table-header {
    float: left;
    width: 100%;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    color: #507B8A;
    background: #d8e6eb;
    padding: 5px 0;
    padding-left: 20px;
    box-sizing: border-box;
    border-bottom: 1px solid #c9cfd2;
    display: flex;
    align-items: center;
    padding-right: 115px;
}
#priceBody .table-header .descTip {
    position: relative;
    right: -7px;
}
#priceBody .table-header .sort-column {
    position: relative;
}
#priceBody .table-header .sort-column.selected::after {
    content: "";
    position: absolute;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #256892 transparent;
    right: -12px;
    -webkit-transform: scaleX(-0.6);
    -moz-transform: scaleX(-0.6);
    -ms-transform: scaleX(-0.6);
    -o-transform: scaleX(-0.6);
    transform: scaleX(-0.6);
}
#priceBody .table-header .sort-column.selected.asc::after {
    top: -2px;
}
#priceBody .table-header .sort-column.selected.desc::after {
    -webkit-transform: rotate(180deg) scaleX(-0.6);
    -moz-transform: rotate(180deg) scaleX(-0.6);
    -ms-transform: rotate(180deg) scaleX(-0.6);
    -o-transform: rotate(180deg) scaleX(-0.6);
    transform: rotate(180deg) scaleX(-0.6);
    top: 3px;
}
#priceBody .table-header > div {
    float: left;
}
#priceBody .table-header > div:nth-of-type(2) {
    width: 100px;
    margin-left: auto;
}
#priceBody .table-header > div:nth-of-type(3) {
    width: 155px;
}

.price-level {
    float: right;
    margin-right: 20px;
}

#priceBody .price-level {
    display: none;
}

/* ===== табличная часть ===== */
.table-body {
    /* нет специфических стилей, но может наследовать */
}
.data-row.header {
    /* стили для .data-row.header */
    background: #f2f2f2;
    padding: 8px 20px;
    font-weight: bold;
    color: #363636;
    border-top: 1px solid #e4e4e2;
    border-bottom: 1px solid #e4e4e2;
    margin-top: 10px;
    clear: both;
}
.row-container {
    position: relative;
    float: left;
    clear: both;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
    align-items: flex-start;
    min-height: 47px;
    max-height: 999999px;
    transition: all 0.5s ease-in-out;
}
.row {
    box-sizing: border-box;
    border-top: 1px solid #e4e4e4;
    clear: both;
    padding: 12px 20px 8px;
    overflow: hidden;
    transition: background 0.2s ease;
    position: relative;
    flex: 3 0 350px;
    padding-left: 20px;
    max-width: 100%;
    display: flex;
}
.row .art {
    margin-right: 7px;
    float: left;
}
.row .descr {
    float: left;
    max-width: 400px;
    width: 50%;
    margin-right: 5px;
    color: #363636;
}
.row:hover .descr {
    color: #C54141;
}
.row:hover .info {
    background: rgb(235.2, 235.2, 235.2);
}
.name-container {
    float: left;
    width: 35%;
}
.name-container .art {
    font-weight: bold;
    color: #363636;
}
.name-container .partno {
    color: gray;
    float: left;
    margin-right: 5px;
    font-size: 12px;
    line-height: 23px;
}
.descr {
    /* уже описано */
}
.info {
    float: right;
    padding: 3px;
    background: #f5f5f5;
    border-radius: 3px;
    margin-top: -2px;
    right: 0;
    top: 7px;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.info span {
    width: 16px;
    height: 16px;
    display: inline-block;
    background: url("//s.exist.ru/img2/inform10.png") no-repeat;
    margin-right: 3px;
    margin-top: 3px;
}
.info .img {
    background-position: 0 0;
}
.info .params {
    background-position: -16px 0;
}
.info .appl {
    background-position: -32px 0;
}
.info .compl {
    background-position: -48px 0;
}
.info .doc {
    background-position: -64px 0;
}
.allOffers {
    float: right;
    border-top: 1px solid #e4e4e4;
    flex: 1 0 320px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.allOffers .placeholder {
    margin: 10px 20px 0 0;
}
.bestOffers--new {
    overflow: hidden;
    transition: max-height 0.3s ease;
    width: 100%;
}
.pricerow {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    transition: background-color 0.3s ease;
    overflow: hidden;
    width: 100%;
    padding-left: 15px;
    padding-right: 20px;
    box-sizing: border-box;
    min-height: 38px;
    max-height: 50px;
    margin: 4px 0;
    max-height: 99px;
}
.pricerow:first-of-type {
    border-top-color: transparent;
}
.pricerow .avail,
.pricerow .pack,
.pricerow .statis,
.pricerow .price,
.pricerow .basket {
    display: block;
    box-sizing: border-box;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    padding: 0;
    justify-content: flex-end;
}
.pricerow .price {
    flex-direction: row;
}
.pricerow .statis {
    width: 105px;
    flex-shrink: 0;
    align-items: flex-end;
}
.pricerow .params {
    padding-top: 5px;
    padding-bottom: 5px;
}
.pricerow .params .params__value-and-price {
    display: flex;
    align-items: center;
}
.pricerow .avail {
    width: 45px;
    align-items: flex-start;
}
.pricerow .avail .icons {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.pricerow .avail .icons .not-return-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-left: 6px;
    background: url("//s.exist.ru/img2/icons/notReturn2.svg");
    position: relative;
    flex-shrink: 0;
}
.pricerow .avail .icons .not-return-icon:hover .not-return-tooltip {
    opacity: 1;
    z-index: 1;
}
.pricerow .avail .icons .not-return-icon .not-return-tooltip {
    position: absolute;
    top: 0;
    left: 0;
    background: #92b6c8;
    color: white;
    text-align: center;
    transition: 0.2s;
    white-space: nowrap;
    padding: 0 10px;
    line-height: 24px;
    border-radius: 4px;
    opacity: 0;
    z-index: -1;
}
.pricerow .pack {
    white-space: nowrap;
    color: gray;
    font-style: italic;
    width: 65px;
    font-size: 12px;
}
.pricerow .price {
    font-family: Arial, Tahoma, sans-serif;
    color: #646464;
    font-size: 15px;
    white-space: nowrap;
    font-weight: bold;
    text-align: right;
    padding: 0 20px;
    width: 110px;
}
@media (max-width: 450px) {
    .pricerow .price {
        width: 90px;
        padding: 0 5px;
    }
}
.pricerow .price__wrapper {
    flex-shrink: 0;
    padding: 5px 0;
}
.pricerow .basket-and-params {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 5px 0;
}
.pricerow .basket {
    width: 40px;
    height: 38px;
    min-width: 40px;
    background: #ffe289 url(//s.exist.ru/img2/cartnew2.png) center center no-repeat;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
    border-radius: 4px;
}
.pricerow .basket a {
    display: inline-block;
}
.pricerow .basket:hover {
    background-color: rgb(244.8, 216.96, 131.52);
}
.pricerow .basket.loading {
    background: url(//s.exist.ru/img/loading.gif) no-repeat center;
}
.basket.inbasket {
    background-color: #badbe6;
}
.prc-table__show-buttons {
    margin: 0 0 0 15px;
}
.prc-table__show-buttons span {
    /* предположительно, иконка */
    display: inline-block;
    width: 18px;
    height: 18px;
    background: url(//s.exist.ru/img2/showHide.png) no-repeat;
    cursor: pointer;
}
.prc-table__addbuttons {
    visibility: hidden;
    max-width: 0;
    height: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-left: 0;
    transition: all 0.3s ease;
    border-radius: 4px;
}
.pricerow.slide .prc-table__addbuttons {
    visibility: visible;
    pointer-events: all;
    opacity: 1;
    max-width: 105px;
    height: auto;
    top: 0;
    bottom: 0;
    background: #f5f5f5;
    padding: 8px;
}
.pricerow.slide .prc-table__show-buttons span {
    background: transparent;
}
.pricerow.slide .prc-table__show-buttons span::before,
.pricerow.slide .prc-table__show-buttons span::after {
    content: '';
    position: absolute;
    width: 11px;
    height: 2px;
    background: #333;
    left: 4px;
}
.pricerow.slide .prc-table__show-buttons span::before {
    transform: rotate(45deg);
    top: 6px;
}
.pricerow.slide .prc-table__show-buttons span::after {
    transform: rotate(-45deg);
    bottom: 6px;
}
.addbuttons.prc-table__addbuttons.js-show-buttons .addnote {
    /* стили для addnote отсутствуют в файле, предположим базовые */
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url(//s.exist.ru/img2/note.png) no-repeat;
    cursor: pointer;
}
.toggleEntries {
    text-align: center;
    cursor: pointer;
    font-size: 12px;
    line-height: 15px;
    padding: 5px 0;
    margin: 0px 20px 0px 0;
    position: relative;
    float: right;
    clear: both;
}
.toggleEntries.loading {
    background: url(//s.exist.ru/img/loading.gif) right center no-repeat;
}
.toggleEntries.loading i {
    opacity: 0;
}
.toggleEntries i {
    display: inline-block;
    width: 15px;
    height: 8px;
    background: url(//s.exist.ru/img2/icons-new.png) -33px -380px no-repeat;
    margin-left: 8px;
    transition: all 0.2s ease;
}
.toggleEntries:hover {
    color: #C54141;
}
.placeholder--price-results {
    clear: both;
    padding: 20px;
    text-align: center;
}
a.gal {
    width: 16px;
    height: 17px;
    display: inline-block;
    background: url(//s.exist.ru/img/gal2.png) no-repeat;
    background-position: center;
    margin-bottom: -2px;
}
.statis a {
    overflow: hidden;
    display: block;
}
.statis span {
    float: right;
    text-indent: -9999px;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    margin: 2px 0 0 4px;
}
.statis .bad {
    background-color: #932a2a;
}
.statis .poor {
    background-color: #E65427;
}
.statis .well {
    background-color: #f79000;
}
.statis .good {
    background-color: #f3d600;
}
.statis .excellent {
    background-color: #7ACF72;
}
.statis .stock {
    width: 10px;
    height: 10px;
    border: 2px solid #3e89b9;
    background-color: #83f578;
}

/* ===== медиа-запросы, влияющие на отображение ===== */
@media only screen and (max-width: 850px) {
    .page-blocks--padding-vertical h1 {
        white-space: normal;
        box-sizing: border-box;
        padding-right: 40px;
        margin-left: 10px;
        line-height: 30px;
        margin-bottom: 5px;
    }
    .row, .data-row.header {
        padding: 10px;
        flex: 3 0 500px;
    }
    .data-row.header {
        font-size: 12px;
        margin-bottom: 3px;
        padding-top: 5px;
        padding-bottom: 5px;
        margin-left: -10px;
        width: calc(100% + 20px);
        margin-top: 5px;
        background-color: #e4e0d6;
    }
    .pricerow {
        padding: 0 10px;
    }
    .price-root-move {
        transition: transform 0.5s ease;
    }
    .price-level {
        float: left;
        margin: 2px 0 10px 0;
        font-size: 12px;
    }
    .table-header {
        display: none !important;
    }
    .pricerow .count {
        width: 70px;
    }
    .name-container {
        margin-right: 5px;
    }
    .row .price {
        margin-right: 5px;
    }
    .button {
        height: 35px;
        bottom: auto;
    }
    .data-row.header.sticked {
        margin-top: 0;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }
    .price-wrapper__banner {
        display: none !important;
    }
}

@media only screen and (max-width: 800px) {
    h1 {
        width: 100%;
    }
    #priceFilters {
        position: fixed;
        top: 0;
        bottom: 0;
        background: #fff;
        z-index: 11;
        border-radius: 0;
        border: none;
        box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
    }
    #priceFilters.sh {
        left: 0;
    }
    #priceFilters.hd {
        left: -300px;
    }
    #priceBody {
        width: 100%;
        box-shadow: none;
        border: none;
        background: transparent;
        padding-top: 10px;
    }
    .showFilters {
        display: block;
        border: 1px solid #8f8f8f;
        border-radius: 5px;
        padding: 3px 10px;
        float: left;
        margin-bottom: 5px;
        cursor: pointer;
        text-transform: uppercase;
        font-weight: bold;
        font-size: 12px;
    }
    .priceFilters_close {
        display: block;
        width: 20px !important;
        height: 20px;
        background: url(//s.exist.ru/img2/iframe-close.png) center center no-repeat;
        float: right;
        margin-left: 200px;
        margin-bottom: 10px;
        cursor: pointer;
    }
    .row {
        border: none;
    }
    .row-container {
        margin-bottom: 5px;
        background: #fff;
        border-radius: 5px;
    }
}

/* Переопределение только для вставки в .render-block-spoiler-container: без float вправо, по ширине контейнера. Цвета и структура блока с сайта сохраняются, ссылки остаются абсолютными на исходный сайт. */
.render-block-spoiler-container #priceBody {
    float: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}