/* محتوى style.css - منقول من wp_css_custome (بدون get_option('css_field')) */

.ast-woocommerce-container .product .product_meta {display:none;}

.ast-woocommerce-container .product .cart {display:none;}

/* Button */

/* checkout page */
#place_order{
	top:-30px;
}

/* 700px and smaller screen sizes */
@media (max-width:700px){

	/* Button */
#place_order{
		top:-30px;
		transform:translatex(0px) translatey(0px);
		
	}
	
}

/* descreption checkout */

.woocommerce-product-details__short-description #place_order{
	top:-68px;
}

/* 700px and smaller screen sizes */
@media (max-width:700px){

	/* Button */
.woocommerce-product-details__short-description	#place_order{
		top:-35px;
		transform:translatex(0px) translatey(0px);
		
	}
	
}

/*Checkout-form Shortcode Button */
.checkout-form #place_order{
	top:-35px;
}

/* 700px and smaller screen sizes */
@media (max-width:700px){

	/* Checkout-form Shortcode Button */
	.checkout-form #place_order{
		top:-40px;
		transform:translatex(0px) translatey(0px);
		
	}
	
}

button#place_order {
width: 100%;
}

.woocommerce-billing-fields h3 {display:none;}


#order_review {display:none;}


#order_review_heading {display:none;}


#customer_details .woocommerce-additional-fields {display:none;}


#ast-site-header-cart {display:none;}

#main .woocommerce-products-header {display:none;}

.woocommerce .woocommerce-checkout .col2-set .col-1,
.woocommerce .woocommerce-checkout .col2-set .col-2 {
    width: 100% !important;
}

.woocommerce .woocommerce-checkout .col2-set .col-1 {
    margin-bottom: 30px;
}

/* الاطار الخارجي + توحيد طول المستطيلات مع انحناء الزوايا + لون الخط*/

/** Le Cadre */
form.woocommerce-checkout 
{
padding: 13px;
	padding-top: 20px;
	padding-bottom: -0px;
    border-style: solid;
    border-width: 2px;
    border-color: #F2B233;
    border-radius: 6px;
	margin-top: 10px;
    max-height: 730px;
}

/** Fonts Color - box titel  */
.checkout-form,
.woocommerce-product-details__short-description
{
	color: #1B1B20;
	}
/** Fonts Color - box content  */
input[type=email], input[type=number], input[type=password], input[type=reset], input[type=search], input[type=tel], input[type=text], input[type=url], select, textarea {
		color: #181b20d4;
	}

/* توحيد طول المستطيلات مع انحناء الزوايا */

.woocommerce-billing-fields .form-row input[type="text"],
.woocommerce-billing-fields .form-row input[type="tel"],
.woocommerce-billing-fields .form-row select,
.woocommerce-billing-fields .form-row input[type="email"],
.woocommerce-billing-fields .form-row input[type="password"],
.woocommerce-billing-fields .form-row input[type="number"] {
  height: 57px; /* تعيين الطول بالبكسل أو بالوحدة التي ترغب في استخدامها */
  border-radius: 6px; /* يمكنك تعديل قيمة border-radius حسب التصميم الذي تريده */
}

/* اخفاء عنوان • لقراءة وصف الدورات انزل للأسفل من , الفورم الخاص ب الشورتكود*/
.checkout-form #billing_register1_field {
    display: none;
}

 /* "checkbox" in form checkout */

 /* "checkbox" التعديل على الارتفاع الخاص بالجملة كاملة */
#cf9d0fe_field {
    margin-top: 20px;
	}
	
.woocommerce-product-details__short-description	#cf9d0fe_field {
    margin-top: -15px;
	}

 /* "checkbox" التعديل على القيم في مربع */
.input-checkbox {
    vertical-align: middle;
    display: inline-block;
    position: relative;
    top: 0px;
	  width: 15px;
    height: 15px;
}

.woocommerce-product-details__short-description input.input-checkbox {
    vertical-align: middle;
    display: inline-block;
    position: relative;
    top: 8px;
	  width: 15px;
    height: 15px;
}

 /* يلغي التعديل على القيم في مربع checkbox في فورم الشورت كود */
.checkout-form #cf9d0fe_field {
    margin-top: 10px;
}

 /* يلغي الارتفاع الخاص بالجملة كاملة في فورم الشورت كود */
.checkout-form .input-checkbox {
	    top: 0px;
}

/* =========================
   iOS & clickable inputs fixes
   ========================= */

/* اجعل الفورم فوق أي غطاء وبلا قص للعرض */
.checkout-form,
form.woocommerce-checkout {
    position: relative !important;
    z-index: 9999 !important;
    max-height: none !important;
    overflow: visible !important;
    -webkit-overflow-scrolling: touch;
}

/* تأكد أن الحقول قابلة للنقر واللمس */
.checkout-form input,
.checkout-form select,
.checkout-form textarea,
.checkout-form label,
.checkout-form button {
    position: relative !important;
    z-index: 10000 !important;
    pointer-events: auto !important;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

/* خفّض z-index للزر لو كان يغطي الحقول */
#place_order {
    position: relative !important;
    z-index: 9000 !important;
}

/* لو في عناصر عليها transform على الآباء فهذا يسبب مشاكل في iOS.
   نجبر الفورم على فصل السياق البصري ونعطل أي transform ضار مؤقتًا */
@supports (-webkit-overflow-scrolling: touch) {
    .checkout-form {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    .checkout-form * {
        -webkit-transform: none !important;
        transform: none !important;
    }
}

/* أعادة تفعيل pointer-events لو أحدهم عطله بالخطأ */
.checkout-form *[style*="pointer-events: none"] {
    pointer-events: auto !important;
}

/* === Loading Overlay & Spinner (SAM) === */
.sam-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8,8,8,0.6);
    z-index: 110000; /* أعلى من عناصر الفورم لديك */
    display: flex;
    align-items: center;
    justify-content: center;
}

.sam-loading-content {
    background: #fff;
    padding: 22px;
    border-radius: 12px;
    text-align: center;
    width: 320px;
    box-shadow: 0 18px 60px rgba(0,0,0,0.25);
}

.sam-spinner {
    width: 48px;
    height: 48px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #F2B233;
    border-radius: 50%;
    animation: sam-spin 1s linear infinite;
    margin: 0 auto 12px;
}

@keyframes sam-spin { 0% { transform: rotate(0deg);} 100% { transform: rotate(360deg);} }

/* لا نمنع outlines أثناء التركيز على iOS */
.sam-loading-overlay .sam-loading-content { -webkit-tap-highlight-color: transparent; }

/* Overlay base (hidden, non-blocking) */
.sam-loading-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100vh;
    display: none;                 /* hidden by default */
    opacity: 0;
    align-items: center;
    justify-content: center;
    background: rgba(8,8,8,0.6);
    z-index: 9999999;              /* very high */
    pointer-events: none;          /* IMPORTANT: don't block when hidden */
    -webkit-overflow-scrolling: touch;
    -webkit-transform: none !important;
    transform: none !important;
    will-change: opacity;
}

/* Visible state */
.sam-loading-overlay.is-visible {
    display: flex;
    opacity: 1;
    pointer-events: auto;          /* accept touches when visible */
    transition: opacity .16s ease;
}

/* Spinner + content unchanged */
.sam-loading-content { /* keep your existing styles */ }
.sam-spinner { /* ... */ }

/* === Overlay Font: Cairo === */
.sam-loading-overlay,
.sam-loading-overlay * {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 
                 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

.sam-loading-content p {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.2px;
}
