/* استایل برای کل container آیکون چت */

#eram-online-support-chat {
    position: fixed;
    z-index: 999999;
    transition: all 0.3s ease;
}

/* فاصله بیشتر از پایین فقط در موبایل (عرض کمتر از 768px) */

@media (max-width: 768px) {
    .eram-chat-box {
        width: 90%;
        right: 5%;
        bottom: 80px;
    }
    
    #eram-online-support-chat-bubble {
        max-width: 200px;
    }
}

.eram-widget-container {
    background-color: #f9f9f9;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.eram-widget-container::before,
.eram-widget-container::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
}

.eram-widget-container::before {
    top: 0;
    left: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 30px solid rgba(40, 167, 69, 0.2);
}

.eram-widget-container::after {
    bottom: 0;
    right: 0;
    border-top: 30px solid transparent;
    border-bottom: 30px solid transparent;
    border-left: 30px solid rgba(40, 167, 69, 0.2);
}

#eram-online-support-chat-bubble .eram-chat-bubble-arrow {
    position: absolute;
    bottom: -10px;
    right: 10px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 10px solid; /* رنگ از استایل inline گرفته می‌شود */
}

/* استایل دکمه آیکون چت */
#eram-online-support-chat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

#eram-online-support-chat-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

#eram-online-support-chat-btn img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* استایل بالون پیام */
#eram-online-support-chat-bubble {
    position: absolute;
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 250px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    display: none;
    z-index: 999999;
}

#eram-online-support-chat-bubble.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: bubbleAppear 0.5s ease forwards;
}

#eram-online-support-chat-bubble .eram-chat-close {
    position: absolute;
    top: 5px;
    right: 5px;
    cursor: pointer;
    color: #666;
    font-size: 18px;
    line-height: 1;
    padding: 5px;
    transition: all 0.2s ease;
}

#eram-online-support-chat-bubble .eram-chat-close:hover {
    color: #333;
    transform: rotate(90deg);
}

/* استایل باکس چت */
.eram-chat-box {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999998;
    font-family: inherit;
}

.eram-chat-box.show {
    transform: scale(1);
    opacity: 1;
}

.eram-chat-header {
    background: #075E54;
    color: white;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.eram-chat-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.eram-chat-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.eram-chat-header-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.eram-chat-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

.eram-chat-status {
    font-size: 12px;
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.8);
}

.eram-support-backbar {
    background: #f8f9fa;
    padding: 6px 14px;
    text-align: right;
}

.eram-back-to-operators-btn {
    background: transparent;
    border: none;
    color: #075E54;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    font-family: inherit;
}

.eram-chat-close-btn {
    color: white;
    opacity: 0.8;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.eram-chat-close-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.eram-chat-messages {
    padding: 16px;
    height: 280px;
    overflow-y: auto;
    background: #E5DDD5;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.eram-chat-message {
    display: flex;              /* ردیف کامل، برای ترازبندی حباب در چپ/راست */
    width: 100%;
    margin-bottom: 8px;
    animation: messageAppear 0.3s ease forwards;
}

.eram-chat-message p {
    margin: 0;
    max-width: 80%;            /* حداکثر عرض حباب نسبت به باکس */
    padding: 8px 12px;
    border-radius: 7.5px;
    box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
    color: #111B21;
    font-size: 14.2px;
    line-height: 1.4;
}

.eram-chat-footer {
    padding: 10px 16px;
    background: #F0F2F5;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
}

.eram-chat-input {
    flex: 1;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    direction: rtl;
    text-align: right;
}

.eram-chat-input:focus {
    border-color: #075E54;
    box-shadow: 0 0 0 2px rgba(7, 94, 84, 0.1);
}

.eram-chat-send-btn {
    background: #075E54;
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-right: 8px;
    transition: background-color 0.3s ease;
    border-radius: 8px;
}

.eram-chat-send-btn:hover {
    background: #054a42;
}

.eram-chat-send-btn svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.eram-chat-footer-text {
    font-size: 11px;
    color: #666;
    text-align: center;
    margin-top: 8px;
    direction: rtl;
    padding: 0 16px 8px;
}

.eram-chat-footer-text a {
    color: #075E54;
    text-decoration: none;
    font-weight: 500;
}

.eram-chat-footer-text a:hover {
    text-decoration: underline;
}

.eram-chat-start-btn {
    background: #25D366;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 24px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    animation: buttonSlideUp 0.5s ease forwards;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.eram-chat-start-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.eram-chat-start-btn::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* انیمیشن‌ها */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes bubbleAppear {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes messageAppear {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes buttonSlideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

#wpadminbar .eram-online-users .ab-item {
    font-weight: bold;
    color: #fff;
    background-color: #ffffff00;
    padding: 0 10px;
    border-radius: 3px;
}

/* تعریف انیمیشن slideUpFadeIn */
@keyframes slideUpFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* کلاس انیمیشنی برای بالون پیام */
.eram-chat-bubble.animate {
    animation: slideUpFadeIn 0.5s ease-out forwards;
}

/* استایل اسکرولبار */
.eram-chat-messages::-webkit-scrollbar {
    width: 6px;
}

.eram-chat-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.eram-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.eram-chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

#eram-online-support-guide-bubble {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: var(--bubble-color, #ffffff);
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 15px;
    width: 280px;
    min-width: 200px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    display: none;
    z-index: 999999;
    text-align: right;
    direction: rtl;
    box-sizing: border-box;
}

#eram-online-support-guide-bubble.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: bubbleAppear 0.5s ease forwards;
}

#eram-online-support-guide-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--bubble-color, #ffffff);
}

#eram-online-support-guide-bubble p {
    margin: 0;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
    padding-left: 5px;
}

#eram-online-support-guide-bubble .eram-guide-close {
    position: absolute;
    top: 8px;
    left: 8px;
    cursor: pointer;
    color: #ffffff;
    font-size: 16px;
    line-height: 1;
    padding: 4px;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#eram-online-support-guide-bubble .eram-guide-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    #eram-online-support-guide-bubble {
        width: 240px;
        padding: 12px 16px;
        margin-bottom: 12px;
    }
    
    #eram-online-support-guide-bubble p {
        font-size: 13px;
    }
    
    #eram-online-support-guide-bubble::after {
        right: 15px;
    }
}

/* استایل‌های هوش مصنوعی */
.eram-ai-typing {
    background: #ffffff !important;
    border: none;
    border-radius: 7.5px;
    padding: 8px 12px;
    margin: 4px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
    max-width: 80%;
}

.eram-typing-indicator {
    display: flex;
    gap: 4px;
    align-items: center;
}

.eram-typing-indicator span {
    width: 8px;
    height: 8px;
    background: #25D366;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.eram-typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.eram-typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.eram-chat-message--agent {
    justify-content: flex-end;   /* حباب ویجت/پشتیبان سمت راست */
}

.eram-chat-message--user {
    justify-content: flex-start;  /* حباب کاربر سمت چپ */
}

.eram-chat-message--user p,
.eram-chat-message--agent p {
    border: none;
}

/* رنگ پس‌زمینه حباب‌ها بر اساس نوع پیام */
.eram-chat-message--agent p {
    background: #ffffff;
}

.eram-chat-message--user p {
    background: #DCF8C6;
}

/* استایل‌های دکمه اپراتور انسانی */
.eram-human-operator-btn {
    color: white;
    opacity: 0.8;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
}

.eram-human-operator-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.eram-human-operator-btn svg {
    fill: currentColor;
}

.eram-human-operator-section {
    padding: 12px 16px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.eram-human-operator-main-btn {
    background: #25D366;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
    width: 100%;
    justify-content: center;
}

.eram-human-operator-main-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.eram-human-operator-main-btn svg {
    fill: currentColor;
    transition: transform 0.3s ease;
}

.eram-human-operator-main-btn:hover svg {
    transform: scale(1.1);
}

/* استایل‌های مخصوص حالت هوش مصنوعی */
.eram-chat-box[data-mode="ai"] .eram-chat-header {
    background: #075E54;
}

.eram-chat-box[data-mode="ai"] .eram-chat-send-btn {
    background: #075E54;
}

.eram-chat-box[data-mode="ai"] .eram-chat-send-btn:hover {
    background: #054a42;
}

.eram-chat-box[data-mode="ai"] .eram-chat-input:focus {
    border-color: #075E54;
    box-shadow: 0 0 0 2px rgba(7, 94, 84, 0.1);
}

/* استایل‌های اینپوت شماره تماس */
.eram-phone-input-container {
    background: white;
    border-radius: 7.5px;
    padding: 15px;
    margin: 8px 0;
    box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
    border: 1px solid #e0e0e0;
}

.eram-phone-input-message p {
    margin: 0 0 12px 0;
    color: #111B21;
    font-size: 14px;
    line-height: 1.4;
}

.eram-phone-input-form {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.eram-phone-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.eram-phone-input:focus {
    border-color: #075E54;
    box-shadow: 0 0 0 2px rgba(7, 94, 84, 0.1);
}

.eram-phone-submit-btn {
    background: #075E54;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.eram-phone-submit-btn:hover {
    background: #054a42;
}

.eram-phone-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.eram-phone-input-note {
    text-align: center;
}

.eram-phone-input-note small {
    color: #667781;
    font-size: 12px;
    line-height: 1.3;
}

/* استایل‌های سیستم پریمیوم */
.eram-premium-container {
    position: relative;
    margin: 8px 0;
}

.eram-premium-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 7.5px;
    backdrop-filter: blur(2px);
    z-index: 1;
}

.eram-premium-modal {
    position: relative;
    background: white;
    border-radius: 7.5px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
    z-index: 2;
}

.eram-premium-header {
    text-align: center;
    margin-bottom: 20px;
}

.eram-premium-header h3 {
    margin: 0 0 8px 0;
    color: #111B21;
    font-size: 18px;
    font-weight: 600;
}

.eram-premium-header p {
    margin: 0;
    color: #667781;
    font-size: 14px;
    line-height: 1.4;
}

.eram-premium-form {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.eram-premium-phone-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.eram-premium-phone-input:focus {
    border-color: #075E54;
    box-shadow: 0 0 0 3px rgba(7, 94, 84, 0.1);
}

.eram-premium-verify-btn {
    background: linear-gradient(135deg, #075E54, #054a42);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(7, 94, 84, 0.3);
}

.eram-premium-verify-btn:hover {
    background: linear-gradient(135deg, #054a42, #033a33);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(7, 94, 84, 0.4);
}

.eram-premium-verify-btn:active {
    transform: translateY(0);
}

.eram-premium-footer {
    text-align: center;
}

.eram-premium-note {
    margin: 0;
    color: #667781;
    font-size: 12px;
    line-height: 1.3;
}

/* استایل‌های پیام پریمیوم */
.eram-premium-message {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 7.5px;
    padding: 20px;
    margin: 8px 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.eram-premium-message h4 {
    margin: 0 0 10px 0;
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.eram-premium-message p {
    margin: 0 0 10px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.4;
}

.eram-premium-message p:last-child {
    margin-bottom: 0;
}

/* استایل انتخاب پشتیبان‌ها در حالت چند پشتیبان */
.eram-support-selection {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 8px 0;
}

.eram-support-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.12);
}

.eram-support-card-inactive {
    filter: grayscale(1);
    opacity: 0.6;
}

.eram-support-card:hover {
    background: #f0f2f5;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.eram-support-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eram-support-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.eram-support-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.eram-support-name {
    font-size: 14px;
    font-weight: 600;
    color: #111B21;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.eram-support-department {
    font-size: 12px;
    color: #667781;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

/* استایل متمایز برای کارت هوش مصنوعی در لیست پشتیبان‌ها */
.eram-support-card-ai {
    background: linear-gradient(135deg, #e0f2ff 0%, #ffffff 60%);
    border: 1px solid rgba(0, 123, 255, 0.25);
}

.eram-support-avatar-ai {
    background: #007bff;
    color: #fff;
}

.eram-support-ai-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 18px;
}

@media (max-width: 480px) {
    .eram-support-card {
        padding: 8px;
    }

    .eram-support-name {
        font-size: 13px;
    }

    .eram-support-department {
        font-size: 11px;
    }
}

/* دکمه‌های انتخاب کانال چت برای پشتیبان دارای پنل آنلاین */
.eram-support-channel-buttons {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin: 8px 0 4px;
}

.eram-channel-btn {
    flex: 1;
    border-radius: 999px;
    border: none;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.eram-channel-btn-whatsapp {
    background: #25D366;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.35);
}

.eram-channel-btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-1px);
}

.eram-channel-btn-online {
    background: #ffffff;
    color: #075E54;
    border: 1px solid rgba(7, 94, 84, 0.35);
    box-shadow: 0 2px 6px rgba(7, 94, 84, 0.15);
}

.eram-channel-btn-online:hover {
    background: #f0f2f5;
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .eram-support-channel-buttons {
        flex-direction: column;
    }
}
/* وضعیت آنلاین/آفلاین در پنل پشتیبانی */
.watyar-support-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
    margin-right: 6px;
    cursor: pointer;              /* موس به حالت pointer */
    position: relative;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.02);
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

/* آنلاین: سبز */
.watyar-support-status-dot--online {
    background-color: #28a745;
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.25);
}

/* آفلاین: خاکستری */
.watyar-support-status-dot--offline {
    background-color: #adb5bd;
    box-shadow: 0 0 0 4px rgba(173, 181, 189, 0.25);
}

/* افکت هاور برای UX بهتر */
.watyar-support-status-dot:hover {
    transform: scale(1.05);
    box-shadow: 0 0 0 6px rgba(0,0,0,0.04);
}

/* متن وضعیت کنار دایره */
.watyar-support-status-text {
    font-size: 12px;
    color: #495057;
}
