@font-face {
    font-family: 'Benton Sans';
    src: url('fonts/BentonSansBBVA/BentonSansBBVA-Medium.woff2') format('woff2'),
    url('fonts/BentonSansBBVA/BentonSansBBVA-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Benton Sans';
    src: url('fonts/BentonSansBBVA/BentonSansBBVA-Book.woff2') format('woff2'),
    url('fonts/BentonSansBBVA/BentonSansBBVA-Book.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto/Roboto-Regular.ttf') format('truetype'),
    url('fonts/Roboto/Roboto-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto/Roboto-Medium.ttf') format('truetype'),
    url('fonts/Roboto/Roboto-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

.calculator-wrapper {
    background-color: #fff;
    padding: 5px;
}
#form_bbva_loan {
    color: #121212;
    font-family: 'Benton Sans', sans-serif;
}
#form_bbva_loan .gdpr-block .gdpr-label {
    display: flex !important;
    align-items: initial;
}
#form_bbva_loan .gdpr-block .custom-checkbox {
    margin-right: 10px;
}
#form_bbva_loan .gdpr-block .gdpr-text {
    text-align: left;
}

#form_bbva_loan .gdpr-modal h4 {
    float:left;
}

#form_bbva_loan .gdpr-modal .modal-body {
    text-align: justify;
}

.calculator_loan_resume {
    background: #F4F4F4;
    padding: 16px;
    margin: 16px 0 24px !important;
    font-size: 15px;
    line-height: 24px;
    font-family: 'Benton Sans', sans-serif;
    color: #121212;
}
.calculator_loan_resume div {
    margin-bottom: 0;
}
.calculator_loan_resume .calculator_title {
    text-transform: uppercase;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
}
.calculator_loan_resume .calculator_detail {
    display: block;
    justify-content: space-between;
    margin-bottom: 8px;
}

.calculator_loan_resume .calculator_detail.desktop {
    display: flex;
}

.calculator_loan_resume .calculator_detail.mobile {
    display: none;
}

.calculator_loan_resume .calculator_detail_total {
    display: block;
    justify-content: space-between;
    margin-bottom: 16px;
    position: relative;
}

.calculator_loan_resume .calculator_detail_total.tooltip_wrapper {
    margin-bottom: 8px;
}

@media (min-width: 575px) {
    .calculator_loan_resume .calculator_detail {
        display: flex;
    }

    .calculator_loan_resume .calculator_detail_total {
        display: flex;
    }
}
.calculator_loan_resume .calculator_detail_total img {
    display: inline-block;
    vertical-align: middle;
    padding-bottom: 4px;
    padding-left: 9px;
}
.calculator_loan_resume .calculator_detail_total .tooltipp {
    position: absolute;
    top: calc(100% + 8px);
    left: -16px;
    width: calc(100% + 32px);
    background: #FFFFFF;
    padding: 8px;
    font-size: 12px;
    color: #121212;
    letter-spacing: 0;
    line-height: 16px;
    font-weight: normal;
    box-shadow: 0 1px 3px 0 rgba(0,0,0,0.20);
    z-index: 10;
    display: none;
}

.calculator_loan_resume .calculator_detail_total .tooltipp:before {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border: 5px solid transparent;
    border-bottom-color: #ffffff;
    position: absolute;
    top: -10px;
    left: 197px;
}
.modall .calculator_loan_resume .calculator_detail_total .tooltipp:before {
    left: 189px;
}
.calculator_loan_resume .calculator_detail_subtitle {
    font-size: 12px;
    margin-left: 10px;
    color: #717171;
}

.calculator_loan_resume .calculator_subtitle {
    color: #717171;
    font-size: 12px;
}

.calculator_loan .calculator_loan_select {
    position: relative;
    background: #f4f4f4;
}

.calculator_loan .calculator_loan_select .calculator_loan_select_months {
    position: absolute;
    right: 50px;
    top: 15px;
    color: #717171;
    pointer-events: none;
}

.calculator_loan .calculator_loan_select select {
    background: transparent;
    border: none;
    -webkit-appearance: none;
    width: 100%;
    height: 48px;
    border-radius: 0;
    padding: 0 48px 0 16px;
    border-bottom: 1px solid #717171;
    outline: none;
}


.calculator_loan .calculator_loan_select::before {
    content: url(../img/select_arrow.png);
    display: block;
    height: 20px;
    background-size: 15px;
    position: absolute;
    right: 22px;
    top: 13px;
    pointer-events: none;
}

.calculator_loan .calculator_loan_title {
    font-size: 15px;
    color: #121212;
    letter-spacing: 0;
    line-height: 24px;
    font-family: 'Benton Sans', sans-serif;
    margin-bottom: 16px;
    margin-top: 16px;
}

@media (max-width: 575px) {

    .calculator_loan .calculator_loan_select {
        font-size: 15px;
    }
    .calculator_loan .calculator_loan_select select {
        padding-right: 44px;
    }
    .calculator_loan .calculator_loan_select .calculator_loan_select_months {
        right: 43px;
        top: 13px;
    }

    .calculator_loan_resume .calculator_detail.desktop {
        display: none;
    }

    .calculator_loan_resume .calculator_detail.mobile {
        display: flex;
        flex-direction: column;
    }

    .calculator_loan_resume .calculator_detail.mobile div:first-of-type {
        margin-bottom: 7px;
    }

    .calculator_loan_resume .calculator_detail .nomarginbottom {
        margin-bottom: 0px !important;
    }
}

/* Fake select */

.calculator-loan-fake-select {
    position: relative;
    background: #f4f4f4;
    height: 47px;
    line-height: 47px;
    border-bottom: 1px solid #717171;
    padding-bottom: 0;
    font-family: 'Benton Sans', sans-serif;
    font-size: 15px;
    margin-bottom: 0px !important;
}
.calculator-loan-fake-select div {
    margin-bottom: 0;
    color: #121212;
}

.calculator-loan-fake-select .display {
    padding: 0 48px 0 16px;
    justify-content: space-between;
    display: flex;
    width: 100%;
    margin-bottom: 0;
    cursor: pointer;
}
.calculator-loan-fake-select .display:after {
    content: url(../img/select_arrow.png);
    position: absolute;
    right: 22px;
    top: 0;
}

.calculator-loan-fake-select .display.open:after {
    transform: rotate(180deg);
}

.calculator-loan-fake-select .display div:last-child{
    color: #666666;
}

.calculator-loan-fake-select .fake-options {
    position: absolute;
    top: calc(100% + 1px);
    width: 100%;
    background-color: #F4F4F4;
    box-shadow: 0 1px 3px 0 rgba(18,18,18,0.20);
    z-index: 900;
    cursor:pointer
}

.calculator-loan-fake-select .fake-options .option {
    border-bottom: 1px solid #D3D3D3;
    padding: 0 48px 0 16px;
    justify-content: space-between;
    display: flex;
    width: 100%;
}
.calculator-loan-fake-select .fake-options .option:hover {
    background-color: #E9E9E9;
}

.calculator-loan-fake-select .fake-options .option div:last-child{
    color: #666666;
}

@media (max-width: 575px) {
    .calculator-loan-fake-select {
        font-size: 15px;
    }
    .calculator-loan-fake-select .display,
    .calculator-loan-fake-select .fake-options .option {
        padding-right: 44px;
    }
}

/* calculadora en modal */
.logos {
    padding-bottom: 0;
    margin-bottom: 24px !important;
}
.logos img {
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
}

.woocommerce-checkout-review-order .logos {
    margin-top: 10px;
}

/* modall */
.modall-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    background-color: #000;
    opacity: 0.5;
    width: 100vw;
    height: 100vh;
    display: none;
}
.modall-backdrop.on {
    display: block;
}
.modall {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    outline: 0;
    display: none;
    opacity: 1;
    transition: all 0.3s linear;
    pointer-events: none;
    font-family: 'Benton Sans', sans-serif;
}
.modall.on {
    display: block;
}
.modall .gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(100% - 16px);
    height: 56px;
    padding-bottom: 0;
    background: -moz-linear-gradient(top,  rgba(255,255,255,0) 0%, rgba(255,255,255,1) 50%, rgba(255,255,255,1) 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(top,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 50%,rgba(255,255,255,1) 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 50%,rgba(255,255,255,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#ffffff',GradientType=0 ); /* IE6-9 */
    margin-bottom: 0;
    z-index: 1;
}
.modall .gradient.up {
    top: 0;
    transform: rotate(180deg);
}
.modall .close {
    top: 16px;
    right: 28px;
    position: absolute;
    font-size: 35px;
    text-decoration: none;
    opacity: 1;
    z-index: 10;
    padding: 0;
    line-height: 7px;
    background-color: transparent;
}
.modall-header {
    margin: 0 !important;
}
.modall-dialog {
    /*position: relative;*/
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    pointer-events: all;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

}
.modall-dialog h4 {
    font-size: 20px;
    color: #121212;
    line-height: 24px;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 24px;
}
.modall-dialog .subtitulo {
    margin-bottom: 16px;
}
.modall-dialog h3 {
    font-size: 14px;
    color: #717171;
    letter-spacing: 0;
    line-height: 24px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 8px;
}
.modall-dialog p a {
    color: #1973b8;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}
.modall-dialog p {
    font-size: 15px;
    color: #414141;
    letter-spacing: 0;
    line-height: 24px;
    margin-bottom: 8px;
    margin-top: 0;
}
.modall-dialog p.answer {
    margin-bottom: 24px;
    font-family: 'Benton Sans', sans-serif !important;
}
.modall-dialog p.answer2 {
    margin-bottom: 16px;
}
.modall-content {
    padding: 56px 16px;
    overflow: auto;
    background-color: #fff;
    box-sizing: border-box;
    max-height: 100vh;
}
@media (min-width: 576px) {
    .modall-dialog {
        max-width: 568px;
        height: auto;
        max-height: 624px;
        margin: 30px auto 0;
    }

    .modall-dialog .modall-content {
        max-height: 624px;
        padding: 56px;
    }
}
@media (min-width: 992px) {
    .modall-dialog {
        max-width: 568px;
        height: auto;
        max-height: 624px;
    }

    .modall-dialog .modall-content {
        max-height: 624px;
        padding: 56px;
    }
}

.calculator_loan_resume_faqs h4 {
    font-size: 20px;
    color: #121212;
    line-height: 24px;
    font-family: 'Benton Sans', sans-serif;
    margin-bottom: 16px;
    margin-top: 0;
    font-weight: 500;
    padding-right: 40px;
}

.calculator_loan_resume_faqs h6 {
    font-family: 'Benton Sans', sans-serif;
    margin-top: 0;
    text-transform: none;
    font-size: 14px;
    color: #666666;
    letter-spacing: 0;
    line-height: 24px;
    margin-bottom: 16px;
    font-weight: 500;
}
.calculator_loan_resume_faqs h6.h6modal {
    margin-bottom: 8px;
}

.calculator_loan_resume_faqs p {
    font-family: 'Benton Sans', sans-serif;
    font-size: 15px;
    color: #414141;
    letter-spacing: 0;
    line-height: 24px;
}


.calculator_loan_resume_faqs img {
    display: block;
    margin-bottom: 8px;
}

.gdpr-title {
    font-size: 15px;
    color: #121212;
    letter-spacing: 0;
    line-height: 24px;
    font-family: 'Benton Sans', sans-serif !important;
    margin-top: 32px;
}
.gdpr-block {
    font-size: 15px;
    color: #666666;
    letter-spacing: 0;
    line-height: 24px;
}
.gdpr-text {
    font-family: 'Benton Sans', sans-serif;
    font-size: 15px;
    color:#666666;
    letter-spacing: 0;
    line-height: 24px;
}
.gdpr-text a {
    color: #1973b8;
    text-decoration: none !important;
    font-weight: 500;
}

.calc-wrapper {
    max-width: 360px;
}

.calculator_product_info {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #333333;
    letter-spacing: 0;
    line-height: 24px;
    border: 1px solid #CCC;
    padding: 8px 16px;
    margin-bottom: 20px;
}

.calculator_product_info #calculator_loan_ajax_text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.calculator_product_info .main-fee {
    font-size: 10px;
    line-height: 16px;
}

.calculator_product_info .group-fee {
    font-size: 12px;
    line-height: 16px;
    padding: 6px 0;
}

.calculator_product_info .group-fee div {
    padding: 1.5px 0;
}

.calculator_product_info .group-fee div:not(first-child) {
    font-weight: normal;
}

.calculator_product_info .legal-text {
    font-family: "Benton Sans BBVA";
    color: #666666;
    font-size: 10px;
    font-weight: 300;
    line-height: 16px;
    padding-bottom: 7px;
}

.calculator_product_info a {
    color: #1973B8;
    font-size: 14px;
    font-weight: 500;
    line-height: 24px;
    text-decoration: none;
    cursor:pointer;
    padding-left: 3px;

}

.calculator_product_info .main-quota, .calculator_product_info .more-options {
    display: flex;
    justify-content: space-between;
}

.calculator_product_info .main-quota .simple, .calculator_product_info .main-quota .simple .options {
    display: flex;
    flex-grow: 1;
    justify-content: space-between;
}

.calculator_product_info .medium, .calculator_detail  .medium{
    font-weight: 500;
}

.calculator_product_info .simple-logo {
    width: 40px;
}

.calculator_product_info .simple-logo img {
    display: inline;
}

.calculator_product_info .desktop-logo {
    display: block;
    width: 40px;
}

.calculator_product_info .mobile-logo {
    display: none;
    width: 40px;
}

.calculator_product_info .desktop-logo img {
    display: inline;
}

.calculator_product_info .mobile-logo img {
    display: inline;
}

@media (min-width: 576px) {
    .calculator_product_info .main-quota .simple .options {
        margin-left: 8px;
    }
}

@media (max-width: 576px) {
    .calculator_product_info .main-quota .simple {
        flex-direction: column;
        width: 100%;
    }

    .calculator_product_info .main-quota .simple .options {
        justify-content: space-between;
    }
}

@media (max-width: 992px) {
    .calculator_product_info .desktop-logo {
        display: none;
    }
    .calculator_product_info .mobile-logo {
        display: block;
    }
 }

.modall-list {
    font-family: 'Benton Sans', sans-serif !important;
    font-size: 15px;
    color: #414141;
    letter-spacing: 0;
    line-height: 24px;
    margin: 16px 0;
    padding: 0;
    list-style-type: none;
    font-weight: normal;
}
.modall-list li {
    padding: 0;
    margin: 0 0 16px 34px;
    position: relative;
}

.modall-list li:before {
    content: url(../img/bullet.png);
    position: absolute;
    top: 0;
    left: -28px;

}
.bbva-gdpr-checkbox {
    position: relative;
    padding-left: 32px;
    display: block;
}
.custom-checkbox input {
    display: none !important;
}
.custom-checkbox span {
    display: block;
    width: 24px;
    height: 24px;
    border: 1px solid #666666;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #f4f4f4;
}
.custom-checkbox input[type="checkbox"]:checked + span {
    background: #f4f4f4 url(../img/check.png) center center no-repeat;
}

.payment_method_bbva_consumer_finance_loans label::before {
    margin-right: 17px !important;
}



/***** Banner before payment methods ******/

.bbva-order-detail-pay {
    display: flex;
    width: 100%;
    flex-flow: row;
    align-items: baseline;
    border: 1px solid #ffc8d7;
    padding: 20px;
    background: #fff2f5;
    margin-bottom: 20px;
}

.bbva-order-detail-pay-logo {

}

.bbva-order-detail-pay-detail {
    display: flex;
    width: 100%;
    flex-flow: row;
    justify-content: space-between;
    margin-left: 20px;
}

.bbva-order-detail-pay-detail-pay {
    width: 150px;
    text-align: center;
}

.woocommerce-checkout-review-order .bbva-order-detail-pay-detail {
    flex-flow: column;
}

.woocommerce-checkout-review-order .bbva-order-detail-pay-detail-title {
    font-weight: bold;
}

@media (max-width: 425px) {
    .bbva-order-detail-pay {
        display: block;
    }

    .bbva-order-detail-pay-logo {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .bbva-order-detail-pay-detail {
        margin: 0px;
        margin-top: 20px;
        display: block;
        text-align: justify;
    }

    .bbva-order-detail-pay-detail-pay {
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
}

/***** End Banner before payment methods ******/
