.carthistory {
    margin-top: 30px;
}

.carthistory__list {
    margin-bottom: 43px
}

.carthistory__item {
    overflow: hidden;
    padding: 25px 30px;
    background-color: #fff;
    border-radius: 16px
}

.carthistory__item:not(:last-child) {
    margin-bottom: 21px
}

.carthistory__item-top {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 12px;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding-bottom: clamp(20px,1.11rem + .46vw,25px);
    border-bottom: 1px solid rgba(31,27,26,.2)
}

.carthistory__item-bot {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding-top: 26px
}

.carthistory__info {
    margin-bottom: 8px;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    color: #000
}

.carthistory__type {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 7px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.25;
    color: rgba(31,27,26,.6)
}

.carthistory__separator {
    -ms-flex-negative: 0;
    flex-shrink: 0;
    width: 4px;
    height: 4px;
    opacity: .2;
    background-color: rgba(31,27,26,.6);
    border-radius: 100%
}

.carthistory__value-wrap {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    gap: 3px;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end
}

.carthistory__value {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    color: #000
}

.carthistory__hide {
    cursor: pointer;
    position: relative;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.25;
    color: rgba(31,27,26,.6);
    background-color: transparent
}

.carthistory__hide::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(31,27,26,.6)
}

.carthistory__details {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 425px
}

.carthistory__details-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between
}

.carthistory__details-key {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.25;
    color: rgba(0,0,0,.5)
}

.carthistory__details-value {
    width: 100%;
    max-width: 250px;
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.25;
    color: #000
}

.carthistory__details-value--1 {
    color: #c557eb
}

.carthistory__details-value--2 {
    color: #a16d4f
}

.carthistory__details-value--3 {
    color: #0085e5
}

.carthistory__details-value--4 {
    color: #4dbe28
}

.carthistory__btn {
    cursor: pointer;
    display: block;
    min-width: 244px;
    padding: 16px 8px;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 700;
    line-height: 160%;
    color: #1f1b1a;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .7px;
    background-color: transparent;
    border: 1px solid #1f1b1a;
    border-radius: 10px;
    -webkit-transition: background-color .3s ease-in-out;
    transition: background-color .3s ease-in-out
}

.carthistory__btn--repeat {
    color: #fff;
    background-color: #1f1b1a
}

.carthistory__status {
    padding: 0 8px;
    border-radius: 30px;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 400;
    display: inline-block;
    margin-left: 8px
}

.carthistory__status--red {
    color: #eb5757;
    background: rgba(235,87,87,.1);
    border: 1px solid rgba(235,87,87,.04)
}

.carthistory__status--black {
    color: #1f1b1a;
    background: rgba(31,27,26,.05);
    border: 1px solid rgba(31,27,26,.05)
}

@media (max-width: 1024px) {
    .carthistory__value-wrap {
        gap: 8px
    }

    .carthistory__separator {
        display: none
    }

    .carthistory__item-bot {
        padding-top: 21px;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 34px
    }

    .carthistory__list {
        margin-bottom: 24px
    }

    .carthistory__details {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-direction: row;
        flex-direction: row;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
        max-width: unset
    }

    .carthistory__details-item {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: flex-start;
        -webkit-box-pack: unset;
        -ms-flex-pack: unset;
        justify-content: unset;
        width: 199px
    }

    .carthistory__details-value--time {
        -ms-flex-negative: 0;
        flex-shrink: 0;
        width: 140px
    }

    .carthistory__type {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: flex-start
    }

    .carthistory__item {
        padding: 20px 25px
    }

    .carthistory__btn {
        min-width: 100%
    }
}

@media (max-width: 743px) {
    .carthistory__hide::after {
        content: "";
        bottom: 1px
    }

    .carthistory__details {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
        max-width: unset
    }

    .carthistory__details-item {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: flex-start;
        -webkit-box-pack: unset;
        -ms-flex-pack: unset;
        justify-content: unset;
        width: 100%
    }

    .carthistory__details-value--time {
        width: unset
    }

    .carthistory__list {
        margin-bottom: 33px
    }

    .carthistory__item:nth-child(n+4) {
        display: none
    }

    .carthistory__item-bot {
        padding-top: 23px
    }

    .carthistory__item {
        padding: 20px 25px
    }

    .carthistory__item-top {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 22px
    }

    .carthistory__value-wrap {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-direction: row;
        flex-direction: row;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
        width: 100%
    }
}

@media (any-hover: hover) {
    .carthistory__btn:hover {
        background-color: rgba(31,27,26,.05)
    }

    .carthistory__btn--repeat:hover {
        background-color: #333
    }
}