/* Reset and Globals */
body {
    background-color: #f5f5f5;
    font-family: 'Inter', sans-serif;
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.chatHeader {
    background: white;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #f0f0f0;
    height: 60px;
}

.iconButton {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.iconButton:active {
    background-color: #f0f0f0;
}

.storeAvatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #f0f0f0;
    margin-right: 4px;
}

.headerInfo {
    flex: 1;
    overflow: hidden;
}

.storeName {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.storeStatus {
    font-size: 11px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Chat Area */
.chatContainer {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.timestamp {
    text-align: center;
    font-size: 11px;
    color: #999;
    margin-bottom: 8px;
}

.botRow {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.botAvatar {
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.botAvatar svg {
    width: 18px;
    height: 18px;
}

.messageGroup {
    max-width: 85%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.messageBubble {
    background: white;
    padding: 12px 16px;
    border-radius: 12px;
    border-top-left-radius: 2px;
    font-size: 14px;
    line-height: 1.4;
    color: #000;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.userRow {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
    padding-right: 8px;
}

.userBubble {
    background: #fe2c55;
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    border-top-right-radius: 2px;
    font-size: 14px;
    line-height: 1.4;
    max-width: 85%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-right: 8px;
}

.userBubble::before {
    content: '';
    position: absolute;
    right: -6px;
    top: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 10px 10px;
    border-color: transparent transparent transparent #fe2c55;
}

/* FAQ Card */
.faqCard {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.faqHeader {
    padding: 12px 16px;
    font-weight: 700;
    font-size: 14px;
    color: #000;
    border-bottom: 1px solid #f0f0f0;
}

.faqList {
    display: flex;
    flex-direction: column;
}

.faqItem {
    background: white;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    /* Separator */
    padding: 14px 16px;
    /* Mais altura */
    text-align: left;
    font-size: 14px;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    width: 100%;
}

.faqItem:last-child {
    border-bottom: none;
}

.faqItem:active {
    background: #f9f9f9;
}

.sentBy {
    font-size: 11px;
    color: #ccc;
    margin-top: 4px;
}

/* Typing Animation */
.typingBubble {
    background: white;
    padding: 12px 16px;
    border-radius: 12px;
    border-top-left-radius: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.typingDot {
    width: 6px;
    height: 6px;
    background: #ccc;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.typingDot:nth-child(1) {
    animation-delay: -0.32s;
}

.typingDot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* Quick Actions */
.quickActions {
    padding: 12px 16px 82px 16px;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.quickActions::-webkit-scrollbar {
    display: none;
}

.quickBtn {
    background: #e8e8e8;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #000;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s;
}

.quickBtn:active {
    background: #dcdcdc;
}

/* Input Area */
.chatInputArea {
    background: white;
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
}

.chatInput {
    flex: 1;
    background: #f5f5f5;
    border: none;
    padding: 10px 16px;
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    height: 44px;
}

.chatInput::placeholder {
    color: #999;
}

.hidden {
    display: none !important;
}