/* Typing Banner Styles */
.typing-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 12px 20px;
    text-align: center;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.2);
    z-index: 998; /* کمتر از آیکن چت */
    font-family: IranSans;
    direction: rtl;
    overflow: hidden;
}

.typing-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shine 3s infinite;
}

.typing-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
}

.typing-icon {
    font-size: 20px;
    animation: bounce 2s infinite;
}

.typing-text {
    min-height: 24px;
    display: inline-block;
}

/* علامت تایپ حذف شد */

/* Animations */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes cursor {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Mobile Responsive */
@media (max-width: 768px) {


    .typing-content {
        font-size: 13px;
        flex-direction: row !important;
        gap: 6px !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
    }

    .typing-icon {
        font-size: 16px;
        flex-shrink: 0 !important;
        display: inline-block !important;
    }

    .typing-text {

        word-break: break-word;

        display: inline-block !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: calc(100% - 30px);
    }
}

/* اطمینان از اینکه آیکن چت بالاتر باشد */

.smart-chat-widget {
    margin-bottom: 29px !important;
}

/* تنظیم margin-bottom برای body تا محتوا روی بنر نیفتد */
body {
    margin-bottom: 60px !important;
}
