.cart-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
}


.cart-stepper {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: row-reverse;
    margin: 25px 0 35px;
}

.cart-stepper::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: #2C3E50;
    z-index: 0;
}

.step {
    position: relative;
    flex: 1;
    text-align: center;
    z-index: 2;
}

.step .dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    margin: 0 auto;
    border: 1px solid #2C3E50;
}

.step.active .dot {
    background: #2f4158;
}

.step span {
    display: block;
    margin-top: 12px;
    font-size: 13px;
    color: #8b8b8b;
}

.step.active span {
    color: #2f4158;
    font-weight: 600;
}

.line {
    display: none;
}


.cart-main-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cart-items-header {
    padding: 26px;
    font-size: 15px;
    font-weight: 500;
    background: #F0F0F0;
    color: #2C3E50;
}




.cart-item {
    position: relative;
    background-color: #F5F5F5;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    height: 179px;
    padding: 18px 0;
    border-bottom: 1px solid #ececec;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-img {
    width: 168px;
    height: 168px;
    object-fit: cover;
    flex-shrink: 0;
}


.cart-item-details {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-right: 18px;
    padding-left: 30px;
}

.cart-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-item-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.cart-item-color,
.cart-item-size,
.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

.dot-color {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;

    background: transparent;
    border: 1px solid #cfcfcf;
}


.cart-price {
    width: 130px;
    text-align: left;
    flex-shrink: 0;
}

.old-price {
    font-size: 13px;
    color: #a5a5a5;
    text-decoration: line-through;
    margin-bottom: 8px;
     font-family: 'IRANSharp';
}

.new-price {
     font-family: 'IRANSharp';
    font-size: 16px;
    font-weight: 400;
    color: #2f4158;
}


.cart-item-qty {
    gap: 0;
    border: none;
    border-radius: 0 !important;
    overflow: hidden;
    width: fit-content;
}

.qty-btn {
    width: 23px;
    height: 23px;
    border: 0.25px solid #959EA7;
    background: #F5F5F5;
    cursor: pointer;
    font-size: 16px;
    border-radius: 0 !important;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: background-color .2s ease;
}

.qty-btn:hover {
    background: #e2e2e2;
}

.qty-btn:active {
    background: #d8d8d8;
}

.qty-btn:disabled {
    cursor: not-allowed;
    opacity: .5;
}

.cart-item-qty span {
    width: 29px;
    text-align: center;
    font-size: 14px;
    color: #111;
}


.cart-summary {
    border-top: 1px solid #e5e5e5;
}

.accordion,
.accordion-item {
    border: none !important;
    border-radius: 0 !important;
}

.accordion-button {
    border-radius: 0 !important;
    background: #efefef !important;
    box-shadow: none !important;
    padding: 18px 20px;
    display: flex;
    align-items: center;
}

.accordion-button::after {
    margin-left: 0;
    margin-right: 5px;
}

.total-label {
    margin-left: auto;
    font-weight: 600;
}

.total-price {
    margin-right: 20px;
    font-weight: 700;
    color: #2f4158;
     font-family: 'IRANSharp';
}

.accordion-body {
    padding: 18px 20px;
    background-color: #F5F5F5;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}


.discount-box {
    width: 220px;
    margin: 18px 0 12px auto;
}

.discount-box input {
    height: 40px;
    border-radius: 0;
}

.discount-box button {
    height: 40px;
}

.checkout-btn {
    width: 30%;
    height: 45px;
    margin-top: 42px;
    border: none;
    background: #2f4158;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 3;
    margin-left: 0;
    margin-right: auto;
    display: block;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

    .checkout-btn:hover {
        background: #F7D240;
        color: #2C3E50;
    }


#cartAccordion .accordion-item {
    display: flex;
    flex-direction: column-reverse;
    border: none;
}


#cartAccordion .accordion-collapse {
    overflow: hidden;
}

.cart-items-container {
    flex: 1;
    max-height: 420px;
    overflow-y: auto;
    direction: ltr;
}

.cart-items-container>* {
    direction: rtl;
}

.cart-items-container::-webkit-scrollbar {
    width: 4px;
}

.cart-items-container::-webkit-scrollbar-track {
    background: transparent;
}

.cart-items-container::-webkit-scrollbar-thumb {
    background-color: #d1d1d1;
    border-radius: 10px;
    border: none;
}

.cart-items-container::-webkit-scrollbar-thumb:hover {
    background-color: #b0b0b0;
}

/**CHECKOUT**/

.checkout-sections {
    margin-top: 18px;
}


.co-acc {
    border-top: 1px solid #eee;
    background: #fff;
    margin-bottom: 25px;
}

.co-acc__header {
    width: 100%;
    background: #F5F5F5;
    border: 0;
    padding: 23px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    direction: rtl;
}

.co-acc__title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.co-acc__edit {
    display: inline-flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 10px;
    color: #374151;
    font-size: 13px;
}


.co-acc__edit span {
    font-family: Ray;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: 0%;

}

.co-acc__edit i {
    font-size: 16px;
}

.co-acc__body {
    padding: 0 20px 16px 20px;
    background: #F5F5F5;

}

.co-acc__content {
    padding-top: 10px;
    color: #6b7280;
    font-size: 13px;
}

.payment-block {
    margin-top: 0;
    background: #F5F5F5;
    padding: 15px 40px;
}

.payment-title {
    padding: 12px 20px;
    font-weight: 700;
    color: #111827;
    text-align: right;
}

.payment-divider {
    margin: 0;
    border: 0;
    border-top: 1px solid #e5e7eb;
}

.pay-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px 16px 45px;
    border: 1px solid #E0E0E0;
    background: #F0F0F0;
    margin: 10px 20px;
    direction: rtl;
}



.pay-item input {
    margin: 0 0 0 10px;
}



.pay-item__right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    flex-wrap: wrap;
}

.pay-item__description {
    flex-basis: 100%;
    margin-right: 30px;
    color: #59636e;
    font-size: 13px;
    line-height: 1.7;
}

.pay-item__text {
    font-size: 16px;
    font-weight: 400;
    color: #2C3E50;
    white-space: nowrap;
}

.pay-item__logo {
    width: 105px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}



.pay-item__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.checkout-bottom-bar {
    position: sticky;
    bottom: 0;
    padding: 18px 20px;
    margin-top: 20px;
}

.checkout-pay-btn {
    width: 230px;
    height: 48px;
    border: 0;
    background: #2f4158;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    display: block;
    margin-left: 0;
    margin-right: auto;
    transition: all 0.3s ease-in-out;
}

.checkout-pay-btn:hover{
    background: #F7D240;
    color: #2C3E50;
}
.custom-radio {
    appearance: none;
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    background-color: #fff;
}

.custom-radio:checked {
    background-color: #2C3E50;
}

.address-form {
    direction: rtl;
    display: flex;
    align-items: flex-start;
    gap: 79px;
    margin-top: 35px;
}


.address-field {
    display: flex;
    flex-direction: column;
    gap: 18px;
}


.address-field label {
    font-size: 14px;
    color: #222;
    text-align: right;
}
    .address-field label:focus {
        border-color: #F7D240;
        box-shadow: none;
    }


.address-field input,
.address-field select,
.address-field textarea {
    height: 32px;
    border: 1px solid #dedede;
    background: #fff;
    outline: none;
    padding: 0 10px;
    font-family: inherit;
}


.address-field input,
.address-field select {
    width: 130px;
}


.address-field select {
    appearance: auto;
}


.address-text textarea {
    width: 420px;
    height: 80px;
    resize: none;
}


.save-address {
    margin-top: 12px;
    width: 178px;
    height: 40px;
    background: #2C3E50;
    color: #fff;
    border: none;
    font-size: 16px;
    margin-left: 0;
    display: block;
    font-family: inherit;
    cursor: pointer;
    margin-right: auto;
    transition: all 0.3s ease-in-out;
}

    .save-address:hover {
        background: #F7D240;
        color: #2C3E50;
    }

.co-acc__header i.chevron {
    transition: transform 0.2s ease;
    display: inline-block;
    font-size: 12px;
    border: 1px solid #E0E0E0;
}

.co-acc__header[aria-expanded="true"] i.chevron {
    transform: rotate(180deg);
}

.mini-field {
    border-radius: 0 !important;
    padding: 2px 8px !important;
    font-size: 12px !important;
    height: 35px;
    border: 1px solid #E0E0E0;
}

select.mini-field {
    background-position: left 0.75rem center !important;
    padding-left: 2rem !important;
    padding-right: 0.75rem !important;
}

.mini-label {
    font-size: 11px !important;
    margin-bottom: 2px !important;
    color: #000000;
}

.btn-mini {
    border-radius: 0 !important;
    font-size: 13px !important;
    padding: 8px 45px !important;
    height: 37px;
    background-color: #2C3E50;
    transition: all 0.3s ease-in-out;
}
    .btn-mini:hover {
        background-color: #F7D240;
        border: none;
        color: #2C3E50;
    }

.form-control:focus {
    border-color: #F7D240;
   box-shadow: none;
}

.col-auto {
    flex: 0 0 auto;
    width: auto;
    display: block;
    margin-left: 0;
    margin-right: auto;
}

.submit-info-btn {
    margin-top: 2rem;
}

.submit-info-row {
    margin-top: 2.5rem;
}

/**PAYMENT**/
.payment-success {
    width: 100%;
    background: #F5F5F5;
    min-height: 330px;
}

.payment-header {

    padding: 28px 40px 18px;

    border-bottom: 1px solid #E9E9E9;

}

.payment-header h2 {

    font-size: 20px;
    font-weight: 500;
    text-align: right;

}

.payment-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 250px;
    padding: 0 120px;
}

/* RIGHT */

.payment-info {

    width: 320px;
    text-align: right;

}

.payment-info h3 {

    font-size: 18px;
    font-weight: 400;
    color: #000000;

}

.payment-info p {

    font-size: 18px;
    font-weight: 400;
    margin-bottom: 40px;
    line-height: 1.8;
    color: #000000;

}

.tracking {
    display: block;
    font-family: Yekan Bakh;
    font-weight: 400;
    font-style: Regular;
    font-size: 18px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: right;
    vertical-align: middle;


}

.tracking strong {

    font-weight: 500;

}

/* CENTER */

.payment-logo {

    flex: 1;

    display: flex;
    justify-content: center;
    align-items: center;

}

.payment-logo img {

    width: 150px;
    max-width: 100%;
    display: block;

}

/* LEFT */

.payment-link {

    width: 320px;
    text-align: left;

}

.payment-link a {
    font-weight: 400;
    font-style: Regular;
    font-size: 18px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: -2%;
    text-align: right;
    vertical-align: middle;
    text-decoration: underline;
    text-decoration-style: solid;
    text-decoration-offset: 0%;
    text-decoration-thickness: 0%;
    text-decoration-skip-ink: auto;

}
.payment-link a:hover {
    opacity: .7;
}

@media(max-width:768px) {

    .cart-container {
        /* min-height: 100vh; */
        padding-bottom: 70px;
    }


    .cart-stepper {
        margin: 20px -27px 25px;
    }


    .cart-stepper::before {
        left: 10%;
        right: 10%;
        top: 5px;
    }


    .step .dot {
        width: 12px;
        height: 12px;
    }


    .step span {
        font-size: 11px;
        margin-top: 10px;
    }


    .cart-items-header {
        padding: 12px 16px;
        font-size: 14px;
        height: 40px;
    }


    .cart-items-container {
        max-height: none;
        overflow: visible;
    }

    .cart-item {
        height: 110px;
        padding: 10px 16px;
        background: #f5f5f5;
    }


    .cart-item-img {
        width: 85px;
        height: 85px;
        object-fit: cover;
    }


    .cart-item-details {
        margin-right: 12px;
        padding-left: 0;
        flex-direction: row;
        align-items: end;
    }


    .cart-info {
        gap: 7px;
    }


    .cart-item-title {
        font-size: 13px;
    }


    .cart-item-color,
    .cart-item-size,
    .cart-item-qty {
        font-size: 12px;
        color: #2C3E50;
        font-weight: 400;
    }


    .dot-color {
        width: 10px;
        height: 10px;
    }

    .cart-price {
        width: auto;
        text-align: left;
    }


    .old-price {
        font-size: 10px;
        margin-bottom: 3px;
    }


    .new-price {
        font-size: 13px;
    }


    .cart-item-qty {
        gap: 0;
        margin-top: 5px;
        border-radius: 6px;
    }

    .qty-btn {
        width: 22px;
        height: 22px;
        font-size: 12px;
    }

    .cart-item-qty span {
        width: 22px;
        font-size: 12px;
    }

    .cart-summary {
        margin-top: 0;
    }


    .accordion-button {
        padding: 14px 16px;
        height: 48px;
        font-size: 13px;
    }


    .total-price {
        margin-right: 10px;
        font-size: 13px;
    }


    .checkout-btn {

        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 64px;
        margin: 0;
        background: #2f4158;
        z-index: 999;
        font-size: 15px;
    }

    .accordion-header {
        padding: 0;
    }

    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .co-acc__header {
        padding: 16px 12px;
    }

    .co-acc__body {
        padding: 0 12px 12px 12px;
    }

    .co-acc__content {
        padding-top: 10px;
    }



    .mobile-form-fields {
        display: flex;
        flex-wrap: wrap;
        margin-left: -5px;
        margin-right: -5px;
    }

    .mobile-form-fields>div:nth-child(1),
    .mobile-form-fields>div:nth-child(2) {
        width: 50%;
        padding-left: 5px;
        padding-right: 5px;
        margin-bottom: 20px;
    }

    .mobile-form-fields>div:nth-child(3),
    .mobile-form-fields>div:nth-child(5) {
        width: 100%;
        padding-left: 5px;
        padding-right: 5px;
        margin-bottom: 20px;
    }

    .mobile-form-fields>div:nth-child(4) {
        width: 100%;
        padding-left: 5px;
        padding-right: 5px;
        margin-bottom: 20px;
    }

    .mobile-form-fields>div:nth-child(4) .d-flex {
        display: grid !important;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 10px !important;
    }

    .mini-label {
        font-size: 14px !important;
        margin-bottom: 10px !important;
    }

    .mini-field {
        height: 32px !important;
        font-size: 13px !important;
        padding: 4px 10px !important;
    }

    .mobile-submit-col {
        width: 100%;
        text-align: left;
        margin-top: 10px;
    }

    .submit-info-btn {
        margin-top: 0 !important;
        margin-left: 0;
        margin-right: auto;
        width: 150px;
        height: 40px;
        font-size: 14px !important;
        padding: 8px 15px !important;
    }

    .address-form {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0 !important;
    }

    .address-field input,
    .address-field select,
    .address-text textarea {
        width: 100%;
    }

    .address-form .address-field {
        width: 100% !important;
        box-sizing: border-box !important;
        margin-bottom: 15px !important;
    }

    .address-form .address-field:nth-child(2),
    .address-form .address-field:nth-child(3) {
        width: 50% !important;
    }

    .address-form .address-field:nth-child(2) {
        padding-left: 5px !important;
    }

    .address-form .address-field:nth-child(3) {
        padding-right: 5px !important;
    }

    .save-address {
        width: 50% !important;
        margin-top: 10px !important;
    }


    .payment-block {
        padding: 10px 12px;
    }

    .payment-title {
        padding: 10px 0;
        font-size: 14px;
    }

    .payment-divider {
        margin: 5px 0 10px;
    }

    .pay-item {
        padding: 12px;
        margin: 0 0 10px;
    }

    .pay-item__text {
        font-size: 14px;
    }

    .pay-item__logo {
        width: 80px;
        height: 30px;
    }

    .checkout-bottom-bar {
        padding: 12px 0;
    }

    .checkout-bottom-bar .container {
        display: flex;
        justify-content: flex-end;
    }

    .checkout-pay-btn {
        width: 150px;
        height: 40px;
        font-size: 14px;
    }

    .payment-body {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas: "info logo" "link link";
        align-items: center;
        gap: 49px 20px;
        padding: 30px 20px;
        min-height: auto;
    }

    .payment-info {
        grid-area: info;
        width: 100%;
        text-align: right;
    }

    .payment-logo {
        grid-area: logo;
        justify-content: flex-start;
    }

    .payment-logo img {
        width: 90px;
    }

    .payment-link {
        grid-area: link;
        width: 100%;
        text-align: center;
    }

    .payment-link a {
        display: inline-block;
    }

    .payment-info h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .payment-info p {
        font-size: 16px;
        margin-bottom: 20px;
        line-height: 1.7;
    }

    .tracking {
        font-size: 15px;
    }

    .payment-success {
        width: 100%;
        background: #F5F5F5;
        min-height: 310px;
    }
}

.cart-item-remove {
    position: absolute;
    top: 12px;
    left: 14px;
    z-index: 2;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #2C3E50;
    font-size: 26px;
    font-weight: 300;
    line-height: 28px;
    text-align: center;
    cursor: pointer;
}

.cart-item-remove:hover {
    color: #000;
}

.checkout-address-option {
    transition: background-color .15s ease;
}

.checkout-address-option--default {
    background-color: #eeeeee;
}
