/* pricing-page.css - Sticky Header with Frozen First Column */

.bq-detailed-pricing {
    background-color: var(--white);
    padding-top: 80px;
    padding-bottom: 80px;
}

.bq-detailed-pricing > .bq-container {
    padding-left: 7px !important;
    padding-right: 7px !important;
}

.bq-detailed-table__wrapper {
    margin-top: 60px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    overflow-x: auto; 
    box-shadow: var(--shadow-lg);
    position: relative;
    -webkit-overflow-scrolling: touch;
}

.bq-detailed-table {
    width: 100%;
    min-width: 1000px;
    border-collapse: separate; 
    border-spacing: 0;
    font-family: var(--font-sans);
}

.bq-detailed-table th,
.bq-detailed-table td {
    padding: 10px 24px;
    vertical-align: middle;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
}

/* --- Original Table Header --- */
.bq-detailed-table thead th {
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-300);
}

.bq-detailed-table th.feature-col {
    text-align: left;
    width: 30%;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    padding-left: 20px;
}

.bq-detailed-table th.plan-col {
    width: 23.33%;
    border-left: 1px solid var(--gray-300);
}

.bq-detailed-table th.plan-col h3 {
    font-size: 18px;
    margin: 0 0 16px;
    color: var(--gray-900);
    font-weight: 600;
}

/* --- Fixed Sticky Header Clone (Desktop AND Mobile) --- */
.bq-table-sticky-clone {
    position: fixed;
    top: 54px;
    z-index: 100;
    display: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    overflow-x: auto; /* Changed from hidden to auto */
    overflow-y: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    -webkit-overflow-scrolling: touch;
}

.bq-table-sticky-clone.visible {
    display: block;
    opacity: 1;
    scrollbar-width: none;
}

.bq-table-sticky-clone__table {
    border-collapse: separate;
    border-spacing: 0;
    font-family: var(--font-sans);
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.bq-table-sticky-clone__table th {
    padding: 10px 24px;
    vertical-align: middle;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-300);
    box-sizing: border-box;
}

.bq-table-sticky-clone__table th.feature-col {
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    /* CRITICAL: Make first column sticky within the sticky header */
    position: -webkit-sticky;
    position: sticky;
    left: 0;
    z-index: 101;
    background-color: var(--white);
}

.bq-table-sticky-clone__table th.plan-col {
    border-left: 1px solid var(--gray-300);
}

.bq-table-sticky-clone__table th.plan-col.featured {
    background-color: #f8fbff;
}

.bq-table-sticky-clone__table th.plan-col h3 {
    font-size: 18px;
    margin: 0 0 16px;
    color: var(--gray-900);
    font-weight: 600;
}

/* --- BUTTONS --- */
.bq-detailed-table .bq-button,
.bq-table-sticky-clone .bq-button {
    width: 100%;
    max-width: 100px;
    margin-left: auto;
    margin-right: auto;
    padding: 10px 8px;
    font-size: 14px;
    text-align: center;
    display: block;
}

.bq-detailed-table .bq-button--primary,
.bq-table-sticky-clone .bq-button--primary {
    background-color: var(--blue-primary);
    color: var(--white);
}

.bq-detailed-table .bq-button--primary:hover,
.bq-table-sticky-clone .bq-button--primary:hover {
    background-color: #00417a;
}

.bq-detailed-table .bq-button--secondary,
.bq-table-sticky-clone .bq-button--secondary {
    background-color: var(--white);
    color: var(--gray-900);
    border: 1px solid var(--gray-300);
}

.bq-detailed-table .bq-button--secondary:hover,
.bq-table-sticky-clone .bq-button--secondary:hover {
    background-color: var(--gray-100);
}

/* --- Table Body Rows --- */
.bq-detailed-table tbody td {
    padding: 10px 24px;
    border-bottom: 1px solid #f9f9f9;
    font-size: 14px;
}

.bq-detailed-table tbody tr:hover td {
    background-color: #f9fafb;
}

.bq-detailed-table td.feature-col {
    text-align: left;
    font-weight: 500;
    color: var(--gray-700);
    white-space: normal;
    padding-left: 20px;
}

.bq-detailed-table td.plan-col {
    border-left: 1px solid var(--gray-300);
}

/* --- ICONS --- */
.bq-detailed-table .detail-tick {
    height: 15px;
    width: 15px;
    color: var(--gray-700);
}

.bq-detailed-table .detail-cross {
    height: 18px;
    color: var(--gray-300);
}

/* --- FEATURED COLUMN --- */
.bq-detailed-table th.plan-col.featured,
.bq-detailed-table td.plan-col:nth-child(3) {
    background-color: #f8fbff;
}

.bq-detailed-table tbody tr:hover td.plan-col:nth-child(3) {
    background-color: #f0f6ff;
}

/* --- Mobile Specific Styles --- */
@media (max-width: 767px) {
    .bq-detailed-table {
        min-width: 0;
    }

    /* Mobile Frozen First Column Setup */
    .bq-detailed-table th.feature-col,
    .bq-detailed-table td.feature-col {
        position: -webkit-sticky;
        position: sticky;
        left: 0;
        z-index: 2;
        background-color: var(--white);
    }

    .bq-detailed-table thead th.feature-col {
        z-index: 3;
    }

    .bq-detailed-table tbody tr:hover td.feature-col {
        background-color: #f9fafb;
    }

    /* Mobile Column Widths & Padding */
    .bq-detailed-table th.feature-col,
    .bq-detailed-table td.feature-col {
        width: 100px;
        min-width: 100px;
        max-width: 100px;
        padding-left: 10px;
    }
    
    .bq-detailed-table th.plan-col {
        width: auto;
    }
    
    .bq-detailed-table th.plan-col h3 {
        font-size: 12px;
    }

    .bq-detailed-table tbody td {
        font-size: 12px;
        padding-top: 11px;
        padding-bottom: 11px;
    }
    
    .bq-detailed-table td.plan-col,
    .bq-detailed-table th.plan-col {
        font-size: 12px;
        padding: 10px 15px;
    }
    
    /* Mobile button styles */
    .bq-detailed-table .bq-button,
    .bq-table-sticky-clone .bq-button {
        max-width: 65px;
        font-size: 12px;
        font-weight: 400;
        padding: 5px 6px;
        border-radius: 2px;
    }

    /* Mobile Icon Sizes */
    .bq-detailed-table .detail-tick,
    .bq-detailed-table .detail-cross {
        height: 12px;
        width: 12px;
    }
    
    /* Mobile sticky clone adjustments */
    .bq-table-sticky-clone__table th {
        padding: 10px 15px;
    }
    
    .bq-table-sticky-clone__table th.feature-col {
        font-size: 12px;
        padding-left: 10px;
        /* Ensure frozen on mobile too with higher z-index */
        z-index: 102;
    }
    
    .bq-table-sticky-clone__table th.plan-col h3 {
        font-size: 12px;
        margin: 0 0 8px;
    }
}