﻿.PriceTable {
    border-collapse: separate;
    border-spacing: 0 4px;
    border: none;
}

.PriceTable thead tr th:first-child {
    border-radius: 8px 0 0 0;
}

.PriceTable thead tr th:last-child {
    border-radius: 0 8px 0 0;
}

.PriceTable tbody tr:last-child td:first-child {
    border-radius: 0 0 0 8px;
}

.PriceTable tbody tr:last-child td:last-child {
    border-radius: 0 0 8px 0;
}

.PriceTable tbody tr td {
    background-color: white;
}

@media (max-width: 1000px) {
    .table-responsive th {
        display:none;
    }

    .table-responsive td {
        display:block;
        padding: 0.5rem 1rem;
        border:unset;
    }

    .table-responsive td::before {
        content: attr(data-column) ": ";
        font-weight: 700;
        text-transform: capitalize;
    }
}


.gasPriceTable {
    text-align: center;
}

.gasPriceTable .tableHeader {
    font-weight: bold;
    vertical-align: middle;
    font-family: 'GT Flexa Condensed Bold';
    font-size: 26px;
    vertical-align: middle;
    text-align: center;
    font-size: 40px;
}

.gasPriceTable th.first-col,
.gasPriceTable td.first-col {
    font-weight: bold;
    background-color: #F9E5F1;
    border-bottom: 1px solid var(--grayscale-20-color);
    font-size: 24px;
}

/* Mobile header hidden by default */
.mobileGasHeader {
    display: none;
}

/* Show mobile header, hide thead on small screens */
@media (max-width: 768px) {
    .mobileGasHeader {
        display: flex;
        justify-content: space-between;
        font-weight: bold;
        font-size: 1.2rem;
        margin-bottom: 1rem;
        padding: 0.5rem 1rem;
        background-color: #f2f2f2;
    }

    .mobileCol {
        flex: 1;
        text-align: center;
    }

    .gasPriceTable thead {
        display: none;
    }
}

.gasTableMobile {
    display: none;
}

/* Default: show desktop, hide mobile */
.gasTableMobile {
    display: none;
}

/* Mobile-only adjustments */
@media (max-width: 768px) {
    .gasPriceTable {
        display: none;
    }

    .gasTableMobile {
        display: block;
        margin-top: 1rem;
    }

    .scrollTableWrapper {
        margin-bottom: 1rem;
    }

    .mobileTable {
        width: 100%;
        border-collapse: collapse;
    }

    .mobileTable th,
    .mobileTable td {
        border: 1px solid #ccc;
        padding: 0.5rem;
        text-align: center;
    }

    .mobileTableTitle {
        font-size: 1.2rem;
        font-weight: bold;
        margin: 1rem 0 0.5rem;
        padding-left: 0.5rem;
    }
}

@media (max-width: 768px) {
    .mobileTable {
        width: 100%;
        table-layout: fixed; /* Forces fixed column width */
    }
    
    .mobileTable td:first-of-type {
        white-space: normal;
    }

    .mobileTable td {
        white-space: nowrap;
        font-size: 14px;
        align-content: center;
    }
}