/* ==========================================================================
   WISH AURA WIDGET — styles
   ========================================================================== */

/* Scoped reset — host page ke global CSS (dark theme, !important rules,
   custom box-sizing, etc.) widget ke andar kabhi bleed na kare isliye
   har text/box property yahin se force ho rahi hai. */
#receptionist-widget, #receptionist-widget * {
    box-sizing: border-box !important;
    color: #1a1a1a !important;
    text-shadow: none !important;
    font-family: 'Segoe UI', system-ui, sans-serif !important;
}

#receptionist-widget {
    position: fixed !important; bottom: 20px; right: 20px;
    width: 300px; background: #fff !important; border-radius: 15px;
    z-index: 999999; box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border: 1px solid #ddd; overflow: hidden;
}
.widget-header {
    background: #1a1a1a; color: #fff; padding: 10px 12px; cursor: move;
    display: flex; justify-content: space-between; align-items: center;
}
.widget-header-left { display: flex; align-items: center; gap: 8px; }
.widget-header-title { font-size: 12px; font-weight: bold; }
#lang-switch-btn {
    background: rgba(255,255,255,.12); border: none; color: #fff;
    font-size: 10.5px; padding: 3px 8px; border-radius: 10px; cursor: pointer;
}
#minimize-btn { background: none; border: none; color: #fff; cursor: pointer; font-size: 14px; }
#widget-content { padding: 10px; }

/* FLOATING BUBBLE (minimized state) */
#wish-aura-bubble {
    position: fixed !important; bottom: 20px; right: 20px;
    width: 60px; height: 60px; border-radius: 50%;
    background: linear-gradient(135deg, #25D366, #1DA851);
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
    display: none; align-items: center; justify-content: center;
    cursor: pointer; z-index: 999999;
    animation: rc-bubble-pulse 2.4s ease infinite;
}
#wish-aura-bubble.show { display: flex; }
#wish-aura-bubble svg { width: 30px; height: 30px; fill: #fff; }
@keyframes rc-bubble-pulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(0,0,0,.35); }
    50%      { box-shadow: 0 8px 24px rgba(0,0,0,.35), 0 0 0 8px rgba(37,211,102,.25); }
}

/* VIDEO */
#welcome-video { width: 100%; height: 130px; background: #000; border-radius: 8px; object-fit: contain; display: block; }

/* CHAT AREA */
#chat-box { height: 190px; overflow-y: auto; background: #f9f9f9; padding: 8px; font-size: 12px; margin: 8px 0; border: 1px solid #eee; border-radius: 8px; display: flex; flex-direction: column; gap: 6px; }
.msg-bot, .msg-user { padding: 6px 10px; border-radius: 10px; line-height: 1.4; max-width: 88%; animation: rc-fadein .2s ease; word-break: break-word; }
@keyframes rc-fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.msg-bot { background: #fff; border: 1px solid #eee; align-self: flex-start; }
.msg-user { background: #ff8c00; color: #fff; align-self: flex-end; }
.msg-offer { background: linear-gradient(135deg,#fff3e0,#fff); border: 2px dashed #ff8c00; align-self: stretch; max-width: 100%; font-weight: 600; text-align: center; padding: 10px 12px; line-height: 1.6; border-radius: 12px; box-shadow: 0 2px 10px rgba(255,140,0,.18); }
.msg-typing { align-self: flex-start; display: flex; gap: 3px; padding: 8px 10px; background: #fff; border: 1px solid #eee; border-radius: 10px; }
.msg-typing span { width: 5px; height: 5px; border-radius: 50%; background: #aaa; display: inline-block; animation: rc-blink 1s infinite; }
.msg-typing span:nth-child(2) { animation-delay: .15s; }
.msg-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes rc-blink { 0%,80%,100% { opacity: .25; } 40% { opacity: 1; } }

/* CHIPS */
#chip-box { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.chip { padding: 5px 10px; background: #fff; border: 1px solid #ddd; border-radius: 20px; font-size: 11px; cursor: pointer; transition: all .15s; }
.chip:hover { background: #ff8c00; color: #fff; border-color: #ff8c00; transform: translateY(-1px); }
.chip.whatsapp-chip { background: #25D366 !important; color: #fff !important; border: none; font-weight: 700; padding: 7px 14px; }
.chip.whatsapp-chip:hover { background: #1DA851 !important; transform: translateY(-1px); }
#send-btn:disabled, #send-btn.busy { opacity: .6; cursor: not-allowed; }

/* LANGUAGE PICKER (grid of language chips) */
#lang-box { display: none; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 6px; }
#lang-box.show { display: grid; }
.lang-btn { padding: 9px 6px; background: #fff; border: 1.5px solid #ddd; color: #1a1a1a; border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer; transition: all .15s; display: flex; align-items: center; justify-content: center; gap: 5px; }
.lang-btn:hover { border-color: #ff8c00; background: #fff7ee; }

/* MAIN MENU */
#menu-box { display: none; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 6px; }
#menu-box.show { display: grid; }
.menu-btn { padding: 9px 6px; background: #fff; border: 1.5px solid #ddd; color: #1a1a1a; border-radius: 8px; font-size: 11.5px; font-weight: 700; cursor: pointer; transition: all .15s; }
.menu-btn:hover { border-color: #ff8c00; background: #fff7ee; }
.menu-btn.wide { grid-column: 1 / -1; }
.menu-btn.help { background: #28a745; color: #fff; border: none; grid-column: 1 / -1; }
.menu-btn.join { background: #ff8c00 !important; color: #fff !important; border: none; font-size: 12.5px; }
.menu-btn.join:hover { background: #e67c00 !important; }

/* CATEGORY SEARCH PANEL */
#search-panel { display: none; margin-bottom: 6px; }
#search-panel.show { display: block; }
#search-back { background: none; border: none; color: #ff8c00; font-size: 11px; font-weight: 700; cursor: pointer; padding: 0 0 6px; }
#search-hint { font-size: 10.5px; color: #888; margin-bottom: 4px; }

/* TEXT INPUT */
.input-row { display: flex; gap: 6px; margin-bottom: 6px; }
#chat-input { flex: 1; padding: 8px 10px; border: 1px solid #ddd; border-radius: 20px; font-size: 12px; outline: none; }
#chat-input:focus { border-color: #ff8c00; }
#send-btn { padding: 0 14px; height: 34px; border-radius: 20px; border: none; background: #ff8c00; color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; flex-shrink: 0; }

/* CONTROLS */
.controls { margin-top: 5px; }
#unmute-btn { width: 100%; padding: 6px; background: #ff9800; color: #fff; border: none; border-radius: 4px; font-size: 11px; cursor: pointer; }

/* MOBILE */
@media (max-width: 420px) {
    #receptionist-widget { width: calc(100vw - 24px); right: 12px; bottom: 12px; }
}