/* Container for all tables */
#spec_tables_container {
    display: flex;
    flex-direction: column;
    gap: 2%; /* Space between table containers */
}

/* Individual table container */
.spec_table_container {
    box-sizing: border-box;
    border: 1px solid #e5e5e5;
    padding: 2rem;
    padding-top: 0;
    margin-bottom: 20px; /* Space at the bottom of each table for vertical spacing */
}

/* Grid container for spec categories within a table container */
.spec_category_wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Creates two columns of equal width */
    gap: 20px; /* Adds space between each category */
    margin-bottom: 20px; /* Space between rows */
}

/* Individual specification category within the grid container */
.spec_category {
    border: 1px solid #ccc;
    padding: 15px;
    background-color: #f8f8f8;
}

.spec_category h4 {
    margin-top: 0;
    margin-bottom: unset;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

/* Styling for tables within categories */
.spec_category table {
    width: 100%;
    table-layout: fixed;
}

.spec_category table td:first-child {
    width: 35%;
    font-weight: bold; /* Make all text in the 'label' column bold */
    word-wrap: break-word; /* Allow long words to be broken and wrap onto the next line */
}

.spec_category table td:nth-child(2) {
    width: 65%;
    padding-left: 10px; /* Add padding to the left of the second column */
}

/* Lines between rows */
.woocommerce-product-attributes tr td {
    border-bottom: 1px solid #eaeaea;
}

.woocommerce-product-attributes tr:last-child td {
    border-bottom: none; /* Remove border from the last cell to prevent double borders */
}

/* Alternating row background colors */
.woocommerce-product-attributes tr:nth-child(odd) {
    background-color: #f9f9f9; /* Light grey for odd rows */
}

.woocommerce-product-attributes tr:nth-child(even) {
    background-color: #ffffff; /* White for even rows */
}

/* Mobile view adjustments */
@media (max-width: 768px) {
    .spec_category_wrapper {
        grid-template-columns: 1fr; /* Full width on smaller screens */
    }

    .spec_table_container {
        min-width: 100%; /* Make the table container full width on smaller screens */
    }
}
