.b-purchase-history {
    padding: 54px 0 0;
    margin-bottom: 41px;
}

.b-purchase-history__wrap {
    display: flex;
    justify-content: space-between;
}

.b-purchase-history__title {
    font-family: 'MontBold';
    font-size: 32px;
    line-height: 40px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0;
    flex: 0 0 385px;
}

.b-purchase-history__filter {
    display: flex;
}

.b-purchase-history__btn input[type=radio] {
	display: none;
}

.b-purchase-history__btn {
    display: inline-block;
    margin-right: 7px;
}

.b-purchase-history__btn label{
	display: inline-block;
	cursor: pointer;
	height: 40px;
	border-radius: 4px;
	user-select: none;
    font-size: 12px;
    line-height: 16px;
    padding: 5px 15px 5px 10px;
    color: #440099;
    font-family: 'MontBold';
    width: 98px;
    background: linear-gradient(0deg, #FFFFFF 0%, #E1E1E1 8.85%, #FFFFFF 100%);
    box-shadow: 0px 2px 3px rgba(122, 122, 122, 0.32), 0px 1px 10px rgba(0, 0, 0, 0.13);
    text-transform: capitalize;
}

/* .b-purchase-history__btn label:hover {
    background: linear-gradient(0deg, #3A0082 0%, #3B0084 45.83%, #440099 68.23%, #7C6CDE 100%), 
                linear-gradient(90deg, #8851CD -9.09%, #400091 107.44%);
    box-shadow: inset 1px 2px 5px rgba(0, 0, 0, 0.45);
    color: #fff;
} */

.b-purchase-history__colored {
    color: #D61414;
}

.b-purchase-history__btn span {
    font-family: 'MontRegular', sans-serif;
    position: relative;
}

.b-purchase-history__btn--white span::before,
.b-purchase-history__btn--red span::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
}

.b-purchase-history__btn--white span::before {
    background: url('/img/lk/bonus-purple.svg') no-repeat;
    background-size: contain;
    top: 50%;
    transform: translateY(-50%);
    right: -14px;
}

.b-purchase-history__btn--white input[type=radio]:checked + label span::before,
.b-purchase-history__btn--white input[type=radio]:hover + label span::before {
    background: url('/img/lk/bonus-white.svg') no-repeat;
    background-size: contain;
}

.b-purchase-history__btn--red span::before {
    background: url('/img/lk/bonus-red.svg') no-repeat;
    background-size: contain;
    top: 50%;
    transform: translateY(-50%);
    right: -14px;
}

.b-purchase-history__btn input[type=radio]:checked + label {
	background: linear-gradient(0deg, #3A0082 0%, #3B0084 45.83%, #440099 68.23%, #7C6CDE 100%), 
                linear-gradient(90deg, #8851CD -9.09%, #400091 107.44%);
    box-shadow: inset 1px 2px 5px rgba(0, 0, 0, 0.45);
    color: #fff;
}


.b-purchase-history__btn input[type=radio]:hover + label {
	background: linear-gradient(0deg, #3A0082 0%, #3B0084 45.83%, #440099 68.23%, #7C6CDE 100%), 
                linear-gradient(90deg, #8851CD -9.09%, #400091 107.44%);
    box-shadow: inset 1px 2px 5px rgba(0, 0, 0, 0.45);
    color: #fff;
}

.b-purchase-history__filter-wrap {
    display: flex;
}

@media (max-width: 1023px) {
    
    .b-purchase-history__title {
        flex: none;
        margin-bottom: 15px;
    }

    .b-purchase-history__wrap {
        flex-direction: column;
    }
}

@media (max-width: 767px) {

    .b-purchase-history {
        margin-bottom: 40px;
        padding: 25px 0 0;
    }

    .b-purchase-history__wrap {
        flex-direction: column;
    }

    .b-purchase-history__title {
        flex: none;
        font-size: 19px;
        line-height: 24px;
        text-align: center; 
        margin-bottom: 15px; 
    }

    .b-purchase-history__btn {
        margin-right: 0;
    }

    .b-purchase-history__btn label {
        width: 100%;
        padding: 6px 15px 5px 10px;
        box-shadow: none;
    }

    .b-purchase-history__btn {
        width: calc(100% / 3);
    }

    .b-purchase-history__btn input[type=radio]:checked + label {
        height: 34px;
        transform: translateY(3px);
        padding: 1px 15px 5px 7px;
    }

    .b-purchase-history__filter {
        background: linear-gradient(0deg, #FFFFFF 0%, #E1E1E1 8.85%, #FFFFFF 100%);
        box-shadow: 0px 2px 3px rgb(122 122 122 / 32%), 0px 1px 10px rgb(0 0 0 / 13%);
        margin-bottom: 8px;
        border-radius: 4px;
    }

    .b-purchase-history__filter-wrap {
        flex-direction: column;
    }

    .b-purchase-history__btn--white span::before {
        right: -14px;
    }

    .b-purchase-history__btn--red span::before {
        right: -12px;
    }
}

/* ---------------Стили для datepicker----------------- */

.ui-datepicker {
    font-family: 'MontRegular';
    width: 288px;
    font-size: 13px;
    line-height: 16px;
    text-align: left;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    z-index: 10001 !important;
    margin-top: 8px;
}

.ui-datepicker-header {
    background-color: #440099;
    color: #fff;
    text-align: center;
    padding: 13px 16px 11px;
}

.ui-datepicker-next span,
.ui-datepicker-prev span {
    display: none;
}

.ui-datepicker-calendar {
    width: 100%;
    text-align: center;
    height: 216px;
    background-color: #fff;
}

.ui-datepicker-calendar thead {
    margin-bottom: 17px;
    color: #D0D0D0;
}

.ui-datepicker-calendar thead th {
    font-family: 'MontRegular', sans-serif;
    font-weight: 400;
    padding-top: 16px;
    text-align: center;
}

.ui-datepicker-next {
    position: relative;
}

.ui-datepicker-next::before,
.ui-datepicker-prev::before  {
    content: '';
    position: absolute;
    width: 8px;
    height: 12px;
}

.ui-datepicker-next::before {
    background: url('/img/lk/next.svg') no-repeat;
    background-size: contain;
    top: 0;
    left: 120px;
}

.ui-datepicker-prev::before {
    background: url('/img/lk/prev.svg') no-repeat;
    background-size: contain;
    top: 13px;
    left: 20px;
}

.ui-state-default {
    text-decoration: none;
    color: #000;
}

.ui-state-default:hover {
    text-decoration: underline;
    color: #440099;
}

.ui-state-disabled .ui-state-default:hover {
    text-decoration: none;
}

.b-date {
    min-width: 109px;
    width: 100%;
    height: 40px;    
}

.b-date__input-field {
    position: relative;
    height: 40px;
}

.b-date__input-label {
    position: absolute;
    font-family: 'MontBold';
    font-size: 12px;
    line-height: 16px;
    text-align: center;
    color: #440099;
    top: 5px;
    left: 8px;
}

.b-date__input {
    width: 100%;
    height: 100%;
    padding: 24px 7px 8px;
    border-color: transparent;
    background: linear-gradient(0deg, #FFFFFF 0%, #E1E1E1 8.85%, #FFFFFF 100%);
    box-shadow: 0px 2px 3px rgba(122, 122, 122, 0.32), 0px 1px 10px rgba(0, 0, 0, 0.13);
    border-radius: 4px;
    font-family: 'MontRegular',sans-serif;
    color: #440099;
    font-size: 13px;
    line-height: 16px;
    outline: 0 !important;
    outline-offset: 0;
}

.b-date__input:hover,
.b-date__input:active,
.b-date__input:focus {
    background: linear-gradient(0deg, #3A0082 0%, #3B0084 45.83%, #440099 68.23%, #7C6CDE 100%),
    linear-gradient(0deg, #FFFFFF 0%, #E1E1E1 8.85%, #FFFFFF 100%);
    box-shadow: inset 1px 2px 5px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    outline: 0 !important;
    outline-offset: 0;
    color: #fff;
}

.b-date__input-field:hover .b-date__input-label,
.b-date__input-field:active .b-date__input-label,
.b-date__input-field:focus .b-date__input-label {
    color: #fff;
}

.b-date__close {
    position: relative;
}

.dp-highlight {
    background: #440099 !important;
    height: 24px;
    width: 35px;
}

.dp-highlight .ui-state-default {
    background: #440099 !important;
    padding: 3px;
}

.ui-state-disabled .ui-state-default{
    color: #D0D0D0;
}

.dp-highlight .ui-state-default {
    color:#fff;
}

@media (max-width: 1023px) {

    .b-date {
        width: unset; 
    }
}

@media (max-width: 767px) {

    .b-date {
        /* width: 100%; */
        position: relative;
    }

    .b-date__close {
        position: absolute;
        top: 50%;
        right: 3px;
        transform: translateY(-50%);
        width: 14px;
        height: 12px;
    }

    .b-date__close::before {
        content: '';
        background: url('/img/lk/calendar.svg') no-repeat;
        background-size: contain;
        width: 14px;
        height: 12px;
        position: absolute;
        top: -3px;
        right: 2px;
    }

    .b-date__input-label {
        left: 8px;
    }

    .b-date__input {
        width: 100%;
    }

    .b-date__input-field:hover .b-date__close::before,
    .b-date__input-field:active .b-date__close::before,
    .b-date__input-field:focus .b-date__close::before {
        background: url('/img/lk/calendar-white.svg') no-repeat;
        background-size: contain;
    }

}

/* --------------------Блок про транзакции-------------------------- */
.b-transaction {
    margin-bottom: 32px;
}

.b-transaction__item {
    margin-bottom: 27px;
}

.b-transaction__item:last-child {
    margin-bottom: 0;
}

.b-transaction__title-wrap {
    border-bottom: 1px solid #433187;;
}

.b-transaction__title {
    font-family: 'MontBold';
    font-size: 19px;
    line-height: 24px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #433187;
    margin: 0 0 7px;
}

.b-accordion__title {
    font-family: 'MontBold';
    font-size: 19px;
    line-height: 24px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0;
    margin-right: auto;
}

.b-accordion__status {
    font-family: 'MontRegular';
    text-transform: lowercase;
    font-size: 15px;
    letter-spacing: normal;
    margin-left: 30px;
    border: 1px solid;
    border-radius: 6px;
    padding: 5px 8px;
    color: #fff;
}

.b-accordion__status-black {
    border-color: #000;
    background: #000;
}

.b-accordion__status-red {
    border-color: #ff4343;
    background: #ff4343;
}

.b-accordion__status-orange {
    border-color: #ff8043;
    background: #ff8043;
}

.b-accordion .ui-state-default:hover {
    text-decoration: none;
    color: #000;
}

.b-operation__item {
    border-bottom: 1px solid #D0D0D0;
    padding: 15px 0 0;
    margin-bottom: 3px;
}

.b-operation__item.active {
    border-bottom: none;
}

.b-accordion__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    position: relative;
}

.b-accordion__bonus {
    font-family: 'MontBold';
    position: relative;
    font-size: 16px;
    line-height: 27px;
    margin-right: 76px;
}

.b-accordion__bonus--spend {
    color: #D61414;
}

.b-accordion__bonus--spend::after {
    content:'';
    background: url('/img/lk/bonus-red.svg');
    background-size: contain;
    width: 14px;
    height: 14px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: -25px;
}

.ui-accordion-header-icon {
    order: 3;
}

.ui-accordion-header-collapsed .ui-accordion-header-icon::before {
    content: '';
    background: url('/img/lk/arrow-drop-down.svg') no-repeat;
    background-size: contain;
    width: 10px;
    height: 5px;
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-2px);
}

.ui-accordion-header-active .ui-accordion-header-icon::before {
    content: '';
    background: url('/img/lk/arrow-drop-up.svg') no-repeat;
    background-size: contain;
    width: 10px;
    height: 5px;
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-2px);
}

.b-accordion__bonus--collect {
    color: #440099;
}

.b-accordion__bonus--collect::after {
    content:'';
    background: url('/img/lk/bonus-blue.svg');
    background-size: contain;
    width: 14px;
    height: 14px;
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    right: -25px;
}

.b-accordion__body {
    padding: 11px 24px 16px;
    border: 1px solid #D0D0D0;
    box-sizing: border-box;
    margin: 0 -21px 21px;
}

.b-accordion__body-title {
    font-family: 'MontBold';
    font-size: 16px;
    line-height: 22px;
    margin: 0 0 15px;
}

.b-accordion__body-top {
    border-bottom: 1px solid #D0D0D0;
    margin-bottom: 15px;
}

.b-accordion__body-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.b-accordion__count {
    display: flex;
}

.b-accordion__collect,
.b-accordion__spend {
    display: flex;
    align-items: center;
    width: 182px;
}

.b-accordion__total {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 182px;
    position: relative;
}

.b-accordion__total-link {
    width: 14px;
    height: 17px;
    position: absolute;
    right: 7px;
    top: -3px;
}

.b-accordion__total-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.b-accordion__total-num {
    font-family: 'MontBold';
    font-size: 16px;
    line-height: 22px;
}

.b-accordion__total-text {
    font-family: 'MontBold';
    font-size: 19px;
    line-height: 24px;
    text-transform: uppercase;
    margin-right: 11px;
}

.b-accordion__count {
    color: #828282;
    margin-right: auto;
    width: 282px;
}

.b-accordion__count-text {
    font-size: 13px;
    line-height: 16px;
    margin-right: 17px;
}

.b-accordion__count-text--spend {
    margin-right: 8px;
}

.b-accordion__count-num {
    font-family: 'MontBold';
    font-size: 16px;
    line-height: 22px;
    color: #AFB1B5;
}

.b-accordion__count-num--collect {
    color: #440099;
}

.b-accordion__collect {
    margin-right: 30px;
}

.b-accordion__total-wrap {
    display: flex;
    align-items: center;
    margin-right: 44px;
}

@media (max-width: 1023px) {

    .b-accordion__body {
        margin: 0 -6px;
    }
}

@media (max-width: 767px) {

    .b-transaction {
        margin-bottom: 45px;
    }

    .b-transaction__title {
        font-size: 13px;
        line-height: 16px;
        margin: 0 0 6px;
    }

    .b-operation__item {
        padding: 16px 0 4px;
    }

    .b-accordion__title {
        font-size: 13px;
        line-height: 16px;
        text-transform: none;
    }

    .b-accordion__bonus {
        font-size: 13px;
        line-height: 16px;
        margin-right: 55px;
    }

    .b-accordion__bonus--spend::after,
    .b-accordion__bonus--collect::after {
        width: 12px;
        height: 12px;
        right: -16px;
    }

    .ui-accordion-header-collapsed .ui-accordion-header-icon::before,
    .ui-accordion-header-active .ui-accordion-header-icon::before {
        right: 8px;
        transform: translateY(-1px);
    }

    .b-accordion__head {
        margin-bottom: 12px;
    }

    .b-accordion__body {
        padding: 9px 15px 5px 10px;
        margin: 0 -8px;
    }

    .b-accordion__body-title {
        font-size: 13px;
        line-height: 16px;
        margin: 0 0 6px;
    }

    .b-accordion__count {
        flex-direction: column;
    }

    .b-accordion__count-text {
        font-size: 11px;
        line-height: 16px;
        margin-right: 12px;
    }

    .b-accordion__count-num {
        font-size: 13px;
        line-height: 16px;
    }

    .b-accordion__body-top {
        margin-bottom: 10px;
    }

    .b-accordion__collect {
        margin-right: 0;
        margin-bottom: 4px;
    }

    .b-accordion__collect,
    .b-accordion__spend {
        width: 105px;
        justify-content: space-between;
    }

    .b-accordion__total-wrap {
        flex-direction: column;
        align-items: flex-end;
        margin-right: 43px;
    }

    .b-accordion__total-text {
        font-size: 13px;
        line-height: 16px;
        margin-right: 0;
        margin-bottom: 3px;
    }

    .b-accordion__total-num {
        font-size: 13px;
        line-height: 16px;
        margin-right: 0;
    }

    .b-accordion__total {
        width: 143px;
        justify-content: flex-end;
    }

    .b-accordion__total-link {
        right: 6px;
        top: 12px;
    }
}

 /* -----------Аккордион "Покупка на сайте магазина"------------- */

 .b-accordion__body--purchase {
    padding: 20px 30px 16px 26px;
 }

 .b-purchase__item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 35px;
 }

 .b-purchase__name,
 .b-purchase__product {
    font-family: 'MontBold';
    font-size: 16px;
    line-height: 22px;
 }

 .b-purchase__product {
    margin-right: 43px;
 }

 .b-purchase__name {
    margin-right: auto;
    width: 350px
 }

 .b-purchase__wrap {
    display: flex;
    justify-content: flex-end;
    width: 128px;
    position: relative;
    margin-top: 2px;
 }

 .b-purchase__wrap > .b-accordion__total-link {
    right: 0;
    top: -3px;
 }

 @media (max-width: 767px) {

    .b-purchase__product {
        font-size: 13px;
        line-height: 16px;
    }

    .b-purchase__name {
        font-size: 11px;
        line-height: 16px;
    }

    .b-purchase__product {
        margin-right: 38px;
    }

    .b-purchase__name {
        font-family: 'MontBold';
        width: 210px;
    }

    .b-accordion__body--purchase {
        padding: 18px 12px 16px 9px;
    }
    
    .b-purchase__item {
        margin-bottom: 14px;
    }

    .b-accordion__body--purchase .b-accordion__body-top {
        margin-bottom: 16px;
    }
 }