/* Chatbot Widget Styles */
[x-cloak] {
    display: none !important;
}

.chatbot-button {
    position: fixed;
    bottom: 20px;
    width: 60px;
    height: 60px;
    background: #FF6B35;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    z-index: 9998;
}

.chatbot-button.left-4 {
    left: 20px;
}

.chatbot-button.right-4 {
    right: 20px;
}

.chatbot-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.chatbot-window {
    position: fixed;
    bottom: 90px;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 600px;
    max-height: calc(100vh - 120px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 9999;
}

.chatbot-window.left-4 {
    left: 20px;
}

.chatbot-window.right-4 {
    right: 20px;
}

.chatbot-header {
    background: #FF6B35;
    color: white;
    padding: 16px 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #F7F7F7;
}

.chatbot-message {
    margin-bottom: 12px;
    display: flex;
}

.chatbot-message-bot {
    justify-content: flex-start;
}

.chatbot-message-user {
    justify-content: flex-end;
}

.chatbot-message-content {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 18px;
    word-wrap: break-word;
}

.chatbot-message-bot .chatbot-message-content {
    background: white;
    color: #333;
}

.chatbot-message-user .chatbot-message-content {
    background: #FF6B35;
    color: white;
}

.chatbot-typing-indicator {
    display: inline-flex;
    gap: 4px;
}

.chatbot-typing-indicator span {
    width: 8px;
    height: 8px;
    background: #999;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

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

.chatbot-typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

.chatbot-privacy {
    padding: 8px 16px;
    background: #FFF9E6;
    font-size: 11px;
    color: #666;
    border-top: 1px solid #E5E5E5;
}

.chatbot-privacy a {
    color: #FF6B35;
}

.chatbot-form {
    padding: 16px;
    border-top: 1px solid #E5E5E5;
    background: white;
    border-radius: 0 0 12px 12px;
    display: flex;
    gap: 8px;
    position: relative;
}

.chatbot-input {
    flex: 1;
    border: 1px solid #DDD;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    resize: none;
    font-family: inherit;
}

.chatbot-input:focus {
    outline: none;
    border-color: #FF6B35;
}

.chatbot-char-count {
    position: absolute;
    bottom: 20px;
    right: 70px;
    font-size: 10px;
    color: #999;
}

.chatbot-send-button {
    width: 40px;
    height: 40px;
    background: #FF6B35;
    border: none;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.chatbot-send-button:hover:not(:disabled) {
    background: #E55A2B;
}

.chatbot-send-button:disabled {
    background: #CCC;
    cursor: not-allowed;
}

.chatbot-error {
    position: absolute;
    top: -40px;
    left: 16px;
    right: 16px;
    background: #FF4444;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
}

@media (max-width: 640px) {
    .chatbot-window {
        width: calc(100vw - 20px);
        height: calc(100vh - 100px);
        bottom: 10px;
        left: 10px !important;
        right: 10px !important;
    }

    .chatbot-button {
        bottom: 10px;
    }

    .chatbot-button.left-4 {
        left: 10px;
    }

    .chatbot-button.right-4 {
        right: 10px;
    }
}
