.ds-body-types {
    margin: 18px 0 24px;
    color: #111;
}

.ds-body-types__heading {
    margin: 0 0 18px;
}

.ds-body-types__frame {
    position: relative;
    min-width: 0;
}

.ds-body-types__scroller {
    padding-top: 5px;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
}

.ds-body-types__scroller:focus-visible {
    border-radius: 10px;
    outline: 2px solid #111;
    outline-offset: 3px;
}

.ds-body-types__list {
    display: flex;
    gap: 12px;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ds-body-types__item {
    flex: 1 1 0;
    min-width: 0;
}

.ds-body-types__link {
    box-sizing: border-box;
    display: grid;
    grid-template-rows: 88px auto;
    align-items: end;
    min-height: 138px;
    padding: 6px 8px 12px;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    color: #111;
    background: #fff;
    text-decoration: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ds-body-types__image {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    height: 88px;
}

.ds-body-types__image img {
    display: block;
    width: calc(var(--vehicle-width) * 0.5);
    max-width: 94%;
    max-height: 78px;
    height: auto;
    object-fit: contain;
}

.ds-body-types__label {
    margin-top: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

.ds-body-types__link:hover {
    border-color: #777;
    color: #111;
    text-decoration: none;
    transform: translateY(-2px);
}

.ds-body-types__link:focus-visible {
    border-color: #111;
    outline: 2px solid #111;
    outline-offset: 2px;
}

.ds-body-types__more {
    display: none;
}

@media (max-width: 959px) {
    .ds-body-types {
        margin-top: 24px;
    }

    .ds-body-types__scroller {
        margin-right: calc(50% - 50vw);
        padding-right: max(20px, calc(50vw - 50%));
        scroll-padding-inline: 0 72px;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .ds-body-types__scroller::-webkit-scrollbar {
        display: none;
    }

    .ds-body-types__list {
        gap: 10px;
    }

    .ds-body-types__item {
        flex: 0 0 calc(40% - 6px);
        scroll-snap-align: start;
    }

    .ds-body-types__link {
        grid-template-rows: 76px auto;
        min-height: 124px;
        padding: 4px 7px 10px;
    }

    .ds-body-types__image {
        height: 76px;
    }

    .ds-body-types__image img {
        width: calc(var(--vehicle-width) * 0.44);
        max-height: 67px;
    }

    .ds-body-types__label {
        font-size: 0.84rem;
    }

    .ds-body-types__more:not([hidden]) {
        position: absolute;
        z-index: 2;
        top: 0;
        right: calc(50% - 50vw);
        bottom: 0;
        display: flex;
        width: 82px;
        align-items: center;
        justify-content: flex-end;
        padding-right: max(18px, calc(50vw - 50% + 10px));
        background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff 72%);
        pointer-events: none;
    }

    .ds-body-types__caret {
        width: 13px;
        height: 13px;
        border-top: 2px solid #111;
        border-right: 2px solid #111;
        transform: rotate(45deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ds-body-types__link {
        transition: none;
    }
}
