/* Used make/model combo menus */
.used-filters-card {
    overflow: visible;
}

.used-filters-vatpill {
    margin-left: auto;
}

.used-filters-vatpill #modeToggle.wtc-toggle-pill {
    border-radius: 999px;
    padding: 0.1rem;
}

.used-filters-vatpill #modeToggle .wtc-toggle-btn {
    padding: 0.22rem 0.48rem;
    font-size: 0.7rem;
    line-height: 1.1;
}

.used-filters-card .irs--round .irs-bar,
.used-filters-card .irs--round .irs-from,
.used-filters-card .irs--round .irs-to,
.used-filters-card .irs--round .irs-single {
    background: var(--brand-primary) !important;
}

.used-filters-card .irs--round .irs-handle {
    border-color: var(--brand-primary) !important;
}

.used-filters-card .irs--round .irs-handle:hover,
.used-filters-card .irs--round .irs-handle.state_hover {
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--brand-primary) 16%, transparent) !important;
}

.used-filters-card .irs--round .irs-from::before,
.used-filters-card .irs--round .irs-to::before,
.used-filters-card .irs--round .irs-single::before {
    border-top-color: var(--brand-primary) !important;
}

.used-combo-toggle {
    border: 1px solid rgba(16, 24, 40, 0.12);
    background: #fff;
    border-radius: 14px;
    min-height: 56px;
    padding: 0.55rem 0.75rem;
    color: var(--brand-text);
    font-size: 1.02rem;
    font-weight: 700;
}
.used-combo-toggle:hover {
    background: #f7f8fb;
}
.used-combo-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--brand-primary) 15%, transparent);
}
.used-combo-toggle[disabled] {
    background: #f5f6f8;
    color: #8a8f98;
    border-color: rgba(16, 24, 40, 0.08);
}
.used-combo-toggle[aria-expanded="true"] .used-combo-chevron {
    transform: rotate(180deg);
}
.used-combo-chevron {
    transition: transform 180ms ease;
}
.used-combo-menu {
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 28px rgba(12, 17, 29, 0.12);
    padding: 0.5rem;
    display: grid;
    gap: 0.4rem;
}
.used-combo-search {
    border: 0;
    background: #f3f5f8;
    border-radius: 10px;
    padding: 0.5rem 0.7rem;
    font-size: 0.95rem;
}
.used-combo-search:focus {
    border: 0;
    background: #f0f2f5;
    box-shadow: 0 0 0 0.15rem color-mix(in srgb, var(--brand-primary) 18%, transparent);
}
.used-combo-options {
    max-height: 440px;
    overflow-y: auto;
    display: grid;
    gap: 0.2rem;
}
.used-combo-option {
    border: 0;
    background: transparent;
    border-radius: 10px;
    padding: 0.65rem 0.65rem;
    color: #161b24;
    line-height: 1.2;
}
.used-combo-option:hover,
.used-combo-option:focus-visible {
    background: #f4f6fa;
    outline: none;
}
.used-combo-option.is-selected {
    background: #f1f3f6;
    color: #1f2937;
    font-weight: 600;
}
.used-combo-option-label {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
}
.used-combo-count {
    font-size: 0.82rem;
    color: #6c757d;
    white-space: nowrap;
    margin-left: 0.5rem;
}
.used-combo-count.is-selected {
    color: #4b5563;
}

#makeDisplayText,
#modelDisplayText {
    text-transform: uppercase;
}

.builder-page .builder-select-group {
    padding: 0.7rem 0.85rem 0.8rem;
    border: 0;
    border-radius: 20px;
    background: #ffffff;
}
.builder-page .builder-select-label {
    color: var(--wtc-dark);
}
.builder-page .builder-select-group .form-label,
.builder-page .builder-select-group > p:first-child {
    margin-bottom: 0.35rem !important;
}
.builder-page .builder-select-group .small.text-muted {
    margin-bottom: 0.5rem !important;
    line-height: 1.35;
}
.builder-page .builder-select-control {
    min-height: 50px;
    padding-inline: 1rem 3rem;
    border-color: #dce2ea;
    background-color: #f3f5f8;
    color: var(--wtc-dark);
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.builder-page .builder-select-control option {
    color: var(--wtc-dark);
    font-weight: 400;
}
.builder-page .builder-select-control:hover {
    background-color: #eef2f6;
}
.builder-page .builder-select-control:focus {
    background-color: #eef2f6;
    border-color: #d4dce6 !important;
    font-weight: 400;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 0 0 3px color-mix(in srgb, var(--brand-primary) 12%, transparent) !important;
}

.used-vehicle-specs {
    --spec-divider: #e3e9f1;
    overflow: hidden;
    border: 1px solid var(--spec-divider);
    border-radius: 24px;
}
.used-vehicle-specs__grid {
    display: grid;
    grid-template-columns: 1fr;
}
.used-vehicle-spec {
    min-width: 0;
    border-top: 1px solid var(--spec-divider);
}
.used-vehicle-spec:first-child {
    border-top: 0;
}
.used-vehicle-spec__content {
    display: flex;
    align-items: flex-start;
    gap: 0.95rem;
    padding: 1rem 1.05rem;
}
.used-vehicle-spec__icon,
.used-vehicle-spec__swatch {
    width: 2.35rem;
    height: 2.35rem;
    flex: 0 0 2.35rem;
}
.used-vehicle-spec__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
    font-size: 1.18rem;
}
.used-vehicle-spec__swatch {
    border-radius: 999px;
    background: var(--spec-swatch-colour, #d5dbe5);
    border: 1px solid var(--spec-divider);
}
.used-vehicle-spec__copy {
    flex: 1 1 auto;
    min-width: 0;
}
.used-vehicle-spec__label,
.used-vehicle-spec__value {
    margin: 0;
}
.used-vehicle-spec__label {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.used-vehicle-spec__value {
    margin-top: 0.28rem;
    color: var(--wtc-dark);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.22;
    overflow-wrap: anywhere;
}
.used-vehicle-spec__value--muted {
    color: #64748b;
    font-weight: 600;
}
.used-vehicle-spec__extras-list {
    margin: 0.65rem 0 0;
    padding-left: 1.1rem;
    color: var(--wtc-dark);
    font-weight: 600;
    line-height: 1.35;
}
.used-vehicle-spec__extras-list li + li {
    margin-top: 0.45rem;
}

.used-detail-assurance {
    padding: 2rem 0;
    background: #ffffff;
}
.used-detail-assurance--smart {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}
.used-detail-assurance--ready {
    border-top: 1px solid #eef0f3;
}
.used-detail-assurance-heading {
    max-width: 42rem;
}
.used-detail-assurance-heading .wtc-feature-title.text-primary {
    color: var(--wtc-dark) !important;
}
.used-detail-assurance-grid,
.used-detail-ready-list {
    border-top: 1px solid #eef0f3;
}
.used-detail-assurance-item,
.used-detail-ready-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eef0f3;
}
.used-detail-assurance-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    flex: 0 0 1.75rem;
    margin-top: 0.15rem;
    color: var(--brand-primary);
    font-size: 1.15rem;
    line-height: 1;
}
.used-detail-assurance-item h3,
.used-detail-ready-item h3 {
    line-height: 1.18;
}
.used-detail-assurance-item p,
.used-detail-ready-item p {
    line-height: 1.45;
}

@media (min-width: 992px) {
    .used-vehicle-specs__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .used-vehicle-spec {
        border-top: 1px solid var(--spec-divider);
    }
    .used-vehicle-spec:nth-child(-n + 3) {
        border-top: 0;
    }
    .used-vehicle-spec:nth-child(3n + 2),
    .used-vehicle-spec:nth-child(3n + 3) {
        border-left: 1px solid var(--spec-divider);
    }
    .used-vehicle-specs__grid--extras-rich {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
    .used-vehicle-specs__grid--extras-rich .used-vehicle-spec {
        grid-column: span 2;
    }
    .used-vehicle-specs__grid--extras-rich .used-vehicle-spec:nth-child(4),
    .used-vehicle-specs__grid--extras-rich .used-vehicle-spec:nth-child(5) {
        grid-column: span 3;
    }
    .used-vehicle-specs__grid--extras-rich .used-vehicle-spec:nth-child(4) {
        border-left: 0;
    }
    .used-vehicle-specs__grid--extras-rich .used-vehicle-spec:nth-child(5) {
        border-left: 1px solid var(--spec-divider);
    }
    .used-vehicle-specs__grid--extras-rich .used-vehicle-spec--extras-rich {
        grid-column: 1 / -1;
    }
    .used-detail-assurance {
        padding: 3rem 0;
    }
    .used-detail-assurance--ready {
        padding-top: 2.25rem;
    }
    .used-detail-assurance-item {
        min-height: 100%;
        padding: 1.25rem 1.4rem 1.35rem 0;
    }
    .used-detail-assurance-grid .col:nth-child(2) .used-detail-assurance-item,
    .used-detail-assurance-grid .col:nth-child(3) .used-detail-assurance-item {
        padding-left: 1.4rem;
        border-left: 1px solid #eef0f3;
    }
    .used-detail-ready-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .used-detail-ready-item {
        min-height: 100%;
        padding: 1.25rem 1.4rem 1.35rem 0;
    }
    .used-detail-ready-item + .used-detail-ready-item {
        padding-left: 1.4rem;
        border-left: 1px solid #eef0f3;
    }
}

@media (max-width: 575.98px) {
    .used-detail-assurance {
        padding: 1.5rem 0;
    }
    .used-detail-assurance-heading .wtc-feature-title {
        font-size: 1.65rem;
        line-height: 1.12;
    }
    .used-detail-assurance-item,
    .used-detail-ready-item {
        padding: 0.9rem 0;
    }
    .used-detail-assurance-item h3,
    .used-detail-ready-item h3 {
        font-size: 1rem;
        margin-bottom: 0.2rem !important;
    }
    .used-detail-assurance-item p,
    .used-detail-ready-item p {
        font-size: 0.95rem !important;
        line-height: 1.42;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .used-vehicle-specs__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .used-vehicle-spec:nth-child(-n + 2) {
        border-top: 0;
    }
    .used-vehicle-spec:nth-child(2n) {
        border-left: 1px solid var(--spec-divider);
    }
    .used-vehicle-specs__grid--extras-rich .used-vehicle-spec:nth-child(5) {
        grid-column: 1 / -1;
        border-left: 0;
    }
    .used-vehicle-specs__grid--extras-rich .used-vehicle-spec--extras-rich {
        grid-column: 1 / -1;
    }
}
