/* Pricing page comparison table. Loaded only on the pricing page (see head.html). */

.cmp-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: #ffffff;
}

.cmp {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: 0.875rem;
    line-height: 1.45;
    color: #424242;
}

/* Header: plan name + price, light and airy */
.cmp thead th {
    padding: 1.5rem 1rem 1.25rem;
    text-align: center;
    vertical-align: bottom;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 400;
}

.cmp thead th.cmp-feature-col {
    width: 28%;
}

.cmp-plan {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.cmp-price {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    color: #6b7280;
}

/* Section group rows */
.cmp .cmp-group td {
    padding: 1.75rem 1.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1268ec;
    text-align: left;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

/* Body rows */
.cmp tbody tr:not(.cmp-group) td {
    padding: 0.9rem 1rem;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid #f1f2f4;
}

.cmp tbody tr:not(.cmp-group) td:first-child {
    padding-left: 1.25rem;
    text-align: left;
    font-weight: 500;
    color: #1f2937;
}

.cmp tbody tr:not(.cmp-group):hover td {
    background-color: #fafbfc;
}

.cmp tbody tr:last-child td {
    border-bottom: 0;
}

/* Highlighted (recommended) column */
.cmp th.is-hl,
.cmp td.is-hl,
.cmp tbody tr:not(.cmp-group):hover td.is-hl {
    background-color: #f3f7fe;
}

.cmp th.is-hl .cmp-plan {
    color: #1268ec;
}

/* Yes / No marks */
.cmp i.yes,
.cmp i.no {
    display: inline-block;
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

.cmp i.yes {
    background: url("/assets/icons/tick-icon-blue.svg") center / contain no-repeat;
}

.cmp i.no::before {
    content: "";
    display: block;
    width: 12px;
    height: 2px;
    margin: 8px auto 0;
    border-radius: 2px;
    background: #d1d5db;
}

@media (min-width: 1024px) {
    .cmp {
        font-size: 0.9375rem;
    }
    .cmp-plan {
        font-size: 1.0625rem;
    }
}

/* Keep the feature column visible while plan columns scroll on small screens */
@media (max-width: 1023px) {
    .cmp tbody tr:not(.cmp-group) td:first-child,
    .cmp thead th.cmp-feature-col {
        position: sticky;
        left: 0;
        z-index: 1;
        background: #ffffff;
        box-shadow: 1px 0 0 #e5e7eb;
    }
    .cmp .cmp-group td {
        position: sticky;
        left: 0;
    }
}

/* Old price with a diagonal strike (top-right to bottom-left) */
.price-was {
    position: relative;
    display: inline-block;
    text-decoration: none;
    padding: 0 0.1em;
}

.price-was::after {
    content: "";
    position: absolute;
    left: -6%;
    right: -6%;
    top: 52%;
    height: 2.5px;
    border-radius: 2px;
    background: #1268ec;
    transform: rotate(-14deg);
    pointer-events: none;
}
