﻿/* Checkout-page */
#checkout{
    margin-bottom:50px;
    min-height:500px;
}
.checkout-container {
    width: 100%;
    margin: 30px auto;
    display: flex;
    gap: 25px;
}
.emty-cart-layout{
    text-align:center;
}

/* جعبه‌ها */
.checkout-box {
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: #fff;
}

/* بخش سفارش شما */
.checkout-order {
    background: var(--color-gray-light);
}

.checkout-order-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

    .checkout-order-table tr {
        text-align: right;
        border-bottom: 1px solid #f0f0f0;
    }

    .checkout-order-table th,
    .checkout-order-table td {
        padding: 10px 15px;
        text-align: right;
    }

    .checkout-order-table th {
        font-weight: bold;
        border-bottom: 1px solid #f0f0f0;
    }

    .checkout-order-table td {
        color: #444;
    }

#checkout-personal h3 {
    margin-top: 0;
    font-size: 18px;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

#checkout-personal h4 {
    font-size: 20px;
    margin: 0;
    margin-bottom: 15px;
}

#checkout-personal label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    color: #444;
}

    #checkout-personal label span {
        color: red;
    }

.checkout-order-title {
    text-align: center;
}

/* فرم اطلاعات شخصی */
.checkout-personal input,
.checkout-personal textarea {
    background: #fff;
}

.checkout-input,
.checkout-textarea,
.checkout-select {
    border: none;
    width: 100%;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    border: 1px solid #ddd;
}

    .checkout-input:focus,
    .checkout-textarea:focus,
    .checkout-select:focus {
        outline: none;
    }

.checkout-input,
.checkout-textarea {
    padding: 10px;
}

.checkout-textarea {
    resize: vertical;
    min-height: 80px;
}

.checkout-select {
    background: #fff;
}

/* گزینه‌های پرداخت */
.checkout-payment {
    margin: 15px 0;
    font-size: 14px;
}

    .checkout-payment label {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
        cursor: pointer;
        gap: 10px;
        padding: 8px;
        border-radius: 6px;
        transition: 0.2s;
    }

    .checkout-payment input {
        margin-left: 8px;
    }

    .checkout-payment label:hover {
        background: #f0f0f0;
    }

.checkout-icon {
    width: 22px;
    height: 22px;
    display: inline-block;
}

.checkout-details-text {
    font-size: 14px;
    color: #555;
    margin: 8px 0;
    padding: 10px;
    background: #fff;
    border-radius: 6px;
}

.checkout-select,
.checkout-search-input {
    border: none;
}

.checkout-select-box {
    position: relative;
    width: 100%;
}

.checkout-search-input:focus {
    outline: none;
    box-shadow: none;
    /* اگه مرورگر سایه هم انداخت */
}

.checkout-search-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    color: #939393;
}

.checkout-options-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid #aaa;
    border-radius: 6px;
    max-height: 150px;
    overflow-y: auto;
    display: none;
    /* اول مخفی */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 10;
}

    .checkout-options-list li {
        padding: 8px;
        cursor: pointer;
        transition: background 0.2s;
    }

        .checkout-options-list li:hover {
            background: #f0f0f0;
        }

.checkout-btn {
    font-size: 14px;
    border: 2px solid var(--primary);
    border-radius: 2px;
    color: var(--white);
    background-color: var(--primary);
    padding: 3px 5px;
    height: fit-content;
    width: fit-content;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .checkout-btn:hover {
        background-color: var(--white);
        color: var(--primary);
    }

#checkout-personal {
    width: calc(55% - 25px);
}

#checkout-order {
    width: 45%;
}
