/* ==========================================================
   Owni News — Discover Article Chat (Premium UI)
   Namespace: .cdchat-*
   ينخفي تلقائياً لو الـ panel مغلق.
   ========================================================== */

:root {
  --cdc-bg-gradient: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%);
  --cdc-bg-soft: linear-gradient(180deg, rgba(243,244,255,1) 0%, rgba(255,255,255,1) 100%);
  --cdc-accent: #6366F1;
  --cdc-accent-2: #A78BFA;
  --cdc-user-bg: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
  --cdc-bot-bg: #FFFFFF;
  --cdc-text: #0F172A;
  --cdc-text-mute: #64748B;
  --cdc-radius: 22px;
  --cdc-shadow-fab: 0 12px 36px -8px rgba(99, 102, 241, 0.55), 0 4px 12px rgba(0, 0, 0, 0.08);
  --cdc-shadow-drawer: 0 -16px 48px -12px rgba(15, 23, 42, 0.25), 0 -2px 8px rgba(15, 23, 42, 0.06);
}

/* ============================================================
   FAB — الزر العائم داخل الـ panel
   ============================================================ */
.cdchat-fab {
  position: absolute;
  bottom: 18px;
  left: 18px;            /* الزاوية اليسرى السفلى (في RTL = visually right) — لكن لا، اللوحة RTL أصلاً */
  z-index: 30;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 11px 18px 11px 14px;
  background: var(--cdc-bg-gradient);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--cdc-shadow-fab);
  overflow: hidden;
  letter-spacing: -0.01em;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s, box-shadow 0.25s;
  animation: cdchat-fab-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes cdchat-fab-in {
  from { transform: translateY(20px) scale(0.85); opacity: 0; }
  to   { transform: translateY(0)    scale(1);    opacity: 1; }
}
.cdchat-fab:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 16px 44px -8px rgba(99, 102, 241, 0.7), 0 6px 16px rgba(0, 0, 0, 0.1);
}
.cdchat-fab:active { transform: translateY(0) scale(0.97); }
.cdchat-fab.cdchat-fab-hidden {
  opacity: 0;
  transform: translateY(40px) scale(0.7);
  pointer-events: none;
}
.cdchat-fab-ico {
  font-size: 18px;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}
.cdchat-fab-lbl { line-height: 1; }
.cdchat-fab-shine {
  position: absolute;
  top: 0;
  inset-inline-start: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  animation: cdchat-shine 3.5s ease-in-out infinite;
}
@keyframes cdchat-shine {
  0%, 100% { inset-inline-start: -100%; }
  50%      { inset-inline-start: 150%; }
}

/* ============================================================
   Drawer (يفتح من الأسفل)
   ============================================================ */
.cdchat-drawer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  max-height: 75vh;
  height: 75vh;
  background: var(--cdc-bg-soft);
  border-top-left-radius: var(--cdc-radius);
  border-top-right-radius: var(--cdc-radius);
  box-shadow: var(--cdc-shadow-drawer);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.42s cubic-bezier(0.32, 0.72, 0.18, 1);
  will-change: transform;
  overflow: hidden;
  /* glass border accent */
  border-top: 1px solid rgba(255, 255, 255, 0.5);
}
.cdchat-drawer.cdchat-open {
  transform: translateY(0);
}
.cdchat-drawer.cdchat-dragging {
  transition: none;
}

/* خلفية الـ glass shimmer */
.cdchat-drawer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--cdc-bg-gradient);
  opacity: 0.95;
  z-index: 2;
}

/* ============================================================
   Backdrop (طبقة شفافة تغطي iframe من ورا الـ drawer)
   ============================================================ */
.cdchat-backdrop {
  position: absolute;
  top: -200vh;            /* يغطي كل الـ panel فوق الـ drawer */
  left: -50vw;
  right: -50vw;
  bottom: 100%;
  height: 200vh;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: -1;
}
.cdchat-drawer.cdchat-open .cdchat-backdrop {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================================
   Handle (شريط السحب)
   ============================================================ */
.cdchat-handle {
  width: 44px;
  height: 5px;
  margin: 10px auto 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #CBD5E1, #94A3B8, #CBD5E1);
  cursor: grab;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
}
.cdchat-drawer.cdchat-dragging .cdchat-handle { cursor: grabbing; }

/* ============================================================
   Header
   ============================================================ */
.cdchat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 18px 14px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  flex-shrink: 0;
  position: relative;
  z-index: 3;
  cursor: grab;
}
.cdchat-drawer.cdchat-dragging .cdchat-head { cursor: grabbing; }
.cdchat-head-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cdchat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #EEF2FF 0%, #F5F3FF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(167, 139, 250, 0.3);
  position: relative;
  flex-shrink: 0;
}
.cdchat-avatar::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #6366F1, #EC4899, #6366F1);
  z-index: -1;
  opacity: 0.4;
  animation: cdchat-avatar-spin 6s linear infinite;
}
@keyframes cdchat-avatar-spin { to { transform: rotate(360deg); } }
.cdchat-head-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cdchat-head-title {
  font-weight: 800;
  font-size: 15px;
  color: var(--cdc-text);
  letter-spacing: -0.02em;
}
.cdchat-head-sub {
  font-size: 11px;
  color: var(--cdc-text-mute);
  display: flex;
  align-items: center;
  gap: 5px;
}
.cdchat-head-sub::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  animation: cdchat-pulse 2s infinite;
}
@keyframes cdchat-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.cdchat-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.06);
  color: var(--cdc-text);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.cdchat-close:hover {
  background: rgba(15, 23, 42, 0.12);
  transform: scale(1.08);
}

/* ============================================================
   Body (الـ messages list)
   ============================================================ */
.cdchat-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  z-index: 3;
}
.cdchat-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.cdchat-list::-webkit-scrollbar { width: 6px; }
.cdchat-list::-webkit-scrollbar-track { background: transparent; }
.cdchat-list::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.2);
  border-radius: 999px;
}

/* ============================================================
   Welcome state
   ============================================================ */
.cdchat-welcome {
  margin: auto;
  text-align: center;
  padding: 20px;
  animation: cdchat-fade-up 0.5s ease-out;
}
@keyframes cdchat-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cdchat-welcome-bubble {
  background: #fff;
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(167, 139, 250, 0.2);
  max-width: 280px;
  margin: 0 auto;
}
.cdchat-welcome-emoji {
  font-size: 40px;
  margin-bottom: 10px;
  animation: cdchat-bounce 2s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.2));
}
@keyframes cdchat-bounce {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-6px) rotate(-3deg); }
}
.cdchat-welcome-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--cdc-text);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.cdchat-welcome-text {
  font-size: 13px;
  color: var(--cdc-text-mute);
  line-height: 1.6;
}

/* ============================================================
   Messages
   ============================================================ */
.cdchat-msg {
  display: flex;
  gap: 8px;
  max-width: 88%;
  animation: cdchat-msg-in 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes cdchat-msg-in {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.cdchat-msg-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.cdchat-msg-bot, .cdchat-msg-typing {
  align-self: flex-start;
}
.cdchat-msg-error {
  align-self: stretch;
  max-width: 100%;
  justify-content: center;
}
.cdchat-bot-ico {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #EEF2FF, #F5F3FF);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.3);
}
.cdchat-msg-bubble {
  padding: 11px 15px;
  border-radius: 18px;
  font-size: 14.5px;
  line-height: 1.65;
  word-wrap: break-word;
  white-space: pre-wrap;
}
.cdchat-msg-user .cdchat-msg-bubble {
  background: var(--cdc-user-bg);
  color: #fff;
  border-bottom-right-radius: 6px;
  box-shadow: 0 4px 14px -2px rgba(99, 102, 241, 0.35);
}
.cdchat-msg-bot .cdchat-msg-bubble {
  background: var(--cdc-bot-bg);
  color: var(--cdc-text);
  border-bottom-left-radius: 6px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(226, 232, 240, 0.7);
}
.cdchat-msg-off .cdchat-msg-bubble {
  background: linear-gradient(135deg, #FEF3C7 0%, #FEF9E7 100%);
  border-color: #FCD34D;
  color: #92400E;
}
.cdchat-error-bubble {
  background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%) !important;
  color: #991B1B !important;
  border: 1px solid #FCA5A5 !important;
  text-align: center;
  font-weight: 600;
  font-size: 13px !important;
}

/* ============================================================
   Typing indicator
   ============================================================ */
.cdchat-typing {
  padding: 14px 18px !important;
  min-width: 60px;
}
.cdchat-typing span {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 2px;
  border-radius: 50%;
  background: var(--cdc-accent);
  opacity: 0.4;
  animation: cdchat-typing-bounce 1.2s ease-in-out infinite;
}
.cdchat-typing span:nth-child(2) { animation-delay: 0.15s; }
.cdchat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes cdchat-typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%           { transform: translateY(-6px); opacity: 1; }
}

/* ============================================================
   Suggestions (quick chips)
   ============================================================ */
.cdchat-suggest {
  display: flex;
  gap: 6px;
  padding: 0 18px 8px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}
.cdchat-suggest::-webkit-scrollbar { display: none; }
.cdchat-suggest button {
  flex-shrink: 0;
  padding: 7px 14px;
  background: #fff;
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--cdc-accent);
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.cdchat-suggest button:hover {
  background: linear-gradient(135deg, #EEF2FF, #F5F3FF);
  border-color: var(--cdc-accent);
  transform: translateY(-1px);
}
.cdchat-suggest button:active { transform: translateY(0); }

/* ============================================================
   Input row
   ============================================================ */
.cdchat-input-wrap {
  display: flex;
  gap: 8px;
  padding: 12px 14px 16px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(226, 232, 240, 0.6);
  flex-shrink: 0;
  position: relative;
  z-index: 3;
}
.cdchat-input {
  flex: 1;
  height: 44px;
  padding: 0 16px;
  background: #fff;
  border: 1.5px solid #E2E8F0;
  border-radius: 999px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--cdc-text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.cdchat-input::placeholder { color: #94A3B8; }
.cdchat-input:focus {
  border-color: var(--cdc-accent);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}
.cdchat-input:disabled {
  background: #F8FAFC;
  color: #94A3B8;
  cursor: not-allowed;
}
.cdchat-send {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cdc-bg-gradient);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 6px 16px -4px rgba(99, 102, 241, 0.5);
}
.cdchat-send svg { transform: rotate(180deg); /* أيقونة الإرسال موجّهة لليسار (للـ RTL) */ }
.cdchat-send:hover:not(:disabled) {
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 10px 22px -4px rgba(99, 102, 241, 0.6);
}
.cdchat-send:active:not(:disabled) { transform: scale(0.96); }
.cdchat-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.cdchat-send.cdchat-sending svg {
  animation: cdchat-send-spin 0.9s linear infinite;
}
@keyframes cdchat-send-spin {
  to { transform: rotate(-180deg); }
}

/* ============================================================
   Responsive — mobile tweaks
   ============================================================ */
@media (max-width: 540px) {
  .cdchat-drawer {
    height: 78vh;
    max-height: 82vh;
  }
  .cdchat-fab {
    bottom: 14px;
    left: 14px;
    padding: 10px 16px 10px 12px;
    font-size: 13.5px;
  }
  .cdchat-fab-lbl { display: inline; }
  .cdchat-msg-bubble { font-size: 14px; }
}
@media (max-width: 380px) {
  .cdchat-fab-lbl { font-size: 12.5px; }
  .cdchat-list { padding: 12px 14px 6px; }
  .cdchat-input-wrap { padding: 10px 12px 14px; }
}

/* ============================================================
   Dark-mode awareness (لو الموقع له dark mode)
   ============================================================ */
@media (prefers-color-scheme: dark) {
  /* مايتفعّلش تلقائياً — الموقع نفسه RTL على white، نسيب الـ chat بنفس الـ light theme */
}

/* ============================================================
   Quota badge in header
   ============================================================ */
.cdchat-quota-badge {
  display: inline-block;
  margin-top: 2px;
  font-size: 10.5px;
  font-weight: 700;
  color: #6366F1;
  background: linear-gradient(135deg, #EEF2FF, #F5F3FF);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.25);
  letter-spacing: -0.01em;
}
.cdchat-quota-badge.cdchat-quota-badge-low {
  background: linear-gradient(135deg, #FEF3C7, #FEF9E7);
  color: #92400E;
  border-color: rgba(245, 158, 11, 0.3);
}

/* ============================================================
   Share unlock screen (overlay inside drawer)
   ============================================================ */
.cdchat-share-screen {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.95) 0%, rgba(139, 92, 246, 0.95) 50%, rgba(236, 72, 153, 0.92) 100%);
  backdrop-filter: blur(8px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  animation: cdchat-share-in 0.45s cubic-bezier(0.32, 0.72, 0.18, 1);
  overflow-y: auto;
}
@keyframes cdchat-share-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cdchat-share-card {
  background: #fff;
  border-radius: 22px;
  padding: 26px 22px 22px;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.4), 0 8px 20px rgba(0, 0, 0, 0.12);
  text-align: center;
  position: relative;
  animation: cdchat-share-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes cdchat-share-pop {
  from { transform: scale(0.85) translateY(20px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.cdchat-share-badge {
  display: inline-block;
  padding: 6px 14px;
  background: linear-gradient(135deg, #FEF3C7, #FCD34D);
  color: #92400E;
  font-size: 11.5px;
  font-weight: 800;
  border-radius: 999px;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px -2px rgba(245, 158, 11, 0.4);
}
.cdchat-share-title {
  font-size: 19px;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 8px;
  letter-spacing: -0.025em;
  line-height: 1.4;
}
.cdchat-share-text {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.7;
  margin: 0 0 18px;
}

/* === Article card === */
.cdchat-share-article {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: linear-gradient(135deg, #F8FAFC 0%, #EEF2FF 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 14px;
  margin-bottom: 18px;
  text-align: right;
}
.cdchat-share-img {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.cdchat-share-article-info {
  flex: 1;
  min-width: 0;
}
.cdchat-share-article-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #6366F1;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}
.cdchat-share-article-title {
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === FB share button === */
.cdchat-share-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #1877F2 0%, #0866FF 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: -0.01em;
  box-shadow: 0 8px 20px -4px rgba(24, 119, 242, 0.5);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.cdchat-share-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: cdchat-share-shine 2.4s ease-in-out infinite;
}
@keyframes cdchat-share-shine {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}
.cdchat-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -4px rgba(24, 119, 242, 0.65);
}
.cdchat-share-btn:active { transform: translateY(0); }
.cdchat-share-btn svg { flex-shrink: 0; }

/* === Status (polling) === */
.cdchat-share-status {
  margin-top: 14px;
  padding: 11px 14px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  font-size: 12.5px;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.5;
}
.cdchat-share-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(99, 102, 241, 0.25);
  border-top-color: var(--cdc-accent);
  border-radius: 50%;
  animation: cdchat-share-spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes cdchat-share-spin { to { transform: rotate(360deg); } }

/* === Cancel === */
.cdchat-share-cancel {
  margin-top: 10px;
  padding: 8px 14px;
  background: transparent;
  color: #64748B;
  border: none;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  font-weight: 600;
  transition: color 0.2s;
}
.cdchat-share-cancel:hover { color: #DC2626; }

/* === Responsive tweaks === */
@media (max-width: 380px) {
  .cdchat-share-card { padding: 22px 18px 18px; }
  .cdchat-share-title { font-size: 17px; }
  .cdchat-share-btn { padding: 12px 16px; font-size: 14px; }
}

/* ============================================================
   Reduce motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .cdchat-fab, .cdchat-drawer, .cdchat-msg, .cdchat-welcome,
  .cdchat-avatar::after, .cdchat-fab-shine, .cdchat-typing span,
  .cdchat-welcome-emoji, .cdchat-share-screen, .cdchat-share-card,
  .cdchat-share-btn::before, .cdchat-share-spinner {
    animation: none !important;
    transition-duration: 0.15s !important;
  }
}
