.tabs {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    color: #404551;
    width: 100%;
    font-size: 19px;
}


/* Nav */

.tabs nav {
    text-align: center;
}

.tabs nav ul {
    position: relative;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: flex;
    margin: 0 auto;
    padding: 0;
    max-width: 1200px;
    list-style: none;
    -ms-box-orient: horizontal;
    -ms-box-pack: center;
    -webkit-flex-flow: row wrap;
    -moz-flex-flow: row wrap;
    -ms-flex-flow: row wrap;
    flex-flow: row wrap;
    -webkit-justify-content: center;
    -moz-justify-content: center;
    -ms-justify-content: center;
    justify-content: center;
}

.tabs nav ul li {
    position: relative;
    z-index: 1;
    display: block;
    margin: 0;
    text-align: center;
    -webkit-flex: 1;
    -moz-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

.tabs nav a {
    position: relative;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 2.5;
}

.tabs nav a span {
    vertical-align: middle;
    font-size: 0.75em;
}

.tabs nav li.tab-current a {
    color: #74777b;
}

.tabs nav a:focus {
    outline: none;
}


/* Content */

.content-wrap {
    position: relative;
}

.text-main-interest {
    font-size: 20px !important;
    color: #3f3ce8!important;
    font-family: 'sukhumvitset-bold', sans-serif!important;
    margin-top: 10px;
}

.content-wrap section {
    display: none;
    margin: 0 auto;
    padding: 30px 0px 0px;
}

.content-wrap section.content-current {
    display: block;
}

.content-wrap section p {
    margin: 0;
    color: rgb(89 95 103);
    text-align: center;
    font-size: 19px;
}

.tabs-style-bar nav ul li a {
    padding: 0 7px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background-color: #ffffff;
    color: #404551;
    transition: background-color 0.2s, color 0.2s;
}

.tabs-style-bar nav ul li a:hover,
.tabs-style-bar nav ul li a:focus {
    color: #7f899d;
    border: 1px solid #dee2e5;
}

.tabs-style-bar nav ul li a span {
    text-transform: uppercase;
    font-weight: 500;
    font-size: 19px;
}

.tabs-style-bar nav ul li.tab-current a {
    background: #4846ea;
    color: #fff;
    border: 1px solid #4846ea;
}

.tab-head-detail-popup {
    text-align: center;
    background: #d0d6e1;
    padding: 10px;
    font-family: 'sukhumvitset-bold', sans-serif;
}

.tab-detail-popup {
    padding: 15px;
    background: #ebeef3;
    line-height: 1.7;
}

@media (max-width: 767px) {
    .tabs {
        font-size: 16px;
    }
    .box-group-fliter {
        margin: 30px 15px;
        padding: 40px;
    }
    .text-main-interest {
        font-size: 20px !important;
        margin-top: 5px;
    }
    .box-sv-promotion span {
        font-size: 16px;
    }
}

@media (max-width: 991px) {
    .tabs-style-bar nav ul li a span {
        font-size: 17px;
    }
}

@media (max-width: 767px) {
    .tabs-style-bar nav ul li a span {
        font-size: 15px;
    }
}

@media (max-width: 575px) {
    .text-main-interest {
        float: left;
        height: auto;
        margin: 10px 0 10px 0;
        width: 100%;
    }
    .tabs-style-bar nav ul li a span {
        font-size: 16px;
    }
}

@media (max-width: 390px) {
    .tabs nav ul {
        display: block;
    }
    .tabs nav ul li {
        margin: 0 0px 10px 0 !important;
    }
}

.to-refinance {
    margin-top: -50px !important;
    min-width: 140px;
    height: 44px;
    line-height: 46px;
    margin-bottom: 10px;
    float: right;
}

@media (max-width: 545px) {
    .to-refinance {
        margin-top: 20px !important;
        margin-bottom: 0px;
        float: none;
    }
}

.tab-modal-refinance-home-li {
    margin-left: 15px !important;
    margin-right: 15px !important;
}

@media (max-width: 598px) {
    .tab-modal-refinance-home {
        display: block !important;
        width: 100% !important;
    }
    .tab-modal-refinance-home-li {
        margin-left: 0px !important;
        margin-right: 0px !important;
    }
}

@media (max-width: 700px) {
    .modal-open .modal .modal-body .space-modal-refinance-home {
        padding: 20px;
        margin: 20px;
    }
}