/* ===================================================================
   Pricing Comparison Table Styles
   =================================================================== */

.comparison-table-container {
    font-family: "Overused Grotesk", Sans-serif; /* Or your theme's font */
    color: #000000;
}

/* This wrapper enables horizontal scrolling on small screens */
.grid-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.comparison-grid {
    display: grid;
    /* 5 columns: 1 for labels, 4 for plans. Labels get more space. */
    grid-template-columns: minmax(200px, 1.5fr) repeat(4, minmax(180px, 1fr));
    min-width: 900px; /* Ensures grid doesn't collapse too early before scrolling starts */
}

.grid-cell {
    padding: 20px 15px;
    border-bottom: 1px solid #DEDEF933;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically center content */
}

/* Header Cells for Plan Info */
.header-cell {
    border-bottom: none;
    padding-bottom: 30px;
}

.plan-header {
    text-align: left;
}
.plan-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #302B38;
}
.plan-header .price {
    font-size: 16px;
    color: #000000;
    margin-bottom: 10px;
}
.plan-header .button {
    margin: 0; /* Center the button */
}


/* Section Headers (e.g., "Data 1") */
.grid-section-header {
    padding: 36px 15px;
    font-size: 24px;
    font-weight: 600;
    border-bottom: 1px solid #DEDEF933;
    color: #20275E;
}

.grid-section-header:first-child{
    border-top: 1px solid #DEDEF933;
}

/* Feature Name & Value Cells */
.feature-name {
    font-weight: 400;
    font-size: 18px;
    color: #6B6B8A;
}

.feature-value {
    text-align: center;
    font-size: 18px;
    color: #20275E;
    align-items: center; 
}


/* ── Level 3: sub-feature rows ── */
.feature-name.sub-feature {
    font-weight: 400;
    font-size: 15px;
    color: #6B6B8A;
    padding-left: 32px;
}

/* Parent rows that own sub-features */
.feature-name.has-children {
    font-weight: 700;
}

/* Sub-feature value cell */
.feature-value.sub-feature {
    font-size: 18px;
    color: #20275E;
}

/* ── Mobile sub-feature rows ── */
.mobile-feature-name.has-children {
    font-weight: 700;
}

.mobile-feature-name.sub-feature {
    font-weight: 400;
    font-size: 14px;
    color: #6B6B8A;
    padding-left: 6px;
}


/* Icon Styles */
.feature-value span[class^="icon-"] {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}
.feature-value svg {
    width: 24px;
    height: 24px;
}

@media only screen and (max-width: 7670px) {
/* ===================================================================
   Mobile Pricing Card Styles
   =================================================================== */
.comparison-table-container.mobile-view .mobile-plan-card:last-child {
    border: 2px solid #6F37DB;
    box-shadow: 0 0 20px #DEDEF9;
}
/* Hide desktop grid on mobile by default */
.mobile-view .comparison-grid {
    display: none;
}


/* Individual plan card styling */
.mobile-plan-card {
    border: 1px solid #DEDEF9;
    border-radius: 8px;
    margin-bottom: 25px;
    padding: 20px;
    background-color: #fff;
}

/* Header section of the card */
.mobile-plan-header {
    text-align: center;
    border-bottom: 1px solid #DEDEF933;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.mobile-plan-header h3 {
    font-size: 32px;
    font-weight: 600;
    margin: unset;
    color: #302B38;
}

.mobile-plan-header .price {
    font-size: 27px;
    color: #000000;
    margin-bottom: 0;
}

/* Section header inside mobile card */
.mobile-section-header {
    font-size: 17px;
    font-weight: 700;
    color: #20275E;
    padding: 18px 0 8px;
    margin-bottom: 4px;
}

.mobile-section-header:first-of-type {
    border-top: none;
    padding-top: 0;
}

/* Two-column grid for features */
.mobile-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 equal columns */
    gap: 15px 10px; /* Vertical and horizontal gap */
    align-items: center;
}

/* Special grid for icon features to give more space */
.mobile-features-grid.icons-grid {
     grid-template-columns: 1fr auto; /* Name takes up space, icon takes what it needs */
     padding-top: 15px;
     border-top: 1px solid #DEDEF933;
     margin-top: 20px;
}

.mobile-feature-name {
    font-weight: 600;
    font-size: 14px;
    color: #20275E;
    text-align: left;
}

.mobile-feature-value {
    font-size: 14px;
    color: #20275E;
    text-align: right;
}

/* Center-align the check/cross icons within their container — 30% smaller */
.mobile-feature-value span[class^="icon-"] {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 22px;
    height: 22px;
}
.mobile-feature-value svg {
    width: 20px;
    height: 20px;
}


}