/**
 * LuxeMart OpenRouter AI Shopping Assistant Stylesheet (Shop.app Edition)
 * Centered Floating Search Bar, Suggestions Popover, Multimodal Image Attachment & WooCommerce Cards
 */

/* ==========================================================================
   1. Centered Floating Search Pill (Shop.app Style)
   ========================================================================== */
.lx-shop-assistant-root {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99990;
  width: 540px;
  max-width: calc(100vw - 32px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  pointer-events: none;
  box-sizing: border-box;
}

.lx-shop-search-bar {
  position: relative;
  width: 100%;
  max-width: 100%;
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(226, 232, 240, 0.9);
  border-radius: 9999px;
  box-shadow: 0 14px 40px -8px rgba(15, 23, 42, 0.16), 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-sizing: border-box;
}

.lx-shop-search-bar:hover {
  border-color: #cbd5e1;
  box-shadow: 0 18px 48px -6px rgba(15, 23, 42, 0.22);
}

.lx-shop-search-bar.is-active,
.lx-shop-search-bar:focus-within {
  border-color: #10b981;
  background: #ffffff;
  box-shadow: 0 20px 50px -6px rgba(16, 185, 129, 0.24), 0 0 0 2px rgba(16, 185, 129, 0.15);
}

.lx-shop-bar-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 14px;
  width: 100%;
  box-sizing: border-box;
  min-height: 50px;
}

.lx-shop-bar-input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: #0f172a;
  font-weight: 500;
  font-family: inherit;
  padding: 8px 0;
  line-height: 1.4;
  min-width: 80px;
}

.lx-shop-bar-input::placeholder {
  color: #64748b;
  font-weight: 450;
}

.lx-shop-bar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.lx-shop-bar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  flex-shrink: 0;
}

.lx-shop-bar-img-btn,
.lx-shop-bar-voice-btn {
  background: transparent;
  color: #64748b;
}

.lx-shop-bar-img-btn:hover,
.lx-shop-bar-voice-btn:hover {
  background: #f1f5f9;
  color: #10b981;
}

/* Multilingual Voice Container & Microphone States */
.lx-ai-voice-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lx-shop-bar-voice-btn {
  position: relative;
}

.lx-shop-bar-voice-btn.is-listening {
  color: #ef4444 !important;
  background: #fef2f2 !important;
}

.lx-voice-ripple {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid #ef4444;
  opacity: 0;
  pointer-events: none;
}

.lx-shop-bar-voice-btn.is-listening .lx-voice-ripple {
  animation: lxVoicePulse 1.4s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

@keyframes lxVoicePulse {
  0% { transform: scale(0.85); opacity: 0.85; }
  100% { transform: scale(1.45); opacity: 0; }
}

/* 1-Click Voice Language Switcher Badge */
.lx-ai-lang-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 24px;
  padding: 0 6px;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  outline: none;
  line-height: 1;
  user-select: none;
  flex-shrink: 0;
}

.lx-ai-lang-pill-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.lx-ai-lang-flag {
  font-size: 11px;
  line-height: 1;
}

.lx-ai-lang-code {
  font-size: 10px;
  letter-spacing: 0.02em;
  font-family: inherit;
}

.lx-ai-lang-arrow {
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.lx-ai-lang-pill-btn.is-open .lx-ai-lang-arrow {
  transform: rotate(180deg);
}

/* Multilingual Language Popover Menu */
.lx-ai-lang-popover {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.2);
  width: 220px;
  max-height: 280px;
  overflow-y: auto;
  z-index: 10005;
  padding: 6px;
  animation: lxPopFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lx-ai-lang-pop-header {
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 4px;
}

.lx-ai-lang-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lx-ai-lang-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-size: 12.5px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}

.lx-ai-lang-item:hover {
  background: #f8fafc;
  color: #0f172a;
}

.lx-ai-lang-item.is-selected {
  background: #ecfdf5;
  color: #047857;
  font-weight: 700;
}

.lx-lang-flag {
  font-size: 14px;
}

.lx-lang-name {
  flex: 1;
}

.lx-lang-check {
  font-size: 12px;
  opacity: 0;
  color: #10b981;
}

.lx-ai-lang-item.is-selected .lx-lang-check {
  opacity: 1;
}

/* Voice Feedback Toast */
.lx-ai-voice-toast {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
  white-space: nowrap;
  z-index: 10006;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: lxToastBounce 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lxToastBounce {
  0% { opacity: 0; transform: translate(-50%, 6px); }
  100% { opacity: 1; transform: translate(-50%, 0); }
}

.lx-shop-bar-submit-btn {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

.lx-shop-bar-submit-btn:hover {
  background: #10b981;
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

/* Image Preview Chip inside Bar (Inline) */
.lx-ai-img-preview-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  border-radius: 9999px;
  padding: 2px 8px 2px 4px;
  font-size: 11.5px;
  color: #1e293b;
  font-weight: 700;
  flex-shrink: 0;
  height: 32px;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  animation: lxChipPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 140px;
}

@keyframes lxChipPop {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lx-ai-img-preview-chip img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #94a3b8;
}

.lx-ai-img-preview-name {
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lx-ai-img-remove-btn {
  background: rgba(148, 163, 184, 0.2);
  border: 0;
  color: #64748b;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  padding: 0;
}

.lx-ai-img-remove-btn:hover {
  background: #ef4444;
  color: #ffffff;
}

/* ==========================================================================
   2. Suggestions & Chat Popover Container
   ========================================================================== */
.lx-shop-popover {
  position: relative;
  width: 100%;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid rgba(226, 232, 240, 0.95);
  border-radius: 24px;
  box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.03);
  display: none;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: min(520px, calc(100vh - 120px));
  box-sizing: border-box;
}

.lx-shop-popover.is-open {
  display: flex !important;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Popover Header */
.lx-shop-pop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
  flex-shrink: 0;
}

.lx-shop-pop-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lx-shop-pop-avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #10b981 0%, #6366f1 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
}

.lx-shop-pop-meta {
  display: flex;
  flex-direction: column;
}

.lx-shop-pop-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.lx-shop-pop-subtitle {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
  line-height: 1.2;
}

.lx-shop-pop-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lx-shop-head-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 0;
  background: #f1f5f9;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}

.lx-shop-head-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Suggestions View (Shop.app Screenshot 2) */
.lx-shop-suggestions-view {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lx-shop-pills-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.lx-shop-pill-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 11px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.lx-shop-pill-item:hover {
  background: #f0fdf4;
  border-color: #10b981;
  color: #059669;
  transform: translateX(4px);
}

.lx-shop-pill-arrow {
  color: #94a3b8;
  transition: transform 0.2s;
}

.lx-shop-pill-item:hover .lx-shop-pill-arrow {
  color: #10b981;
  transform: translateX(2px);
}

.lx-shop-disclaimer {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.45;
  margin-top: 6px;
  padding: 0 4px;
}

/* Chat Messages View - WhatsApp-Style Dynamic Viewport */
.lx-shop-chat-view {
  display: flex;
  flex-direction: column;
  height: 440px;
  max-height: 60vh;
  overflow: hidden;
  position: relative;
}

.lx-ai-messages {
  flex: 1 1 auto;
  min-height: 0;
  padding: 16px 18px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.lx-ai-messages::-webkit-scrollbar {
  width: 5px;
}
.lx-ai-messages::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

.lx-ai-msg {
  display: flex;
  gap: 10px;
  max-width: 88%;
  word-break: break-word;
}

.lx-ai-msg-assistant {
  align-self: flex-start;
}

.lx-ai-msg-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.lx-ai-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #6366f1 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 2px;
}

.lx-ai-msg-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lx-ai-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #1e293b;
}

.lx-ai-msg-assistant .lx-ai-bubble {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-top-left-radius: 4px;
}

.lx-ai-msg-user .lx-ai-bubble {
  background: #0f172a;
  color: #ffffff;
  border-top-right-radius: 4px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}

.lx-ai-attached-img-wrap {
  margin-bottom: 8px;
  border-radius: 12px;
  overflow: hidden;
  max-width: 180px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.lx-ai-attached-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Typing / Searching State */
.lx-ai-typing-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(248, 250, 252, 0.95);
  border-top: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.lx-ai-typing-dots {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lx-ai-typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  animation: lxAiDotBounce 1.4s infinite ease-in-out both;
}

.lx-ai-typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.lx-ai-typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes lxAiDotBounce {
  0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

.lx-ai-typing-text {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

/* ==========================================================================
   3. Interactive In-Chat WooCommerce Product Cards
   ========================================================================== */
.lx-ai-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
  width: 100%;
}

.lx-ai-card {
  margin: 0 !important;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  gap: 14px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  transition: all 0.25s ease;
  width: 100%;
  box-sizing: border-box;
}

.lx-ai-card:hover {
  border-color: #10b981;
  box-shadow: 0 8px 24px -4px rgba(16, 185, 129, 0.2);
  transform: translateY(-2px);
}

.lx-ai-card-img-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: #f8fafc;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lx-ai-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lx-ai-card-img-placeholder {
  font-size: 26px;
}

.lx-ai-card-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  font-size: 9px;
  font-weight: 800;
  background: #ef4444;
  color: #ffffff;
  padding: 2px 5px;
  border-radius: 4px;
  line-height: 1;
}

.lx-ai-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lx-ai-card-cat {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lx-ai-card-title {
  margin: 2px 0 4px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.lx-ai-card-title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lx-ai-card-title a:hover {
  color: #10b981;
}

.lx-ai-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.lx-ai-card-price {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
}

.lx-ai-card-price del {
  font-size: 11px;
  color: #94a3b8;
  margin-right: 4px;
}

.lx-ai-card-price ins {
  text-decoration: none;
  color: #10b981;
}

.lx-ai-card-rating {
  font-size: 11px;
  font-weight: 700;
  color: #f59e0b;
}

.lx-ai-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lx-ai-btn-view {
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  padding: 5px 9px;
  border-radius: 6px;
  background: #f1f5f9;
  transition: all 0.2s;
}

.lx-ai-btn-view:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.lx-ai-btn-buy {
  font-size: 11.5px;
  font-weight: 700;
  background: #10b981;
  color: #ffffff;
  border: 0;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.lx-ai-btn-buy:hover {
  background: #059669;
  transform: translateY(-1px);
}

.lx-ai-btn-buy.is-added {
  background: #0f172a;
  color: #34d399;
}

/* ==========================================================================
   4. Dark Mode Support
   ========================================================================== */
[data-theme="dark"] .lx-shop-search-bar {
  background: rgba(15, 23, 42, 0.94);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 40px -8px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .lx-shop-bar-input {
  color: #f8fafc;
}

[data-theme="dark"] .lx-shop-bar-input::placeholder {
  color: #94a3b8;
}

[data-theme="dark"] .lx-shop-popover {
  background: rgba(15, 23, 42, 0.98);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .lx-shop-pop-header {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .lx-shop-pop-title {
  color: #f8fafc;
}

[data-theme="dark"] .lx-shop-pill-item {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

[data-theme="dark"] .lx-shop-pill-item:hover {
  background: #13222f;
  border-color: #10b981;
  color: #34d399;
}

[data-theme="dark"] .lx-ai-msg-assistant .lx-ai-bubble {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
}

[data-theme="dark"] .lx-ai-card {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .lx-ai-card-title a {
  color: #f1f5f9;
}

[data-theme="dark"] .lx-ai-card-price {
  color: #f8fafc;
}

[data-theme="dark"] .lx-ai-card-img-wrap {
  background: #0f172a;
}

[data-theme="dark"] .lx-ai-btn-view {
  background: #0f172a;
  color: #cbd5e1;
}

[data-theme="dark"] .lx-ai-img-preview-chip {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
}

[data-theme="dark"] .lx-ai-img-preview-name {
  color: #f1f5f9;
}

[data-theme="dark"] .lx-ai-img-remove-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

[data-theme="dark"] .lx-ai-img-remove-btn:hover {
  background: #ef4444;
  color: #ffffff;
}

/* ==========================================================================
   5. Responsive Layout & Mobile App Bottom Nav Synergy
   ========================================================================== */
@media (max-width: 991px) {
  .lx-shop-assistant-root {
    bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    z-index: 100005 !important; /* Floats prominently above the mobile bottom bar (z-index 99999) */
    gap: 8px !important;
  }

  /* When on single product page, mobile bottom nav is hidden, so sit cleanly near bottom */
  body.single-product .lx-shop-assistant-root {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .lx-shop-search-bar {
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18), 0 2px 8px rgba(0, 0, 0, 0.06) !important;
  }

  .lx-shop-bar-form {
    padding: 4px 6px 4px 10px !important;
    min-height: 48px !important;
    gap: 6px !important;
  }

  .lx-shop-bar-input {
    font-size: 13px !important;
    min-width: 0 !important;
  }

  .lx-shop-popover {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 20px !important;
    max-height: calc(100vh - 145px) !important;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.28) !important;
  }

  .lx-shop-chat-view {
    height: 380px !important;
    max-height: calc(100vh - 220px) !important;
  }
}

@media (max-width: 480px) {
  .lx-ai-img-preview-name {
    display: none !important; /* Icon-only compact chip on small mobile */
  }

  .lx-ai-lang-pill-btn {
    padding: 0 4px !important;
    gap: 2px !important;
    height: 22px !important;
  }

  .lx-ai-lang-code {
    font-size: 9px !important;
  }

  .lx-shop-bar-actions {
    gap: 4px !important;
  }

  .lx-shop-bar-btn {
    width: 32px !important;
    height: 32px !important;
  }

  .lx-shop-bar-submit-btn {
    width: 32px !important;
    height: 32px !important;
  }
}
