.cart-section {
    background-color: #ffffff;
}

.cart-item-count,.reward-item-count,.order-pending-count{
    position: absolute;
    top: -1.4em;
    width: 17.5px;
    height: 17.5px;
    background: #811d1f;
    color: #fff;
    margin: 0;
    text-align: center;
    border-radius: 50%;
    font-size: 11px;
    line-height: 1.7;
}

.cart-item-count,.reward-item-count{
    top: -1.4em;
    margin-left: -10px;
}

.order-pending-count{
    top: 0.5rem;
    margin-left: -0.2rem;
}

@media only screen and (max-width: 767px) {
  .cart-item-count,.reward-item-count{
      top: -1.2em;
      width: 17px;
      height: 17px;
      line-height: 1.64;
  }
    .reward-item-count-mobile{
        top: 0.5rem;
        margin-left: -0.2rem;
    }
    .order-pending-count{
        top: 0.2rem;
        margin-left: 0.2rem;
    }
}


.main-content {
    margin-top: 3.4rem;
}

@media only screen and (max-width: 767px) {
  .main-content {
      margin-top: 2.7em;
  }
}

.cart-section-stepper .stepper {
    clear: left;
    float: left;
}

.cart-section-stepper .step {
    float: left;
    font-size: 1.2rem;
    margin: 0 0.5rem;
    height: 100%;
}

.cart-section-stepper .divider {
    border-bottom: 0.1rem solid #cfcfcf;
    float: left;
    height: 1.2rem;
    line-height: 1.2rem;
    margin: 0 0.5rem;
    width: 6rem;
}

.cart-section-stepper .circle {
    background: #cfcfcf;
    border-radius: 50%;
    color: #fff;
    float: left;
    font-size: 1.5rem;
    height: 2.8rem;
    line-height: 2.8rem;
    text-align: center;
    width: 2.8rem;
}

.cart-section-stepper .label {
    font-size: 1.2rem;
    color: #cfcfcf;
    float: left;
    line-height: 2rem;
    margin-left: 8px;
}

.cart-section-stepper .active .circle {
    background: #ef7521;
}

.cart-section-stepper .active .label {
    color: black;
    font-weight: 500;
}

.cart-section-stepper .complete .circle {
    background: #ef7521;
}

.cart-section-stepper .complete .icon {
    font-size: 1.2rem;
    position: relative;
    top: -3px;
}

.cart-section-stepper .complete .label {
    color: black;
    font-weight: 500;
}

.cart-section .cart-item-container {
    padding: 2.4rem;
}

.cart-section .cart-item-container .product-price {
    display: inline-block;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0;
    color: #000;
}

.cart-section .cart-item-container .currency {
    font-size: 1.15rem;
    font-weight: 600;
    margin-right: 3px;
}

.cart-section .summary{
    margin-bottom: 3.5em;
}

.cart-section .summary h4 {
    /* font-family: "Angsana"; */
    font-size: 1.8rem;
    font-weight: 600;
    color: inherit;
    text-align: right;
    margin-top: 1em;
    margin-bottom: 0;
}

.summary-label {
    /* font-family: "Angsana"; */
    font-size: 1.8rem;
    font-weight: 600;
}

.cart-section .action-button {
    border-radius: 1.5rem;
    font-size: 1.3rem;;
    min-width: 25%;
}

@media only screen and (max-width: 767px) {
  .cart-section .summary{
      margin-bottom: 2.7em;
  }
}

.container-padding {
    padding: 3rem;
}

.cart-product-image {
    height: 10rem;
}

.address-label {

}

.make-align-right{
  margin-right: 2em;
}

/* SHIPPING PANEL */
.shipping-panel .address-box{
    padding: 1.5em 2em;
    border: 1px solid #811d1f;
    margin-bottom: 1em;
}

.address-box .btn-theme-4{
    height: auto;
    padding: 0;
}

.shipping-panel h4{
    font-size: 1.1rem;
    font-weight: 600;

}

.shipping-panel p{
    margin-bottom: 0;
}

.cart-address{
    margin-top: 5px;
}

.cart-select{
    padding-right: 30px;
    color: #b1b1b1 !important;
    border: 1px solid #811d1f;
    appearance:none;
    -webkit-appearance:none;
    -moz-appearance:none;
    background-size:16px 17px;
    background: url('data:image/svg+xml;utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="24" fill="%23dab7dd" height="24"><path  d="M7 10l5 5 5-5z"/><path  d="M0 0h24v24H0z" fill="none"/></svg>') 100% 50% no-repeat #fff;
}


.shipping-method-panel{
    margin-top: 2em;
}

.shipping-method-box{
    padding: 1.5em 2em;
    border: 1px solid #C5C5C5;
}
.payment-method-box,.shipping-method-box{
    min-height: 100px;
    padding-top: 50%;
    border: 1px solid #C5C5C5;
    position: relative;
}
.img-payment-method{
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 100%;
    object-fit: contain
}
.reward-method-box{
    padding: 1.5em 2em;
    border: 1px solid #C5C5C5;
}
.shipping-method-box h4:last-child,.reward-method-box h4:last-child{
    margin-top: 5px;
    margin-bottom: 0;
}

.shipping-method-box.active,.reward-method-box.active{
    border-top: 3px solid #000;
}

.shipping-method-box.bordered-branding,.payment-method-box.bordered-branding{
    border: 2.5px solid #811d1f !important;
    background-color: rgba( 218, 183, 221, 0.2) !important;
}

.shipping-method-box.bordered-branding{
    filter: drop-shadow(0px 0px 6px #811d1f) contrast(0.9);
}

.shipping-method-box .img-payment-method{
    object-fit: cover !important;
}

.reward-method-box.bordered-branding{
    border: 2.5px solid #ffa200 !important;
    background-color: #f6be61b0 !important;
}

.a-add-address{
    padding: 0;
}

@media only screen and (max-width: 767px) {
  .shipping-method-box,.reward-method-box{
    min-height: initial;
    margin-bottom: 1em;
    padding: 1.5em;
  }
}
/* END SHIPPING PANEL */

/* ORDER HISTORY */
.section-order-history .thin-rounded-grey-container{
    border: 1px solid #000;
    border-radius: 0;
    margin-bottom: 1.5em;
    padding: 1.5em 2em;
}

.section-order-history .thin-rounded-grey-container h4{
    font-size: 1.1rem;
    font-weight: 600;
}

.section-order-history .thin-rounded-grey-container p{
    margin-bottom: 0;
}

.section-order-history .thin-rounded-grey-container i{
    font-size: 1.5rem;
    text-align: right;
}
/* END ORDER HISTORY */

/* REVAMP */
.cart-item-panel {
    border: none;
    margin-bottom: 1em;
    background: transparent;
}

.product-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-panel .col-md-7{
    display: flex;
    align-items: center;
}

.cart-item-panel .cart-item-container {
    padding: 1em 2em;
    border-bottom: 1px solid #000;
}

.cart-item-container .row{
  display: flex;
  align-items: center;
}

.cart-item-panel .cart-item-container:last-of-type {
    border: none!important;
    margin-bottom: 30px
}

.cart-item-panel .img-cart-box {
    position: relative;
    width: 100px;
    height: 100px;
    margin-right: .5em;
    align-self: start;
}

.cart-item-panel .img-cart-box img {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-item-container p{
  margin-bottom: 0;
}

.cart-item-container .qty-input {
    width: 110px;
    height: 25px;
    margin: auto;
}

.payment-section {
    text-align: right;
}

@media only screen and (max-width: 767px) and (min-width: 471px) {
    .cart-item-container .row{
        position: relative;
        display: block;
        align-items: initial;
        min-height: 90px;
    }
    .cart-item-container p{
        padding-bottom: 3rem;
    }
    .cart-item-panel .col-md-7{
        align-items: initial;
    }

    .cart-item-container .col-md-3{
        position: absolute;
        right: 0;
        bottom: 0;
        width: auto;
    }

    .cart-item-container .col-md-2{
        position: absolute;
        top: -2px;
        right: 1.5em;
        height: auto;
    }

    .cart-item-container .qty-input{
        width: 90px;
        height: 25px;
        margin: initial;
    }

    .payment-section button {
        width: 100%;
        white-space: normal;
        height: auto;
    }

    .cart-item-panel .cart-item-container{
        padding: 2em 0;
    }

    .cart-item-panel .img-cart-box{
        width: 90px;
        min-width: 90px;
        height: 90px;
        min-height: 90px;
        margin-right: 0.7rem;
    }

    .cart-address-container{
        margin-top: 5px;
    }

    .shipping-panel .address-box{
        position: relative;
        padding: 1.5em;
    }

    .shipping-panel .col-change-address{
        position: absolute;
        right: 1.5em;
    }

    .make-align-right{
        margin-right: 1.5em;
    }

    .product-title {
        font-size: 1.15rem;
        font-weight: 600;
        margin-bottom: 3px;
    }
}

@media only screen and (min-width: 471px) and (max-width: 767px) {
    .cart-item-panel .desc-box {
        max-width: 60%;
    }
}
@media only screen and (max-width: 470px) {
    .cart-item-panel .desc-box {
        max-width: 70vw;
    }
}

@media only screen and (max-width: 350px) {
    .cart-item-container .col-md-2{
        top: unset;
    }
    .cart-item-panel .desc-box {
        max-width:100%
    }
}
/* END REVAMP */


@media only screen and (max-width: 767px) {
  #modal_address_create .m-portlet__foot .col-xs-4{
      width: 25%;
  }

  #modal_address_create .m-portlet__foot .col-xs-8{
      width: 75%;
  }
}

/* ADDRESS POP UP */
#modal_address_list .address-box{
    margin-bottom: 1em;
    padding: 1em;
}

#modal_address_list .cart-address p{
    margin-bottom: 0;
}

@media only screen and (max-width: 767px) {
    #modal_address_list .col-md-9 {
        width: 80%;
    }

    #modal_address_list .col-md-3 {
        width: 20%;
    }
}

/* END ADDRESS POP UP */


/* .payment-input input {
    display: none;
}

.payment-input label {
    --border-color: #811d1f;

    border: 1px solid var(--border-color);
    border-radius: 6px;
    min-width: 5rem;
    margin: 1rem;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    position: relative;
    align-items: center;
}

.payment-input input:checked + label {
    --border-color: #811d1f;
    border-color: var(--border-color);
    border-width: 2px;
}

.payment-input label:hover {
    --border-color: #811d1f;
    border-color: var(--border-color);
}

.payment-input {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

.payment-input-circle {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgb(189, 187, 207);
    margin-right: 0.5rem;
    position: relative;
}

.payment-input input:checked + label span.payment-input-circle::before {
    content: "";
    display: inline;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #811d1f;
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.payment-input-text {
    display: flex;
    align-items: center;
}

.payment-input-price {
    display: flex;
    flex-direction: column;
    text-align: right;
    font-weight: bold;
}

.payment-input-small {
    font-size: 10px;
    color: rgb(136, 138, 139);
    font-weight: 100;
} */

.payment-input input {
    display: none;
}

.payment-input img{
    width: 40px;
}

.payment-input img:first-child{
    border: 1px solid #888;
    padding: 5px;
    border-radius: 10px;
}

.payment-input img:nth-last-child(1){
    margin-left: auto;
    transform: rotate(180deg);
}

.payment-input label {
    --border-color: var(--red1);
    border: 1px solid var(--border-color);
    /* border-radius: 20px; */
    border-radius: 10px;
    padding: calc(1rem - 5px) 1rem;
    display: flex
;
    justify-content: center;
    position: relative;
    align-items: center;
    gap: 10px;
    width: 100%;
    font-weight: inherit;
    color: var(--red1);
    margin-bottom: 1rem;
}

.payment-input input:checked + label {
    --border-color: var(--red1);
    border-color: var(--border-color);
    border-width: 2px;
}

.payment-input label:hover {
    --border-color: var(--red1);
    border-color: var(--border-color);
}

.payment-input {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

.payment-input input:checked + label span.payment-input-circle::before {
    content: "";
    display: inline;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--red1);
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.payment-input-text {
    display: flex;
    align-items: center;
}

.payment-input-price {
    display: flex;
    flex-direction: column;
    text-align: right;
    font-weight: bold;
}

.payment-input-small {
    font-size: 10px;
    color: rgb(136, 138, 139);
    font-weight: 100;
}

.info {
    position: absolute;
    display: inline-block;
    font-size: 11px;
    background-color: rgb(31, 236, 123);
    border-radius: 20px;
    padding: 1px 9px;
    top: 0;
    transform: translateY(-50%);
    right: 5px;
}

.cart-item-img {
    width: 30%;
    height: 150px;
    object-position: center;
    width: 30%;
    object-fit: cover;
}

.ala-cart-pop-up .learn-more-dialog {
    width: 100vw;
    max-width: min(100vw, 460px);
    background-color: #f2e1d6;
}

.ala-cart-pop-up .learn-more-dialog .modal-content {
    background-color: #f2e1d6;
}

.modal-voucher {
    padding-right: 0 !important;
}

.modal-voucher .modal-dialog {
    position: relative;
    left: 50%;
    transform: translateX(-50%) !important;
    max-width: 1000px;
    margin: 0;
}

.modal-voucher .modal-dialog .modal-body {
    padding: 0;
}

.modal-voucher input {
    border-radius: 10px;
    padding: 1rem;
    background: transparent;
    border: 1px solid var(--red1);
}

.modal-voucher button {
    width: 100px;
    height: 100% !important;
}

.modal-voucher select {
    border-radius: 10px !important;
    padding: 0 1rem !important;
    color: var(--red1) !important;
    border: 1px solid var(--red1) !important;
    /* background: transparent !important; */
    appearance:none;
    -webkit-appearance:none;
    -moz-appearance:none;
    background-size:16px 17px;
    background: url('data:image/svg+xml;utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="24" fill="%23751610" height="24"><path  d="M7 10l5 5 5-5z"/><path  d="M0 0h24v24H0z" fill="none"/></svg>') 100% 50% no-repeat transparent;
}

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;
}
