/* Ensure feature highlights stay in one line on all screen sizes */
@media (max-width: 480px) {
    .flex.flex-row.flex-wrap {
        gap-left: 0.5rem;
        gap-right: 0.5rem;
    }

    .flex.flex-row.flex-wrap .flex {
        font-size: 0.7rem;
    }

    .flex.flex-row.flex-wrap i {
        font-size: 0.7rem;
    }
}

@media (max-width: 360px) {
    .flex.flex-row.flex-wrap .flex {
        font-size: 0.65rem;
    }

    .flex.flex-row.flex-wrap i {
        font-size: 0.65rem;
    }
}

/* Base table styles */
.cmp-section {
    padding: 60px 0;
    background: #fafafa;
}

.s2-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.cmp-overline {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #016701;
    text-transform: uppercase;
}

.cmp-headline {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin: 16px 0 20px;
}

.cmp-headline span {
    color: #016701;
}

.cmp-sub {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto 48px;
}

/* Desktop table styles */
.cmp-table-wrap {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeef2;
}

.cmp-thead {
    display: grid;
    grid-template-columns: 200px repeat(5, 1fr);
    background: linear-gradient(to right, #016701, #0f4d3f);
    border-radius: 24px 24px 0 0;
    padding: 16px 20px;
}

.cmp-th {
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
}

.cmp-th.us {
    font-size: 15px;
}

.cmp-row {
    display: grid;
    grid-template-columns: 200px repeat(5, 1fr);
    padding: 16px 20px;
    border-bottom: 1px solid #eaeef2;
    align-items: center;
    min-height: 72px;
}

.cmp-row:last-child {
    border-bottom: none;
    border-radius: 0 0 24px 24px;
}

.cmp-cell {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cmp-cell:first-child {
    text-align: left;
    justify-content: flex-start;
}

.us-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cmp-feat {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cmp-feat-icon {
    width: 32px;
    height: 32px;
    background: #f0faf7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #016701;
}

.cmp-feat-icon svg {
    width: 18px;
    height: 18px;
}

.cmp-feat-label {
    font-size: 15px;
    font-weight: 600;
    color: #222;
}

.cmp-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.cmp-tag.green {
    background: #e8f5e9;
    color: #016701;
}

.cmp-tag.gray {
    background: #f5f5f5;
    color: #555;
}

.cmp-num {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.cmp-num-sub {
    font-size: 11px;
    color: #888;
    margin-left: 4px;
}

.s-yes,
.s-no,
.s-partial {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.s-yes {
    background: #e8f5e9;
    color: #016701;
}

.s-no {
    background: #fee9e7;
    color: #d32f2f;
}

.s-partial {
    background: #fff4e5;
    color: #ed6c02;
}

.ic {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes dpulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Provider Tabs - Mobile */
.provider-tabs {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 24px;
    justify-content: center;
}

.tab-btn {
    padding: 10px 18px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    background: #f5f5f5;
}

.tab-btn.active {
    background: #016701;
    border-color: #016701;
    color: white;
    box-shadow: 0 4px 10px rgba(1, 103, 1, 0.2);
}

/* Mobile Tab View */
.mobile-tab-view {
    display: none;
}

.tab-content {
    display: none;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeef2;
    overflow: hidden;
}

.tab-content.active {
    display: block;
}

.provider-header {
    padding: 20px;
    background: linear-gradient(to right, #f8f9fa, #fff);
    border-bottom: 1px solid #eaeef2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.provider-name {
    font-size: 24px;
    font-weight: 700;
    color: #222;
}

.provider-badge {
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
}

.provider-badge.green {
    background: #e8f5e9;
    color: #016701;
}

.provider-badge.gray {
    background: #f0f0f0;
    color: #666;
}

.feature-list {
    padding: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #444;
}

.feature-icon {
    width: 28px;
    height: 28px;
    background: #f0faf7;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #016701;
}

.feature-icon svg {
    width: 16px;
    height: 16px;
}

.feature-value {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Desktop vs Mobile visibility */
@media (min-width: 769px) {
    .desktop-table {
        display: block;
    }

    .mobile-tab-view,
    .provider-tabs {
        display: none;
    }
}

@media (max-width: 768px) {
    .cmp-section {
        padding: 40px 0;
    }

    .s2-container {
        padding: 0 16px;
    }

    .cmp-headline {
        font-size: 32px;
    }

    .cmp-headline br {
        display: none;
    }

    .cmp-sub {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .desktop-table {
        display: none;
    }

    .provider-tabs {
        display: flex;
    }

    .mobile-tab-view {
        display: block;
    }

    .tab-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .provider-name {
        font-size: 20px;
    }

    .feature-label {
        font-size: 14px;
    }

    .feature-value {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .cmp-headline {
        font-size: 28px;
    }

    .cmp-overline {
        font-size: 12px;
    }

    .provider-tabs {
        gap: 6px;
    }

    .tab-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .feature-item {
        padding: 12px 0;
    }
}
