@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

#aichat-widget * {
    box-sizing: border-box;
}

#aichat-widget button {
    font-family: inherit;
}

#aichat-widget input, 
#aichat-widget textarea {
    font-family: inherit;
}

#aichat-widget ::-webkit-scrollbar {
    width: 6px;
}

#aichat-widget ::-webkit-scrollbar-track {
    background: transparent;
}

#aichat-widget ::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

#aichat-widget ::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.aichat-message img {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 8px;
}

.aichat-message .message-attachment {
    display: block;
    padding: 8px 12px;
    background: rgba(0,0,0,0.05);
    border-radius: 8px;
    margin-top: 8px;
    text-decoration: none;
    color: inherit;
}

.aichat-message .message-attachment:hover {
    background: rgba(0,0,0,0.1);
}

.aichat-quick-replies {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.aichat-quick-reply {
    padding: 6px 12px;
    background: var(--aichat-primary);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.aichat-quick-reply:hover {
    opacity: 0.9;
}

.aichat-rating-box {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    padding: 10px;
    background: white;
    border-radius: 8px;
}

.aichat-rating-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #d1d5db;
    transition: color 0.2s;
}

.aichat-rating-btn:hover,
.aichat-rating-btn.active {
    color: #f59e0b;
}

.aichat-powered-by {
    text-align: center;
    padding: 8px;
    font-size: 11px;
    color: #9ca3af;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.aichat-powered-by a {
    color: #6b7280;
    text-decoration: none;
}

.aichat-powered-by a:hover {
    text-decoration: underline;
}