#bounyan-call-floating {
    position: fixed; /* تثبيت العنصر في مكانه أثناء التمرير */
    bottom: 10px; /* المسافة من الأسفل */
    right: 20px; /* المسافة من اليمين */
    z-index: 9999; /* أولوية عالية لتظهر فوق كل العناصر */
    font-family: Arial, sans-serif; /* خط النص */
}

.bounyan-call-button {
    width: 40px; /* عرض الأيقونة الرئيسية */
    height: 40px; /* ارتفاع الأيقونة الرئيسية */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* خلفية متدرجة */
    border-radius: 50%; /* جعلها دائرة */
    cursor: pointer; /* تغيير شكل المؤشر إلى يد */
    display: flex; /* استخدام flex للمحاذاة */
    align-items: center; /* محاذاة عمودية في المنتصف */
    justify-content: center; /* محاذاة أفقية في المنتصف */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); /* ظل حول الأيقونة */
    transition: all 0.3s ease; /* تأثير انتقالي سلس */
    position: relative; /* تحديد الوضع النسبي */
    z-index: 100; /* أولوية العنصر */
}

.bounyan-call-button:hover {
    transform: scale(1.1); /* تكبير الأيقونة عند التمرير */
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4); /* زيادة الظل عند التمرير */
}

.bounyan-call-button img {
    width: 40px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    padding:2px;
}



@media (max-width: 1024px) {
.bounyan-call-button img {
  
 width: 40px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    padding:1px;}
}



.bounyan-call-tooltip {
    position: absolute;
    top: 50%;
    right: calc(100% + 10px); /* يظهر على يمين الزر */
    transform: translateY(-50%);
    background: #2196F3;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}


.bounyan-call-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50px;
    transform: translateY(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent #2196F3 transparent transparent;
}


.bounyan-call-button:hover + .bounyan-call-tooltip {
    opacity: 1; /* إظهار التلميح */
    visibility: visible; /* جعله مرئي */
}






.bounyan-call-popup {
    position: absolute; /* وضع مطلق */
    bottom: 40px; /* المسافة من الأسفل */
    right: 0; /* المحاذاة مع اليمين */
    display: none; /* مخفي بشكل افتراضي */
    flex-direction: column; /* ترتيب عمودي */
    gap: 10px; /* مسافة بين العناصر */
    margin-bottom: 10px; /* مسافة خارجية من الأسفل */
    z-index: 98; /* أولوية أقل */
}


@media (max-width: 1024px) {
.bounyan-call-popup {
       position: absolute; /* وضع مطلق */
    bottom: 40px; /* المسافة من الأسفل */
    right: 0; /* المحاذاة مع اليمين */
    display: none; /* مخفي بشكل افتراضي */
    flex-direction: column; /* ترتيب عمودي */
    gap: 10px; /* مسافة بين العناصر */
    margin-bottom: 10px; /* مسافة خارجية من الأسفل */
    z-index: 98; /* أولوية أقل * */
    }
}



.bounyan-call-popup.show {
    display: flex; /* إظهار القائمة */
    animation: slideUp 0.3s ease; /* تطبيق حركة الظهور */
}

@keyframes slideUp {
    from {
        opacity: 0; /* بداية مخفية */
        transform: translateY(20px); /* مزاحة 20px للأسفل */
    }
    to {
        opacity: 1; /* نهاية ظاهرة */
        transform: translateY(0); /* في مكانها الطبيعي */
    }
}

.bounyan-call-option {
    width: 40px; /* عرض الأيقونة الفرعية */
    height: 40px; /* ارتفاع الأيقونة الفرعية */
    border-radius: 50%; /* جعلها دائرة */
    display: flex; /* استخدام flex للمحاذاة */
    align-items: center; /* محاذاة عمودية */
    justify-content: center; /* محاذاة أفقية */
    text-decoration: none; /* إزالة التزيين من الروابط */
    font-size: 20px; /* حجم الرمز */
    transition: all 0.3s ease; /* تأثير انتقالي */
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2); /* ظل خفيف */
    opacity: 0; /* مخفية بشكل افتراضي */
    transform: translateY(10px); /* مزاحة للأسفل */
    animation: optionAppear 0.3s ease forwards; /* حركة الظهور */
}

.bounyan-call-option:nth-child(1) { animation-delay: 0.1s; } /* تأخير أول أيقونة */
.bounyan-call-option:nth-child(2) { animation-delay: 0.2s; } /* تأخير ثاني أيقونة */
.bounyan-call-option:nth-child(3) { animation-delay: 0.3s; } /* تأخير ثالث أيقونة */

@keyframes optionAppear {
    to {
        opacity: 1; /* تصبح ظاهرة */
        transform: translateY(0); /* ترجع لمكانها */
    }
}

.bounyan-call-option.email {
    background: #ea4335; /* لون خلفية أحمر */
    color: white; /* لون النص أبيض */
}

.bounyan-call-option.whatsapp {
    background: #25d366; /* لون خلفية أخضر واتساب */
    color: white; /* لون النص أبيض */
}

.bounyan-call-option.messenger {
    background: #0084ff; /* لون خلفية أزرق فيسبوك */
    color: white; /* لون النص أبيض */
}

.bounyan-call-option:hover {
    transform: scale(1.1) !important; /* تكبير عند التمرير */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3); /* زيادة الظل */
}

/* تصميم متجاوب للشاشات الصغيرة */
@media (max-width: 768px) {
    #bounyan-call-floating {
        bottom: 20px; /* تقليل المسافة من الأسفل */
        right: 20px; /* تقليل المسافة من اليمين */
    }
    
    .bounyan-call-button {
            position: relative;
        width: 40px; /* زيادة حجم الأيقونة */
        height: 40px; /* زيادة حجم الأيقونة */
            margin-top: -5px; /* أو 15px حسب الحاجة */
    }
    
   
    
    .bounyan-call-option {
        width: 45px; /* تقليل حجم الأيقونات الفرعية */
        height: 45px; /* تقليل حجم الأيقونات الفرعية */
        font-size: 18px; /* تقليل حجم الرموز */
    }
}

/* إضافة تأثير للأيقونة النشطة */
.bounyan-call-button.active {
    transform: scale(1.1); /* تكبير الأيقونة */
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%); /* عكس التدرج اللوني */
}


/* زر رسالة عاجلة */
.bounyan-call-option.urgent-message {
    background-color: #0073e6;
    color: white;
    border-radius: 50%;
    font-size: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.3s ease;
}

.bounyan-call-option.urgent-message:hover {
    transform: scale(1.1);
}

.bounyan-call-option.urgent-message::after {
    content: 'رسالة عاجلة';
    position: absolute;
    top: 50%;
    right: calc(100% + 10px);
    transform: translateY(-50%);
    background: #e60000;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.bounyan-call-option.urgent-message:hover::after {
    opacity: 1;
    visibility: visible;
}

/* نافذة الرسالة العاجلة */
.urgent-popup {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: #eee;
    border: 2px solid #0073aa;
    padding: 20px;
    z-index: 9999;
    width: 300px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
.urgent-popup h3 {
    margin-top: 0;
    font-size: 18px;
}
.urgent-popup input,
.urgent-popup textarea {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #ccc;
}
.urgent-popup button {
    background: #000;
    color: #fff;
    border: none;
    padding: 10px;
    width: 100%;
    cursor: pointer;
}
.urgent-close {
    position: absolute;
    top: 5px;
    left: 10px;
    cursor: pointer;
    font-size: 18px;
    color: #333;
}
.widefat.fixed.striped tbody tr:hover {
    background-color: #f0f8ff;
    transition: background-color 0.3s ease;
}
