﻿
.checkout-page {
    padding: 20px 0 50px;
}

.checkout-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 25px;
}

/* =========================
                       Checkout Sections
                       ========================= */

.checkout-section {
    background: #f7f7f7;
    border-radius: var(--radius);
    padding: 12px;
    margin-bottom: 12px;
}

.checkout-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 12px;
}

.checkout-step {
    width: 32px;
    height: 32px;
    border: 1px solid #555;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

/* =========================
                       Inputs
                       ========================= */


.checkout-textarea {
    min-height: 50px !important;
    max-height: 100px !important;
    resize: vertical;
    border-radius: 30px !important;
    text-align: right !important;
    direction: rtl;
}

/* =========================
                       Shipping / Payment Options
                       ========================= */

.checkout-options {
   
}

.checkout-option {
   
}

    .checkout-option input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .checkout-option label {
        height: 52px;
        border-radius: 30px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 15px;
        cursor: pointer;
        font-weight: bold;
        border: 1px solid transparent;
        transition: .15s;
    }

    @media only screen and (max-width: 440px){
        .checkout-section-title{
            font-size: 14px;
        }
        .checkout-option img {
            width: 40px !important;
        }
        .checkout-option {
            font-size: .7rem;
        }
    }

        .checkout-option label .description {
            font-size: 70%;
            color: #000a;
        }

        .checkout-option label:not(.active) {
            opacity: .5;
        }

            .checkout-option label:not(.active):hover {
                opacity: .8;
            }

    .checkout-option input:checked + label {
        box-shadow: 0 0 0 2px #333;
    }


/* =========================
                       Pay Button
                       ========================= */

.checkout-pay-button {
    width: 100%;
    height: 60px;
    border-radius: 35px !important;
    background: var(--primary-color-900) !important;
    color: white !important;
    font-size: 18px !important;
    font-weight: bold !important;
    margin-top: 35px !important;
}

/* =========================
                       Order Summary
                       ========================= */

.summary-box {
    background: #f7f7f7;
    border-radius: var(--radius);
    padding: 15px 20px;
    direction: rtl;
}

.summary-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 15px;
}

.summary-divider {
    border-top: 1px solid #777;
    margin: 12px 0;
}

.summary-total {
    font-size: 17px;
    font-weight: bold;
}

/* =========================
                       Free Shipping
                       ========================= */

.free-shipping {
    margin-top: 8px;
}

.free-shipping-progress {
    height: 9px;
    background: #444;
    border-radius: 10px;
    overflow: hidden;
}

.free-shipping-progress-value {
    height: 100%;
    width: 70%;
    background: #df3d27;
    border-radius: 10px;
}

.free-shipping-text {
    text-align: center;
    font-size: 13px;
    margin-top: 5px;
}

/* =========================
                       Discount
                       ========================= */

.discount-input {
    margin-top: 12px;
}

    .discount-input input {
        text-align: center !important;
        direction: ltr;
    }

/* =========================
                       Cart Items
                       ========================= */

.checkout-cart-items {
    margin-top: 20px;
    max-height: 520px;
    overflow-y: auto;
    padding: 10px 5px 20px 10px;
}

    .checkout-cart-items::-webkit-scrollbar {
        width: 8px;
    }

    .checkout-cart-items::-webkit-scrollbar-track {
        background: transparent;
    }

    .checkout-cart-items::-webkit-scrollbar-thumb {
        background: #45443a;
        border-radius: 10px;
    }

.cart-item {
    min-height: 115px;
    margin-bottom: 25px;
    padding: 10px;
    background: #fff;
}

.check-phone {
    height: 22px;
    position: absolute;
    right: 10px;
    top: 14px;
    cursor: pointer;
    opacity: .6;
}

.check-coupon,
.delete-coupon {
    height: 22px;
    position: absolute;
    right: 10px;
    top: 14px;
    cursor: pointer;
    opacity: .6;
}

    .check-phone:hover,
    .check-coupon:hover,
    .delete-coupon:hover {
        opacity: 1;
    }

/* =========================
                       Responsive
                       ========================= */

@media (max-width: 991px) {

    .checkout-page {
        padding: 10px;
    }

    .checkout-title {
        font-size: 21px;
    }

    .checkout-summary {
        margin-top: 20px;
    }

    .checkout-options {
        flex-direction: column;
    }

    .checkout-option {
        min-width: 100%;
    }
}
