/* ===== RESET و تنظیمات پایه ===== */
.fsw-container * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ===== کانتینر اصلی ===== */
.fsw-container {
    position: fixed;
    bottom: 30px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.fsw-container.fsw-position-right {
    right: 20px;
    left: auto;
}

.fsw-container.fsw-position-left {
    left: 20px;
    right: auto;
}

/* ===== دکمه اصلی با متن ===== */
.fsw-main-button-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.fsw-main-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 3px solid white;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

/* عکس پروفایل */
.fsw-main-icon {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fsw-custom-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* متن "از من بپرس" */
.fsw-button-label {
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    border: 1px solid #e0e0e0;
    display: block;
    font-family: inherit;
}

/* هاور روی دکمه */
.fsw-main-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(150, 64, 95, 0.3);
    border-color: #96405f;
}

.fsw-main-button:hover .fsw-button-label {
    color: #96405f;
}

/* ===== پنل بازشونده ===== */
.fsw-panel {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 320px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 2px solid #96405f;
}

.fsw-container.fsw-position-left .fsw-panel {
    right: auto;
    left: 20px;
}

.fsw-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ===== محتوای پنل ===== */
.fsw-panel-content {
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* آیتم آموزش ویدیویی (اول) */
.fsw-panel-item.special-item {
    background-color: #96405f;
    border-top-left-radius: 13px;
    border-top-right-radius: 13px;
    padding: 16px 22px;
}

.fsw-panel-item.special-item .fsw-item-title,
.fsw-panel-item.special-item .fsw-item-subtitle {
    color: white;
}

.fsw-panel-item.special-item .fsw-item-icon {
    background: rgba(255, 255, 255, 0.2);
    border: none;
}

.fsw-panel-item.special-item .fsw-item-icon svg {
    color: white;
}

.fsw-panel-item.special-item:hover {
    background-color: #b25575;
}

/* آیتم‌های عادی */
.fsw-panel-item {
    display: flex;
    align-items: center;
    padding: 14px 22px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    cursor: pointer;
}

.fsw-panel-item:last-child {
    border-bottom: none;
    border-bottom-left-radius: 13px;
    border-bottom-right-radius: 13px;
}

.fsw-panel-item:hover {
    background-color: rgba(150, 64, 95, 0.05);
    padding-left: 25px;
}

/* محتوای آیتم */
.fsw-item-content {
    flex: 1;
}

.fsw-item-title {
    font-weight: 600;
    font-size: 15px;
    color: #96405f;
    margin-bottom: 4px;
}

.fsw-item-subtitle {
    font-size: 13px;
    color: #666;
    margin-bottom: 3px;
}

.fsw-item-hours {
    font-size: 12px;
    color: #888;
    font-style: italic;
}

/* آیکون آیتم‌ها */
.fsw-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(150, 64, 95, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(150, 64, 95, 0.2);
}

.fsw-panel-item:hover .fsw-item-icon {
    background: #96405f;
    border-color: #96405f;
    transform: scale(1.1);
}

.fsw-item-icon svg {
    width: 22px;
    height: 22px;
}

/* رنگ آیکون‌ها */
.fsw-phone-item .fsw-item-icon svg,
.fsw-telegram-item .fsw-item-icon svg,
.fsw-whatsapp-item .fsw-item-icon svg,
.fsw-instagram-item .fsw-item-icon svg,
.fsw-ticket-item .fsw-item-icon svg { /* ✅ تغییر از chat به ticket */
    color: #96405f;
}

.fsw-panel-item:hover .fsw-item-icon svg {
    color: white;
}

/* ===== رسپانسیو ===== */
@media (max-width: 768px) {
    .fsw-container {
        bottom: 20px;
    }
    
    .fsw-container.fsw-position-right {
        right: 15px;
    }
    
    .fsw-container.fsw-position-left {
        left: 15px;
    }
    
    .fsw-main-button-wrapper {
        gap: 10px;
    }
    
    .fsw-main-button {
        width: 55px;
        height: 55px;
        border: 2px solid white;
    }
    
    .fsw-button-label {
        font-size: 13px;
        padding: 7px 14px;
    }
    
    .fsw-panel {
        width: 280px;
        bottom: 90px;
        right: 15px;
    }
    
    .fsw-container.fsw-position-left .fsw-panel {
        right: auto;
        left: 15px;
    }
    
    .fsw-panel-item {
        padding: 12px 18px;
    }
    
    .fsw-item-icon {
        width: 40px;
        height: 40px;
    }
    
    .fsw-item-icon svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .fsw-main-button {
        width: 50px;
        height: 50px;
    }
    
    .fsw-button-label {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .fsw-panel {
        width: 260px;
        bottom: 85px;
    }
}

@media (max-width: 360px) {
    .fsw-main-button-wrapper {
        gap: 8px;
    }
    
    .fsw-main-button {
        width: 48px;
        height: 48px;
    }
    
    .fsw-button-label {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .fsw-panel {
        width: 240px;
    }
}

/* ❌ این بخش‌ها را کاملاً حذف کردم:
1. کل بخش .fsw-chat-panel و زیرمجموعه‌هایش
2. کل بخش .fsw-chat-input-area و زیرمجموعه‌هایش  
3. .fsw-chat-messages و .fsw-message و ...
4. خطوط مربوط به .fsw-chat-panel در media queries
*/