/*
@charset "utf-8";
*
*   Marketplace Shopping cart
*
*/


/*
    Minor adjustment for EC Page
*/

input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance:textfield;
}

.error-msg, .error-msg-tnc{
    font-weight: normal !important;
    margin: 0px 0px 0px 5px;
    line-height: 30px;

}

.ec-topright.has-marketplace {
    width: 240px;
}
.ec-topright.has-marketplace .whats-ec {
    display: inline;
    margin-right: 6px;
}
.ec-topright.has-marketplace .row {
    display: block;
    margin: 0;
    position: relative;
}
.ec-topright.has-marketplace #tooltip-explanation {
    top: 20px;
    right: 150px;
}


/*
    Button
*/
.marketplace-buy-btn {
    display: block;
    position: relative;
    overflow: visible;
    float: left;
    margin-right: 12px;
    margin-bottom: 10px;
}
.marketplace-buy-btn .buy-btn-detail,
.marketplace-buy-btn .btn {
    width: 126px;
    box-shadow: none;
    border-radius: 3px;
}
.marketplace-buy-btn .btn,
.marketplace-buy-btn .buy-btn-detail.ec-deposit .btn {
    font-weight: normal;
    box-shadow: none;
    /* box-shadow: 0 2px 4px 0 rgba(0,0,0,0.8); */
    color: #fff;
    background-color: #00a499;
    background-image: none !important;
    padding: 6px 4px 6px 4px;
    transition: all 0.3s ease-out;
}
.marketplace-buy-btn .btn.sold-out {
    color: #8e8e93;
    background: #EAEAEA !important;
    border-color: #EAEAEA;
    box-shadow: 0 3px 0 0 rgba(123, 123, 123, 0.4);
    padding: 6px 22px;
}
.marketplace-buy-btn:not(.add-cart) .btn:not(.sold-out):hover {
    background-color: #008a82 !important;
}
.marketplace-buy-btn.add-cart .btn,
.marketplace-buy-btn.add-cart .buy-btn-detail {
    width: 136px;
}

.marketplace-buy-btn.add-cart .btn {
    padding: 0;
    color: #00a499;
    background-color: #fff !important;
    line-height: 39px;
}

.marketplace-buy-btn.add-cart .btn{
  color:#00a499;
}


.marketplace-buy-btn.add-cart .btn > div {
    display: inline-block;
    vertical-align: middle;
}
.marketplace-buy-btn.add-cart .icon {
    width: 40px;
    height: 38px;
    background: url("../images/marketplace/cart/icon-cart-btn.png") no-repeat #00a499 center center;
    background-size: 24px;
}
.marketplace-buy-btn.add-cart .btn-title {
    color: #00a499;
    transition: all 0.3s ease-out;
}
.marketplace-buy-btn.add-cart .btn:hover {
    /* background: #00a499 !important; */
    background-color: #008a82 !important;
    color: #fff;
}
.marketplace-buy-btn.add-cart .btn:hover .icon {
    background-color: #008a82;
}
.marketplace-buy-btn.add-cart .btn:hover .btn-title {
    color: #fff;
}





/*
    Tooltip for Add To Cart button
*/
.marketplace-tooltip {
    width: 124px;
    height: 34px;
    position: absolute;
    bottom: 51px;
    right: 0;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 1px 5px 0 rgba(0,0,0,0.8);

    -webkit-transition: all 0.3s ease-out;
    -moz-transition: all 0.3s ease-out;
    -o-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;
    padding: 5px 6px 6px 6px;
}
.marketplace-tooltip:before,
.marketplace-tooltip-title {
    display: inline-block;
    vertical-align: middle;
}
.marketplace-buy-btn.add-cart .marketplace-tooltip:before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
}
.marketplace-buy-btn.add-cart-success .marketplace-tooltip:before {
    background: url("../images/marketplace/cart/icon-add-cart-success.png") no-repeat center;
    background-size: 20px;
}
.marketplace-buy-btn.add-cart-fail .marketplace-tooltip:before {
    width: 20px;
    height: 20px;
    background: url("../images/marketplace/cart/icon-add-cart-fail.png") no-repeat center;
    background-size: 10px;
    background-color: #e02152;
    border-radius: 50%;
    margin-top: -2px;
}
.marketplace-buy-btn.add-cart-fail .marketplace-tooltip-title {
    color: #e02152;
}
.marketplace-tooltip:after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    box-sizing: border-box;
    border: 6px solid black;
    border-color: transparent transparent #fff #fff;
    transform-origin: 0 0;

    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
    box-shadow: -3px 2px 3px 0 rgba(0, 0, 0, 0.3);
    margin: auto;
}
.marketplace-tooltip-title {
    font-size: 12px;
    color: #00a499;
}
.marketplace-tooltip.success,
.marketplace-tooltip.fail {
    opacity: 0;
    pointer-events: none;
}
.marketplace-buy-btn.add-cart-success.active .marketplace-tooltip.success,
.marketplace-buy-btn.add-cart-fail.active .marketplace-tooltip.fail {
    opacity: 1;
    pointer-events: auto;
}

/*
    Shopping Cart
*/
.marketplace-cart-btn {
    width: 40px;
    height: 40px;
    position: relative;
    cursor: pointer;
    background: url("../images/marketplace/cart/icon-open-cart.png") no-repeat center;
    background-size: 34px;
    float: right;
    margin-bottom: 4px;
}
.marketplace-cart-btn .marketplace-cart-count {
    width: 18px;
    height: 18px;
    font-size: 13px;
    color: #fff;
    background: #E02152;
    border-radius: 50px;
    text-align: center;
    line-height: 19px;
    letter-spacing: 0.5px;
    margin-left: 24px;
    margin-top: 0px;
}
.marketplace-cart-btn .marketplace-cart-count.digit-2 {
    line-height: 20px;
    letter-spacing: 0.5px;
    padding-left:1px;
}
.marketplace-cart-btn .marketplace-cart-count.digit-3 {
    width: 28px;
    height: 28px;
    line-height: 29px;
    letter-spacing: 0.5px;
    margin-top: -7px;
}

.global-delivery-fee-rule>div{
  margin-bottom:5px;
  float: left;
}

#marketplace-cart-app .cart-item{
  background: none;
  border-bottom: 1px dashed #e5e5e5;
}

#marketplace-cart-app .cart-item:last-child{
  border-bottom:0px;
}

#marketplace-cart-app .cart-item:before{
  top: 50%;
}



.ec-topright.has-marketplace{
  /* text-align: right; */
  margin-top:3px;
}

.ec-topright.has-marketplace .row {
  position: unset;
  /* float:left; */
  text-align: left;
  display: inline-block;
  margin-left: 20px;
  vertical-align: middle;
}


.marketplace-cart::after{
  height: 14px;
  top: -14px !important;
  right: 127px !important;
}

.header-step.step-done {
    opacity: 0.2;
}

.header-step.step-done .text{
    color:#777;
}

.header-step.step-done .digit{
    background-color: #777;
}


#marketplace-cart-app .cart-item .item-content .item-left{
    padding-left: 0px;
    padding-right: 0px;
}

#marketplace-cart-app .cart-item .item-left img{
    max-height: 60px;
    margin: 0 auto;
}

.powered_by_price {
    margin-top: 2px;
    margin-bottom: 12px;
    color: #666;
}

/* ec customer remarks */
.customer-remarks-wrap {
    margin-top: 20px;
}
.cart-customer-remarks {

}
.cart-customer-remarks .cart-customer-remarks-label {
    display: inline-block;
    font-size: 15px;
    border: 1px solid transparent;
    margin: 0;
    vertical-align: top;
    height: 37px;
    line-height: 30px;
    font-weight: bold;
}
.cart-customer-remarks .textarea-container {
    margin-bottom: 5px;
}
.cart-customer-remarks textarea {
    resize: none;
    width: 100%;
    border: 1px solid #eee;
    margin: 0;
}
.cart-customer-remarks textarea.invalid {
    border-color: red;
}
.cart-customer-remarks .remarks-container {
    margin: 0;
    display: inline-block;
    font-size: 13px;
    color: #b3b3b3;
}
textarea#customer_remark {
    min-height: 50px;
    font-size: 14px;
    border-color: #e8e8e8;
}
textarea#customer_remark::-webkit-input-placeholder {
  color: #999;
}
textarea#customer_remark:-moz-placeholder { /* Firefox 18- */
  color: #999;  
}
textarea#customer_remark::-moz-placeholder {  /* Firefox 19+ */
  color: #999;  
}
textarea#customer_remark:-ms-input-placeholder {
  color: #999;  
}
textarea#customer_remark::placeholder {
  color: #999;  
}

/* merchant remarks */
.merchant-remarks-container {
    margin: 0 20px 20px 20px;
    max-width: 800px;
}
.merchant-remarks-container .merchant-remarks {
    margin: 0 0 25px 0;
}
.payment-remarks-container {
    display: none;
    color: #777;
    margin: 5px 0 5px 0;
    padding-left: 28px;
}
.payment-remarks-container .terms {
    color: #e02152;
    margin-bottom: 5px;
}
.payment-remarks-container .merchant-remarks {
    margin-bottom: 10px;
}
.payment-remarks-container .tnc.ec-input-tnc {
    padding: 0;
}
.payment-remarks-container .tnc.ec-input-tnc .ec-tnc-content {
    width: auto;
}
.payment-remarks-container .tnc input[type="checkbox"]{
    display: none;
    vertical-align: top;
    margin-right: 3px;
}
#atm-step2, #cod-step2 {
    
}