/*
Theme Name: child-hello elementor
Author: kimiagh
Description: Your description goes here
Version: 1.0.0
Template: hello-elementor

This is the child theme for Hello Elementor theme, generated with Generate Child Theme plugin by catchthemes.

(optional values you can add: Theme URI, Author URI, License, License URI, Tags, Text Domain)
/* انتخاب کشور */
.wc-block-components-country-input {
    display: none !important;
}

/* استان */
.wc-block-components-address-form__state {
    display: none !important;
}

/* کد پستی */
.wc-block-components-address-form__postcode {
    display: none !important;
}

/* تلفن */
.wc-block-components-address-form__phone {
    display: none !important;
}
.wc-block-components-title.wc-block-components-title{
    display: none !important; }
	.wc-block-components-address-card{
    display: none !important; }
	
	.woocommerce .woocommerce-customer-details .woocommerce-column__title {
    display: none!important; }
	.woocommerce .woocommerce-customer-details address {display: none!important; }
	.woocommerce-order-details__title{display: none!important; }
	/* ============================================================
   استایل مینیمال صفحه پرداخت
   پالت: سبز #3A6B34  |  نارنجی #D85A3A
   ============================================================ */

/* ---------- ۱) فونت و پایه ---------- */
.wp-block-woocommerce-checkout,
#sms-checkout-login {
    font-family: 'IRANYekanX', Vazirmatn, Tahoma, sans-serif;
    font-size: 14px;
    color: #2b2b28;
    line-height: 1.8;
}
.wp-block-woocommerce-checkout button,
.wp-block-woocommerce-checkout input,
.wp-block-woocommerce-checkout select,
.wp-block-woocommerce-checkout textarea,
#sms-checkout-login button,
#sms-checkout-login input {
    font-family: 'IRANYekanX', Vazirmatn, Tahoma, sans-serif;
}

/* ---------- ۲) فیلدهای مخفی: همیشه مخفی بمانند ---------- */
.wc-block-components-address-form__first_name,
.wc-block-components-address-form__last_name,
.wc-block-components-address-form__address_1,
.wc-block-components-address-form__address_2,
.wc-block-components-address-form__city,
.wc-block-components-address-form__state,
.wc-block-components-address-form__postcode,
.wc-block-components-address-form__phone,
.wc-block-components-address-form__company {
    display: none !important;
}

/* ---------- ۳) کارت هر مرحله و عنوان‌ها ---------- */
.wc-block-components-checkout-step {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 14px;
    box-shadow: none;
}
.wc-block-components-checkout-step__title {
    color: #3A6B34;
    font-size: 15.5px;
    font-weight: 700;
}
.wc-block-components-checkout-step__description { color: #8a8a83; font-size: 13px; }

/* ---------- ۴) اینپوت ایمیل ---------- */
.wc-block-components-text-input input[type="text"],
.wc-block-components-text-input input[type="email"],
.wc-block-components-text-input input[type="tel"],
.wc-block-components-text-input input[type="password"] {
    border-color: #e2e2dc !important;
    border-radius: 10px;
    background: #fcfcfa;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.wc-block-components-text-input input:focus {
    border-color: #3A6B34 !important;
    box-shadow: 0 0 0 3px rgba(58,107,52,.10);
    outline: none;
}
.wc-block-components-text-input.is-active label { color: #3A6B34; }
/* حالت خطا سر جای خودش بماند */
.wc-block-components-text-input.has-error input { border-color: #cc1818 !important; }

/* ---------- ۵) سلکت کشور ---------- */
.wc-blocks-components-select__select {
    border-color: #e2e2dc !important;
    border-radius: 10px !important;
    background: #fcfcfa;
}
.wc-blocks-components-select__select:focus {
    border-color: #3A6B34 !important;
    box-shadow: 0 0 0 3px rgba(58,107,52,.10);
    outline: none;
}

/* ---------- ۶) کارت آدرس (ویرایش) ---------- */
.wc-block-components-address-card__edit {
    color: #3A6B34;
    font-weight: 600;
}

/* ---------- ۷) چک‌باکس‌ها ---------- */
.wc-block-components-checkbox .wc-block-components-checkbox__input {
    border: 1.5px solid #d5d5cd;
    border-radius: 6px;
}
.wc-block-components-checkbox .wc-block-components-checkbox__input:hover { border-color: #3A6B34; }
.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked {
    background-color: #3A6B34 !important;
    border-color: #3A6B34 !important;
}

/* ---------- ۸) دکمه ثبت سفارش ---------- */
.wc-block-components-checkout-place-order-button {
    background-color: #D85A3A !important;
    color: #fff !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    padding: 14px 24px !important;
    box-shadow: none !important;
    transition: background-color .15s ease;
}
.wc-block-components-checkout-place-order-button:hover {
    background-color: #c04c2e !important;
}
.wp-block-woocommerce-checkout button:focus-visible {
    outline: 2px solid #3A6B34;
    outline-offset: 2px;
}

/* ---------- ۹) قوانین و لینک‌ها ---------- */
.wc-block-checkout__terms { font-size: 13px; color: #77776f; }
.wc-block-checkout__terms a { color: #3A6B34; font-weight: 600; }
.wc-block-checkout a { color: #3A6B34; }

/* ---------- ۱۰) ستون خلاصه سفارش ---------- */
.wc-block-checkout__sidebar {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    padding: 8px 20px;
}
.wc-block-checkout__sidebar .wc-block-components-totals-wrapper:first-child { border-top: none; }
.wc-block-components-panel__button { font-weight: 600; }
.wc-block-components-totals-item__label { color: #6d6d66; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    color: #2b2b28;
    font-weight: 700;
}
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wc-block-components-totals-footer-item .wc-block-formatted-money-amount {
    color: #3A6B34;
    font-weight: 800;
    font-size: 17px;
}

/* ---------- ۱۱) باکس ورود/ثبت‌نام پیامکی (مهمان‌ها) ---------- */
#sms-checkout-login {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    padding: 20px;
    margin: 0 0 14px;
}
.sms-checkout-notice {
    background: #faf9f6;
    border: 1px solid #ececec;
    border-right: 4px solid #D85A3A;
    border-radius: 10px;
    color: #2b2b28;
    padding: 12px 16px;
    margin: 0 0 14px;
    font-size: 13.5px;
    font-weight: 600;
}
/* فرم پیامکی، ساده و هماهنگ با کارت */
#sms-checkout-login .sms-auth-form {
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}
#sms-checkout-login .sms-auth-form h3 {
    background-image: none;
    font-size: 16px;
    color: #2b2b28;
    margin-bottom: 12px;
}
#sms-checkout-login .sms-auth-field input[type="text"],
#sms-checkout-login .sms-auth-field input[type="tel"],
#sms-checkout-login .sms-auth-field input[type="email"],
#sms-checkout-login .sms-auth-field input[type="password"] {
    background: #faf9f6;
    border-color: #e2e2dc;
}
#sms-checkout-login .sms-auth-field input:focus {
    border-color: #3A6B34 !important;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(58,107,52,.10);
}
#sms-checkout-login .sms-auth-submit-btn {
    height: 46px;
    border-radius: 10px;
    letter-spacing: 0;
}
#sms-checkout-login .sms-auth-message.success {
    background: #f0f5ec;
    border: 1px solid #d9e5d4;
    border-right: 3px solid #3A6B34;
    color: #2e5229;
}
#sms-checkout-login .sms-auth-message.error {
    background: #fdf1ed;
    border: 1px solid #f3d5cb;
    border-right: 3px solid #D85A3A;
    color: #8a3a20;
}
#sms-checkout-login .sms-auth-resend-container { background: #faf9f6; }

/* ---------- ۱۲) موبایل ---------- */
@media (max-width: 600px) {
    .wc-block-components-checkout-step,
    #sms-checkout-login {
        padding: 14px;
        border-radius: 12px;
    }
}




/* فرم تسویه حساب ووکامرس */
.woocommerce-checkout form.checkout {
    max-width: 680px;
    margin: 0 auto;
}

.woocommerce-checkout form.checkout .form-row {
    float: none;
    width: 100%;
    margin: 0 0 20px;
}

.woocommerce-checkout form.checkout .form-row input.input-text,
.woocommerce-checkout form.checkout .form-row select,
.woocommerce-checkout form.checkout .form-row textarea {
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    box-sizing: border-box;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.6;
}

.woocommerce-checkout form.checkout label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.woocommerce-checkout #order_comments_field {
    display: none !important;
}

@media (max-width: 600px) {
    .woocommerce-checkout form.checkout {
        max-width: 100%;
    }

    .woocommerce-checkout form.checkout .form-row input.input-text {
        min-height: 48px;
    }
}






