.concha-chat-widget-wrapper {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.concha-chat-fab {
    background-color: #fff; /* Default, can be styled via Elementor */
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.concha-chat-fab:hover {
    transform: scale(1.05);
}

.concha-chat-fab img {
    border-radius: 50%;
    object-fit: cover;
}

.concha-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    background: #f4f7f6;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.concha-chat-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    color: #fff;
}

.concha-chat-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.concha-chat-header-avatar {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.concha-chat-header-avatar img {
    width: 100%;
    height: auto;
}

.concha-chat-header h4 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.concha-chat-header p {
    margin: 0;
    font-size: 13px;
    opacity: 0.9;
}

.concha-chat-close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
}

.concha-chat-close-btn:hover {
    opacity: 1;
}

.concha-chat-messages {
    height: 350px;
    overflow-y: auto;
    padding: 20px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.concha-msg {
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    max-width: 85%;
    word-wrap: break-word;
}

.concha-msg.bot {
    background: #f1f3f4;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.concha-msg.user {
    background: #000; /* Fallback, changed via Elementor */
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.concha-faq-section {
    margin-top: 5px;
}

.concha-faq-title {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.concha-faq-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.concha-faq-btn {
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 15px;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    font-weight: 500;
    transition: opacity 0.2s;
}

.concha-faq-btn:hover {
    opacity: 0.9;
}

.concha-chat-input-area {
    display: flex;
    padding: 15px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
    gap: 10px;
}

.concha-chat-input-area input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

.concha-chat-input-area input:focus {
    border-color: #aaa;
}

.concha-chat-input-area button {
    border: none;
    border-radius: 6px;
    width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.2s;
}

.concha-chat-input-area button:hover {
    opacity: 0.9;
}