/* --- تنسيق زر COMMANDER العلوي (مستقل تماماً عن القالب) --- */
.onedev-commander-wrapper {
    clear: both; /* يضمن النزول لسطر جديد دائماً */
    width: 100%;
    margin-top: 15px;
    margin-bottom: 15px;
}

button.onedev-commander-btn {
    background-color: #000000 !important;
    color: #ffffff !important;
    width: 100% !important; /* يأخذ العرض الكامل للكونتينر */
    padding: 15px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    border-radius: 5px !important;
    border: none !important;
    transition: background-color 0.3s ease;
    cursor: pointer !important;
    display: block !important;
    text-align: center !important;
}

button.onedev-commander-btn:hover {
    background-color: #333333 !important;
}

/* عندما يتم الضغط على الزر، يتغير شكله للتحميل */
button.onedev-commander-btn.loading {
    background-color: #888888 !important;
    cursor: not-allowed !important;
    opacity: 0.8;
}

/* تنسيق عداد الزوار (من الخطوة السابقة) */
.onedev-viewers-counter {
    background-color: #f5f5f5;
    padding: 10px;
    text-align: center;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: bold;
    color: #333;
}
.onedev-counter-number {
    background-color: #3f51b5;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    margin-right: 5px;
}
/* تنسيق الغلاف العام للنموذج المدمج */
.onedev-express-checkout-wrapper {
    border: 2px dashed #000;
    padding: 20px;
    margin-top: 30px;
    border-radius: 8px;
    background-color: #fafafa;
}

/* تنسيق الحقول Labels & Inputs */
.onedev-form-group {
    margin-bottom: 15px;
}
.onedev-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}
.onedev-form-group label .required {
    color: red;
}
.onedev-form-group input, 
.onedev-form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    font-size: 15px;
}

/* تنسيق زر التأكيد في النموذج المدمج */
button.onedev-express-btn {
    display: block !important;
    width: 100% !important;
    background-color: #002D15 !important; /* اللون الأخضر الغامق الخاص بقالبك كما في الصورة */
    color: #ffffff !important;
    padding: 15px !important;
    font-size: 18px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    border: none !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    margin-top: 15px !important;
    text-align: center !important;
}

button.onedev-express-btn:hover {
    background-color: #000000 !important;
}

/* --- تنسيق نافذة الشحن Popup --- */
.onedev-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}
.onedev-popup-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    text-align: center;
}
.shipping-option {
    text-align: left;
    margin: 15px 0;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 5px;
}
.onedev-confirm-btn {
    background-color: #28a745 !important;
    color: #fff !important;
    width: 100%;
    padding: 12px !important;
    margin-top: 15px;
    border: none;
    border-radius: 5px;
}
.onedev-close-btn {
    background-color: transparent !important;
    color: #888 !important;
    width: 100%;
    padding: 10px !important;
    margin-top: 5px;
    border: none;
    text-decoration: underline;
}

/* --- الزر العائم للموبايل Sticky Bottom Bar --- */
.onedev-sticky-bottom-bar {
    display: none; /* مخفي في الديسكتوب */
}

@media (max-width: 768px) {
    /* إخفاء العداد العلوي القديم في الموبايل لكي لا يتكرر مرتين بشكل مزعج (اختياري) */
    .woocommerce div.product .onedev-viewers-counter {
        display: none !important;
    }

    .onedev-sticky-bottom-bar {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        padding: 8px 15px 12px 15px;
        box-shadow: 0 -4px 15px rgba(0,0,0,0.15);
        z-index: 9999;
        text-align: center;
        border-top: 1px solid #eeeeee;
    }
    
    /* تنسيق العداد الصغير فوق الزر العائم */
    .onedev-sticky-counter {
        font-size: 13px;
        color: #555;
        margin-bottom: 8px;
        font-weight: 600;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .onedev-sticky-counter .onedev-counter-number {
        background-color: #000; /* أو لون قالبك #002D15 */
        color: #fff;
        padding: 2px 6px;
        border-radius: 3px;
        margin-right: 6px;
        font-size: 12px;
    }

    /* تنسيق الزر نفسه */
    .onedev-sticky-bottom-bar button {
        width: 100%;
        background-color: #000 !important;
        color: #fff !important;
        padding: 14px;
        font-size: 16px;
        font-weight: bold;
        text-transform: uppercase;
        border: none;
        border-radius: 6px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
}