/* 
 * 100% Original Site Styles matched with BEM classes 
 */
.xc-roll-calc, .xc-roll-calc * {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

.xc-roll-calc {
    max-width: 1240px;
    margin: 50px auto;
}

.xc-roll-calc table {
    border: 0;
    border-collapse: collapse;
}

.xc-roll-calc table td {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    color: #272626;
}

.xc-roll-calc__left {
    width: 49%;
    float: left;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 10px;
}

.xc-roll-calc__right {
    width: 49%;
    float: right;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 10px;
}

.xc-roll-calc:after {
    content: "";
    display: table;
    clear: both;
}

.xc-roll-calc__left table tr td:nth-child(1) {
    width: auto;
    white-space: nowrap;
    padding-right: 15px !important;
}

.xc-roll-calc__select {
    width: 100%;
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 5px;
    color: #272626;
}

.xc-roll-calc__select optgroup {
    font-style: inherit;
    font-weight: 300 !important;
    color: graytext;
}

.xc-roll-calc__select optgroup option,
.xc-roll-calc__select option {
    color: #000;
}

.xc-roll-calc__table tr td:nth-child(2) {
    text-align: right;
    color: #272626;
}

.xc-roll-calc__table tfoot td {
    padding: 10px 0 !important;
    font-size: 20px;
    color: #272626;
}

.xc-roll-calc__table tfoot td:nth-child(2) {
    color: #0298da;
    font-weight: 700;
}

@media (max-width: 992px) {
    .xc-roll-calc__left,
    .xc-roll-calc__right {
        width: 100%;
        float: left;
        margin-bottom: 30px;
    }
}

h4.xc-roll-calc__title {
    text-align: center;
    background: #2d2d2d;
    padding: 50px;
    color: white;
    margin-top: 0px !important;
}

h4.xc-roll-calc__title-right {
    color: #0298da;
    font-size: 20px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid #0298da59;
}

.xc-roll-calc__item-title {
    font-size: 15px;
    color: #1c345f;
    font-weight: 500;
    padding: 10px 0;
    margin: 0;
    width: 120px;
    display: inline-block;
    float: left;
}

.xc-roll-calc__text-input {
    color: #4c4c4c;
    border-radius: 5px;
    border: 1px solid #ccc;
    background: #f9fafb;
    width: calc(100% - 120px);
    width: -webkit-calc(100% - 120px);
    width: -moz-calc(100% - 120px);
    display: inline-block;
    float: none;
}

.xc-roll-calc__text-input input.xc-roll-calc__input {
    width: 80%;
    width: calc(100% - 70px);
    width: -webkit-calc(100% - 70px);
    width: -moz-calc(100% - 70px);
    border: 0;
    background: transparent;
    outline: 0;
    padding: 10px;
    color: #272626;
}

.xc-roll-calc__text-input span.xc-roll-calc__quantitative {
    width: 65px;
    display: inline-block;
    text-align: right;
    padding-right: 10px;
}

.xc-roll-calc__text-input select.xc-roll-calc__input {
    width: 100%;
    border: 0;
    padding: 10px;
    font-size: 14px;
    background: #f9fafb;
    border-radius: 5px;
    cursor: pointer;
    outline: 0;
    color: #272626;
    margin: 0;
}

.xc-roll-calc__total-payment {
    margin-bottom: 18px;
    width: 100%;
    border-radius: 5px;
    display: inline-block;
    float: left;
}

p.xc-roll-calc__txt-payment {
    color: #272626;
    font-size: 15px;
    margin: 0;
    float: left;
    width: 50%;
}

p.xc-roll-calc__txt-index-payment {
    font-size: 100%;
    color: #0298da;
    font-weight: 700;
    margin: 0;
    text-align: right;
}

.xc-roll-calc__detail-table {
    display: none;
    width: 100%;
    margin: 30px 0;
}

.xc-roll-calc__clearfix:after {
    content: "";
    display: table;
    clear: both;
}

.xc-roll-calc__detail-table table {
    border-collapse: collapse;
    width: 100%;
    margin: 0;
}

.xc-roll-calc__detail-table table thead {
    background: #0298da;
}

.xc-roll-calc__detail-table table thead th {
    color: #fff;
    padding: 10px 4px;
    font-size: 15px;
    text-transform: none;
    font-weight: 700;
    text-align: center;
}

.xc-roll-calc__detail-table table tbody tr td {
    border-right: 1px solid #ebebeb;
    text-align: center;
    padding: 10px 0;
}

.xc-roll-calc__detail-table table tbody tr:nth-child(2n+2) {
    background: #f5f5f5;
}

.xc-roll-calc__detail-table table tbody tr td:last-child {
    border-right: 0;
}

.xc-roll-calc__detail-table table>tfoot>tr>td {
    color: #3d4d64;
    font-weight: 500;
    padding: 16px;
    font-size: 18px;
    text-align: center;
    background: #d4e3f3;
}

.xc-roll-calc__detail-payment button {
    border: 1px solid #0298da;
    background: #fff;
    color: #0298da;
    font-weight: 700;
    font-size: 14px;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    outline: 0;
    margin-top: 10px;
}

.xc-roll-calc__detail-payment button:hover {
    color: #fff;
    background: #0298da;
}

@media(max-width:767px) {
    .xc-roll-calc__loan-index, .xc-roll-calc__loan-content .payment {
        width: 100%;
        float: none;
    }
    .xc-roll-calc__loan-index {
        margin-bottom: 20px;
    }
}

@media(max-width:560px) {
    .xc-roll-calc__detail-table {
        overflow-x: auto;
    }
    .xc-roll-calc__detail-table table thead th {
        white-space: nowrap;
        font-size: 11px;
        font-weight: 400;
        padding: 3px;
    }
    .xc-roll-calc__detail-table table tbody tr td {
        padding: 3px;
    }
    .xc-roll-calc__detail-payment button {
        width: 100%;
        margin: 0 0 10px !important;
    }
    .xc-roll-calc__total-payment {
        padding: 10px;
    }
}

.xc-roll-calc__item {
    margin-bottom: 20px;
}

.xc-roll-calc__item-payment {
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.xc-roll-calc__input_bhvc {
    width: 200px;
    text-align: right;
    padding: 5px;
}

/* Fix h1 vs h4 title inherited CSS */
h1.xc-roll-calc__title, h4.xc-roll-calc__title {
    text-align: center;
    background: #2d2d2d;
    padding: 50px;
    color: white;
    margin-top: 0px !important;
}
