
/* =========================================
   GXG CARS PRICE LIST
   Version 1.1.2
========================================= */

.gxg-price-list {
    --gxg-blue: #005CB5;
    --gxg-header-bg: #FFF4D0;
    --gxg-cream: #FCF8EA;
    --gxg-white: #FDFDFD;
    --gxg-title: #0C142E;
    --gxg-hover: #FFC126;
    --gxg-border: #999;

    --gxg-container: 1140px;
    --gxg-sticky-offset: 150px;

    width: 100%;
    color: var(--gxg-title);
    box-sizing: border-box;
}

.gxg-price-list *,
.gxg-price-list *::before,
.gxg-price-list *::after {
    box-sizing: border-box;
}


/* =========================================
   COMMON CONTAINER
========================================= */

.gxg-price-inner {
    width: 100%;
    max-width: var(--gxg-container);
    margin-inline: auto;
}


/* =========================================
   SECTION
========================================= */

.gxg-price-section {
    width: 100%;
    margin: 0;
    padding: 0;
}


/* =========================================
   STICKY HEADER
========================================= */

.gxg-table-head {
    position: sticky;
    top: var(--gxg-sticky-offset);
    z-index: 20;

    width: 100%;
    background: var(--gxg-header-bg);

    border-bottom: 1px dotted var(--gxg-border);
}

.gxg-head-grid {
    display: grid;
    grid-template-columns: 40% 60%;
    grid-template-rows: 85px 45px;

    width: 100%;
}


/* =========================================
   HEADER - CATEGORY COLUMN
========================================= */

.gxg-head-category {
    grid-column: 1;
    grid-row: 2;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;

    padding-left: 0;

    color: var(--gxg-blue);
    font-size: 20px;
    font-weight: 600;
    text-align: left;
}

.gxg-category-icon {
    color: var(--gxg-hover);
    font-size: 21px;
}


/* =========================================
   HEADER - SEASONS
========================================= */

.gxg-head-seasons {
    grid-column: 2;
    grid-row: 1;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.gxg-season {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 13px;

    color: var(--gxg-blue);
    text-align: center;
}

.gxg-season-title {
    font-size: 21px;
    font-weight: 600;
}

.gxg-season-title span {
    color: var(--gxg-hover);
    font-size: 22px;
}

.gxg-season-dates {
    font-size: 15px;
    font-weight: 600;
}


/* =========================================
   HEADER - PERIODS
========================================= */

.gxg-head-periods {
    grid-column: 1 / -1;
    grid-row: 2;

    display: grid;
    grid-template-columns: 40% repeat(4, 15%);
    align-items: center;
}

.gxg-head-empty {
    height: 100%;
}

.gxg-period {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 100%;

    color: var(--gxg-title);
    font-size: 17px;
    font-weight: 600;
    text-align: center;
}

.gxg-period:nth-child(2),
.gxg-period:nth-child(4) {
    border-left: 1px dotted var(--gxg-border);
}


/* =========================================
   GROUP
========================================= */

.gxg-price-group {
    width: 100%;
    margin: 0;
    padding: 0;
}


/* =========================================
   GROUP HEADING
========================================= */

.gxg-group-heading {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    width: 100%;
    min-height: 50px;

    padding-left: 0;

    color: var(--gxg-blue);
    font-size: 18px;
    font-weight: 600;
    text-align: left;
}

.gxg-group-even .gxg-group-heading {
    background: var(--gxg-cream);
}

.gxg-group-odd .gxg-group-heading {
    background: #E7E7E7;
}


/* =========================================
   GROUP CONTENT
========================================= */

.gxg-group-content {
    display: grid;
    grid-template-columns: 40% 60%;

    width: 100%;
    align-items: stretch;
}

.gxg-group-even .gxg-group-content {
    background: var(--gxg-white);
}

.gxg-group-odd .gxg-group-content {
    background: #F5F5F5;
}


/* =========================================
   PRODUCTS COLUMN
========================================= */

.gxg-group-products {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    width: 100%;
    padding: 0;
}

.gxg-car-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;

    min-height: 75px;
    width: 100%;
}

.gxg-car-image {
    flex: 0 0 70px;

    width: 70px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.gxg-car-image img {
    display: block;

    width: 70px;
    height: 60px;

    object-fit: contain;
}

.gxg-car-info {
    min-width: 0;
    text-align: left;
}

.gxg-car-title {
    display: inline-block;

    color: var(--gxg-title);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;

    text-decoration: none;

    transition: color 0.2s ease;
}

.gxg-car-title:hover {
    color: var(--gxg-hover);
}


/* =========================================
   PRICES COLUMN
========================================= */

.gxg-group-prices {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    width: 100%;
    align-self: stretch;
}

.gxg-price-cell {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
    padding: 10px 5px;

    color: var(--gxg-blue);
    font-size: 15px;
    font-weight: 400;
    text-align: center;
}


/* =========================================
   DOTTED BORDERS
========================================= */

.gxg-price-cell:nth-child(1),
.gxg-price-cell:nth-child(3) {
    border-left: 1px dotted var(--gxg-border);
}

.gxg-price-cell:last-child {
    border-right: 1px dotted var(--gxg-border);
}


/* =========================================
   RESPONSIVE - TABLET
========================================= */

@media (max-width: 1024px) {

    .gxg-price-list {
        --gxg-sticky-offset: 120px;
        overflow-x: auto;
    }

    .gxg-price-section {
        min-width: 760px;
    }

    .gxg-price-inner {
        min-width: 760px;
    }

}


/* =========================================
   RESPONSIVE - MOBILE
========================================= */

@media (max-width: 767px) {

    .gxg-price-list {
        --gxg-sticky-offset: 90px;
    }

    .gxg-price-section {
        min-width: 760px;
    }

    .gxg-price-inner {
        min-width: 760px;
    }

    .gxg-head-grid {
        grid-template-rows: 75px 42px;
    }

    .gxg-season-title {
        font-size: 18px;
    }

    .gxg-season-dates {
        font-size: 13px;
    }

    .gxg-head-category {
        font-size: 17px;
    }

    .gxg-group-heading {
        min-height: 45px;
        font-size: 16px;
    }

    .gxg-car-item {
        min-height: 70px;
    }

}
