/* HEC Comparison Table for WPBakery */

.hec-comparison-table {
    --hec-blue: #225f7e;
    --hec-green: #24542f;
    --hec-red: #fe5656;
    --hec-cream: #f9ecd7;
    --hec-row-odd: #eef2f0;
    --hec-row-even: #dfe6e2;

    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    font-family: inherit;
    color: var(--hec-blue);
}

.hec-comparison-table *,
.hec-comparison-table *::before,
.hec-comparison-table *::after {
    box-sizing: border-box;
}

/* Top headers */
.hec-comparison-table__header {
    display: grid;
    grid-template-columns: minmax(0, 50%) minmax(0, 25%) minmax(0, 25%);
    align-items: stretch;
}

.hec-comparison-table__header-cell {
    min-height: 106px;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hec-comparison-table__header-cell--included {
    background: var(--hec-green);
    color: #fff;
    border-radius: 18px 18px 0 0;
}

.hec-comparison-table__header-cell--alternative {
    background: var(--hec-cream);
    color: var(--hec-green);
    border-radius: 18px 18px 0 0;
}

.hec-comparison-table__eyebrow {
    display: block;
    margin-bottom: 10px;
    font-size: 9px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.hec-comparison-table__header-cell strong {
    display: block;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: 2.8px;
    text-transform: uppercase;
}

/* Main body */
.hec-comparison-table__body {
    overflow: hidden;
    border-radius: 18px;
}

.hec-comparison-table__section,
.hec-comparison-table__row {
    display: grid;
    grid-template-columns: minmax(0, 50%) minmax(0, 25%) minmax(0, 25%);
}

.hec-comparison-table__section-title,
.hec-comparison-table__section-middle,
.hec-comparison-table__section-right {
    min-height: 46px;
}

.hec-comparison-table__section-title {
    padding: 14px 40px;
    display: flex;
    align-items: center;
    background: #fff;
    color: var(--hec-blue);
    font-size: 12px;
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: 2.6px;
    text-transform: uppercase;
}

.hec-comparison-table__section-middle {
    background: color-mix(in srgb, var(--hec-green) 12%, #fff);
}

.hec-comparison-table__section-right {
    background: #f6f8f6;
}

/* Alternating item rows */
.hec-comparison-table__row--odd {
    background: var(--hec-row-odd);
}

.hec-comparison-table__row--even {
    background: var(--hec-row-even);
}

.hec-comparison-table__feature,
.hec-comparison-table__included,
.hec-comparison-table__alternative {
    min-width: 0;
    min-height: 76px;
    padding: 17px 40px;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.hec-comparison-table__feature strong {
    display: block;
    color: var(--hec-blue);
    font-size: 10px;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.hec-comparison-table__feature span {
    display: block;
    margin-top: 4px;
    color: var(--hec-blue);
    font-size: 9px;
    line-height: 1.5;
    font-weight: 600;
    letter-spacing: 1.2px;
}

/* Middle column */
.hec-comparison-table__included {
    align-items: center;
    background: color-mix(in srgb, var(--hec-green) 12%, transparent);
}

.hec-comparison-table__included-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.hec-comparison-table__included strong {
    color: var(--hec-blue);
    font-size: 12px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.hec-comparison-table__check {
    color: var(--hec-green);
    font-size: 23px;
    line-height: 1;
    font-weight: 800;
}

/* Right column */
.hec-comparison-table__alternative {
    align-items: center;
    text-align: center;
}

.hec-comparison-table__alternative-title {
    display: block;
    color: var(--hec-red);
    font-size: 9px;
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: 1.45px;
    text-transform: uppercase;
}

.hec-comparison-table__x {
    margin-right: 3px;
    font-size: 14px;
    line-height: 1;
}

.hec-comparison-table__alternative-description {
    display: block;
    margin-top: 5px;
    color: var(--hec-blue);
    font-size: 8.5px;
    line-height: 1.45;
    font-weight: 600;
    letter-spacing: 1px;
}

.hec-comparison-table__mobile-label {
    display: none;
}

/* Slightly tighten before mobile */
@media (max-width: 991px) {
    .hec-comparison-table__feature,
    .hec-comparison-table__included,
    .hec-comparison-table__alternative {
        padding-left: 22px;
        padding-right: 22px;
    }

    .hec-comparison-table__section-title {
        padding-left: 22px;
        padding-right: 22px;
    }

    .hec-comparison-table__header-cell {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hec-comparison-table__header-cell strong {
        font-size: 11px;
        letter-spacing: 2px;
    }
}

/* Mobile card layout */
@media (max-width: 767px) {
    .hec-comparison-table {
        max-width: 560px;
    }

    .hec-comparison-table__header {
        display: none;
    }

    .hec-comparison-table__body {
        overflow: visible;
        border-radius: 0;
    }

    .hec-comparison-table__section {
        display: block;
        margin: 26px 0 12px;
    }

    .hec-comparison-table__section:first-child {
        margin-top: 0;
    }

    .hec-comparison-table__section-title {
        min-height: 0;
        padding: 13px 18px;
        border-radius: 10px;
        background: var(--hec-blue);
        color: #fff;
        font-size: 11px;
        letter-spacing: 2px;
    }

    .hec-comparison-table__section-middle,
    .hec-comparison-table__section-right {
        display: none;
    }

    .hec-comparison-table__row {
        display: block;
        margin-bottom: 14px;
        overflow: hidden;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 5px 22px rgba(0, 0, 0, 0.07);
    }

    .hec-comparison-table__feature,
    .hec-comparison-table__included,
    .hec-comparison-table__alternative {
        min-height: 0;
        padding: 17px 18px;
    }

    .hec-comparison-table__feature {
        background: var(--hec-row-odd);
    }

    .hec-comparison-table__feature strong {
        font-size: 10px;
    }

    .hec-comparison-table__feature span {
        font-size: 9px;
    }

    .hec-comparison-table__mobile-label {
        display: block;
        width: 100%;
        margin-bottom: 9px;
        color: var(--hec-green);
        font-size: 8px;
        line-height: 1.35;
        font-weight: 800;
        letter-spacing: 1.35px;
        text-transform: uppercase;
    }

    .hec-comparison-table__included {
        align-items: flex-start;
        background: color-mix(in srgb, var(--hec-green) 12%, #fff);
    }

    .hec-comparison-table__included-value {
        justify-content: flex-start;
    }

    .hec-comparison-table__included strong {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .hec-comparison-table__alternative {
        align-items: flex-start;
        text-align: left;
        background: var(--hec-cream);
    }

    .hec-comparison-table__alternative-title {
        font-size: 9px;
    }
}

/* Fallback for browsers without color-mix() */
@supports not (background: color-mix(in srgb, #000 10%, #fff)) {
    .hec-comparison-table__section-middle,
    .hec-comparison-table__included {
        background: rgba(36, 84, 47, 0.10);
    }
}
