#aaa-chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

#aaa-chat-button {
    width: 62px;
    height: 62px;
    background: #4a6cf7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(74,108,247,0.5);
    transition: transform 0.2s, opacity 0.2s;
    animation: aaa-pulse 2.5s infinite;
}

#aaa-chat-button.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
    animation: none;
}

@keyframes aaa-pulse {
    0%,100% { box-shadow: 0 4px 20px rgba(74,108,247,0.5); }
    50%      { box-shadow: 0 4px 28px rgba(74,108,247,0.8), 0 0 0 8px rgba(74,108,247,0.1); }
}

#aaa-chat-button:hover {
    transform: scale(1.08);
    animation: none;
}

#aaa-chat-box {
    display: none;
    flex-direction: column;
    width: 340px;
    height: 460px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    overflow: hidden;
}

#aaa-chat-box.open {
    display: flex;
}

#aaa-chat-header {
    background: #4a6cf7;
    color: white;
    padding: 14px 16px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-weight: bold;
    font-size: 15px;
}

#aaa-chat-header span {
    flex: 1;
}

#aaa-chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    margin-left: auto;
}

#aaa-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f7f7f7;
}

.aaa-msg {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.aaa-msg.bot {
    background: #fff;
    color: #222;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.aaa-msg.user {
    background: #4a6cf7;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.aaa-msg.typing {
    background: #fff;
    color: #999;
    align-self: flex-start;
    font-style: italic;
    font-size: 13px;
}

#aaa-chat-input-area {
    display: flex;
    padding: 10px;
    border-top: 1px solid #eee;
    gap: 8px;
    background: #fff;
}

#aaa-chat-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 14px;
    outline: none;
    transition: border 0.2s;
}

#aaa-chat-send {
    background: #4a6cf7;
    color: white;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px,1px,1px,1px);
}
