/* Cooker Media Order Form - Frontend Styles */
#cmof-order-form-wrapper.cmof-order-form-container {
    font-family: sans-serif; /* خط افتراضي مؤقت */
    direction: rtl; /* دعم الاتجاه من اليمين لليسار */
    max-width: 900px; /* عرض أقصى للنموذج */
    margin: 20px auto; /* توسيط النموذج */
    padding: 20px;
    background-color: #f0ead6; /* لون خلفية مشابه للخلفية العامة في الصورة */
    border-radius: 15px; /* حواف دائرية للنموذج الخارجي */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cmof-main-title {
    background-color: #5a7d3c; /* لون الشريط العلوي الأخضر */
    color: white;
    padding: 10px 15px;
    border-radius: 8px 8px 0 0; /* حواف دائرية علوية فقط */
    text-align: center;
    font-size: 1.3em;
    margin: -20px -20px 20px -20px; /* ليمتد بعرض الحاوية */
}

.cmof-product-tables-container {
    display: flex; /* لاستخدام flexbox لترتيب الجداول */
    justify-content: space-around; /* توزيع المسافة بين الجداول */
    gap: 20px; /* مسافة بين الجداول */
    margin-bottom: 20px;
}

.cmof-product-table {
    background-color: #ffffff; /* خلفية بيضاء داخلية للجداول */
    border-radius: 15px; /* حواف دائرية للجداول */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex-basis: 48%; /* كل جدول يأخذ حوالي نصف العرض المتاح */
    display: flex; /* استخدام flexbox لترتيب الهيدر والبودي */
    flex-direction: column; /* ترتيب الهيدر فوق البودي */
    overflow: hidden; /* لإخفاء أي تجاوزات من الحواف الدائرية */
}

.cmof-table-header {
    background-color: #8c9e73; /* لون الجزء العلوي من الجدول (أخضر زيتوني أفتح) */
    padding: 20px;
    position: relative;
    height: 60px; /* ارتفاع ثابت للهيدر */
    display: flex;
    justify-content: center;
    align-items: center;
}

.cmof-table-header-decoration {
    width: 50px;
    height: 50px;
    background-color: #e0e0e0; /* لون الدائرة (لؤلؤي مؤقت) */
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.cmof-table-body {
    padding: 20px;
    background-color: #ffffff; /* تأكيد الخلفية البيضاء */
    border-radius: 0 0 15px 15px; /* حواف دائرية سفلية فقط */
}

.cmof-table-title {
    text-align: center;
    color: #333;
    font-size: 1.2em;
    margin-top: 0;
    margin-bottom: 15px;
}

.cmof-options-placeholder {
    text-align: center;
    color: #777;
    padding: 10px;
    border: 1px dashed #ccc;
    border-radius: 5px;
}

.cmof-total-price-container {
    background-color: #5a7d3c; /* نفس لون الشريط العلوي */
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 8px;
    margin-bottom: 20px;
}

#cmof-total-price {
    /* يمكن تنسيقه بشكل مختلف لاحقًا */
}

.cmof-customer-details .cmof-form-field {
    margin-bottom: 15px;
}

.cmof-customer-details label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.cmof-customer-details input[type="text"],
.cmof-customer-details input[type="tel"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* لضمان أن padding لا يزيد العرض */
}

.cmof-submit-button-container {
    text-align: center;
    margin-top: 20px;
}

#cmof-submit-order {
    background-color: #e67e22; /* لون برتقالي مميز للزر */
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#cmof-submit-order:hover {
    background-color: #d35400; /* لون أغمق عند المرور */
}

/* لجعل الجداول تحت بعضها في الشاشات الصغيرة */
@media (max-width: 768px) {
    .cmof-product-tables-container {
        flex-direction: column; /* تغيير اتجاه flex لعمودي */
    }
    .cmof-product-table {
        flex-basis: 100%; /* كل جدول يأخذ العرض الكامل */
    }
}