/* IRRES Native Floating Live Chat Widget */
.irres-chat-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9998;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.45);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.irres-chat-fab:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(2, 132, 199, 0.55);
}

.irres-chat-fab .chat-badge {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #fff;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.irres-chat-window {
    position: fixed;
    bottom: 86px;
    right: 24px;
    width: 360px;
    max-width: calc(100vw - 40px);
    height: 520px;
    max-height: calc(100vh - 120px);
    background: var(--bg-card, #1e293b);
    border: 1px solid var(--border-color, #334155);
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    direction: rtl;
    text-align: right;
}

.irres-chat-window.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.irres-chat-header {
    background: linear-gradient(135deg, #0284c7, #0f172a);
    color: #fff;
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.irres-chat-header h4 {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 800;
}

.irres-chat-header small {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 2px;
}

.irres-chat-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.irres-chat-close:hover {
    background: rgba(239, 68, 68, 0.6);
}

.irres-chat-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--bg-surface, #0f172a);
    font-size: 0.88rem;
}

.chat-bubble {
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 85%;
    line-height: 1.5;
}

.chat-bubble.bot {
    background: var(--bg-card, #1e293b);
    color: var(--text-primary, #f8fafc);
    border: 1px solid var(--border-color, #334155);
    align-self: flex-start;
    border-top-right-radius: 4px;
}

.chat-bubble.user {
    background: #0284c7;
    color: #fff;
    align-self: flex-end;
    border-top-left-radius: 4px;
}

.chat-chips {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
}

.chat-chip {
    background: rgba(2, 132, 199, 0.12);
    border: 1px solid rgba(2, 132, 199, 0.3);
    color: #38bdf8;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-align: right;
    transition: all 0.2s;
}

.chat-chip:hover {
    background: rgba(2, 132, 199, 0.25);
    transform: translateX(-3px);
}

.irres-chat-footer {
    padding: 12px 14px;
    background: var(--bg-card, #1e293b);
    border-top: 1px solid var(--border-color, #334155);
    display: flex;
    gap: 8px;
}

.irres-chat-input {
    flex: 1;
    background: var(--bg-surface, #0f172a);
    border: 1px solid var(--border-color, #334155);
    color: var(--text-primary, #f8fafc);
    padding: 8px 12px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
}

.irres-chat-input:focus {
    border-color: #0284c7;
}

.irres-chat-send {
    background: #0284c7;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.irres-chat-send:hover {
    background: #0369a1;
}
