/* Scoped to Finance Network comparison markup. */
.fnbc {
    width: min(100%, 1450px) !important;
    max-width: 1450px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.entry-content > .fnbc,
.wp-block-post-content > .fnbc,
.ct-container > .fnbc {
    width: min(100%, 1450px) !important;
}

.fnbc-list {
    width: min(1450px, calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    transform: none !important;
}

.fnbc .fnbc-scroll {
    width: 100% !important;
}

.fnbc-list .fnbc-table {
    width: 100% !important;
    min-width: 980px;
}

.fnbc .fnbc-table th,
.fnbc .fnbc-table td {
    overflow-wrap: anywhere;
}

.fnbc-list .fnbc-table th:nth-child(1) {
    width: 9%;
}

.fnbc-list .fnbc-table th:nth-child(2) {
    width: 31%;
}

.fnbc-list .fnbc-table th:nth-child(3) {
    width: 22%;
}

.fnbc-list .fnbc-table th:nth-child(4) {
    width: 24%;
}

.fnbc-list .fnbc-table th:nth-child(5) {
    width: 14%;
}

.fnbc .fnbc-chooser,
.fnbc .fnbc-profile-grid,
.fnbc .fnbc-section-tools,
.fnbc .fnbc-jumps,
.fnbc .fnbc-bottom {
    max-width: 100%;
}

@media (max-width: 760px) {
    .fnbc {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 16px !important;
        padding-left: 12px;
        padding-right: 12px;
    }

    .fnbc-list {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 12px;
        padding-right: 12px;
    }

    .fnbc-list .fnbc-scroll {
        overflow: visible !important;
        border: 0 !important;
        background: transparent !important;
    }

    .fnbc-list .fnbc-table {
        display: block !important;
        min-width: 0 !important;
    }

    .fnbc-list .fnbc-table thead {
        display: none !important;
    }

    .fnbc-list .fnbc-table tbody {
        display: grid !important;
        gap: 12px;
    }

    .fnbc-list .fnbc-table tr {
        display: grid !important;
        overflow: hidden;
        border: 1px solid #dce5eb;
        border-radius: 8px;
        background: #fff !important;
        box-shadow: 0 4px 16px rgba(21, 51, 72, 0.06);
    }

    .fnbc-list .fnbc-table td {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        border: 0 !important;
        border-bottom: 1px solid #eef3f6 !important;
        padding: 12px 14px !important;
        text-align: right !important;
    }

    .fnbc-list .fnbc-table td:last-child {
        border-bottom: 0 !important;
    }

    .fnbc-list .fnbc-table td::before {
        content: attr(data-label);
        min-width: 112px;
        color: #5b7080;
        font-size: 12px;
        font-weight: 700;
        text-align: left;
    }

    .fnbc-list .fnbc-table td:nth-child(2) {
        font-size: 16px;
        font-weight: 700;
    }

    .fnbc-list .fnbc-table td:nth-child(3) {
        align-items: flex-start;
    }

    .fnbc-list .fnbc-table td:nth-child(3) small {
        text-align: right;
    }

    .fnbc .fnbc-chooser,
    .fnbc .fnbc-profile-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    .fnbc .fnbc-section .fnbc-scroll {
        overflow: auto;
    }

    .fnbc .fnbc-side {
        min-width: 640px;
    }

    .fnbc .fnbc-tray {
        padding: 10px 12px !important;
        padding-bottom: max(10px, env(safe-area-inset-bottom)) !important;
    }

    .fnbc .fnbc-tray-inner {
        flex-wrap: wrap;
        gap: 8px;
    }

    .fnbc .fnbc-selected {
        flex-basis: 100%;
        justify-content: space-between;
    }

    .fnbc .fnbc-selected-card img {
        display: none;
    }
}
