﻿/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
    margin-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Set widths on the form inputs since otherwise they're 100% wide */
input,
select,
textarea {
    max-width: 280px;
}

/* Responsive: Portrait tablets and up */
@media screen and (min-width: 768px) {
    .body-content {
        padding: 0;
    }
}

.product-card {
    transition: all .2s ease;
    cursor: pointer;
}

    .product-card:hover {
        transform: translateY(-3px);
    }

#trayContainer {
    width: 100%;
}

#productTray {
    animation: trayFade 0.25s ease;
}

@keyframes trayFade {

    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   LP4A HOMEPAGE
   ========================================================= */


/* HERO */

.lp4a-hero {
    position: relative;
    width: 100%;
    height: 130px;
    overflow: hidden;
    border-radius: 8px;
    background: #111;
}


.lp4a-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.lp4a-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}


.lp4a-hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 50px;
    color: #fff;
}


    .lp4a-hero-content h1 {
        font-size: 3.5rem;
        font-weight: 700;
        line-height: 1.1;
        margin-bottom: 20px;
    }


    .lp4a-hero-content p {
        font-size: 1.35rem;
    }


/* MODEL SECTION */

.lp4a-model-section {
    padding: 60px 0 20px;
}


    .lp4a-model-section h2 {
        font-weight: 700;
    }


/* VEHICLE CARD */

.vehicle-card {
    height: 100%;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}


    .vehicle-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    }


.vehicle-card-image {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    overflow: hidden;
}


    .vehicle-card-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }


.vehicle-card-body {
    padding: 20px;
    text-align: center;
}


    .vehicle-card-body h3 {
        font-size: 1.1rem;
        font-weight: 600;
        min-height: 52px;
        margin-bottom: 15px;
    }


/* CAROUSEL CONTROLS */

#vehicleCarousel {
    padding-left: 45px;
    padding-right: 45px;
}


    #vehicleCarousel .carousel-control-prev,
    #vehicleCarousel .carousel-control-next {
        width: 40px;
    }


    #vehicleCarousel .carousel-control-prev-icon,
    #vehicleCarousel .carousel-control-next-icon {
        background-color: #212529;
        border-radius: 50%;
        padding: 20px;
        background-size: 50%;
    }


/* FEATURED PRODUCTS */

.lp4a-products-section {
    padding: 40px 0 60px;
}


/* MOBILE */

@media (max-width: 767px) {

    .lp4a-hero {
        height: 130px;
    }


    .lp4a-hero-content {
        padding: 30px;
    }


        .lp4a-hero-content h1 {
            font-size: 2.2rem;
        }


        .lp4a-hero-content p {
            font-size: 1rem;
        }


    .vehicle-card-image {
        height: 180px;
    }


    #vehicleCarousel {
        padding-left: 30px;
        padding-right: 30px;
    }
}

/* =========================================
   VEHICLE MODEL CAROUSEL
   ========================================= */

.vehicle-carousel {
    overflow-x: hidden;
    scroll-behavior: smooth;
    margin: 0 45px;
}

.vehicle-carousel-track {
    display: flex;
    gap: 20px;
    width: max-content;
}

.vehicle-carousel-item {
    width: 250px;
    flex: 0 0 250px;
}

.vehicle-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease,
                box-shadow 0.2s ease,
                border-color 0.2s ease;
}

.vehicle-card:hover {
    color: inherit;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: #ccc;
}

.vehicle-image-wrapper {
    width: 100%;
    height: 170px;
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.vehicle-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.vehicle-card-title {
    min-height: 64px;
    padding: 14px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
}


/* Carousel buttons */

.vehicle-carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 42px;
    height: 42px;

    border: none;
    border-radius: 50%;

    background: #212529;
    color: #fff;

    font-size: 22px;
    line-height: 1;

    z-index: 5;

    cursor: pointer;

    transition:
        background 0.2s ease,
        opacity 0.2s ease;
}

.vehicle-carousel-button:hover {
    background: #000;
}

.vehicle-carousel-button:disabled {
    opacity: 0.25;
    cursor: default;
}

.vehicle-carousel-prev {
    left: 0;
}

.vehicle-carousel-next {
    right: 0;
}

.vehicle-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.vehicle-card-selected {
    border: 3px solid #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

.vehicle-card-selected::after {
    content: "Selected";
    display: block;
    padding: 6px;
    text-align: center;
    font-weight: 600;
    background: #0d6efd;
    color: #fff;
}

/* Mobile */

@media (max-width: 767px) {

    .vehicle-carousel {
        margin: 0 35px;
    }

    .vehicle-carousel-item {
        width: 210px;
        flex-basis: 210px;
    }

    .vehicle-image-wrapper {
        height: 145px;
    }

}

/* =====================================================
   Main Navigation
   ===================================================== */

.lp4a-navbar {
    border-radius: 0.5rem;
}

    .lp4a-navbar .navbar-brand {
        font-size: 1.4rem;
        letter-spacing: 0.02em;
    }

#headerProductSearch {
    max-width: 520px;
}

#headerProductSearchInput {
    min-width: 180px;
}

#headerProductSearchButton {
    white-space: nowrap;
}


/* Mobile navigation */

@media (max-width: 991.98px) {

    #headerProductSearch {
        max-width: none;
        width: 100%;
    }

    .lp4a-navbar .navbar-nav {
        width: 100%;
    }

    .lp4a-navbar .nav-link {
        padding-top: 0.65rem;
        padding-bottom: 0.65rem;
    }
}

/* =====================================================
   Product Cards
   ===================================================== */

.product-card {
    border: 1px solid #e5e5e5;
    border-radius: 0.65rem;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

    .product-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.08);
        border-color: #d5d5d5;
    }


/* Product Image */

.product-image-wrapper {
    height: 220px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* Product Meta */

.product-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.product-code {
    font-size: 0.78rem;
    font-weight: 600;
    color: #6c757d;
}


/* Product Title */

.product-title {
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.product-brand {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}


/* Price */

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bs-primary);
}


/* Stock */

.product-stock {
    display: inline-block;
    padding: 0.2rem 0.45rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

.product-in-stock {
    background: #e8f5e9;
    color: #237a35;
}

.product-out-stock {
    background: #f5f5f5;
    color: #777;
}


/* Responsive */

@media (max-width: 767.98px) {

    .product-image-wrapper {
        height: 190px;
    }
}

/* =====================================================
   Product Details Tray
   ===================================================== */

.product-details-tray {
    width: 100%;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.product-details-card {
    position: relative;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.1);
}


/* Close */

.product-details-close {
    position: absolute;
    top: 0.75rem;
    right: 0.9rem;
    z-index: 5;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #f1f1f1;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

    .product-details-close:hover {
        background: #e4e4e4;
    }


/* Image */

.product-details-image-wrapper {
    height: 100%;
    min-height: 420px;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    border-right: 1px solid #eee;
}

.product-details-image {
    width: 100%;
    max-width: 420px;
    max-height: 380px;
    object-fit: contain;
}


/* Content */

.product-details-content {
    padding: 2rem;
}

.product-details-code {
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 600;
}

.product-details-title {
    margin-bottom: 0.5rem;
    font-size: 1.65rem;
    line-height: 1.3;
    font-weight: 700;
}

.product-details-brand {
    margin-bottom: 1rem;
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.product-details-description {
    margin-top: 1rem;
    color: #555;
}

.product-details-price {
    margin-top: 1.25rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: #185a3d;
}


/* Stock */

.product-stock-heading {
    font-size: 0.9rem;
    font-weight: 700;
}

.product-stock-location {
    height: 100%;
    padding: 0.75rem;
    border: 1px solid #e5e5e5;
    border-radius: 0.5rem;
}

.product-stock-location-name {
    margin-bottom: 0.2rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-stock-available {
    color: #237a35;
    font-size: 0.8rem;
}

.product-stock-unavailable {
    color: #777;
    font-size: 0.8rem;
}


/* Mobile */

@media (max-width: 991.98px) {

    .product-details-image-wrapper {
        min-height: 280px;
        border-right: 0;
        border-bottom: 1px solid #eee;
    }

    .product-details-content {
        padding: 1.5rem;
    }
}

.courier-rate-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.courier-rate-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .courier-rate-option:hover {
        border-color: var(--bs-primary);
    }

    .courier-rate-option:has( .courier-rate-radio:checked ) {
        border-color: var(--bs-primary);
        box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.12);
    }

.courier-rate-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* =========================================================
   LP4A VEHICLE SELECTOR
   ========================================================= */

.lp4a-vehicle-selector {
    width: 100%;
    background: #fff;
    border: 1px solid #dfe4e1;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}


/* =========================================================
   HEADER
   ========================================================= */

.lp4a-vehicle-selector-header {
    min-height: 52px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #0d422b;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.92rem;
    font-weight: 700;
}


.lp4a-selector-header-number {
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 25px;
    border-radius: 50%;
    background: #185a3d;
    color: #fff;
    font-size: 0.78rem;
}


.lp4a-selector-header-title {
    flex: 1;
}


.lp4a-selector-header-toggle {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1;
}


/* =========================================================
   BODY
   ========================================================= */

.lp4a-vehicle-selector-body {
    padding: 18px 16px 16px;
}


/* =========================================================
   STEPS
   ========================================================= */

.lp4a-selector-step {
    margin-bottom: 19px;
}


.lp4a-selector-step-title {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #202824;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 700;
}


    .lp4a-selector-step-title label {
        margin: 0;
        cursor: default;
    }


.lp4a-step-number {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    border-radius: 50%;
    background: #0d422b;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
}


/* =========================================================
   SELECT CONTROLS
   ========================================================= */

.lp4a-selector-control {
    position: relative;
    padding-left: 32px;
    padding-right: 27px;
}


    /*
 * Override the global Site.css:
 *
 * select {
 *     max-width: 280px;
 * }
 */

    .lp4a-selector-control .form-select {
        width: 100%;
        max-width: none;
        min-height: 42px;
        padding-left: 12px;
        padding-right: 34px;
        border: 1px solid #d4dad6;
        border-radius: 4px;
        background-color: #fff;
        color: #272d2a;
        font-size: 0.84rem;
        font-weight: 500;
        box-shadow: none;
    }


        .lp4a-selector-control .form-select:focus {
            border-color: #0d422b;
            box-shadow: 0 0 0 0.15rem rgba(13, 66, 43, 0.10);
        }


        .lp4a-selector-control .form-select:disabled {
            background-color: #f6f7f6;
            color: #777;
            opacity: 1;
        }


/*
 * Keep the Make dropdown visually normal even
 * though it is intentionally locked to Land Rover.
 */

#vehicleMake:disabled {
    background-color: #fff;
    color: #272d2a;
    cursor: default;
}


/* =========================================================
   CHECKMARK
   ========================================================= */

.lp4a-step-check {
    position: absolute;
    top: 50%;
    right: 0;
    width: 21px;
    height: 21px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #dfe5e1;
    color: transparent;
    font-size: 0.72rem;
    font-weight: 700;
    transition: background-color 0.15s ease, color 0.15s ease;
}


.lp4a-step-check-active {
    background: #0d422b;
    color: #fff;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.lp4a-selector-actions {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.lp4a-view-parts-btn {
    width: 100%;
    padding: 11px 18px;
    border: 1px solid #0d422b;
    border-radius: 4px;
    background: #0d422b;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}


    .lp4a-view-parts-btn:hover,
    .lp4a-view-parts-btn:focus {
        background: #092f1f;
        border-color: #092f1f;
        color: #fff;
    }


.lp4a-reset-vehicle-btn {
    width: 100%;
    padding: 10px 18px;
    border: 1px solid #7f8984;
    border-radius: 4px;
    background: #fff;
    color: #27302c;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 700;
}


    .lp4a-reset-vehicle-btn:hover,
    .lp4a-reset-vehicle-btn:focus {
        background: #f5f6f5;
        border-color: #0d422b;
        color: #0d422b;
    }


.lp4a-reset-icon {
    display: inline-block;
    margin-right: 6px;
    font-size: 1rem;
    line-height: 1;
}


/* =========================================================
   HELP AREA
   ========================================================= */

.lp4a-selector-help {
    margin-top: 18px;
    margin-left: -16px;
    margin-right: -16px;
    margin-bottom: -16px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    border-top: 1px solid #e1e5e2;
    background: #f6f8f6;
}


.lp4a-selector-help-icon {
    flex: 0 0 28px;
    font-size: 1.1rem;
    line-height: 1.4;
}


.lp4a-selector-help strong {
    display: block;
    margin-bottom: 3px;
    color: #27302c;
    font-size: 0.76rem;
    line-height: 1.35;
}


.lp4a-selector-help p {
    margin: 0 0 7px;
    color: #68716c;
    font-size: 0.72rem;
    line-height: 1.4;
}


.lp4a-selector-help a {
    color: #0d422b;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 0.74rem;
    font-weight: 700;
}


    .lp4a-selector-help a:hover {
        text-decoration: underline;
    }


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991.98px) {

    .lp4a-vehicle-selector {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}


@media (max-width: 575.98px) {

    .lp4a-vehicle-selector-body {
        padding-left: 14px;
        padding-right: 14px;
    }


    .lp4a-selector-control {
        padding-left: 30px;
        padding-right: 25px;
    }


    .lp4a-selector-help {
        margin-left: -14px;
        margin-right: -14px;
    }
}

/* =========================================================
   PRODUCTS - VEHICLE RESULTS
   ========================================================= */


/* Breadcrumbs */

.lp4a-product-breadcrumbs {
    margin-bottom: 18px;
    padding: 13px 18px;
    border: 1px solid #e2e6e3;
    border-radius: 5px;
    background: #fff;
    font-size: 0.78rem;
}


    .lp4a-product-breadcrumbs a {
        color: #59635d;
        text-decoration: none;
    }


        .lp4a-product-breadcrumbs a:hover {
            color: #0d422b;
        }


/* =========================================================
   SELECTED VEHICLE
   ========================================================= */

.lp4a-selected-vehicle {
    margin-bottom: 24px;
    padding: 24px;
    border: 1px solid #e0e5e2;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.035);
}


.lp4a-selected-vehicle-image {
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}


    .lp4a-selected-vehicle-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }


.lp4a-selected-vehicle-make {
    margin-bottom: 2px;
    color: #6c756f;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


.lp4a-selected-vehicle-title {
    margin: 0 0 8px;
    color: #171c19;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.2;
}


.lp4a-selected-vehicle-detail {
    margin-bottom: 3px;
    color: #303733;
    font-size: 0.96rem;
    font-weight: 500;
}


.lp4a-vehicle-supported {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #5d665f;
    font-size: 0.79rem;
}


.lp4a-supported-icon {
    width: 19px;
    height: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #2f9e44;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
}


.lp4a-change-vehicle-btn {
    padding: 9px 14px;
    border: 1px solid #7f8983;
    border-radius: 4px;
    background: #fff;
    color: #263029;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 700;
}


    .lp4a-change-vehicle-btn:hover {
        border-color: #0d422b;
        background: #f5f7f5;
        color: #0d422b;
    }


/* =========================================================
   CATEGORY SECTION
   ========================================================= */

.lp4a-category-section {
    margin-bottom: 28px;
}


.lp4a-section-heading {
    margin-bottom: 11px;
    color: #1b211d;
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
}


.lp4a-category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}


.lp4a-category-tile {
    min-height: 102px;
    padding: 12px 7px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #dfe4e1;
    border-radius: 4px;
    background: #fff;
    color: #252d28;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}


    .lp4a-category-tile:hover {
        border-color: #0d422b;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
        transform: translateY(-2px);
    }


.lp4a-category-tile-active {
    border-color: #0d422b;
    box-shadow: inset 0 -3px 0 #0d422b;
}


.lp4a-category-tile-icon {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #173c2b;
    font-size: 1.7rem;
    line-height: 1;
}


.lp4a-category-tile-name {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.25;
}


.lp4a-category-all {
    background: #f7f8f7;
}


/* =========================================================
   RESULTS
   ========================================================= */

.lp4a-product-results-section {
    margin-top: 4px;
}


.lp4a-results-heading {
    color: #1b211d;
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
}


.products-sort .form-select {
    min-width: 190px;
    max-width: 220px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1199.98px) {

    .lp4a-category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}


@media (max-width: 767.98px) {

    .lp4a-selected-vehicle {
        text-align: center;
    }


    .lp4a-selected-vehicle-image {
        height: 170px;
    }


    .lp4a-vehicle-supported {
        justify-content: center;
    }


    .lp4a-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


    .products-sort,
    .products-sort .form-select {
        width: 100%;
        max-width: none;
    }
}

/* =========================================================
   LP4A PRODUCT CARD REFINEMENT
   ========================================================= */

.product-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #e0e5e2;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}


    .product-card:hover {
        transform: translateY(-3px);
        border-color: #bfc9c2;
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    }


/* Product image */

.product-image-wrapper {
    position: relative;
    height: 205px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #edf0ee;
    background: #fff;
}


.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
}


.product-card:hover .product-image {
    transform: scale(1.03);
}


/* Card body */

.product-card .card-body {
    padding: 16px;
}


/* Product meta */

.product-card-meta {
    min-height: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}


.product-code {
    color: #757d78;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}


/* Stock badge */

.product-stock {
    padding: 4px 7px;
    border-radius: 3px;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}


.product-in-stock {
    background: #e8f5ec;
    color: #22763d;
}


.product-out-stock {
    background: #fbeaea;
    color: #b63b3b;
}


/* Product title */

.product-title {
    min-height: 44px;
    margin: 9px 0 5px;
    color: #1c231f;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
}


/* Brand */

.product-brand {
    color: #7a827d;
    font-size: 0.72rem;
    font-weight: 500;
}


/* Price */

.product-price {
    color: #0d422b;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.2;
}


/* View Details button */

.product-view {
    padding: 9px 12px !important;
    border: 1px solid #0d422b !important;
    border-radius: 4px !important;
    background: #0d422b !important;
    color: #fff !important;
    font-size: 0.73rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    box-shadow: none !important;
}


    .product-view:hover,
    .product-view:focus {
        border-color: #092f1f !important;
        background: #092f1f !important;
        color: #fff !important;
    }


/* Product rows */

.product-row {
    margin-bottom: 6px;
}


/* =========================================================
   PRODUCT RESULTS HEADING
   ========================================================= */

.lp4a-product-results-section {
    padding-top: 4px;
}


.lp4a-results-heading {
    position: relative;
    padding-bottom: 9px;
    color: #17211b;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}


    .lp4a-results-heading::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 42px;
        height: 3px;
        border-radius: 2px;
        background: #0d422b;
    }


/* Sort */

.products-sort label {
    color: #656e68 !important;
    font-size: 0.69rem !important;
    font-weight: 700;
    text-transform: uppercase;
}


.products-sort .form-select {
    min-height: 40px;
    border-color: #d3d9d5;
    border-radius: 4px;
    font-size: 0.8rem;
    box-shadow: none;
}


    .products-sort .form-select:focus {
        border-color: #0d422b;
        box-shadow: 0 0 0 0.15rem rgba(13, 66, 43, 0.10);
    }


/* =========================================================
   MOBILE PRODUCT CARDS
   ========================================================= */

@media (max-width: 767.98px) {

    .product-image-wrapper {
        height: 190px;
    }


    .product-title {
        min-height: auto;
    }
}

/* =========================================================
   LP4A PRODUCTS PAGE - SECOND VISUAL PASS
   ========================================================= */


/* Selected vehicle */

.lp4a-selected-vehicle {
    padding: 18px 22px;
    border-top: 3px solid #0d422b;
}


.lp4a-selected-vehicle-image {
    height: 160px;
}


.lp4a-selected-vehicle-title {
    margin-bottom: 6px;
    font-size: 1.55rem;
    line-height: 1.15;
}


.lp4a-selected-vehicle-detail {
    font-size: 0.88rem;
}


.lp4a-vehicle-supported {
    margin-top: 9px;
}


/* =========================================================
   CATEGORY TILES
   ========================================================= */

.lp4a-category-grid {
    gap: 7px;
}


.lp4a-category-tile {
    min-height: 88px;
    padding: 10px 8px;
    border-radius: 5px;
    background: linear-gradient( 180deg, #ffffff 0%, #fbfcfb 100% );
}


.lp4a-category-tile-icon {
    width: 34px;
    height: 34px;
    min-height: 34px;
    border-radius: 50%;
    background: #f0f5f2;
    color: #0d422b;
    font-size: 1.25rem;
}


.lp4a-category-tile:hover .lp4a-category-tile-icon,
.lp4a-category-tile-active .lp4a-category-tile-icon {
    background: #0d422b;
    color: #fff;
}


.lp4a-category-tile-name {
    font-size: 0.68rem;
    line-height: 1.25;
}


/* Active category */

.lp4a-category-tile-active {
    border: 1px solid #0d422b;
    background: linear-gradient( 180deg, #ffffff 0%, #f4f8f5 100% );
    box-shadow: inset 0 -3px 0 #0d422b;
}


/* =========================================================
   PRODUCT RESULTS HEADER
   ========================================================= */

.lp4a-product-results-section {
    padding-top: 8px;
}


.lp4a-results-heading {
    font-size: 1.2rem;
}


#productsFilterSummary {
    margin-top: 7px;
    font-size: 0.8rem;
}


#productsCount {
    margin-top: 3px;
    font-size: 0.75rem;
}


/* =========================================================
   PRODUCT CARDS - MORE BREATHING ROOM
   ========================================================= */

.product-image-wrapper {
    height: 225px;
    padding: 22px;
}


.product-card .card-body {
    padding: 17px;
}


.product-title {
    min-height: 48px;
    font-size: 0.92rem;
    line-height: 1.4;
}


.product-code {
    font-size: 0.7rem;
}


.product-brand {
    margin-top: 3px;
    font-size: 0.72rem;
}


.product-price {
    margin-top: 4px;
    font-size: 1.18rem;
}


.product-view {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

@media (min-width: 992px) {

    .lp4a-vehicle-selector {
        position: sticky;
        top: 20px;
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991.98px) {

    .lp4a-selected-vehicle-image {
        height: 145px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .lp4a-selected-vehicle {
        padding: 18px;
    }


    .lp4a-category-tile {
        min-height: 82px;
    }


    .product-image-wrapper {
        height: 210px;
    }
}

/* =========================================================
   LP4A MAIN SITE HEADER
   ========================================================= */

.lp4a-page-header {
    margin: 0;
}


.lp4a-site-header {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #dce2de;
}


/* =========================================================
   TOP HEADER
   ========================================================= */

.lp4a-header-main {
    background: #fff;
}


.lp4a-header-main-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 30px;
}


/* =========================================================
   BRAND
   ========================================================= */

.lp4a-header-brand {
    min-width: 180px;
    display: flex;
    flex-direction: column;
    color: #12261b;
    text-decoration: none;
    line-height: 1;
}


    .lp4a-header-brand:hover {
        color: #0d422b;
    }


.lp4a-header-logo {
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}


.lp4a-header-tagline {
    margin-top: 6px;
    color: #6d766f;
    font-size: 0.63rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


/* =========================================================
   SEARCH
   ========================================================= */

.lp4a-header-search {
    flex: 1;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}


.lp4a-header-search-box {
    width: 100%;
    height: 44px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid #ccd4cf;
    border-radius: 5px;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}


    .lp4a-header-search-box:focus-within {
        border-color: #0d422b;
        box-shadow: 0 0 0 3px rgba(13, 66, 43, 0.08);
    }


.lp4a-search-icon {
    width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6e7771;
    font-size: 1.05rem;
}


#headerProductSearchInput {
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 42px;
    padding-left: 0;
    border: 0;
    background: transparent;
    color: #252d28;
    font-size: 0.82rem;
    box-shadow: none;
}


    #headerProductSearchInput:focus {
        border: 0;
        box-shadow: none;
    }


.lp4a-header-search-button {
    height: 44px;
    padding-left: 22px;
    padding-right: 22px;
    border: 0;
    border-radius: 0;
    background: #0d422b;
    color: #fff;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
}


    .lp4a-header-search-button:hover,
    .lp4a-header-search-button:focus {
        background: #092f1f;
        color: #fff;
    }


/* =========================================================
   ACCOUNT / BASKET
   ========================================================= */

.lp4a-header-actions {
    display: flex;
    align-items: stretch;
    gap: 4px;
}


.lp4a-header-action {
    min-width: 115px;
    padding: 8px 11px;
    display: flex;
    align-items: center;
    gap: 9px;
    border-left: 1px solid #e4e8e5;
    color: #252d28;
    text-decoration: none;
}


    .lp4a-header-action:hover {
        color: #0d422b;
        background: #f7f9f7;
    }


.lp4a-header-action-icon {
    flex: 0 0 25px;
    color: #0d422b;
    font-size: 1.05rem;
}


.lp4a-header-action-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}


    .lp4a-header-action-text small {
        margin-bottom: 3px;
        color: #8a918d;
        font-size: 0.6rem;
        text-transform: uppercase;
    }


    .lp4a-header-action-text strong {
        color: #252d28;
        font-size: 0.72rem;
        font-weight: 700;
    }


.lp4a-header-basket-count {
    min-width: 18px;
    height: 18px;
    padding: 2px 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    border-radius: 50%;
    background: #dc3545;
    color: #fff;
    font-size: 0.58rem;
}


/* =========================================================
   GREEN NAVIGATION BAR
   ========================================================= */

.lp4a-main-navbar {
    min-height: 46px;
    padding: 0;
    background: #0d422b;
}


    .lp4a-main-navbar .container {
        min-height: 46px;
    }


.lp4a-main-nav {
    min-height: 46px;
    display: flex;
    align-items: stretch;
}


    .lp4a-main-nav .nav-item {
        display: flex;
    }


    .lp4a-main-nav .nav-link {
        min-width: 95px;
        padding: 0 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: rgba(255, 255, 255, 0.86);
        font-size: 0.73rem;
        font-weight: 700;
        letter-spacing: 0.025em;
        text-transform: uppercase;
        transition: background 0.15s ease, color 0.15s ease;
    }


        .lp4a-main-nav .nav-link:hover,
        .lp4a-main-nav .nav-link:focus {
            background: #123c29;
            color: #fff;
        }


/* =========================================================
   DELIVERY MESSAGE
   ========================================================= */

.lp4a-nav-delivery {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.69rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}


.lp4a-delivery-icon {
    font-size: 0.95rem;
}


/* =========================================================
   PAGE CONTENT
   ========================================================= */

.lp4a-page-content {
    margin-top: 24px;
}


/* =========================================================
   MOBILE TOGGLE
   ========================================================= */

.lp4a-mobile-toggle {
    display: none;
    border: 1px solid #cfd5d1;
    box-shadow: none !important;
}


/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media (max-width: 991.98px) {

    .lp4a-header-main-inner {
        min-height: 68px;
        gap: 15px;
    }


    .lp4a-header-brand {
        min-width: auto;
    }


    .lp4a-header-search {
        margin-left: auto;
        max-width: none;
    }


    .lp4a-header-actions {
        display: none;
    }


    .lp4a-mobile-toggle {
        display: block;
    }


    .lp4a-main-navbar {
        min-height: auto;
        background: #0d422b;
    }


        .lp4a-main-navbar .navbar-collapse {
            padding: 8px 0 14px;
        }


    .lp4a-main-nav {
        width: 100%;
        min-height: auto;
    }


        .lp4a-main-nav .nav-item {
            display: block;
        }


        .lp4a-main-nav .nav-link {
            width: 100%;
            min-width: 0;
            padding: 11px 14px;
            justify-content: flex-start;
        }


    .lp4a-nav-delivery {
        padding: 12px 14px;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }
}


@media (max-width: 575.98px) {

    .lp4a-header-main-inner {
        flex-wrap: wrap;
        padding-top: 12px;
        padding-bottom: 12px;
    }


    .lp4a-header-brand {
        flex: 1;
    }


    .lp4a-header-search {
        flex: 0 0 100%;
        order: 3;
    }


    .lp4a-header-search-box {
        height: 42px;
    }


    .lp4a-header-search-button {
        padding-left: 16px;
        padding-right: 16px;
    }


    .lp4a-header-tagline {
        display: none;
    }


    .lp4a-page-content {
        margin-top: 18px;
    }
}

/* =========================================================
   HEADER DELIVERY MESSAGE
   ========================================================= */

.lp4a-header-delivery {
    min-width: 180px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 1px solid #e4e8e5;
    color: #252d28;
}


.lp4a-header-delivery-icon {
    flex: 0 0 26px;
    color: #0d422b;
    font-size: 1rem;
}


.lp4a-header-delivery-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}


    .lp4a-header-delivery-text small {
        margin-bottom: 3px;
        color: #8a918d;
        font-size: 0.58rem;
        letter-spacing: 0.03em;
        text-transform: uppercase;
    }


    .lp4a-header-delivery-text strong {
        color: #252d28;
        font-size: 0.68rem;
        font-weight: 700;
        white-space: nowrap;
    }


/*
 * Old navigation delivery message
 * no longer required.
 */
.lp4a-nav-delivery {
    display: none;
}


@media (max-width: 1199.98px) {

    .lp4a-header-delivery {
        min-width: auto;
        padding-left: 11px;
        padding-right: 11px;
    }


    .lp4a-header-delivery-text small {
        display: none;
    }


    .lp4a-header-delivery-text strong {
        font-size: 0.62rem;
    }
}


@media (max-width: 991.98px) {

    .lp4a-header-delivery {
        display: none;
    }
}

/* =========================================================
   LP4A HEADER LOGO
   ========================================================= */

.lp4a-header-brand {
    min-width: 210px;
    display: flex;
    align-items: center;
    text-decoration: none;
}


.lp4a-header-logo-image {
    display: block;
    width: 205px;
    height: auto;
    max-width: 100%;
}


@media (max-width: 1199.98px) {

    .lp4a-header-brand {
        min-width: 175px;
    }


    .lp4a-header-logo-image {
        width: 170px;
    }
}


@media (max-width: 767.98px) {

    .lp4a-header-brand {
        min-width: 150px;
    }


    .lp4a-header-logo-image {
        width: 150px;
    }
}

/* =========================================================
   HOMEPAGE VEHICLE CARDS - LP4A VISUAL ALIGNMENT
   ========================================================= */

.lp4a-model-section {
    margin-top: 28px;
}


/* Vehicle card */

.vehicle-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid #dfe5e1;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}


    .vehicle-card:hover {
        transform: translateY(-3px);
        border-color: #aebcb4;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    }


/* Vehicle image area */

.vehicle-image-wrapper {
    height: 180px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #edf0ee;
    background: #fff;
}


    .vehicle-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: transform 0.2s ease;
    }


.vehicle-card:hover .vehicle-image-wrapper img {
    transform: scale(1.03);
}


/* Vehicle content */

.vehicle-card-body {
    padding: 14px 14px 16px;
}


.vehicle-card-title {
    margin: 0;
    color: #1d251f;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}


/* Selected state */

.vehicle-card-selected {
    border: 2px solid #0d422b;
    box-shadow: 0 0 0 3px rgba(13, 66, 43, 0.08);
}


    .vehicle-card-selected::after {
        content: "Selected";
        display: block;
        padding: 7px 10px;
        background: #0d422b;
        color: #fff;
        text-align: center;
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }


/* Carousel controls */

#vehicleCarousel .carousel-control-prev,
#vehicleCarousel .carousel-control-next {
    width: 44px;
    height: 44px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    border-radius: 50%;
    background: #0d422b;
}


#vehicleCarousel .carousel-control-prev {
    left: -18px;
}


#vehicleCarousel .carousel-control-next {
    right: -18px;
}


    #vehicleCarousel .carousel-control-prev:hover,
    #vehicleCarousel .carousel-control-next:hover {
        background: #092f1f;
    }


/* Bootstrap arrow sizing */

#vehicleCarousel .carousel-control-prev-icon,
#vehicleCarousel .carousel-control-next-icon {
    width: 18px;
    height: 18px;
}


/* Selected label underneath carousel */

#selectedVehicle {
    margin-top: 18px !important;
    padding: 10px 14px;
    border: 1px solid #dfe5e1;
    border-radius: 4px;
    background: #f5f8f6;
    color: #263029;
    font-size: 0.8rem;
}


    #selectedVehicle strong {
        color: #0d422b;
    }


/* =========================================================
   HOMEPAGE SECTION HEADINGS
   ========================================================= */

.lp4a-model-section h2,
.lp4a-products-section h2 {
    position: relative;
    margin-bottom: 12px;
    color: #17211b;
    font-size: 1.35rem;
    font-weight: 800;
    text-transform: uppercase;
}


    .lp4a-model-section h2::after,
    .lp4a-products-section h2::after {
        content: "";
        display: block;
        width: 42px;
        height: 3px;
        margin: 9px auto 0;
        border-radius: 2px;
        background: #0d422b;
    }


    /*
 * Featured Parts heading is left aligned,
 * so align its underline left too.
 */
    .lp4a-products-section h2::after {
        margin-left: 0;
    }


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991.98px) {

    .vehicle-image-wrapper {
        height: 165px;
    }


    #vehicleCarousel .carousel-control-prev {
        left: -10px;
    }


    #vehicleCarousel .carousel-control-next {
        right: -10px;
    }
}


@media (max-width: 767.98px) {

    .vehicle-image-wrapper {
        height: 155px;
    }


    .vehicle-card-title {
        font-size: 0.82rem;
    }


    #vehicleCarousel .carousel-control-prev,
    #vehicleCarousel .carousel-control-next {
        width: 38px;
        height: 38px;
    }
}

/* =========================================================
   HOMEPAGE VEHICLE CARDS - COMPACT CLICKABLE VERSION
   ========================================================= */

.vehicle-select-card {
    height: 100%;
    cursor: pointer;
}


/* Image */

.vehicle-card-image {
    height: 165px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #e7ebe8;
    background: #fff;
}


    .vehicle-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.22s ease;
    }


.vehicle-select-card:hover .vehicle-card-image img {
    transform: scale(1.035);
}


/* Body */

.vehicle-card-body {
    min-height: 86px;
    padding: 12px 10px 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}


    .vehicle-card-body h3 {
        margin: 0;
        color: #202722;
        font-size: 0.78rem;
        font-weight: 700;
        line-height: 1.3;
    }


/* Small interaction hint */

.vehicle-card-action {
    margin-top: 7px;
    color: #0d422b;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.035em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(3px);
    transition: opacity 0.16s ease, transform 0.16s ease;
}


.vehicle-select-card:hover .vehicle-card-action {
    opacity: 1;
    transform: translateY(0);
}


/* Card hover */

.vehicle-select-card:hover {
    border-color: #0d422b;
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.08);
}


/* Keyboard focus */

.vehicle-select-card:focus {
    outline: none;
    border-color: #0d422b;
    box-shadow: 0 0 0 3px rgba(13, 66, 43, 0.12);
}


/* Selected */

.vehicle-select-card.vehicle-card-selected {
    border: 2px solid #0d422b;
    box-shadow: 0 0 0 3px rgba(13, 66, 43, 0.08);
}


    /*
 * Remove the old full-width Selected footer.
 * The green border is enough now.
 */
    .vehicle-select-card.vehicle-card-selected::after {
        display: none;
    }


/* Four cards need slightly smaller carousel arrows */

#vehicleCarousel .carousel-control-prev,
#vehicleCarousel .carousel-control-next {
    width: 38px;
    height: 38px;
}


#vehicleCarousel .carousel-control-prev {
    left: -16px;
}


#vehicleCarousel .carousel-control-next {
    right: -16px;
}


@media (max-width: 1199.98px) {

    .vehicle-card-image {
        height: 150px;
    }
}


@media (max-width: 991.98px) {

    .vehicle-card-image {
        height: 180px;
    }
}

/* =========================================================
   HOMEPAGE FEATURED PRODUCT CARDS
   ========================================================= */

#featuredProducts .product-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid #dfe5e1;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}


    #featuredProducts .product-card:hover {
        transform: translateY(-3px);
        border-color: #b8c5bd;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    }


/* Image area */

#featuredProducts .product-image-wrapper {
    height: 190px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #edf0ee;
    background: #fff;
}


#featuredProducts .product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
}


#featuredProducts .product-card:hover .product-image {
    transform: scale(1.03);
}


/* Card body */

#featuredProducts .card-body {
    min-height: 205px;
    padding: 15px;
    display: flex;
    flex-direction: column;
}


/* Product code */

#featuredProducts .product-code {
    margin-bottom: 7px;
    color: #7a827d;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}


/* Product title */

#featuredProducts .product-title {
    min-height: 42px;
    margin: 0 0 6px;
    color: #1e251f;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.35;
}


/* Brand */

#featuredProducts .product-brand {
    min-height: 18px;
    color: #7b837e;
    font-size: 0.68rem;
}


/* Price */

#featuredProducts .product-price {
    margin-top: auto;
    padding-top: 10px;
    color: #0d422b;
    font-size: 1.08rem;
    font-weight: 800;
}


/* View Details */

#featuredProducts .product-view {
    width: 100%;
    min-height: 38px;
    margin-top: 12px !important;
    padding: 8px 12px !important;
    border: 1px solid #0d422b !important;
    border-radius: 4px !important;
    background: #0d422b !important;
    color: #fff !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    box-shadow: none !important;
}


    #featuredProducts .product-view:hover,
    #featuredProducts .product-view:focus {
        border-color: #092f1f !important;
        background: #092f1f !important;
        color: #fff !important;
    }


/* =========================================================
   FEATURED PARTS SECTION
   ========================================================= */

.lp4a-products-section {
    margin-top: 58px !important;
}


    .lp4a-products-section .container {
        padding-left: 0;
        padding-right: 0;
    }


    .lp4a-products-section > .container > .d-flex {
        margin-bottom: 18px !important;
    }


    /* View All Products */

    .lp4a-products-section .btn-outline-primary {
        padding: 9px 15px;
        border: 1px solid #0d422b;
        border-radius: 4px;
        color: #0d422b;
        background: #fff;
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.025em;
    }


        .lp4a-products-section .btn-outline-primary:hover {
            background: #0d422b;
            border-color: #0d422b;
            color: #fff;
        }


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1199.98px) {

    #featuredProducts .product-image-wrapper {
        height: 175px;
    }
}


@media (max-width: 767.98px) {

    #featuredProducts .product-image-wrapper {
        height: 190px;
    }


    #featuredProducts .card-body {
        min-height: auto;
    }


    #featuredProducts .product-title {
        min-height: auto;
    }
}

/* =========================================================
   LP4A LOGIN / AUTHENTICATION
   ========================================================= */

.lp4a-auth-section {
    padding: 35px 0 55px;
}


.lp4a-auth-wrapper {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
}


.lp4a-auth-card {
    padding: 32px;
    border: 1px solid #dfe5e1;
    border-top: 4px solid #0d422b;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}


/* =========================================================
   HEADER
   ========================================================= */

.lp4a-auth-header {
    margin-bottom: 26px;
    text-align: center;
}


.lp4a-auth-eyebrow {
    margin-bottom: 7px;
    color: #0d422b;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


.lp4a-auth-header h1 {
    margin: 0 0 9px;
    color: #17211b;
    font-size: 1.65rem;
    font-weight: 800;
    text-transform: uppercase;
}


.lp4a-auth-header p {
    margin: 0;
    color: #717a74;
    font-size: 0.82rem;
    line-height: 1.55;
}


/* =========================================================
   MESSAGE
   ========================================================= */

.lp4a-auth-message {
    display: block;
    margin-bottom: 18px;
    color: #b43d3d;
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
}


    .lp4a-auth-message:empty {
        display: none;
    }


/* =========================================================
   FORM FIELDS
   ========================================================= */

.lp4a-auth-field {
    margin-bottom: 18px;
}


    .lp4a-auth-field label {
        display: block;
        margin-bottom: 7px;
        color: #28312b;
        font-size: 0.72rem;
        font-weight: 700;
        text-transform: uppercase;
    }


.lp4a-auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}


    .lp4a-auth-label-row label {
        margin-bottom: 7px;
    }


.lp4a-auth-forgot {
    margin-bottom: 7px;
    color: #0d422b;
    font-size: 0.68rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
}


    .lp4a-auth-forgot:hover {
        text-decoration: underline;
    }


.lp4a-auth-input-wrapper {
    position: relative;
}


.lp4a-auth-input-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    color: #7b847f;
    font-size: 0.82rem;
}


.lp4a-auth-input {
    width: 100% !important;
    max-width: none !important;
    min-height: 44px;
    padding-left: 36px;
    border: 1px solid #cfd6d1;
    border-radius: 4px;
    background: #fff;
    color: #252d28;
    font-size: 0.82rem;
    box-shadow: none;
}


    .lp4a-auth-input:focus {
        border-color: #0d422b;
        box-shadow: 0 0 0 3px rgba(13, 66, 43, 0.08);
    }


/* =========================================================
   SIGN IN BUTTON
   ========================================================= */

.lp4a-auth-submit {
    width: 100%;
    min-height: 44px;
    margin-top: 3px;
    border: 1px solid #0d422b;
    border-radius: 4px;
    background: #0d422b;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: none;
}


    .lp4a-auth-submit:hover,
    .lp4a-auth-submit:focus {
        border-color: #092f1f;
        background: #092f1f;
        color: #fff;
    }


/* =========================================================
   REGISTER
   ========================================================= */

.lp4a-auth-divider {
    position: relative;
    margin: 25px 0 18px;
    text-align: center;
}


    .lp4a-auth-divider::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: #e1e5e2;
    }


    .lp4a-auth-divider span {
        position: relative;
        padding: 0 13px;
        background: #fff;
        color: #7c847f;
        font-size: 0.69rem;
        font-weight: 700;
        text-transform: uppercase;
    }


.lp4a-auth-register {
    width: 100%;
    min-height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #0d422b;
    border-radius: 4px;
    background: #fff;
    color: #0d422b;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}


    .lp4a-auth-register:hover,
    .lp4a-auth-register:focus {
        background: #f2f6f3;
        color: #092f1f;
    }


/* =========================================================
   HELP
   ========================================================= */

.lp4a-auth-help {
    margin-top: 22px;
    color: #7a827d;
    font-size: 0.7rem;
    text-align: center;
}


    .lp4a-auth-help a {
        color: #0d422b;
        font-weight: 700;
        text-decoration: none;
    }


        .lp4a-auth-help a:hover {
            text-decoration: underline;
        }


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 575.98px) {

    .lp4a-auth-section {
        padding-top: 20px;
    }


    .lp4a-auth-card {
        padding: 24px 20px;
    }


    .lp4a-auth-header h1 {
        font-size: 1.4rem;
    }
}

/* =========================================================
   MAIN NAVIGATION DROPDOWN
   ========================================================= */

.lp4a-main-navbar .dropdown-menu {
    min-width: 270px;
    padding: 8px 0;
    margin-top: 0;
    border: 1px solid #d9dfdb;
    border-top: 3px solid #0d422b;
    border-radius: 0 0 5px 5px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.13);
}


.lp4a-main-navbar .dropdown-item {
    padding: 9px 18px;
    color: #29322d;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.15s ease, color 0.15s ease;
}


    .lp4a-main-navbar .dropdown-item:hover,
    .lp4a-main-navbar .dropdown-item:focus {
        background-color: #eef4f0;
        color: #0d422b;
    }


.lp4a-main-navbar .dropdown-divider {
    margin: 6px 0;
    border-color: #dde3df;
}


/*
 * Desktop:
 * allow Parts dropdown to open on hover.
 *
 * Bootstrap click behaviour remains available.
 */
@media (min-width: 992px) {

    .lp4a-main-navbar
    .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
    }
}

.lp4a-header-search-scope {
    width: 155px;
    min-width: 155px;
    border-top: 0;
    border-bottom: 0;
    border-left: 1px solid #d9dfdb;
    border-right: 1px solid #d9dfdb;
    border-radius: 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: #28312b;
    background-color: #f7f9f8;
}


    .lp4a-header-search-scope:focus {
        border-color: #d9dfdb;
        box-shadow: none;
    }


@media (max-width: 1199px) {

    .lp4a-header-search-scope {
        width: 135px;
        min-width: 135px;
    }
}

/* =========================================================
   LP4A BASKET
   ========================================================= */

.lp4a-basket-page {
    padding: 48px 0 70px;
}


/* PAGE HEADING */

.lp4a-basket-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.lp4a-basket-heading-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 50%;
    background: #edf4f0;
    font-size: 1.35rem;
}

.lp4a-basket-heading h1 {
    margin: 0 0 4px;
    color: #1d2923;
    font-size: 2rem;
    font-weight: 700;
}

.lp4a-basket-heading p {
    margin: 0;
    color: #6c756f;
    font-size: 0.92rem;
}


/* LOADING */

.lp4a-basket-loading {
    padding: 70px 20px;
    text-align: center;
    color: #5f6963;
}

    .lp4a-basket-loading .spinner-border {
        color: #0d4b32;
    }

    .lp4a-basket-loading p {
        margin: 15px 0 0;
    }


/* ITEMS CARD */

.lp4a-basket-items-card,
.lp4a-basket-summary {
    overflow: hidden;
    border: 1px solid #dce3df;
    border-radius: 7px;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(22, 44, 33, 0.06);
}


.lp4a-basket-card-header,
.lp4a-basket-summary-header {
    padding: 18px 22px;
    border-bottom: 1px solid #e3e8e5;
    background: #f7f9f8;
}


    .lp4a-basket-card-header h2,
    .lp4a-basket-summary-header h2 {
        margin: 0;
        color: #163d2c;
        font-size: 1.05rem;
        font-weight: 700;
        text-transform: uppercase;
    }


    .lp4a-basket-card-header span {
        display: block;
        margin-top: 3px;
        color: #7b847f;
        font-size: 0.75rem;
    }


/* COLUMN HEADINGS */

.lp4a-basket-column-headings {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px 125px 105px;
    gap: 18px;
    padding: 11px 20px;
    border-bottom: 1px solid #e6ebe8;
    color: #7a847e;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}


    .lp4a-basket-column-headings > div:not(:first-child) {
        text-align: center;
    }

    .lp4a-basket-column-headings > div:last-child {
        text-align: right;
    }


/* PRODUCT ROW */

.lp4a-basket-item {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) 110px 125px 105px;
    align-items: center;
    gap: 18px;
    padding: 22px 20px;
    border-bottom: 1px solid #e8ecea;
}


    .lp4a-basket-item:last-child {
        border-bottom: 0;
    }


/* IMAGE */

.lp4a-basket-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 110px;
    padding: 8px;
    border: 1px solid #e0e5e2;
    border-radius: 5px;
    background: #ffffff;
}


    .lp4a-basket-product-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }


/* PRODUCT INFO */

.lp4a-basket-product-code {
    margin-bottom: 5px;
    color: #7a837e;
    font-size: 0.73rem;
    font-weight: 600;
}


.lp4a-basket-product-name {
    margin: 0 0 5px;
    color: #202923;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
}


.lp4a-basket-product-brand {
    margin-bottom: 10px;
    color: #626c66;
    font-size: 0.8rem;
}


.lp4a-basket-remove {
    padding: 0;
    border: 0;
    color: #a23c3c;
    background: transparent;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: underline;
}


    .lp4a-basket-remove:hover {
        color: #762727;
    }


/* PRICES */

.lp4a-basket-unit-price,
.lp4a-basket-line-total {
    color: #243028;
    font-size: 0.9rem;
    text-align: center;
}


.lp4a-basket-line-total {
    text-align: right;
}


    .lp4a-basket-line-total strong {
        color: #0d4b32;
        font-size: 1rem;
    }


/* QUANTITY */

.lp4a-basket-quantity {
    text-align: center;
}


.lp4a-quantity-control {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid #ccd5d0;
    border-radius: 4px;
    background: #ffffff;
}


.lp4a-quantity-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    color: #174630;
    background: #f4f7f5;
    font-size: 1rem;
    font-weight: 700;
}


    .lp4a-quantity-button:hover {
        background: #e5eee9;
    }


.lp4a-quantity-value {
    min-width: 38px;
    color: #202923;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
}


.lp4a-basket-mobile-label {
    display: none;
}


/* CONTINUE SHOPPING */

.lp4a-continue-shopping {
    display: inline-block;
    margin-top: 20px;
    color: #0d4b32;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
}


    .lp4a-continue-shopping:hover {
        color: #082f20;
        text-decoration: underline;
    }


/* =========================================================
   ORDER SUMMARY
   ========================================================= */

.lp4a-basket-summary {
    position: sticky;
    top: 25px;
}


.lp4a-basket-summary-header {
    border-top: 4px solid #0d4b32;
}


.lp4a-basket-summary-body {
    padding: 22px;
}


.lp4a-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 17px;
    color: #424c46;
    font-size: 0.84rem;
}


    .lp4a-summary-row strong {
        color: #202923;
    }


.lp4a-summary-muted {
    max-width: 135px;
    color: #7a837e;
    font-size: 0.75rem;
    text-align: right;
}


.lp4a-summary-divider {
    height: 1px;
    margin: 21px 0;
    background: #dde4e0;
}


.lp4a-summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    color: #1d2923;
    font-size: 1rem;
    font-weight: 700;
}


    .lp4a-summary-total strong {
        color: #0d4b32;
        font-size: 1.35rem;
    }


/* CHECKOUT */

.lp4a-checkout-button,
.lp4a-btn-primary {
    display: block;
    width: 100%;
    padding: 13px 18px;
    border: 1px solid #0d4b32;
    border-radius: 4px;
    color: #ffffff;
    background: #0d4b32;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.025em;
}


    .lp4a-checkout-button:hover,
    .lp4a-btn-primary:hover {
        border-color: #083722;
        color: #ffffff;
        background: #083722;
    }


.lp4a-basket-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 14px;
    color: #77817b;
    font-size: 0.72rem;
}


/* =========================================================
   EMPTY BASKET
   ========================================================= */

.lp4a-empty-basket {
    padding: 70px 30px;
    border: 1px solid #dce3df;
    border-radius: 7px;
    background: #ffffff;
    text-align: center;
}


.lp4a-empty-basket-icon {
    margin-bottom: 15px;
    font-size: 2.4rem;
}


.lp4a-empty-basket h2 {
    margin-bottom: 8px;
    color: #1d2923;
    font-size: 1.35rem;
    font-weight: 700;
}


.lp4a-empty-basket p {
    margin-bottom: 22px;
    color: #717b75;
}


.lp4a-empty-basket .lp4a-btn-primary {
    display: inline-block;
    width: auto;
    min-width: 180px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991.98px) {

    .lp4a-basket-summary {
        position: static;
    }
}


@media (max-width: 767.98px) {

    .lp4a-basket-page {
        padding: 30px 0 50px;
    }


    .lp4a-basket-heading h1 {
        font-size: 1.55rem;
    }


    .lp4a-basket-column-headings {
        display: none;
    }


    .lp4a-basket-item {
        grid-template-columns: 90px minmax(0, 1fr);
        gap: 14px;
        padding: 18px;
    }


    .lp4a-basket-product-image {
        width: 90px;
        height: 90px;
    }


    .lp4a-basket-product-info {
        align-self: start;
    }


    .lp4a-basket-unit-price,
    .lp4a-basket-quantity,
    .lp4a-basket-line-total {
        grid-column: 2;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        text-align: right;
    }


    .lp4a-basket-mobile-label {
        display: block;
        color: #7a837e;
        font-size: 0.7rem;
        font-weight: 600;
        text-transform: uppercase;
    }
}

/* =========================================================
   LP4A CHECKOUT
   ========================================================= */

.lp4a-checkout-page {
    padding: 48px 0 70px;
}


/* =========================================================
   PAGE HEADING
   ========================================================= */

.lp4a-checkout-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}


.lp4a-checkout-heading-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 50%;
    background: #edf4f0;
    font-size: 1.3rem;
}


.lp4a-checkout-heading h1 {
    margin: 0 0 4px;
    color: #1d2923;
    font-size: 2rem;
    font-weight: 700;
}


.lp4a-checkout-heading p {
    margin: 0;
    color: #6d7671;
    font-size: 0.92rem;
}


/* =========================================================
   CHECKOUT CARDS
   ========================================================= */

.lp4a-checkout-card,
.lp4a-checkout-summary {
    overflow: hidden;
    border: 1px solid #dce3df;
    border-radius: 7px;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(22, 44, 33, 0.06);
}


.lp4a-checkout-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px 20px;
    border-bottom: 1px solid #e3e8e5;
    background: #f7f9f8;
}


.lp4a-checkout-card-title-grow {
    flex: 1;
}


.lp4a-checkout-step {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    border-radius: 50%;
    color: #ffffff;
    background: #0d4b32;
    font-size: 0.78rem;
    font-weight: 700;
}


.lp4a-checkout-card-header h2 {
    margin: 0;
    color: #163d2c;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
}


.lp4a-checkout-card-header p {
    margin: 2px 0 0;
    color: #7b847f;
    font-size: 0.73rem;
}


.lp4a-checkout-card-body {
    padding: 22px;
}


/* =========================================================
   CUSTOMER DETAILS
   ========================================================= */

.lp4a-checkout-label {
    display: block;
    margin-bottom: 6px;
    color: #465149;
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: uppercase;
}


.lp4a-checkout-input {
    min-height: 43px;
    border-color: #d8dfdb;
    color: #28312c;
    font-size: 0.85rem;
}


    .lp4a-checkout-input[readonly] {
        background: #f7f9f8;
    }


    .lp4a-checkout-input:focus {
        border-color: #0d4b32;
        box-shadow: 0 0 0 0.15rem rgba(13, 75, 50, 0.12);
    }


/* =========================================================
   CHANGE ADDRESS
   ========================================================= */

.lp4a-change-address-button {
    margin-left: auto;
    padding: 7px 13px;
    border: 1px solid #0d4b32;
    color: #0d4b32;
    background: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}


    .lp4a-change-address-button:hover {
        color: #ffffff;
        background: #0d4b32;
    }


/* =========================================================
   DELIVERY ADDRESS
   ========================================================= */

#deliveryAddressContainer {
    color: #4c5750;
    font-size: 0.84rem;
    line-height: 1.65;
}


    #deliveryAddressContainer strong {
        display: inline-block;
        margin-bottom: 4px;
        color: #1d2923;
        font-size: 0.93rem;
    }


/* =========================================================
   SHIPPING
   ========================================================= */

.lp4a-shipping-method {
    color: #28322c;
    font-size: 0.85rem;
}


.lp4a-shipping-estimate {
    margin-top: 10px;
    color: #717b75;
    font-size: 0.76rem;
}


/*
 * These target the courier options your existing
 * checkout.js dynamically creates.
 */

#shippingMethod .form-check {
    position: relative;
    margin-bottom: 10px !important;
    padding: 15px 16px 15px 44px !important;
    border: 1px solid #dce3df !important;
    border-radius: 5px !important;
    background: #ffffff;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}


    #shippingMethod .form-check:hover {
        border-color: #9db9aa !important;
        background: #f8faf9;
    }


#shippingMethod .form-check-input {
    position: absolute;
    left: 17px;
    top: 18px;
    margin: 0;
}


    #shippingMethod .form-check-input:checked {
        border-color: #0d4b32;
        background-color: #0d4b32;
    }


#shippingMethod .form-check-label {
    cursor: pointer;
    color: #38433c;
    font-size: 0.82rem;
}


    #shippingMethod .form-check-label strong {
        color: #1d2923;
    }


/* =========================================================
   ORDER ITEMS
   ========================================================= */

.lp4a-checkout-items-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 70px 110px 110px;
    gap: 15px;
    padding: 11px 20px;
    border-bottom: 1px solid #e5eae7;
    color: #7b847f;
    background: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
}


    .lp4a-checkout-items-header > div:not(:first-child) {
        text-align: right;
    }


/*
 * Existing checkout.js creates Bootstrap rows inside
 * #checkoutItems. Style those without rewriting JS.
 */

#checkoutItems > .row {
    align-items: center;
    margin: 0;
    padding: 17px 20px !important;
    border-bottom: 1px solid #e8ecea !important;
}


    #checkoutItems > .row:last-child {
        border-bottom: 0 !important;
    }


#checkoutItems strong {
    color: #253029;
    font-size: 0.86rem;
}


#checkoutItems small {
    color: #7a837e !important;
    font-size: 0.71rem;
}


#checkoutItems .fw-bold {
    color: #0d4b32;
}


.lp4a-checkout-back {
    display: inline-block;
    margin-top: 20px;
    color: #0d4b32;
    font-size: 0.79rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
}


    .lp4a-checkout-back:hover {
        color: #082f20;
        text-decoration: underline;
    }


/* =========================================================
   SUMMARY
   ========================================================= */

.lp4a-checkout-summary {
    position: sticky;
    top: 25px;
}


.lp4a-checkout-summary-header {
    padding: 18px 22px;
    border-top: 4px solid #0d4b32;
    border-bottom: 1px solid #e3e8e5;
    background: #f7f9f8;
}


    .lp4a-checkout-summary-header h2 {
        margin: 0;
        color: #163d2c;
        font-size: 1.02rem;
        font-weight: 700;
        text-transform: uppercase;
    }


.lp4a-checkout-summary-body {
    padding: 22px;
}


.lp4a-checkout-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 17px;
    color: #4b554f;
    font-size: 0.83rem;
}


    .lp4a-checkout-summary-row strong {
        color: #222c26;
    }


.lp4a-checkout-summary-divider {
    height: 1px;
    margin: 21px 0;
    background: #dde4e0;
}


.lp4a-checkout-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 23px;
    color: #1d2923;
    font-size: 1rem;
    font-weight: 700;
}


    .lp4a-checkout-total strong {
        color: #0d4b32;
        font-size: 1.4rem;
    }


/* =========================================================
   PAYMENT
   ========================================================= */

.lp4a-payment-panel {
    margin-bottom: 17px;
    padding: 14px;
    border: 1px solid #dfe6e2;
    border-radius: 5px;
    background: #f7f9f8;
}


.lp4a-payment-title {
    margin-bottom: 5px;
    color: #26322b;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}


.lp4a-payment-panel p {
    margin: 0;
    color: #707a74;
    font-size: 0.72rem;
    line-height: 1.5;
}


.lp4a-payfast-button {
    width: 100%;
    padding: 13px 18px;
    border: 1px solid #0d4b32;
    border-radius: 4px;
    color: #ffffff;
    background: #0d4b32;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}


    .lp4a-payfast-button:hover,
    .lp4a-payfast-button:focus {
        border-color: #083722;
        color: #ffffff;
        background: #083722;
    }


    .lp4a-payfast-button:disabled {
        border-color: #9aa9a0;
        background: #9aa9a0;
        opacity: 1;
        cursor: not-allowed;
    }


.lp4a-payment-security {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 13px;
    color: #7b847f;
    font-size: 0.66rem;
}


/* =========================================================
   ADDRESS MODAL
   ========================================================= */

.lp4a-address-modal {
    overflow: hidden;
    border: 0;
    border-radius: 7px;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.2);
}


    .lp4a-address-modal .modal-header {
        padding: 19px 22px;
        border-bottom: 1px solid #e2e7e4;
        background: #f7f9f8;
    }


    .lp4a-address-modal .modal-title {
        color: #163d2c;
        font-size: 1rem;
        font-weight: 700;
        text-transform: uppercase;
    }


.lp4a-modal-subtitle {
    margin: 3px 0 0;
    color: #78817c;
    font-size: 0.72rem;
}


.lp4a-address-modal .modal-body {
    padding: 22px;
}


/*
 * Dynamically generated address cards.
 */

#checkoutAddressList .card {
    border: 1px solid #dce3df;
    box-shadow: none;
}


#checkoutAddressList .card-body {
    color: #4b554f;
    font-size: 0.8rem;
    line-height: 1.55;
}


    #checkoutAddressList .card-body strong {
        color: #202a24;
    }


#checkoutAddressList .btnUseAddress {
    border-color: #0d4b32;
    color: #ffffff;
    background: #0d4b32;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}


    #checkoutAddressList .btnUseAddress:hover {
        border-color: #083722;
        background: #083722;
    }


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991.98px) {

    .lp4a-checkout-summary {
        position: static;
    }
}


@media (max-width: 767.98px) {

    .lp4a-checkout-page {
        padding: 30px 0 50px;
    }


    .lp4a-checkout-heading h1 {
        font-size: 1.55rem;
    }


    .lp4a-checkout-card-header {
        flex-wrap: wrap;
    }


    .lp4a-change-address-button {
        width: 100%;
        margin: 8px 0 0 45px;
    }


    .lp4a-checkout-items-header {
        display: none;
    }


    #checkoutItems > .row {
        padding: 17px !important;
    }


        #checkoutItems > .row > div {
            margin-bottom: 6px;
            text-align: left !important;
        }


    .lp4a-payment-security {
        flex-direction: column;
        align-items: center;
        gap: 3px;
    }
}