.container.mortgage-matrix {
    margin-bottom: 30px;
}

.mortgage-matrix .header {
    text-transform: inherit;
    padding: 1rem;
    text-align: center;
    width: 68%;
    margin: 0 auto;
}

.mortgage-matrix .header h2 {
    margin-bottom: 0;
    padding-bottom: 0;
}

.mortgage-matrix .header h3 {
    text-align: center !important;
    margin-top: 10px !important;
}

.mortgage-matrix .header label {
    margin-bottom: 1rem;
}

.mortgage-matrix .header select {
    padding: 14px 40px;
    border: 1px solid #ccc;
    border-radius: 40px;
    font-weight: 500;
}

.mortgage-matrix .notification {
    background: #f6f6f6;
    border-radius: 0.5rem;
    padding: 16px 20px;
    width: 94%;
    margin: 20px auto;
}

.mortgage-matrix .notification strong {
    font-weight: 700;
}

.mortgage-matrix .notification .info-container {
    align-items: center;
    display: inline-flex;
    justify-content: center;
}

.mortgage-matrix .notification .info-container img {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    height: 1.5rem;
    width: 1.5rem;
}

.mortgage-matrix .notification .updated-at {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mortgage-matrix .rates-table {
    box-shadow: 0 2px 20px rgba(51, 51, 51, 0.12);
    padding: 24px 40px 24px 40px;
    border-radius: 6px;
    overflow-x: auto;
}

.mortgage-matrix .rates-table table {
    width: 100%;
}

.mortgage-matrix .rates-table th,
.mortgage-matrix .rates-table td {
    padding: 16px;
    font-weight: 600;
}

.mortgage-matrix .rates-table tr {
    border-bottom: 2px solid #e5e5e5;
}

.mortgage-matrix .rates-table tbody>tr:last-child {
    border: none;
}

.mortgage-matrix .rates-table thead tr th {
    position: relative;
    line-height: 16px;
    padding-bottom: 20px;
}

.mortgage-matrix .rates-table thead tr th div {
    text-wrap: nowrap;
}

.mortgage-matrix .rates-table thead tr th .tooltip {
    display: none;
    position: absolute;
    padding: 1rem;
    border: 1px #ce0f69 solid;
    border-radius: 0.5rem;
    background: white;
    top: 2.8rem;
    font-size: 14px;
    left: -2rem;
    width: 13rem;
    text-wrap: balance;
    line-height: 20px;
}

.mortgage-matrix .rates-table thead tr th .tooltip-question-mark {
    cursor: pointer;
    margin-left: 0.4rem;
    width: 18px;
    height: 21px;
    display: inline-block;
    background-repeat: no-repeat;
    background-size: 18px 18px;
    background-image: url('data:image/svg+xml; utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18"><circle cx="9" cy="9" r="9" fill="%23ce0f69" /><text x="50%" y="80%" text-anchor="middle" fill="white" font-size="13px" font-weight="bold" font-family="Arial, sans-serif">?</text></svg>');
}

.mortgage-matrix .rates-table thead tr th .tooltip-question-mark:hover+span {
    display: block;
}

.mortgage-matrix .rates-table tbody tr a {
    font-weight: 700;
}

.mortgage-matrix .rates-table tbody tr div {
    font-weight: 600;
}

.mortgage-matrix .rates-table tbody td img {
    height: 1.5rem;
    width: 3.75rem;
    object-fit: contain;
    margin-left: 1rem;
}

.mortgage-matrix .rates-table .boc-overnight-rates-table tbody td img,
.mortgage-matrix .rates-table .boc-prime-rates-table tbody td img {
    height: 0.65rem;
    margin-left: 0;
    display: inline;
}

.rdc-table-red tbody tr td:first-child {
    background: white;
    color: black;
}

.rdc-table-red tbody tr td:first-child *,
.rdc-table tbody tr td:first-child * {
    color: #da3c13;
}

@media screen and (max-width: 900px) {
    .mortgage-matrix .notification {
        margin: 1rem;
    }

    .mortgage-matrix .rates-table {
        padding: 0;
        border-radius: 0;
    }
}

@media screen and (max-width: 500px) {

    .rdc-table-red tbody tr td:first-child *,
    .rdc-table tbody tr td:first-child * {
        color: #fff;
    }

    .mortgage-matrix .header {
        width: 100%;
    }

    .mortgage-matrix .header label {
        margin-bottom: 12px;
    }

    .mortgage-matrix .header .mb-10 h3 {
        text-align: center !important;
    }

    .mortgage-matrix .rates-table tr {
        border-bottom: none;
    }

    .rdc-table-red tbody tr td:first-child {
        background: #da3c13;
        color: white;
    }

    .mortgage-matrix .notification {
        flex-direction: column;
        align-items: flex-start;
        font-size: 1rem;
        margin: 1rem 1rem 2.5rem;
    }

    .mortgage-matrix .notification p {
        font-size: 1rem;
    }

    .mortgage-matrix .rates-table th:first-child {
        background-color: #da3c13;
    }

    .mortgage-matrix .rates-table th,
    .mortgage-matrix .rates-table td {
        padding: 16px 32px;
    }
}

@media screen and (max-width: 321px) {

    .mortgage-matrix .rates-table th,
    .mortgage-matrix .rates-table td {
        padding: 16px 16px;
    }
}