/* =========================================
   Pakeshti Shop - Checkout Customer Details
   Black / Red Style
   ========================================= */


/* =========================================
   حذف افکت‌های سفید Woodmart
   ========================================= */

.customer-details::before,
.customer-details::after,
.customer-details .woocommerce-billing-fields::before,
.customer-details .woocommerce-billing-fields::after,
.customer-details .woocommerce-additional-fields::before,
.customer-details .woocommerce-additional-fields::after {
    display: none !important;
    content: none !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}


/* =========================================
   کل بخش اطلاعات مشتری
   ========================================= */

.customer-details {
    background: #151515 !important;
    color: #ffffff !important;
    border: 1px solid #2b2b2b !important;
    border-radius: 14px !important;
    padding: 25px !important;
    box-sizing: border-box !important;
}


/* =========================================
   عنوان‌ها
   ========================================= */

.customer-details .woocommerce-billing-fields > h3,
.customer-details .woocommerce-additional-fields > h3 {
    color: #ffffff !important;
    font-size: 21px !important;
    font-weight: 700 !important;
    margin: 0 0 22px !important;
    padding-bottom: 15px !important;
    border-bottom: 1px solid #2f2f2f !important;
}


/* =========================================
   لیبل فیلدها
   ========================================= */

.customer-details label {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    margin-bottom: 8px !important;
}

.customer-details label .required {
    color: #ff3030 !important;
}

.customer-details label .optional {
    color: #888888 !important;
    font-weight: 400 !important;
}


/* =========================================
   فاصله فیلدها
   ========================================= */

.customer-details .form-row {
    margin-bottom: 18px !important;
}


/* =========================================
   Input ها
   ========================================= */

.customer-details input.input-text,
.customer-details input[type="text"],
.customer-details input[type="tel"],
.customer-details input[type="email"],
.customer-details textarea {
    width: 100% !important;
    background: #1d1d1d !important;
    background-color: #1d1d1d !important;
    color: #ffffff !important;
    border: 1px solid #353535 !important;
    border-radius: 8px !important;
    padding: 13px 14px !important;
    min-height: 48px !important;
    box-sizing: border-box !important;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.25s ease !important;
}


/* placeholder */
.customer-details input::placeholder,
.customer-details textarea::placeholder {
    color: #777777 !important;
    opacity: 1 !important;
}


/* فوکوس */
.customer-details input.input-text:focus,
.customer-details input[type="text"]:focus,
.customer-details input[type="tel"]:focus,
.customer-details input[type="email"]:focus,
.customer-details textarea:focus {
    background: #202020 !important;
    border-color: #e60000 !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 2px rgba(230, 0, 0, 0.12) !important;
}


/* =========================================
   Select2 - کشور و استان
   ========================================= */

.customer-details .select2-container {
    width: 100% !important;
}

.customer-details .select2-container .select2-selection--single {
    height: 48px !important;
    background: #1d1d1d !important;
    background-color: #1d1d1d !important;
    border: 1px solid #353535 !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    box-shadow: none !important;
    outline: none !important;
}


/* متن انتخاب شده */
.customer-details .select2-container .select2-selection--single .select2-selection__rendered {
    color: #ffffff !important;
    line-height: 46px !important;
    padding-right: 14px !important;
    padding-left: 40px !important;
}


/* فلش */
.customer-details .select2-container .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
    left: 10px !important;
    right: auto !important;
}

.customer-details .select2-container .select2-selection--single .select2-selection__arrow b {
    border-color: #ff3030 transparent transparent transparent !important;
}


/* فوکوس Select2 */
.customer-details .select2-container--default.select2-container--open .select2-selection--single,
.customer-details .select2-container--default .select2-selection--single:focus {
    border-color: #e60000 !important;
}


/* =========================================
   Dropdown خود Select2
   ========================================= */

.select2-container--default .select2-dropdown {
    background: #1d1d1d !important;
    background-color: #1d1d1d !important;
    border: 1px solid #353535 !important;
    color: #ffffff !important;
}

.select2-container--default .select2-search--dropdown {
    background: #1d1d1d !important;
    padding: 8px !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    background: #151515 !important;
    color: #ffffff !important;
    border: 1px solid #353535 !important;
    border-radius: 6px !important;
    padding: 8px !important;
    outline: none !important;
}

.select2-container--default .select2-results__option {
    background: #1d1d1d !important;
    color: #ffffff !important;
    padding: 10px 12px !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: #e60000 !important;
    color: #ffffff !important;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    background: #292929 !important;
    color: #ffffff !important;
}


/* =========================================
   متن خطا / اعتبارسنجی
   ========================================= */

.customer-details .woocommerce-invalid input,
.customer-details .woocommerce-invalid .select2-selection {
    border-color: #e60000 !important;
}

.customer-details .woocommerce-validated input,
.customer-details .woocommerce-validated .select2-selection {
    border-color: #353535 !important;
}


/* =========================================
   توضیحات تکمیلی
   ========================================= */

.customer-details .woocommerce-additional-fields {
    margin-top: 28px !important;
    padding-top: 25px !important;
    border-top: 1px solid #2f2f2f !important;
}


/* textarea */
.customer-details textarea#order_comments {
    min-height: 110px !important;
    resize: vertical !important;
    line-height: 1.9 !important;
}


/* =========================================
   فیلد آدرس
   ========================================= */

.customer-details #billing_address_1,
.customer-details #billing_address_2 {
    min-height: 48px !important;
}


/* =========================================
   پس‌زمینه Wrapper های ووکامرس
   ========================================= */

.customer-details .woocommerce-input-wrapper {
    background: transparent !important;
}

.customer-details .woocommerce-billing-fields__field-wrapper,
.customer-details .woocommerce-additional-fields__field-wrapper {
    background: transparent !important;
}


/* =========================================
   حذف سایه‌های احتمالی قالب
   ========================================= */

.customer-details input,
.customer-details textarea,
.customer-details select,
.customer-details .select2-selection {
    box-shadow: none !important;
}


/* =========================================
   موبایل
   ========================================= */

@media (max-width: 767px) {

    .customer-details {
        padding: 16px !important;
        border-radius: 12px !important;
    }

    .customer-details .woocommerce-billing-fields > h3,
    .customer-details .woocommerce-additional-fields > h3 {
        font-size: 19px !important;
        margin-bottom: 18px !important;
    }

    .customer-details .form-row {
        margin-bottom: 15px !important;
    }

    .customer-details label {
        font-size: 13px !important;
    }

    .customer-details input.input-text,
    .customer-details input[type="text"],
    .customer-details input[type="tel"],
    .customer-details input[type="email"],
    .customer-details textarea {
        min-height: 46px !important;
        padding: 12px !important;
    }

    .customer-details .select2-container .select2-selection--single {
        height: 46px !important;
    }

    .customer-details .select2-container
    .select2-selection--single
    .select2-selection__rendered {
        line-height: 44px !important;
    }

    .customer-details .select2-container
    .select2-selection--single
    .select2-selection__arrow {
        height: 44px !important;
    }

    .customer-details .woocommerce-additional-fields {
        margin-top: 22px !important;
        padding-top: 20px !important;
    }
}