#uniburma-chatbot-container {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 99999;
    font-family: Arial, sans-serif;
}

#uniburma-chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: var(--uniburma-chatbot-primary, #2271b1);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

#uniburma-chatbot-window {
    display: none;
    width: 360px;
    max-width: calc(100vw - 40px);
    height: 520px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    margin-bottom: 12px;
}

#uniburma-chatbot-container.open #uniburma-chatbot-window {
    display: flex;
    flex-direction: column;
}

#uniburma-chatbot-header {
    background: var(--uniburma-chatbot-primary, #2271b1);
    color: #fff;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

#uniburma-chatbot-close {
    background: transparent;
    color: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

#uniburma-chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f7f9fc;
}

.uniburma-msg {
    max-width: 85%;
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    line-height: 1.4;
    clear: both;
}

.uniburma-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 12px;
    clear: both;
}

.bot-row {
    justify-content: flex-start;
}

.user-row {
    justify-content: flex-end;
}

.uniburma-avatar {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
}

.uniburma-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 1px solid #ddd;
    background: #fff;
}

.uniburma-msg {
    max-width: 80%;
    margin-bottom: 0;
    padding: 10px 12px;
    border-radius: 12px;
    line-height: 1.4;
}

.uniburma-msg.bot {
    background: #e9f3ff;
    float: left;
}

.uniburma-msg.user {
    background: #d9fdd3;
    float: right;
}

#uniburma-chatbot-options {
    padding: 12px;
    border-top: 1px solid #eee;
    background: #fff;
}

.uniburma-option-btn,
#uniburma-save-name,
#uniburma-send-message,
.uniburma-secondary-btn {
    display: block;
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 14px;
}

.uniburma-option-btn,
#uniburma-save-name,
#uniburma-send-message {
    background: var(--uniburma-chatbot-primary, #2271b1);
    color: #fff;
}

.uniburma-secondary-btn {
    background: #e5e7eb;
    color: #111;
}

.uniburma-input-wrap input,
.uniburma-form-wrap input,
.uniburma-form-wrap textarea {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 8px;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 14px;
}

.uniburma-form-wrap textarea {
    min-height: 90px;
    resize: vertical;
}

.uniburma-typing {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    min-width: 52px;
}

.uniburma-typing span {
    width: 8px;
    height: 8px;
    background: #7aa7d9;
    border-radius: 50%;
    display: inline-block;
    animation: uniburmaTyping 1.2s infinite ease-in-out;
}

.uniburma-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.uniburma-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes uniburmaTyping {
    0%, 80%, 100% {
        transform: scale(0.7);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 480px) {
    #uniburma-chatbot-container {
        right: 12px;
        bottom: 12px;
    }

    #uniburma-chatbot-window {
        width: calc(100vw - 24px);
        height: 72vh;
    }
}

