.aisg-help-chat-container {
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.aisg-help-chat-messages {
    width: 100%;
    max-height: 500px;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    min-height: 160px;
}

/* Transparent scrollbar background */
.aisg-help-chat-messages::-webkit-scrollbar {
    background: transparent;
}

.aisg-help-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.aisg-help-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.aisg-help-chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.aisg-help-chat-welcome {
    color: #9A9A9A;
    font-size: 14px;
    line-height: 1.6;
    padding: 0;
    margin: 0 0 10px 0;
    text-align: left;
}

.aisg-help-chat-welcome ul {
    text-align: left;
    display: block;
    margin: 10px 0 0 0;
    padding-left: 18px;
}

.aisg-help-chat-welcome li {
    margin: 6px 0;
}

.aisg-help-chat-message {
    margin: 10px 0;
    display: flex;
    animation: fadeIn 0.3s ease-in;
}

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

.aisg-help-chat-message--user {
    justify-content: flex-end;
}

.aisg-help-chat-message--assistant {
    justify-content: flex-start;
}

.aisg-help-chat-message-content {
    max-width: 75%;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
}

.aisg-help-chat-message--user .aisg-help-chat-message-content {
    background: rgba(255, 235, 221, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 235, 221, 0.3);
}

.aisg-help-chat-message--assistant .aisg-help-chat-message-content {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.aisg-help-chat-message-content h1,
.aisg-help-chat-message-content h2,
.aisg-help-chat-message-content h3 {
    color: #fff;
    margin: 12px 0 8px 0;
}

.aisg-help-chat-message-content h1 {
    font-size: 20px;
}

.aisg-help-chat-message-content h2 {
    font-size: 18px;
}

.aisg-help-chat-message-content h3 {
    font-size: 16px;
}

.aisg-help-chat-message-content ul,
.aisg-help-chat-message-content ol {
    margin: 8px 0;
    padding-left: 20px;
}

.aisg-help-chat-message-content li {
    margin: 4px 0;
}

.aisg-help-chat-message-content code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 13px;
}

.aisg-help-chat-message-content pre {
    background: rgba(0, 0, 0, 0.4);
    padding: 12px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 8px 0;
}

.aisg-help-chat-message-content pre code {
    background: transparent;
    padding: 0;
}

.aisg-help-chat-message-content a {
    color: #FFEBDD;
    text-decoration: underline;
}

.aisg-help-chat-message-content a:hover {
    color: #fff;
}

.aisg-help-chat-typing {
    opacity: 0.7;
}

.aisg-help-chat-typing-dots {
    display: inline-block;
}

.aisg-help-chat-typing-dots span {
    animation: typingDots 1.4s infinite;
    display: inline-block;
}

.aisg-help-chat-typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.aisg-help-chat-typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDots {
    0%, 60%, 100% {
        opacity: 0.3;
    }
    30% {
        opacity: 1;
    }
}

.aisg-help-chat-input-wrapper {
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
}

.aisg-help-chat-input {
    flex: 1;
    height: 40px;
    background: rgba(217, 217, 217, 0.05);
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: white;
    font-size: 14px !important;
    padding: 0 12px;
    box-sizing: border-box;
    margin-right: 10px;
}

.aisg-help-chat-input:focus {
    outline: none;
    border-color: rgba(255, 235, 221, 0.5);
}

.aisg-help-chat-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.aisg-help-chat-send {
    height: 40px;
    padding: 0 20px;
    background: white;
    border-radius: 5px;
    border: none;
    color: black;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: opacity 0.2s;
}

.aisg-help-chat-send:hover:not(:disabled) {
    opacity: 0.9;
}

.aisg-help-chat-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .aisg-help-chat-messages {
        max-height: 400px;
        padding: 0;
    }
    
    .aisg-help-chat-message-content {
        max-width: 85%;
        font-size: 13px;
        padding: 10px 12px;
    }
    
    .aisg-help-chat-input-wrapper {
        flex-direction: column;
    }
    
    .aisg-help-chat-send {
        width: 100%;
    }
}

