.at-vehicle-overlay {
    position: fixed;
    inset: 0;
    z-index: 12050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    background: rgba(17, 17, 19, 0.48);
}

.at-vehicle-overlay.active,
.at-vehicle-overlay.is-visible {
    display: flex;
}

.at-vehicle-overlay[hidden] {
    display: none !important;
}

.at-vehicle-overlay--required {
    z-index: 2147483600;
}

body.at-vehicle-lock,
body.at-vehicle-required-lock {
    overflow: hidden;
}

.at-vehicle-sheet {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: min(420px, calc(100vw - 32px));
    height: fit-content;
    max-height: min(82vh, 640px);
    min-height: 0;
    flex: 0 1 auto;
    align-self: center;
    padding: 20px 20px 16px;
    overflow: hidden;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24);
}

.at-vehicle-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex: 0 0 auto;
    margin-bottom: 14px;
}

.at-vehicle-title,
.at-vehicle-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 750;
    letter-spacing: -0.03em;
    color: #111;
    line-height: 1.2;
}

.at-vehicle-kicker {
    margin: 4px 0 0;
    font-size: 13px;
    font-weight: 500;
    color: #8e8e93;
    line-height: 1.35;
}

.at-vehicle-sub,
.at-vehicle-sheet-handle {
    display: none;
}

.at-vehicle-close {
    border: 0;
    background: rgba(120, 120, 128, 0.16);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #636366;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    flex: 0 0 auto;
}

.at-vehicle-overlay--required .at-vehicle-close,
.at-vehicle-overlay--required .at-vehicle-skip {
    display: none !important;
}

.at-vehicle-search-wrap {
    position: relative;
    flex: 0 0 auto;
    margin-bottom: 12px;
}

.at-vehicle-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #636366;
    pointer-events: none;
}

.at-vehicle-input {
    width: 100%;
    height: 46px;
    border: 1.5px solid #d7d7dc;
    border-radius: 12px;
    padding: 0 14px 0 42px;
    font-size: 15px;
    font-weight: 500;
    background: #fff;
    color: #1c1c1e;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}

.at-vehicle-input::placeholder {
    color: #8e8e93;
    font-weight: 500;
}

.at-vehicle-input:hover {
    border-color: #c2c2c7;
}

.at-vehicle-input:focus {
    border-color: var(--app-accent, var(--secondary-color, #e41f27));
    box-shadow: 0 0 0 3px rgba(228, 31, 39, 0.18);
}

.at-vehicle-loader {
    display: none !important;
}

.at-vehicle-body {
    flex: 0 1 auto;
    min-height: 0;
    padding: 2px 2px 8px 0;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
}

.at-vehicle-section-title {
    font-size: 13px;
    font-weight: 650;
    color: #8e8e93;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
    text-transform: none;
}

.at-vehicle-chip-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.at-vehicle-chip-btn {
    display: block;
    width: auto;
    text-align: left;
    border: 1px solid rgba(60, 60, 67, 0.1);
    background: #fff;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #1c1c1e;
    cursor: pointer;
}

.at-vehicle-chip-btn:hover,
.at-vehicle-result:hover {
    background: var(--app-accent, var(--secondary-color, #e41f27));
    border-color: var(--app-accent, var(--secondary-color, #e41f27));
    color: #fff;
}

.at-vehicle-results {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 2px 4px 4px 0;
}

.at-vehicle-results[hidden],
.at-vehicle-empty[hidden],
.at-vehicle-popular[hidden] {
    display: none !important;
}

.at-vehicle-result {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px 56px;
    align-items: center;
    column-gap: 8px;
    width: 100%;
    margin: 5px;
    padding: 12px 16px;
    border: 1px solid rgba(60, 60, 67, 0.12);
    border-radius: 12px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #1c1c1e;
    text-align: left;
    cursor: pointer;
}

.at-vehicle-result-name {
    min-width: 0;
    line-height: 1.35;
    overflow-wrap: break-word;
}

.at-vehicle-result-seats,
.at-vehicle-result-seg {
    font-size: 11px;
    font-weight: 700;
    color: #8e8e93;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
    line-height: 1;
}

.at-vehicle-result-seats {
    min-width: 1.75em;
    text-align: right;
}

.at-vehicle-result-seg {
    min-width: 3.1em;
    text-align: right;
}

.at-vehicle-result:hover .at-vehicle-result-seats,
.at-vehicle-result:hover .at-vehicle-result-seg {
    color: rgba(255, 255, 255, 0.86);
}

.at-vehicle-empty,
.at-vehicle-skip {
    text-align: center;
    font-size: 13px;
    color: #636366;
}

.at-vehicle-empty {
    padding: 12px 4px;
}

.at-vehicle-skip {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    width: 100%;
    margin-top: 8px;
    padding: 8px 8px 4px;
    text-decoration: underline;
    cursor: pointer;
}

.at-vehicle-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: min(52vw, 260px);
    height: 36px;
    padding: 0 6px 0 8px;
    border: 1px solid #e5e5ea;
    background: #fff;
    border-radius: 999px;
    color: #111;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}

.at-vehicle-chip-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.at-vehicle-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.at-vehicle-chip svg {
    flex: 0 0 auto;
}

.at-vehicle-chip .at-vehicle-clear-btn {
    border: 0;
    background: #e5e5ea;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0;
    color: #111;
    line-height: 1;
}

.at-vehicle-chip .at-vehicle-clear-btn:hover {
    background: #d1d1d6;
}

@media (max-width: 991px) {
    .at-vehicle-overlay {
        padding: 16px 12px;
        align-items: center;
    }

    .at-vehicle-sheet {
        width: min(420px, calc(100vw - 24px));
        height: fit-content;
        max-height: min(82vh, 640px);
        min-height: 0;
        border-radius: 18px;
        padding: 18px 16px 14px;
    }

    .at-vehicle-input {
        height: 44px;
        font-size: 16px;
        border-radius: 12px;
        background: #f2f2f7;
        border-color: transparent;
    }

    .at-vehicle-input:focus {
        background: #fff;
        border-color: var(--app-accent, var(--secondary-color, #e41f27));
    }
}
