#unic-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}


#unic-chat-toggle {
    background: #f58220;
    color: #fff;
    padding: 14px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}


#unic-chat-box {
    display: none;
    width: 340px;
    height: 480px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    overflow: hidden;
    margin-bottom: 10px;
}


#unic-chat-header {
    background: linear-gradient(135deg, #0b2e63, #1c4c9c);
    color: #fff;
    padding: 16px;
    font-weight: 600;
    font-size: 16px;
}


#unic-chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 14px;
    background: #f7f9fc;
    display: flex;
    flex-direction: column;
    gap: 8px;
}


.user-msg {
    align-self: flex-end;
    background: #f58220;
    color: #fff;
    padding: 8px 12px;
    border-radius: 14px 14px 4px 14px;
    max-width: 75%;
    font-size: 13px;
}

.bot-msg {
    align-self: flex-start;
    background: #e9eef5;
    color: #333;
    padding: 8px 12px;
    border-radius: 14px 14px 14px 4px;
    max-width: 75%;
    font-size: 13px;
}

.user-msg, .bot-msg {
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.bot-msg, .user-msg {
    max-width: 75%;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.bot-msg a {
    color: #f58220;
    text-decoration: underline;
    word-break: break-all;
}

chat-link {
    color: #f58220;
    text-decoration: underline;
    word-break: break-all;
    font-size: 13px;
}

.chat-link:hover {
    color: #e06f10;
}

.bot-msg a {
    display: inline-block;
    margin-top: 6px;
}

#unic-chat-input {
    display: flex;
    border-top: 1px solid #eee;
    background: #fff;
}

#unic-chat-input input {
    flex: 1;
    padding: 12px;
    border: none;
    outline: none;
    font-size: 14px;
}



#unic-chat-send {
    background: #f58220;
    border: none;
    color: #fff;
    padding: 0 18px;
    cursor: pointer;
    font-weight: 500;
}

#unic-chat-send:hover {
    background: #e06f10;
}


#unic-chat-footer {
    display: flex;
    justify-content: center;
    padding: 10px;
    border-top: 1px solid #eee;
    background: #fff;
}

#unic-chat-end {
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 12px;
}

#unic-chat-end:hover {
    color: #f58220;
    text-decoration: underline;
}

.typing-indicator {
    display: inline-flex;
    gap: 4px;
    padding: 8px 12px;
    background: #e9eef5;
    border-radius: 14px 14px 14px 4px;
    width: fit-content;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #888;
    border-radius: 50%;
    animation: blink 1.4s infinite both;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
    0%, 80%, 100% { opacity: 0.2; }
    40% { opacity: 1; }
}