/* Container Styling */
.pixelnet-multi-table {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    width: 100%;
}

/* Flex Row Logic */
.pmt-row {
    display: flex;
    width: 100%;
    flex-wrap: nowrap;
}

/* * GLOBAL COLUMN STYLING 
 * Default: Center Alignment for everything (Product Cols, Values, Buttons)
 */
/* * GLOBAL COLUMN STYLING */
.pmt-col {
    flex: 1;
    padding: 1rem;
    display: flex;
    
    /* CHANGE: Switch to column layout globally */
    flex-direction: column; 
    
    /* CHANGE: In column mode, 'justify' aligns vertical, 'align' aligns horizontal */
    justify-content: center;   /* Center Vertically */
    align-items: center;       /* Center Horizontally (Default for data cells) */
    
    text-align: center;
    border-right: 1px solid #f0f0f0;
    word-break: break-word;
}

.pmt-col:last-child {
    border-right: none;
}

/* * FIRST COLUMN OVERRIDES (Left Align) */
.pmt-feature-label,
.pmt-feature-name {
    /* Override horizontal alignment to Left */
    align-items: flex-start;
    text-align: left;
    
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.3;
}

/* * FEATURE INFO SUB-TEXT
 * Updated: Removed specific parent class so it works in ANY cell.
 */
.pixelnet-multi-table .feature-info {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 2px;
    font-weight: 400;
    display: block;
}

/* Header Specifics */
.pmt-header {
    background-color: #14213D;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Ensure Header columns (even the left one) keep header text color */
.pmt-header .pmt-col {
    border-right: 1px solid rgba(255,255,255,0.1);
}

.pmt-header .pmt-feature-label {
    background-color: transparent; 
    color: #fff;
}

/* * BODY STYLING 
 * Feature Name: Normal weight (not bold)
 */
.pmt-feature-name {
    font-weight: 400; /* Normal weight per request */
    font-size: 0.95rem;
}

.pmt-data-row:hover {
    background-color: #fafafa;
}

.pmt-value {
    font-weight: 300;
    font-size: 0.95rem;
}

/* Footer Styling */
.pmt-footer {
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 0.5rem 0;
}

/* Button Styling */
.bg-brand-gradient {
    color: #fff !important;
    background: #14213D; 
}

/* Responsive */
@media (max-width: 768px) {
    .pixelnet-multi-table {
        overflow-x: auto;
    }
    .pmt-row {
        min-width: 600px; 
    }
}

/* * STICKY FIRST COLUMN (Mobile Only)
 * Keeps the "Feature" labels visible while scrolling products horizontally.
 */
@media (max-width: 768px) {
    /* 1. Target the first column in both Header and Body rows */
    .pmt-header .pmt-feature-label,
    .pmt-data-row .pmt-feature-name {
        position: sticky;
        left: 0;
        z-index: 10; /* Ensures it sits ON TOP of the scrolling content */
        
        /* 2. Crucial: Define a background color */
        /* If transparent, you'll see the other text scrolling underneath it! */
        background-color: #f9f9f9; 
        
        /* 3. Cosmetic: Add a shadow so you see the edge of the sticky column */
        box-shadow: 2px 0 5px rgba(0,0,0,0.05);
        border-right: 1px solid #e0e0e0;
    }

    /* Fix for the Header specifically (Dark Background) */
    .pmt-header .pmt-feature-label {
        background-color: #14213D; /* Must match your header color */
        color: #fff;
        z-index: 11; /* Header should stay above body rows if they overlap */
    }
}