﻿/* === Floating Chat Launcher === */
.sr-chat-launcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #0066cc;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    z-index: 9999;
}
.sr-chat-launcher-icon {
    font-size: 24px;
}

/* === Chat Window === */
.sr-chat-window {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 320px;
    max-height: 500px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
    font-family: Arial, sans-serif;
    font-size: 12px;
}
.sr-hidden {
    display: none;
}

/* Header */
.sr-chat-header {
    background-color: #0066cc;
    color: #ffffff;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sr-chat-title {
    display: flex;
    flex-direction: column;
}
.sr-chat-main-title {
    font-size: 13px;
    font-weight: bold;
}
.sr-chat-sub-title {
    font-size: 11px;
    opacity: 0.9;
}
.sr-chat-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
}

/* Messages */
.sr-chat-messages {
    padding: 8px 8px 4px 8px;
    background-color: #f4f7fb;
    overflow-y: auto;
    flex: 1;
}
.sr-msg-row {
    display: flex;
    margin-bottom: 4px;
}
.sr-msg-bot {
    justify-content: flex-start;
}
.sr-msg-user {
    justify-content: flex-end;
}
.sr-msg-bubble {
    max-width: 90%;
    padding: 6px 8px;
    border-radius: 8px;
    white-space: pre-line;
    line-height: 1.4;
}
.sr-msg-bot .sr-msg-bubble {
    background-color: #ffffff;
    border: 1px solid #dde3ee;
    color: #111827;
    border-bottom-left-radius: 2px;
}
.sr-msg-user .sr-msg-bubble {
    background-color: #0066cc;
    color: #ffffff;
    border-bottom-right-radius: 2px;
}

/* FAQ chips */
.sr-chat-faq {
    padding: 6px 8px;
    border-top: 1px solid #e0e6f2;
    background-color: #ffffff;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.sr-chip {
    border-radius: 16px;
    border: 1px solid #d0d7ea;
    background-color: #f4f7fb;
    padding: 4px 8px;
    font-size: 11px;
    cursor: pointer;
}
.sr-chip:hover {
    background-color: #e8efff;
}

/* Footer */
.sr-chat-footer {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    border-top: 1px solid #e0e6f2;
    background-color: #ffffff;
}
.sr-chat-input {
    flex: 1;
    border-radius: 20px;
    border: 1px solid #d0d7ea;
    padding: 4px 10px;
    font-size: 12px;
    outline: none;
}
.sr-chat-input:focus {
    border-color: #0066cc;
}
.sr-chat-send {
    margin-left: 6px;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    border: none;
    background-color: #0066cc;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
}
.sr-chat-send:hover {
    background-color: #0053a6;
}

/* Small screens */
@media (max-width: 480px) {
    .sr-chat-window {
        width: 95%;
        right: 2.5%;
        bottom: 70px;
    }
}
