/* 车型分流及已选车操作区，沿用站点红黑视觉，不覆盖选车数据规则。 */
.ekr-vehicle-bar__actions,
.ekr-hyva-garage__actions {
    display: flex;
    gap: 10px;
}

.ekr-vehicle-bar__actions .ekr-hyva-garage__shop {
    min-height: 48px;
    padding-inline: 14px;
    white-space: nowrap;
    font-size: 13px;
}

.ekr-vehicle-journey__secondary {
    border: 1px solid currentColor;
    background: transparent;
    color: inherit;
}

.ekr-hyva-garage__panel .ekr-vehicle-journey__secondary {
    color: #111827;
    background: #fff;
}

.ekr-hyva-garage__panel .ekr-vehicle-journey__secondary:hover:not(:disabled),
.ekr-hyva-garage__panel .ekr-vehicle-journey__secondary:focus-visible:not(:disabled) {
    background: #f3f4f6;
    border-color: #111827;
    color: #111827;
}

.ekr-vehicle-bar__selection {
    display: none;
    align-items: center;
    gap: 16px;
    width: 100%;
    min-width: 0;
}

.has-vehicle.is-ymm-landing .ekr-vehicle-bar__selection {
    display: flex;
}

.ekr-vehicle-bar__primary,
.ekr-vehicle-bar__current {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 14px;
    min-width: 0;
    min-height: 48px;
    padding: 10px 18px;
    border-radius: 4px;
    background: #dc2626;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.ekr-vehicle-bar__primary:disabled {
    opacity: .6;
    cursor: wait;
}

.ekr-vehicle-bar__shop-label {
    flex-shrink: 0;
    padding-left: 14px;
    border-left: 1px solid rgba(255, 255, 255, .5);
}

.ekr-vehicle-bar__change-action {
    flex-shrink: 0;
    min-height: 44px;
    padding: 8px;
    color: #e5e7eb;
    font-size: 12px;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}

.ekr-vehicle-bar__primary:focus-visible,
.ekr-vehicle-bar__change-action:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

#ekr-vehicle-products {
    scroll-margin-top: 120px;
}

@media (max-width: 1023px) {
    .has-vehicle .ekr-vehicle-bar__selection {
        display: flex;
        gap: 10px;
    }

    .ekr-vehicle-bar__primary,
    .ekr-vehicle-bar__current {
        gap: 8px;
        padding: 10px;
        font-size: 13px;
    }

    .ekr-vehicle-bar__selection .ekr-vehicle-bar__summary {
        white-space: normal;
        overflow-wrap: anywhere;
        text-align: left;
    }

    .ekr-vehicle-bar__change-action {
        min-height: 48px;
        padding-inline: 12px;
        border: 1px solid #6b7280;
        border-radius: 4px;
    }
}

@media (max-width: 767px) {
    .ekr-hyva-garage__actions {
        flex-direction: column;
    }
}
