/* Base styles for all screen sizes */
.bike-price-matrix {
    width: 100%;
    margin: 20px auto;
    border-collapse: collapse;
    background: #fff;
    overflow: hidden;
}

.bike-price-matrix th {
    font-weight: bold;
    text-align: center;
    padding: 12px 10px;
}
	
table.bike-price-matrix thead th,
table.bike-price-matrix th {
        background: #a0103d; !important;
        color: #ffffff; !important;
}


.bike-price-matrix td {
    padding: 12px 10px;
    text-align: center;
    font-weight: bold;
}

.bike-price-matrix th, 
.bike-price-matrix td {
    border-bottom: 1px solid #a0103d;
}

.bike-price-matrix td:first-child,
.bike-price-matrix th:first-child {
    text-align: left;
    font-weight: bold;
}

/* Price cells styling */
.bike-price-matrix td:not(:first-child) {
    font-size: 1.1em;
    color: #333;
}

.bike-price-footnote {
    font-size: 0.9em;
    font-style: italic;
    margin-top: 10px;
    color: #555;
    line-height: 1.4;
    padding: 0 10px;
}

/* Tablet styles */
@media screen and (max-width: 768px) {
    .bike-price-matrix {
        margin: 15px auto;
        font-size: 0.95em;
    }
    
    .bike-price-matrix th,
    .bike-price-matrix td {
        padding: 10px 8px;
    }
    
    .bike-price-footnote {
        font-size: 0.85em;
        margin-top: 15px;
    }
}

/* Mobile styles - responsive table transformation */
@media screen and (max-width: 600px) {
    .bike-price-matrix {
        margin: 10px 0;
        box-shadow: none;
        border-radius: 0;
    }
    
    /* Hide table headers on mobile */
    .bike-price-matrix thead {
        display: none;
    }
    
    /* Make table body block-level */
    .bike-price-matrix tbody {
        display: block;
    }
    
    /* Transform each row into a card */
    .bike-price-matrix tr {
        display: block;
        margin-bottom: 20px;
        overflow: hidden;

    }
    
    /* Style each cell as a block with label */
    .bike-price-matrix td {
        display: block;
        text-align: left;
        padding: 12px 15px;
        border-bottom: 1px solid a0103d;
        position: relative;
    }
    
    /* Remove border from last cell in each row */
    .bike-price-matrix td:last-child {
        border-bottom: none;
    }
    
    /* First cell (bike type) gets special styling */
    .bike-price-matrix td:first-child {
        background: #a0103d;
        color: white;
        font-weight: bold;
        font-size: 1.1em;
        text-align: center;
        border-bottom: none;
    }
    
    /* Price cells show their labels */
    .bike-price-matrix td:not(:first-child)::before {
        content: attr(data-label) ": ";
        font-weight: normal;
        color: #666;
		text-align: left;
        display: inline-block;
        width: 40%;
    }
    
    /* Price values styling */
    .bike-price-matrix td:not(:first-child) {
        font-size: 1.1em;
        color: #666;
		text-align: center;
    }
    
    .bike-price-footnote {
        font-size: 0.8em;
        margin-top: 20px;
        padding: 15px;
        background: #f9f9f9;
        border-radius: 6px;
        border-left: 4px solid #d32f2f;
    }
}

/* Extra small screens */
@media screen and (max-width: 400px) {
    .bike-price-matrix td {
        padding: 10px 12px;
    }
    
    .bike-price-matrix td:not(:first-child)::before {
        width: 45%;
        font-size: 0.9em;
    }
    
    .bike-price-footnote {
        font-size: 0.75em;
        padding: 12px;
    }
}

/* Special styling for single bike tables */
.bike-price-matrix tbody tr:only-child td:first-child,
.bike-price-matrix tbody tr:first-child:nth-last-child(3) ~ tr td:first-child {
    /* This targets single bike displays differently if needed */
}

/* Hover effects for desktop */
@media screen and (min-width: 601px) {
    .bike-price-matrix tbody tr:hover {
        background-color: #f9f9f9;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        transition: all 0.2s ease;
    }
}