.merchant_item {
    display: inline-block;
    text-align: start;
    background: #f0f0f0;
    margin-left: 5px;
}
.merchant_item.product{
    margin-left: 0;
}
.merchant_item.miniature {
    margin-right: 0rem;
}

.merchant_count.line,
.merchant_count.miniature {
    color: #ad1f00;
    position: relative;
    font-weight: 600;
}

.merchant_count.line {
    top: 10px;
    left: -6px;
}

.merchant_count.miniature {
    top: -10px;
    left: 10px;
}


.ecm_credit8 .card-body {
    text-align: left;
    background: #f3f3f3;
    margin-bottom: 1rem;
}

.credit_button .img {
    vertical-align: bottom;
    width: 1.5rem;
}

.name,
.price_value {
    font-size: 1rem;
    font-weight: 500;
    vertical-align: -moz-middle-with-baseline;
    vertical-align: -webkit-baseline-middle;
}

.price_currency {
    vertical-align: -moz-middle-with-baseline;
    vertical-align: -webkit-baseline-middle;
}

.credit_text {
    font-size: 0.8rem;
    margin-bottom: 0;
    margin-left: 1.5rem;
}

.credit_term {
    font-size: 0.8rem;
    font-weight: 400;
    color: #7a7a7a;
    line-height: 1rem;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

.merchantType {
    width: 0;
    height: 0;
    position: absolute;
    opacity: 0;
}

label.button {
    text-align: initial;
    border: 1rem solid transparent;
    box-sizing: border-box;
    display: block !important;
    cursor: pointer;
}

.credit_button .showed {
    display: none;
}

.credit_button.checked .showed {
    display: initial;
}

.credit_button .media {
    display: initial;
}

.credit_button.checked {

    border: 1px solid #e3e3e3;
    background-color: #f3f3f3;
    box-shadow: none;
    transition: all 0.5s ease;
    /* max-width: 640px;*/
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.credit_button {
    border: 1px solid #7c7c7c;
    border-style: dashed;
    box-shadow: 0 5px 7px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    margin-bottom: 1rem;
    cursor: pointer;
}

.credit_button.checked.waiting {
    background-color: #eee;
}

.credit_button:hover {
    box-shadow: 0 5px 7px rgba(0, 0, 0, 0.1);
}

.ecm_credit8 .col-xs-4 {
    position: relative;
    min-height: 1px;
    padding-left: 0;
    float: left;
    width: 33.33333%;
    padding-right: 0.5rem;
}

.ecm_credit8 .credit_input {
    width: 100%;
    width: -moz-available;
    width: -webkit-fill-available;
    width: fill-available;
    max-width: 130px;
    border-radius: 0;
    border-width: thin;
    box-sizing: border-box;
    padding: 0.25rem 0.25rem 0.25rem 0.5rem;
    background: #f6f6f6 url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAQAAAD9CzEMAAAAPklEQVR4Ae3TwREAEBQD0V/6do4SXPZg7EsBhsQ8IEmSMOsiuEfg3gL3oXC7wK0bd1G4o8X9F4yIkyQfSrIByQBjp7QuND8AAAAASUVORK5CYII=) no-repeat right .25rem center / 1rem 1rem;
    -moz-appearance: none;
    -webkit-appearance: none;
}

.ecm_credit8 .row {
    margin-right: 0;
    margin-left: 0;
}
/*
.btn.checkout {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
}
*/
div#ecm_credit8_product-modal .modal-footer {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: end;
    justify-content: center;
    padding: 1rem;
    border-top: 1px solid #e9ecef;
    border-bottom-right-radius: .3rem;
    border-bottom-left-radius: .3rem;
}

.btn.checkout {
    /* width: 100%; */
    margin-top: 20px;
    padding: 1rem 3rem;
}

.btn.credit {
    /* height: 2.75rem; */
    padding: 1rem 1.5rem;
    /* margin-left: 1.25rem; */
    line-height: inherit;
    display: inline-block;
    flex-shrink: 5;
    margin-bottom: 0rem;
    height: 40px;
    margin-left: 5px;
    padding: 9px 19px 9px 19px;
    width: 196px;
}

.product-quantity {
    flex-wrap: wrap;
}

.credit_tip {
    margin-bottom: 1rem;
}

#ecm_credit8_product-modal .modal-footer .row {
    width: 100%;
}

#ecm_credit8_product-modal .modal-dialog {
    max-width: 900px;
}

.merchant_item_span img.merchant_img.product {
    width: 30px;
    padding: 3px 0px 3px 0px;
}

.merchant_item.product .merchant_item_span {
    display: flex;
    padding: 5px 10px 5px 10px;
    align-items: center;
    height: 40px;
    width: 67.5px;
    justify-content: center;
}
.merchant_wrapper{
    margin-bottom: 0px;
   
}
.product-quantity .merchant_wrapper{
    margin-top: 15px;
}
label.product {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    padding-left: 30px;
}
.merchant_wrapper_product {
    display: flex;
    justify-content: flex-start;
    flex-direction: row;
}

/*.merchant_item_span span.merchant_count.product {
    font-size: 10px;
    line-height: 15px;
    color: #000;
    white-space: nowrap;
    padding-left: 5px;
}*/
.merchant_item_span span.merchant_count.product {
    font-size: 12px;
    line-height: 15px;
    color: #000;
    white-space: nowrap;
    padding-left: 0px;
    position: absolute;
    font-weight: 600;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 25px;
    right: 1px;
    top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dfdfdf;
    flex-direction: row;
    flex-wrap: wrap;
}

img.merchant_img.miniature,
img.merchant_img.line {
    width: 36px;
    background: #F0EFEF;
    /*border: 1px solid #DCDCDC;*/
    box-sizing: border-box;
    /*border-radius: 4px;*/
    padding: 3px;
}

.merchant_item_span {
    display: block;
    padding: 0px;
}

.merchant_item.line {
    margin-left: 0;
    margin-top: 5px;
}

.merchant_item.miniature {
    background: #fff;
}

.merchant_count.miniature,
.merchant_count.line {
    top: -35px;
    left: 25px;
    background: #fff;
    color: #000;
    width: 15px;
    height: 15px;
    position: absolute;
}

.merchant_item_span {
    position: relative;
}

.merchant_count.miniature,
.merchant_count.line {
    top: 1px;
    left: 20px;
    background: #fff;
    color: #000;
    width: 15px;
    height: 15px;
    position: absolute;
    border-radius: 25px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

label.ecm_credit8_label {
    display: block;
    text-align: start;
    color: #000;
    font-size: 13px;
}

input.credit_input {
    border-radius: 4px;
    padding: .5rem 1rem;
}

.ecm_credit8_img img {
    width: 100%;
    height: auto;
}

.required.flex {
    display: flex;
    align-items: center;
}

.p_l_n {
    padding-left: 0;
}

.p_r_n {
    padding-right: 0;
}

h3.h3.product-title {
    color: #191919;
    font-size: 20px;
    margin-top: 0;
    text-transform: none;
    font-weight: 600;
}
span.modal_price,span.text-muted,span.text-muted.modal_quantity_wanted{
    font-size: 18px;
    font-weight: 700;
    color: #000;
}
.attribute-item_ecm_credit8 {
    font-size: 13px;
    line-height: 20px;
    color: #000000;
    font-weight: 500;
}

.attributes_ecm_credit8 {
    padding-bottom: 10px;
}

.text-center {
    text-align: center;
}

.card-body {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  padding: 1.25rem;
}

.end {
	text-align: end;
}
.center{
    text-align: center;
}
.credit_over {
	color: red;
    padding-right: 0.5rem;
}
div#ecm_checkout label.button {
    text-align: initial;
    border: 0.75rem solid transparent;
    box-sizing: border-box;
    display: block !important;
    cursor: pointer;
}
div#ecm_checkout .name,div#ecm_checkout .price_value {
    font-size: 0.8rem;
    font-weight: 600;
    vertical-align: -moz-middle-with-baseline;
    vertical-align: -webkit-baseline-middle;
}
div#ecm_checkout .credit_button.checked .showed .col-xs-12.col-md-4.center {
    padding: 0;
}
div#ecm_checkout .credit_text {
    font-size: 0.8rem;
    margin-bottom: 0;
    margin-left: 1.3rem;
}
div#ecm_checkout .credit_tip {
    margin-bottom: 1rem;
    padding: 0;
}
div#ecm_checkout .credit_tip button.btn.btn-link.btn-sm {
    padding-left: 0;
    margin-top: 5px;
}
@media (max-width: 767px) {
    div#ecm_checkout label.button {
        text-align: initial;
        border: 0.5rem solid transparent;
        box-sizing: border-box;
        display: block !important;
        cursor: pointer;
    }
    .btn.credit {
        width: 196px;
        margin: 0;
    }
    .credit_term{
        margin-bottom: 0;
    }
    .ecm_credit8 .credit_input{
        margin-top: 0.5rem;
    }
    .required.flex {
        display: block;
    }
    .required {
        padding: 0;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
    .p_n_m{
        padding: 0;
    }
    div#ecm_checkout .name, div#ecm_checkout .price_value {
        font-size: 0.9rem;
        font-weight: 500;
        vertical-align: -moz-middle-with-baseline;
        vertical-align: -webkit-baseline-middle;
    }
    div#ecm_checkout .name{
        display: block;
        margin-left: 30px;
    }
    div#ecm_checkout .credit_button .media {
        display: initial;
        float: left;
    }
    div#ecm_checkout .credit_tip {
        margin-bottom: 1rem;
        padding: 0;
    }
    div#ecm_checkout .credit_tip button.btn.btn-link.btn-sm {
        padding-left: 0;
        margin-top: 5px;
    }
    .name, .price_value {
        font-size: 0.9rem;
        font-weight: 500;
        vertical-align: -moz-middle-with-baseline;
        vertical-align: -webkit-baseline-middle;
    }
    div#ecm_credit8_product-modal .modal-body {
        flex: none;
    }

    .merchant_item.miniature,
    .merchant_item.line {
        width: auto;
    }

    .merchant_wrapper_span {
        /* width: 100%; */
        display: flex;
        /* justify-content: space-between; */
    }
    .merchant_item.product .merchant_item_span {
        display: flex;
        padding: 5px 10px 5px 10px;
        align-items: center;
        height: 40px;
        width: 66.5px;
        justify-content: center;
    }
    .merchant_item {
        display: inline-block;
        text-align: start;
        background: #f0f0f0;
        margin-left: 0px;
        /* width: 45%; */
        
    }
    .merchant_item.product{
        margin-right: 5px;
    }
    .merchant_wrapper_product {
        justify-content: flex-start;
        flex-direction: row;
        display: inline-flex    ;
    }
    #confirmation_mp{
        width: 100%;
        height: auto;  
      }
}
/*
.merchant_wrapper.line{
    display: none;
}

.merchant_wrapper.miniature{
    display: none;
}
*/
