@media (min-width: 992px) {
    #primary-navigation > .container > ul {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 3px 15px;
        margin-bottom: 0;
    }

    #primary-navigation > .container > ul > li {
        float: none;
        margin: 0;
    }

    #primary-navigation > .container > ul > li > a {
        display: block;
        padding: 9px 0;
        font-size: 15px;
        line-height: 1.35;
    }
}

body.home .a1-home-search {
    background: #edf1f5;
    border-bottom: 1px solid #dbe2ea;
}

body.home .a1-home-search .element-inner {
    padding: 15px 0;
}

.a1-home-search .a1-stock-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px 24px;
}

.a1-stock-heading h1 {
    color: #1d2e43;
    font-size: clamp(18px, 1.8vw, 23px);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 4px;
}

.a1-stock-heading p {
    color: #35485a;
    font-size: 14px;
    line-height: 1.45;
    margin: 0;
}

.a1-stock-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: stretch;
}

.a1-home-search .a1-stock-toolbar-actions .btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 40px;
    padding: 7px 13px;
    line-height: 1.25;
    text-transform: none;
    white-space: normal;
}

.a1-home-search .a1-stock-toolbar-actions .btn-outline-primary {
    color: #234e90;
    background: #fff;
    border-color: #b7c9df;
}

.a1-home-search .a1-stock-toolbar-actions .btn-outline-primary:hover {
    background: #e1ebf8;
    color: #193e76;
}

.a1-stock-toolbar-actions .btn:focus-visible,
.a1-order-guide a:focus-visible {
    outline: 2px solid #234e90;
    outline-offset: 3px;
}

.a1-stock-details > .builder-element > .element-inner {
    padding: 12px 0 20px;
}

.a1-stock-details .a1-home-actions {
    margin-top: 0;
}

.a1-order-guide > .element-inner {
    padding: 20px 0 25px;
}

.a1-order-guide h2,
.a1-order-supporting .editor-content h2 {
    color: #213449;
    font-size: clamp(21px, 2vw, 25px);
    font-weight: 700;
    line-height: 1.27;
    margin: 0 0 13px;
}

.a1-order-guide .a1-order-steps ol {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: a1-order-step;
}

.a1-order-steps li {
    padding: 15px;
    border: 1px solid #dce5ee;
    border-radius: 7px;
    background: #fff;
    counter-increment: a1-order-step;
}

.a1-order-steps li::before {
    content: counter(a1-order-step);
    display: inline-grid;
    place-items: center;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    margin: 0 0 8px;
    color: #244e8e;
    background: #e8f0fb;
    font-size: 13px;
    font-weight: 700;
}

.a1-order-steps h3,
.a1-order-supporting .editor-content :is(h3, h4) {
    color: #263c54;
    font-size: 17px;
    line-height: 1.32;
    font-weight: 700;
    margin: 0 0 6px;
}

.a1-order-steps p,
.a1-order-pricing p {
    color: #33485c;
    line-height: 1.55;
    font-size: 15px;
    margin: 0;
}

.a1-order-pricing {
    margin-top: 17px;
    padding: 17px 19px;
    border: 1px solid #d4e2f0;
    border-left: 4px solid #2d5ca8;
    border-radius: 7px;
    background: #f0f5fb;
}

.a1-order-pricing h2 {
    margin-bottom: 7px;
}

.a1-order-pricing a {
    display: inline-block;
    color: #174b8d;
    margin-top: 9px;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 700;
}

.a1-order-supporting .row-grid {
    row-gap: 18px;
    align-items: start;
}

.a1-order-supporting .row-grid:has(> [class*="col-md-"] > .editor-content > :is(h2, h3, h4, section, .a1-order-content)) > :is(.col-md-4, .col-md-6) {
    flex: 0 0 100%;
    max-width: 100%;
}

.a1-order-supporting .editor-content {
    overflow-wrap: anywhere;
}

.a1-order-enquiry {
    background: #f1f5f9;
    border-top: 1px solid #dfe8f0;
}

.a1-order-enquiry .wpcf7 {
    scroll-margin-top: 76px;
}

@media (max-width: 991px) {
    .a1-order-guide .a1-order-steps ol {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .a1-home-search .a1-stock-toolbar {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .a1-stock-toolbar-actions .btn {
        flex: 1 1 125px;
    }
}

@media (max-width: 480px) {
    .a1-order-guide .a1-order-steps ol {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .a1-order-steps li {
        padding: 13px 14px;
    }
}


.a1-stock-question {
    display: inline-block;
    color: #235499;
    margin-inline-start: 3px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.a1-vehicle-services {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 7px;
}

.a1-home-search .a1-vehicle-services {
    margin-top: 10px;
}

.a1-vehicle-services .a1-vehicle-service {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 38px;
    max-width: 100%;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.25;
    text-align: center;
    text-transform: none;
    white-space: normal;
}

.a1-vehicle-service:focus-visible,
.a1-stock-question:focus-visible {
    outline: 2px solid #2456a4;
    outline-offset: 3px;
}

.a1-stock-catalogue > .element-inner {
    padding-top: 27px;
}

.a1-stock-catalogue .element-header {
    margin-bottom: 10px;
}

.a1-stock-catalogue .element-header h1 {
    font-size: clamp(23px, 2.4vw, 30px);
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}

.a1-stock-catalogue .vehicle-intro {
    margin-bottom: 12px;
}

.a1-stock-catalogue .vehicle-intro p {
    color: #35485a;
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

.a1-catalogue-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px 16px;
    margin: 0 0 18px;
}

.a1-catalogue-controls .post-filters {
    flex: 0 1 255px;
    min-width: 0;
    max-width: 100%;
    margin: 0;
}

.a1-catalogue-controls #sorting_select {
    min-height: 39px;
}

body.home .builder-elements > .element-vehicles > .element-inner {
    padding-top: 22px;
}

.a1-home-faq-links {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 14px;
}

#a1-home-faq-title {
    scroll-margin-top: 76px;
}

@media (max-width: 575px) {
    .a1-vehicle-services {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .a1-vehicle-service {
        min-height: 40px;
        padding-inline: 8px;
    }

    .a1-vehicle-service--order {
        grid-column: 1 / -1;
    }

    .a1-catalogue-controls .post-filters {
        flex-basis: 100%;
    }

    .a1-stock-catalogue > .element-inner {
        padding-top: 20px;
    }
}

.a1-stock-catalogue > .element-inner > .container > .element-body {
    margin-top: 12px;
}

body.home .builder-elements > .element-vehicles .element-header h2 {
    color: #243448;
    font-size: clamp(23px, 2.3vw, 28px);
    font-weight: 700 !important;
    line-height: 1.25;
}

body.home .builder-elements > .element-vehicles .element-body {
    margin-top: 18px;
}

body.home .a1-home-feature .vehicle-slide > a > .row,
body.home .a1-home-feature .vehicle-slide > a > .row :is(h5, ul, li) {
    color: #fff;
}

.a1-google-reviews {
    scroll-margin-top: 76px;
}

.a1-google-reviews > .element-inner {
    padding: clamp(24px, 4vw, 42px) 0;
    border-top: 1px solid #dbe2ea;
}

.a1-google-reviews h2 {
    margin: 0 0 14px;
    color: #243448;
    font-size: clamp(22px, 2.5vw, 29px);
    font-weight: 700;
    line-height: 1.25;
}

.a1-google-reviews .a1-google-reviews__source {
    margin: 14px 0 5px;
    color: #35485a;
    font-size: 14px;
    line-height: 1.5;
}

.a1-google-reviews .a1-google-reviews__link a {
    color: #234e90;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
