/* Comparison pages (tools/build_comparisons.py): the Hotel Waitlist column,
   and a tick on the rows where it does more than the alternative. */
.compare-table {
    table-layout: fixed;
    min-width: 640px;
    line-height: 1.55;
}

.compare-table col.compare-col-label { width: 20%; }
.compare-table col.compare-col-ours { width: 44%; }
.compare-table col.compare-col-theirs { width: 36%; }

.compare-table thead th {
    vertical-align: bottom;
    padding-top: 16px;
    padding-bottom: 16px;
}

.compare-table thead th.compare-ours {
    background: var(--primary);
    color: var(--white);
    border-bottom-color: var(--primary);
    border-radius: var(--radius) var(--radius) 0 0;
    padding-left: 48px;
}

.compare-table thead th:last-child {
    color: var(--gray-600);
}

.compare-table tbody th {
    font-size: 0.875rem;
}

.compare-table td:nth-child(2) {
    position: relative;
    background: #eff6ff;
    color: var(--gray-900);
    padding-left: 48px;
    border-left: 2px solid var(--primary);
    border-right: 2px solid var(--primary);
    border-bottom-color: #dbeafe;
}

.compare-table tbody tr:last-child td:nth-child(2) {
    border-bottom: 2px solid var(--primary);
    border-radius: 0 0 var(--radius) var(--radius);
}

.compare-table td:nth-child(3) {
    color: var(--gray-500);
}

.compare-table tr.compare-adv td:nth-child(2) {
    font-weight: 500;
}

.compare-table tr.compare-adv td:nth-child(2)::before {
    content: "\2713";
    position: absolute;
    left: 16px;
    top: 15px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--success);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}

@media (max-width: 768px) {
    .compare-table td:nth-child(2),
    .compare-table thead th.compare-ours {
        padding-left: 36px;
    }

    .compare-table tr.compare-adv td:nth-child(2)::before {
        left: 9px;
        top: 11px;
    }
}
