/* Eyewear assistant chat. Sits above the WhatsApp button (bottom-right) so the two never overlap. */
.chat-fab { position: fixed; right: 16px; bottom: 84px; z-index: 51; height: 46px; padding: 0 16px 0 6px; display: flex; align-items: center; gap: 8px; border: 1px solid rgba(201,169,110,.6); background: #0f0f10; color: #f3efe6; border-radius: 30px; box-shadow: 0 10px 28px rgba(0,0,0,.25); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
.chat-fab .ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #d4b679, #a9864f); color: #111; }
.chat-fab .ic svg { width: 22px; height: 22px; }
.chat { position: fixed; z-index: 80; right: 12px; left: 12px; bottom: 12px; max-height: min(78vh, 620px); display: flex; flex-direction: column; background: #fdfcf9; border: 1px solid #d9d2c4; box-shadow: 0 30px 80px rgba(0,0,0,.35); opacity: 0; visibility: hidden; transform: translateY(20px); transition: all .3s cubic-bezier(.2,.7,.2,1); }
.chat.open { opacity: 1; visibility: visible; transform: none; }
.chat-h, .chat-chips, .chat-f, .chat-note { flex-shrink: 0; }
.chat-h { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; background: #0f0f10; color: #f3efe6; }
.chat-h .ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #d4b679, #a9864f); color: #111; flex: none; }
.chat-h .ic svg { width: 22px; height: 22px; }
.chat-h div { flex: 1; min-width: 0; }
.chat-h b { display: block; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 1.25rem; line-height: 1.1; }
.chat-h small { display: block; font-size: .7rem; color: #aaa498; }
.chat-h .x { width: 40px; height: 40px; border: 0; background: none; color: #f3efe6; display: grid; place-items: center; }
.chat-h .x svg { width: 20px; height: 20px; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; min-height: 160px; }
.msg { max-width: 88%; padding: 10px 13px; font-size: .9rem; line-height: 1.5; overflow-wrap: anywhere; }
.msg.bot { background: #fff; border: 1px solid #e7e2d8; align-self: flex-start; }
.msg.user { background: #0f0f10; color: #fff; align-self: flex-end; }
.msg a { color: #8a6a3a; text-decoration: underline; }
.chat-wa { display: inline-block; margin-top: 4px; background: #1f7a4a; color: #fff !important; text-decoration: none !important; padding: 7px 12px; font-size: .8rem; font-weight: 600; }
.ccards { display: grid; gap: 6px; align-self: stretch; }
.ccard { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid #e7e2d8; padding: 6px; }
.ccard img { width: 54px; height: 54px; object-fit: cover; flex: none; }
.ccard b { display: block; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 1.05rem; }
.ccard small { color: #6b6760; font-size: .78rem; }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; background: #fff; border: 1px solid #e7e2d8; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #b08d57; animation: tp 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tp { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-chips { display: flex; gap: 6px; overflow-x: auto; padding: 0 12px 10px; }
.chat-chips:empty { display: none; }
.chat-chips button { flex: none; border: 1px solid #c9a96e; background: #fffbf3; color: #0f0f10; border-radius: 30px; padding: 8px 12px; font-size: .78rem; }
.chat-f { display: flex; gap: 6px; padding: 10px; border-top: 1px solid #e7e2d8; background: #fff; }
.chat-f input { flex: 1; min-width: 0; height: 44px; border: 1px solid #d9d2c4; padding: 0 12px; font-size: 16px; }
.chat-f button { width: 44px; height: 44px; border: 0; background: #0f0f10; color: #fff; display: grid; place-items: center; }
.chat-f button svg { width: 20px; height: 20px; }
.chat-note { font-size: .68rem; color: #6b6760; padding: 0 12px 10px; background: #fff; }
@media (min-width: 600px) { .chat { left: auto; width: 390px; right: 20px; bottom: 20px; } }
@media (max-width: 380px) { .chat-fab .cf-lbl { display: none; } .chat-fab { padding: 0 5px; } }
