
/* Price Table Widget Styles */

.elementor-price-table-widget {
    font-family: 'Inter', sans-serif; /* Fallback if Inter is not available */
    max-width: 900px;
    margin: 0 auto;
}

/* Tabs Navigation */
.price-table-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.price-table-tabs .tab-button {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.price-table-tabs .tab-button:hover {
    border-color: #cbd5e0;
    transform: translateY(-1px);
}

.price-table-tabs .tab-button.active {
    background-color: #2c76b9; /* Default active color */
    color: #ffffff;
    border-color: #2c76b9;
    box-shadow: 0 4px 6px rgba(44, 118, 185, 0.2);
}

/* Content Container */
.price-table-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.price-table-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.price-table-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08); 
    position: relative;
    overflow: hidden; 
    border: 1px solid rgba(0,0,0,0.03);
}

/* Background Image Watermark */
/* 
   We will rely on inline styles or a class added by JS for the image if we want it dynamic.
   But based on the design, it looks like a static car image or one related to the category.
   The PHP code I wrote earlier puts `thumbnail` in the data but doesn't render it in the HTML strictly as a watermark yet.
   For now, we'll style the container and maybe the PHP needs to output the image URL as a CSS variable or similar.
*/
.price-table-card::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -5%;
    transform: translateY(-50%);
    width: 60%;
    height: 80%;
    background-image: var(--watermark-image, none);
    background-position: center right;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.1; 
    pointer-events: none;
    z-index: 0;
}

/* Make sure content is above watermark */
.price-table-heading, 
.price-table-responsive {
    position: relative;
    z-index: 1;
}

.price-table-heading h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a202c;
    margin-top: 0;
    margin-bottom: 25px;
    text-align: left;
}

/* Table Styles */
.price-table-responsive {
    width: 100%;
    overflow-x: auto;
}

.price-list-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; 
}

.price-list-table th {
    text-align: left;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
    border-bottom: 2px solid #edf2f7;
}

.price-list-table td {
    padding: 16px;
    font-size: 15px;
    color: #4a5568;
    border-bottom: 1px solid #edf2f7;
    vertical-align: middle;
}

.price-list-table tr:last-child td {
    border-bottom: none;
}

.price-list-table tr:hover td {
    background-color: rgba(247, 250, 252, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .price-list-table th, .price-list-table td {
        padding: 12px;
        font-size: 14px;
    }
    
    .price-table-heading h2 {
        font-size: 24px;
        text-align: center;
    }
    
    .price-table-card {
        padding: 20px;
    }
}
