/* Filename: widget.css */

body {
    font-family: 'Inter', sans-serif;
}

.chat-bubble {
    animation: bubble-in 0.3s ease-out;
}

@keyframes bubble-in {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Hide scrollbar but allow scrolling */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Style for the auto-expanding textarea */
#chat-input, #offline-message {
    max-height: 100px; /* Approx 4 lines */
    transition: height 0.2s ease;
}

/* Styles for clickable option buttons (if you add them later) */
.chat-option-btn {
    padding: 0.375rem 0.75rem;
    border: 1px solid #3B82F6;
    color: #3B82F6;
    border-radius: 9999px;
    font-size: 0.875rem;
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.chat-option-btn:hover {
    background-color: #3B82F6;
    color: white;
}
.chat-option-btn:disabled {
    background-color: #E5E7EB;
    border-color: #E5E7EB;
    color: #6B7280;
    cursor: not-allowed;
}

/* --- NEW: MOBILE REFINEMENTS --- */
/* Target small screens where the widget might be edge-to-edge */
@media (max-width: 400px) {
    /* Reduce the max-width of chat bubbles to give more breathing room */
    /* The !important is needed to override Tailwind's utility classes like max-w-xs */
    .chat-bubble {
        max-width: 85% !important;
    }

    /* Reduce horizontal padding on the main message container */
    #chat-messages {
        padding-left: 0.5rem;  /* 8px */
        padding-right: 0.5rem; /* 8px */
    }
}
