.orders-page .page-heading {
    font-weight: 500;
    font-size: 50px;
    line-height: 96px;
    color: #000;
    text-align: center;
    margin: 56px 0 40px;
}

.orders-page.detailed .back-link,
.orders-page.detailed .back-link:visited {
    color: #000;
}
.orders-page.detailed .back-link:hover {
    color: #848484;
}

.orders-page.detailed .sale-order-detail-section-title {
    font-style: normal;
    font-weight: 500;
    font-size: 30px;
    line-height: 44px;
    text-transform: uppercase;
    padding: 20px 0;
    background: #fff;
}

.orders-page.detailed .order-info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(0,auto));
    margin: 10px 0;
}

.orders-page.detailed .order-info-section .sale-order-detail-more-info-less,
.orders-page.detailed .order-info-section .sale-order-detail-more-info-more {
    margin-top: 15px;
    border: 0;
    font-size: 36px;
    color: #fff;
    background-color: #000;
    padding: 8px;
    -webkit-transition: all .35s ease;
    transition: all .35s ease;
    min-width: 52px;
    text-align: center;
    border-radius: 3px;
}

.orders-page.detailed .order-info-section .sale-order-detail-more-info-more {
    display: inline-block;
}
.orders-page.detailed .order-info-section .sale-order-detail-more-info-less:hover, .orders-page.detailed .order-info-section .sale-order-detail-more-info-more:hover {
    background-color: #f95151;
}

.orders-page.detailed .order-info-section .sale-order-detail-more-info-more:before {
    content: "\1F441";
}

.orders-page.detailed .order-info-section .sale-order-detail-more-info-less:before {
    content: "\2BBE";
}

.orders-page.detailed .my-1 {
    display: block;
    margin-bottom: 10px;
}

.orders-page.detailed .my-1 .btn {
    margin-left: auto;
}

.btn {
    width: 100%;
    max-width: 250px;
}

.btn.btn--secondary {
    background-color: #666;
}

.orders-page.detailed .d-info,
.orders-page.detailed .d-order-content,
.orders-page.detailed .d-payment,
.orders-page.detailed .d-shipment {
    padding-bottom: 50px;
    border-bottom: 1px solid #666;
}
.orders-page.detailed .sale-order-detail-section-payment-image {
    width: 46px;
}
.orders-page.detailed .sale-order-detail-payment-options-methods-image-element,
.orders-page.detailed .sale-order-detail-payment-options-shipment-image-element {
    background-position: left;
}
.orders-page.detailed div.payment-options-methods-row {
    margin: 0;
    padding: 0;
}
.orders-page.detailed .sale-order-detail-payment-options-methods-info-change-link {
    display: inline-block;
    margin: 10px 0;
    color: #999;
    -webkit-transition: color .35s ease-in;
    transition: color .35s ease-in;
}
.orders-page.detailed .sale-order-detail-payment-options-methods-shipment-list-item-link {
    margin-top: 15px;
}
.orders-page.detailed .sale-order-detail-payment-options-methods-shipment-list-item-link .sale-order-detail-hide-link, .orders-page.detailed .sale-order-detail-payment-options-methods-shipment-list-item-link .sale-order-detail-show-link {
    border: 0;
    font-size: 36px;
    color: #fff;
    background-color: #000;
    /*padding: 8px;*/
    -webkit-transition: all .35s ease;
    transition: all .35s ease;
    min-width: 52px;
    text-align: center;
    border-radius: 3px;
}
.orders-page.detailed .sale-order-detail-payment-options-methods-shipment-list-item-link .sale-order-detail-hide-link:hover, .orders-page.detailed .sale-order-detail-payment-options-methods-shipment-list-item-link .sale-order-detail-show-link:hover {
    background-color: #f95151;
}
.orders-page.detailed .sale-order-detail-payment-options-methods-shipment-list-item-link .sale-order-detail-show-link:before {
    content: "\1F441";
}
.orders-page.detailed .sale-order-detail-payment-options-methods-shipment-list-item-link .sale-order-detail-hide-link:before {
    content: "\2BBE";
}
.orders-page.detailed .sale-order-detail-payment-options-methods-shipment-list-item-link .sale-order-detail-show-link {
    display: inline-block;
}

.orders-page.detailed .sale-order-detail-order-item-title {
    color: #000;
    -webkit-transition: color .35s ease-in;
    transition: color .35s ease-in;
}
.orders-page.detailed .sale-order-detail-order-item-title:hover {
    color: #999;
}
.orders-page.detailed .sale-order-detail tr th,
.orders-page.detailed .sale-order-detail tr td{
    text-align: left;
    padding: 5px;
}

.orders-page.detailed .flex-total-price-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
}
.orders-page.detailed .flex-total-price-container .sale-order-detail-total-payment-list-left-item {
    font: unset;
    font-size: 15px;
    line-height: 1;
}
.orders-page.detailed .flex-total-price-container .sale-order-detail-total-payment-list-right-item {
    height: unset;
    line-height: 1;
    margin: 0 20px;
}

.orders-page.detailed {
    padding-bottom: 50px;
}

/* orders page */

.orders-page .filter-list {
    background: #000;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 40px;
}
.orders-page .filter-list .filter-item:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: 0;
}
.orders-page .filter-list .filter-item {
    color: #fff;
    -webkit-transition: color .3s ease-in;
    transition: color .3s ease-in;
    display: inline-block;
    margin-right: 20px;
    padding-right: 20px;
    border-right: 1px solid #fff;
}
.orders-page .sale-order-title {
    font-style: normal;
    font-weight: 500;
    font-size: 30px;
    line-height: 44px;
    text-align: center;
}
.orders-page .sale-order-list-title-container {
    padding: 10px 0;
    background-color: #fff;
    border: 0;
}
.orders-page .active-order-grid-container .payment-section .align-items-center {
    margin: 15px 0 5px;
}
.orders-page .active-order-grid-container.sale-order-list-inner-container {
    border: 0;
    border-bottom: 1px solid #ccc;
    padding-bottom: 20px;
}
.orders-page .active-order-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    grid-gap: 20px;
    margin-bottom: 50px;
}
.orders-page .sale-order-list-change-payment {
    display: inline-block;
    margin: 10px 0;
    color: #999;
    -webkit-transition: color .35s ease-in;
    transition: color .35s ease-in;
}
.orders-page .active-order-grid-container .shipment-section .align-items-center {
    margin: 15px 0 5px;
}
.orders-page .active-order-grid-container .controls-section .sale-order-list-about-link,
.orders-page .active-order-grid-container .controls-section .sale-order-list-repeat-link {
    display: block;
    margin-bottom: 10px;
}
.btn.stroked {
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
}

.btn {
    display: block;
    width: 100%;
    max-width: 250px;
    outline: 0;
    border: 0;
    border-radius: 0;
    padding: 22px 15px;
    background-color: #999;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: #fff;
    text-transform: uppercase;
    cursor: pointer;
    -webkit-transition: background-color .2s;
    transition: background-color .2s;
}
.orders-page .active-order-grid-container .controls-section .sale-order-list-repeat-link button:before {
    display: inline-block;
    margin: 0 3px 4px 0;
    width: 10px;
    height: 13px;
    background: url(/local/components/bitrix/sale.personal.order.list/templates/bootstrap_v4/images/sale-order-repeat.svg) no-repeat;
    content: "";
    vertical-align: middle;
}

/* TODO: зарефакторить стили (много лишних классов, которые не особо к месту). Лучше видоизменить верстку и переписать классы. */

/* wheretobuy start */
.bgcolor-dillers {
    padding-bottom: 30px;
}
.bgcolor-dillers, .bgcolor-support {
    display: flex;
    align-items: center;
    text-align: center;
    background-color: #fff;
}
.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}
.col, .col-1, .col-10, .col-11, .col-12, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9 {
    position: relative;
    width: 100%;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
}

.bgcolor-dillers .flex-connt-2 {
    text-align: left;
    padding: 0;
    flex-wrap: wrap;
}
@media (min-width: 1920px) {
    .col-xxl-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }
}
@media (min-width: 768px) {
    .col-md-10 {
        flex: 0 0 83.3333333333%;
        max-width: 83.3333333333%;
    }
}
.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}
.col-lg, .col-lg-1, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-auto, .col-md, .col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-auto, .col-sm, .col-sm-1, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-auto, .col-xl, .col-xl-1, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-auto, .col-xxl, .col-xxl-1, .col-xxl-10, .col-xxl-11, .col-xxl-12, .col-xxl-2, .col-xxl-3, .col-xxl-4, .col-xxl-5, .col-xxl-6, .col-xxl-7, .col-xxl-8, .col-xxl-9, .col-xxl-auto {
    position: relative;
    width: 100%;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
}
.col, .col-1, .col-10, .col-11, .col-12, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9 {
    position: relative;
    width: 100%;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
}
.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.row.partner-list {
    padding-top: 40px;
}

.bgcolor-dillers .flex-connt-2 .cell-2 {
    background-color: #fff;
    border: solid 1px #e6e6e6;
    border-radius: 8px;
    width: 48%;
    margin: 0 1% 2%;
}
@media (min-width: 1140px) {
    .bgcolor-dillers .flex-connt-2 .cell-2 {
        width: 23%;
        margin-left: 1%;
        margin-right: 1%;
    }
}
.bgcolor-dillers .flex-connt-2 .cell-2 .img-cell {
    justify-content: center;
    padding: 3vw 15px;
    width: 100%;
    text-transform: uppercase;
    color: #052362;
    font-size: 16px;
    text-align: center;
    display: block;
}
@media screen and (max-width: 786px) {
    .bgcolor-dillers .flex-connt-2 .cell-2 .img-cell {
        padding: 20px;
    }
}
.bgcolor-dillers .flex-connt-2 .cell-2 .img-cell .container-img {
    height: 56px;
    max-width: 168px;
    width: 100%;
    display: inline-block;
}
.bgcolor-dillers .flex-connt-2 h2 {
    font-size: 20px;
    display: block;
    margin: 16px 0 0;
    text-transform: none;
    text-overflow: ellipsis;
    overflow: hidden;
}

@media screen and (max-width: 786px) {
    .bgcolor-dillers .flex-connt-2 h2 {
        font-size: 16px;
    }
}
@media screen and (max-width: 576px) {
    .bgcolor-dillers .flex-connt-2 .cell-2 .img-cell .container-img {
        max-width: 140px;
        height: auto;
    }

    .bgcolor-dillers .flex-connt-2 h2 {
        font-size: 14px;
        margin: 8px 0 0;
    }
}

.bgcolor-article .flex-connt-article span, .bgcolor-dillers .flex-connt-2 span, .bgcolor-support .flex-connt-support span {
    display: block;
    color: #8a8a8a;
    font-size: 16px;
    font-weight: 400;
}
.flex-connt-2 .pagination__page-wrapper span {
    display: initial;
}
.bgcolor-dillers .flex-connt-2 .cell-2:hover {
    box-shadow: 0 3px 17px 0 rgb(0 0 0 / 15%);
    text-decoration: none;
}
.header__nav-link.header__nav-item--wheretobuy {
    background-color: #f93822;
    padding: 9px 20px;
    border-radius: 3px;
    transition: background .3s ease;
}
.header__nav-link.header__nav-item--wheretobuy:hover {
    background-color: #d6221b;
    cursor: pointer;
}
.header__nav-item--wheretobuy.header__nav-link:hover {
    color: #fff;
}
/* wheretobuy end */