/* Aura cares Chatbot Styles */
.chatbot-container {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 350px;
    height: 480px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    z-index: 10001;
    overflow: hidden;
    border: 1px solid #eee;
    font-family: inherit;
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.chatbot-container.active {
    opacity: 1;
    transform: translateY(0);
}

.chatbot-header {
    background: #4d231c;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chatbot-title { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.bot-avatar {
    width: 30px;
    height: 30px;
    background: #d4a017;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.chatbot-close { cursor: pointer; opacity: 0.8; font-size: 1.2rem; }
.chatbot-messages { 
    flex: 1; 
    padding: 15px; 
    overflow-y: auto; 
    background: #fdf8f6; 
    display: flex; 
    flex-direction: column; 
    gap: 10px;
    scrollbar-width: thin;
    scrollbar-color: #d4a017 #fdf8f6;
}
.chatbot-messages::-webkit-scrollbar { width: 6px; }
.chatbot-messages::-webkit-scrollbar-thumb { background: #d4a017; border-radius: 10px; }

.message { padding: 10px 15px; border-radius: 15px; font-size: 0.9rem; max-width: 85%; line-height: 1.4; position: relative; }
.message.bot { background: #fff; color: #4d231c; align-self: flex-start; border: 1px solid #eee; border-bottom-left-radius: 2px; }
.message.user { background: #d4a017; color: #fff; align-self: flex-end; border-bottom-right-radius: 2px; box-shadow: 0 4px 10px rgba(212, 160, 23, 0.2); }

/* Protocol Card Styles */
.protocol-card { background: #fdfdfd; border-radius: 12px; border: 1px solid #eee; border-left: 4px solid #d4a017; padding: 12px; margin: 8px 0; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.protocol-card.mini { cursor: pointer; padding: 8px 12px; border-left-width: 2px; transition: all 0.2s; }
.protocol-card.mini:hover { border-left-width: 4px; background: #fff; transform: translateX(5px); box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.protocol-card strong { color: #4d231c; display: block; margin-bottom: 5px; font-size: 0.95rem; }
.protocol-card p { margin-bottom: 10px; color: #666; font-size: 0.85rem; line-height: 1.5; }

.bot-start-list { list-style: none; margin-top: 10px; }
.bot-start-list li { background: #f0f0f0; margin-bottom: 8px; padding: 10px 15px; border-radius: 8px; cursor: pointer; transition: all 0.3s; font-size: 0.85rem; border-left: 3px solid #d4a017; font-weight: 500; }
.bot-start-list li:hover { background: #d4a017; color: #fff; transform: translateX(5px); }

.chatbot-suggestions { 
    padding: 10px 15px; 
    display: flex; 
    gap: 8px; 
    flex-wrap: wrap; 
    border-top: 1px solid #f0f0f0; 
    background: #fff;
    max-height: 100px;
    overflow-y: auto;
}

.suggestion-chip { 
    background: #fff; 
    border: 1px solid #d4a017; 
    color: #4d231c; 
    padding: 6px 14px; 
    border-radius: 20px; 
    font-size: 0.8rem; 
    cursor: pointer; 
    transition: all 0.3s; 
    white-space: nowrap;
    font-weight: 600;
}

.suggestion-chip:hover { 
    background: #d4a017; 
    color: #fff; 
}

.business-card { background: #fff; border: 1px solid #d4a017; border-radius: 15px; padding: 15px; position: relative; overflow: hidden; }
.business-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, #4d231c, #d4a017); }
.business-card strong { font-size: 1.1rem; color: #4d231c; margin-bottom: 10px; display: block; }
.business-card ul { padding-left: 20px; list-style-type: decimal; font-size: 0.85rem; color: #444; margin: 10px 0; }
.business-card li { margin-bottom: 8px; }

.badge { background: #4d231c; color: #fff; padding: 2px 8px; border-radius: 4px; font-family: monospace; font-weight: bold; letter-spacing: 1px; margin-left: 5px; }

.upsell-list { list-style: none; padding: 0; margin: 10px 0; display: flex; flex-direction: column; gap: 5px; }
.upsell-list li { font-size: 0.85rem; display: flex; align-items: center; gap: 8px; color: #4d231c; font-weight: 500; }
.upsell-list li i { color: #d4a017; }

.protocol-cta { margin-top: 15px; display: flex; flex-wrap: wrap; gap: 8px; }
.protocol-cta small { width: 100%; color: #d4a017; font-weight: 700; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.5px; }
.chat-cta { 
    background: #d4a017; 
    color: #fff; 
    padding: 10px 16px; 
    border-radius: 8px; 
    font-size: 0.75rem; 
    border: none; 
    cursor: pointer; 
    font-weight: 600;
    transition: all 0.3s;
}
.chat-cta.outline { background: transparent; border: 1px solid #d4a017; color: #d4a017; margin-bottom: 5px; }
.chat-cta.outline:hover { background: #d4a017; color: #fff; }
.chat-cta.alt { background: #25d366; }
.chat-cta:hover { transform: scale(1.05); }

/* Typing Indicator */
.typing-indicator { display: flex; gap: 4px; padding: 12px 15px !important; }
.typing-indicator span { width: 6px; height: 6px; background: #d4a017; border-radius: 50%; opacity: 0.4; animation: typing 1s infinite alternate; }
.typing-indicator span:nth-child(2) { animation-delay: 0.3s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.6s; }

@keyframes typing {
    from { transform: scale(1); opacity: 0.4; }
    to { transform: scale(1.3); opacity: 1; }
}

.chatbot-input { padding: 12px 15px; display: flex; gap: 10px; border-top: 1px solid #eee; background: #fff; align-items: center; }
.chatbot-input input { flex: 1; border: 1px solid #f0f0f0; background: #f9f9f9; padding: 10px 15px; border-radius: 25px; outline: none; font-size: 0.85rem; }
.chatbot-input input:focus { border-color: #d4a017; }
.chatbot-input button { background: #d4a017; color: #fff; border: none; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.3s; }
.chatbot-input button:hover { background: #4d231c; }

.chatbot-trigger {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #4d231c;
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(77, 35, 28, 0.3);
    z-index: 10000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.chatbot-trigger:hover { transform: scale(1.05); background: #d4a017; }
.chatbot-trigger i { font-size: 1.4rem; }
.trigger-text { font-weight: 700; font-size: 0.9rem; }

@media (max-width: 480px) {
    .chatbot-container { width: 92vw; right: 4vw; bottom: 85px; height: 420px; }
    .trigger-text { display: none; }
    .chatbot-trigger { padding: 15px; border-radius: 50%; }
}

/* Clinical Protocol Enhancements */
.pros-cons-grid {
    display: grid;
    gap: 10px;
    margin: 12px 0;
    padding: 10px;
    background: rgba(0,0,0,0.03);
    border-radius: 8px;
    border-left: 3px solid #d4a017;
}

.pro-item, .con-item {
    font-size: 0.82rem;
    line-height: 1.4;
}

.pro-item strong { color: #2e7d32; }
.con-item strong { color: #c62828; }

.bundle-label {
    font-size: 0.85rem;
    font-weight: bold;
    margin-top: 15px;
    color: #4d231c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
