.psfc-float-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    direction: rtl;
    font-family: Tahoma, sans-serif;
}

/* دکمه شناور */
.psfc-float-call-btn {
    width: 75px;
    height: 75px;
    border-radius: 20px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
    /* اضافه کردن رنگ پس‌زمینه برای دکمه (مشکی ملایم برای دیده شدن سایه‌ها) */
    background: #1a1a2e;
}

.psfc-float-call-btn-icon {
    text-align: center;
    color: white;
}

.psfc-float-call-btn-icon svg {
    width: 28px;
    height: 28px;
    margin: 0 auto;
    display: block;
}

.psfc-float-call-btn-icon svg * {
    fill: #25D366 !important; /* آیکون سبز */
}

.psfc-float-call-btn-icon svg *[stroke] {
    stroke: #25D366 !important;
    fill: none !important;
}

.psfc-float-call-btn-icon p {
    font-size: 13px;
    margin: 4px 0 0;
    color: white;
	font-family: 'sansb';
}

.psfc-float-call-close {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
}

.psfc-float-call.active .psfc-float-call-btn-icon {
    display: none;
}

.psfc-float-call.active .psfc-float-call-close {
    display: block;
}

/* ===== اصلاح سایه‌های موجی ===== */
.pulsation {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    /* رنگ ثابت برای سایه‌ها - مشکی با شفافیت */
    background: rgba(0, 0, 0, 0.15);
    opacity: 0.5;
    animation: pulse 1.8s infinite;
    z-index: -1;
}

.pulsation:first-child {
    animation-delay: 0.7s;
}

.pulsation:last-child {
    animation-delay: 0.5s;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.9); opacity: 0; }
}

/* استایل دسکتاپ */
@media (min-width: 769px) {
    .psfc-messangers-block {
        position: absolute;
        bottom: 80px;
        right: 0;
        background: white;
        border-radius: 16px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
        width: 280px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px);
        transition: all 0.3s ease;
        overflow: hidden;
    }
    
    .psfc-float-call.active .psfc-messangers-block {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .psfc-mobile-header {
        display: none;
    }
    
    .psfc-messangers-list {
        margin: 0;
        padding: 12px 0;
        list-style: none;
    }
    
    .psfc-float-call.active .psfc-float-call-btn .psfc-float-call-close {
        display: block;
    }
    
    .psfc-float-call.active .psfc-float-call-btn {
        cursor: pointer;
    }
}

/* استایل لیست در دسکتاپ */
.psfc-messangers-list li {
    border-bottom: 1px solid #eee;
	font-family: 'sans';
}

.psfc-messangers-list li:last-child {
    border-bottom: none;
}

.psfc-messanger {
    display: flex;
    align-items: center;
    padding: 15px 15px;
    text-decoration: none !important;
    color: #333;
    gap: 12px;
    transition: background 0.2s;
    justify-content: space-between;
    flex-direction: row-reverse;
}

.psfc-messanger:hover {
    background: #f5f5f5;
}

.psfc-messanger span {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.psfc-messanger span img {
    width: 40px;
    height: 40px;
    display: block;
}

.psfc-item-label {
    font-size: 14px;
    font-weight: 500;
}

/* استایل موبایل - به صورت Bottom Sheet */
@media (max-width: 768px) {
    .psfc-float-container {
        bottom: 0;
        right: 0;
        left: 0;
    }
    
    .psfc-float-call.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: -1;
        animation: fadeIn 0.3s ease;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    .psfc-float-call-btn {
        width: 70px;
        height: 70px;
        position: fixed;
        bottom: 20px;
        right: 31px;
    }
    
    .psfc-float-call-btn-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .psfc-float-call-btn-icon p {
        font-size: 12px;
    }
    
    .psfc-messangers-block {
        position: fixed;
        bottom: -100%;
        left: 0;
        right: 0;
        background: white;
        border-radius: 24px 24px 0 0;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
        width: 100%;
        transition: bottom 0.4s ease-out;
        overflow: hidden;
        z-index: 10000;
    }
    
    .psfc-float-call.active .psfc-messangers-block {
        bottom: 0;
    }
    
    .psfc-mobile-header {
        background: white;
        border-bottom: 1px solid #eee;
        padding: 16px;
        text-align: center;
        position: relative;
    }
    
    .psfc-close-modal {
        padding: 7px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid #e7004a;
        width: 91%;
        font-size: 14px;
        font-weight: 700;
        margin: 18px auto 15px;
        color: #e7004a;
        line-height: 2em;
        height: 50px;
        border-radius: 12px;
        background: none;
        cursor: pointer;
        transition: all 0.2s;
    }
    
    .psfc-close-modal:active {
        background: #f5f5f5;
        transform: scale(0.98);
    }
    
    .psfc-close-modal svg {
        width: 10px;
        height: 10px;
    }
    
    .psfc-messangers-list {
        margin: 0;
        padding: 16px 20px 30px;
        list-style: none;
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .psfc-messangers-list li {
        margin-bottom: 12px;
    }
    
    .psfc-messanger {
        display: flex;
        align-items: center;
        padding: 5px 16px;
        text-decoration: none !important;
        color: #333;
        gap: 14px;
        transition: all 0.2s;
        border-radius: 12px;
        background: #f9f9f9;
        flex-direction: row-reverse;
        justify-content: space-between;
    }
    
    .psfc-messanger:active {
        background: #f0f0f0;
        transform: scale(0.98);
    }
    
    .psfc-messanger span {
        width: 46px;
        height: 46px;
    }
    
    .psfc-messanger span img {
        width: 50px;
        height: 50px;
    }
    
    .psfc-item-label {
        font-size: 15px;
        flex: 1;
    }
    
    .psfc-float-call.active .psfc-float-call-btn {
        opacity: 0;
        visibility: hidden;
        transform: scale(0);
        pointer-events: none;
    }
    
    .psfc-modal-indicator {
        width: 40px;
        height: 4px;
        background: #ddd;
        border-radius: 2px;
        margin: 0 auto 12px;
    }
}


button.psfc-close-modal {
    padding: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e7004a;
    width: 91%;
    font-size: 14px;
    font-weight: 700;
    margin: 18px auto 15px;
    color: #e7004a;
    line-height: 2em;
    height: 50px;
    border-radius: 12px;
}


/* انیمیشن تکان خوردن دکمه شناور */
@keyframes psfc-shake {
    0% { transform: translateX(0); }
    25% { transform: translateY(-9px); }
    35%, 65% { transform: translateY(-9px) rotate(17deg); }
    55%, 75% { transform: translateY(-9px) rotate(-17deg); }
    100% { transform: translateY(0) rotate(0); }
}

.psfc-float-call-btn {
    animation: psfc-shake 3s infinite;
}

.psfc-float-call.active .psfc-float-call-btn,
.psfc-float-call-btn:hover {
    animation: none;
}

/* ==========================================
   اعمال فونت IranYekan به کل افزونه
   ========================================== */

.psfc-float-container,
.psfc-float-container * {
    font-family: 'IRANYekan', 'iranyekan', Tahoma, sans-serif !important;
}

/* اگر فونت با نام دیگر نصب شده */
.psfc-float-container,
.psfc-float-container * {
    font-family: 'IRANYekanWeb', 'IRANYekan', 'iranyekan', Tahoma, sans-serif !important;
}

/* ==========================================
   تنظیم دقیق‌تر برای بخش‌های مختلف
   ========================================== */

/* متن زیر آیکون */
.psfc-float-container .psfc-float-call-btn-icon p {
    font-family: 'IRANYekan', 'iranyekan', Tahoma, sans-serif !important;
    font-weight: 500 !important;
}

/* لیست آیتم‌ها */
.psfc-float-container .psfc-messanger,
.psfc-float-container .psfc-item-label,
.psfc-float-container .psfc-messangers-list li {
    font-family: 'IRANYekan', 'iranyekan', Tahoma, sans-serif !important;
}

/* دکمه بستن */
.psfc-float-container .psfc-close-modal,
.psfc-float-container button.psfc-close-modal {
    font-family: 'IRANYekan', 'iranyekan', Tahoma, sans-serif !important;
}