/* Revenue Engine — Enterprise Chat Widget ($349/mo) */
:root {
  --oc-primary: #1B3A5C;
  --oc-primary-light: #24507a;
  --oc-primary-dark: #132a44;
  --oc-accent: #4A90D9;
  --oc-accent-light: #6BA8E8;
  --oc-bg: #ffffff;
  --oc-bg-chat: #f4f6f8;
  --oc-text: #1a1a1a;
  --oc-text-light: #6b7280;
  --oc-text-muted: #9ca3af;
  --oc-border: #e5e7eb;
  --oc-border-light: #f0f1f3;
  --oc-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 8px 24px rgba(0,0,0,0.08), 0 0 0 1px rgba(255,255,255,0.1) inset;
  --oc-shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.06);
  --oc-shadow-md: 0 4px 16px rgba(0,0,0,0.1), 0 1px 4px rgba(0,0,0,0.06);
  --oc-radius: 22px;
  --oc-radius-sm: 14px;
  --oc-radius-xs: 10px;
  --oc-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --oc-transition: cubic-bezier(0.4, 0, 0.2, 1);
  --oc-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --oc-ease-out: cubic-bezier(0, 0, 0.2, 1);
  --oc-glass-bg: rgba(255,255,255,0.72);
  --oc-glass-bg-heavy: rgba(255,255,255,0.88);
  --oc-glass-border: rgba(255,255,255,0.45);
  --oc-glass-blur: 24px;
  --oc-glass-blur-heavy: 40px;
  --oc-success: #10b981;
  --oc-success-light: #d1fae5;
  --oc-danger: #ef4444;
  --oc-danger-light: #fecaca;
  --oc-warning: #f59e0b;
  --oc-star-color: #fbbf24;
  --oc-star-empty: #d1d5db;
}
/* ---------- Scoped reset ---------- */
#oc-chat-widget,
#oc-chat-widget * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--oc-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* ---------- Keyframes ---------- */
@keyframes oc-slide-up {
  0% { opacity: 0; transform: translateY(24px) scale(0.92); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes oc-fade-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes oc-scale-in {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes oc-msg-in {
  0% { opacity: 0; transform: translateY(12px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes oc-badge-pop {
  0% { transform: scale(0); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}
@keyframes oc-bounce {
  0%, 80%, 100% { transform: scale(0.5); opacity: 0.35; }
  40% { transform: scale(1.1); opacity: 1; }
}
@keyframes oc-waveform {
  0%, 100% { transform: scaleY(0.3); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}
@keyframes oc-toggle-glow {
  0%, 100% { box-shadow: 0 6px 24px rgba(27,58,92,0.35), 0 0 0 0 rgba(74,144,217,0.25); }
  50% { box-shadow: 0 6px 24px rgba(27,58,92,0.35), 0 0 0 12px rgba(74,144,217,0); }
}
@keyframes oc-pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 4px rgba(16,185,129,0.4); }
  50% { opacity: 0.6; box-shadow: 0 0 10px rgba(16,185,129,0.7); }
}
@keyframes oc-spin-in {
  0% { transform: rotate(-90deg) scale(0); opacity: 0; }
  100% { transform: rotate(0) scale(1); opacity: 1; }
}
@keyframes pulse-recording {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
  50% { box-shadow: 0 0 0 10px rgba(239,68,68,0); }
}
@keyframes pulse-recording-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.6); }
}
@keyframes oc-checkmark {
  0% { opacity: 0; transform: scale(0.5); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes oc-shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes oc-gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes oc-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes oc-star-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}
@keyframes oc-drag-pulse {
  0%, 100% { border-color: var(--oc-accent); background: rgba(74,144,217,0.04); }
  50% { border-color: var(--oc-accent-light); background: rgba(74,144,217,0.08); }
}
@keyframes oc-form-slide {
  0% { opacity: 0; transform: translateY(16px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
/* ---------- Floating toggle button ---------- */
#oc-chat-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--oc-primary-light) 0%, var(--oc-primary-dark) 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(27,58,92,0.35), 0 0 0 0 rgba(74,144,217,0.25);
  z-index: 999998;
  transition: transform 0.35s var(--oc-ease-spring), box-shadow 0.35s var(--oc-transition);
  outline: none;
  animation: oc-toggle-glow 3s ease-in-out infinite;
}
#oc-chat-toggle::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(74,144,217,0.3), rgba(27,58,92,0.1));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}
#oc-chat-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(27,58,92,0.4);
  animation: none;
}
#oc-chat-toggle:hover::before { opacity: 1; }
#oc-chat-toggle:active { transform: scale(0.93); }
#oc-chat-toggle svg {
  width: 28px;
  height: 28px;
  transition: transform 0.35s var(--oc-ease-spring), opacity 0.2s;
}
#oc-chat-toggle .oc-icon-close { display: none; }
#oc-chat-toggle.oc-open .oc-icon-chat { display: none; }
#oc-chat-toggle.oc-open .oc-icon-close { display: block; }
#oc-chat-toggle.oc-open { animation: none; }
#oc-chat-toggle.oc-open .oc-icon-close {
  animation: oc-spin-in 0.4s var(--oc-ease-spring);
}
/* ---------- Badge ---------- */
#oc-chat-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  background: linear-gradient(135deg, #f43f5e, #ef4444);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border: 2.5px solid #fff;
  line-height: 1;
  animation: oc-badge-pop 0.4s var(--oc-ease-spring);
  box-shadow: 0 2px 8px rgba(239,68,68,0.35);
}
#oc-chat-badge.oc-visible { display: flex; }
/* ---------- Panel — Premium Glassmorphism ---------- */
#oc-chat-panel {
  position: fixed;
  bottom: 104px;
  right: 24px;
  width: 410px;
  max-height: 640px;
  height: calc(100vh - 140px);
  background: var(--oc-glass-bg);
  backdrop-filter: blur(var(--oc-glass-blur-heavy)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--oc-glass-blur-heavy)) saturate(180%);
  border: 1px solid var(--oc-glass-border);
  border-radius: var(--oc-radius);
  box-shadow: var(--oc-shadow);
  display: flex;
  flex-direction: column;
  z-index: 999999;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px) scale(0.92);
  pointer-events: none;
  transition: opacity 0.4s var(--oc-ease-out), transform 0.4s var(--oc-ease-spring);
}
/* Inner light edge for depth */
#oc-chat-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--oc-radius);
  border: 1px solid rgba(255,255,255,0.25);
  pointer-events: none;
  z-index: 1;
}
#oc-chat-panel.oc-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
/* ---------- Header — Frosted premium bar ---------- */
#oc-chat-header {
  background: linear-gradient(135deg, var(--oc-primary) 0%, var(--oc-primary-dark) 40%, var(--oc-primary) 100%);
  background-size: 200% 200%;
  animation: oc-gradient-shift 8s ease infinite;
  color: #fff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 2px 16px rgba(0,0,0,0.12);
}
/* Subtle noise overlay on header */
#oc-chat-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.5;
}
#oc-chat-header-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,0.25);
  transition: transform 0.3s var(--oc-transition), box-shadow 0.3s;
}
#oc-chat-header-avatar:hover {
  transform: scale(1.08);
  box-shadow: 0 0 12px rgba(255,255,255,0.15);
}
#oc-chat-header-avatar svg { width: 20px; height: 20px; }
#oc-chat-header-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
#oc-chat-header-info { flex: 1; min-width: 0; }
#oc-chat-header-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* ---------- Online/offline indicator — elegant ---------- */
#oc-chat-header-status {
  font-size: 12px;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 1px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.oc-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  transition: background 0.4s, box-shadow 0.4s;
}
.oc-status-dot.online {
  background: #34d399;
  box-shadow: 0 0 6px rgba(52,211,153,0.5);
  animation: oc-pulse-dot 2s ease-in-out infinite;
}
.oc-status-dot.offline {
  background: #9ca3af;
  box-shadow: none;
}
.oc-status-dot.away {
  background: var(--oc-warning);
  box-shadow: 0 0 6px rgba(245,158,11,0.4);
}
/* ---------- Header action buttons ---------- */
.oc-header-btn {
  background: rgba(255,255,255,0.08);
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 7px;
  border-radius: 8px;
  transition: background 0.2s, transform 0.2s var(--oc-ease-spring);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.oc-header-btn:hover {
  background: rgba(255,255,255,0.18);
  transform: scale(1.05);
}
.oc-header-btn:active { transform: scale(0.95); }
.oc-header-btn svg { width: 18px; height: 18px; }
#oc-chat-header-close {
  background: rgba(255,255,255,0.08);
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 7px;
  border-radius: 8px;
  transition: background 0.2s, transform 0.2s var(--oc-ease-spring);
  display: flex;
  align-items: center;
  justify-content: center;
}
#oc-chat-header-close:hover {
  background: rgba(255,255,255,0.18);
  transform: scale(1.05);
}
#oc-chat-header-close:active { transform: scale(0.95); }
#oc-chat-header-close svg { width: 18px; height: 18px; }
/* ---------- Welcome screen — Premium with logo area ---------- */
#oc-welcome-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  text-align: center;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(74,144,217,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(27,58,92,0.06) 0%, transparent 60%),
    linear-gradient(180deg, var(--oc-bg-chat) 0%, var(--oc-bg) 100%);
  animation: oc-fade-in 0.6s ease;
  position: relative;
  overflow: hidden;
}
/* Ambient floating shapes behind welcome content */
#oc-welcome-screen::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,144,217,0.07) 0%, transparent 70%);
  top: -40px;
  right: -60px;
  animation: oc-float 6s ease-in-out infinite;
  pointer-events: none;
}
#oc-welcome-screen::after {
  content: '';
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27,58,92,0.05) 0%, transparent 70%);
  bottom: -30px;
  left: -40px;
  animation: oc-float 8s ease-in-out infinite reverse;
  pointer-events: none;
}
#oc-welcome-screen .oc-welcome-logo {
  width: 80px;
  height: 80px;
  border-radius: 22px;
  object-fit: cover;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1), 0 0 0 1px rgba(255,255,255,0.5) inset;
  position: relative;
  z-index: 1;
  transition: transform 0.3s var(--oc-ease-spring), box-shadow 0.3s;
}
#oc-welcome-screen .oc-welcome-logo:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 32px rgba(0,0,0,0.14), 0 0 0 1px rgba(255,255,255,0.5) inset;
}
#oc-welcome-screen .oc-welcome-logo-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--oc-primary), var(--oc-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #fff;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 24px rgba(27,58,92,0.25);
  transition: transform 0.3s var(--oc-ease-spring);
}
#oc-welcome-screen .oc-welcome-logo-placeholder:hover { transform: scale(1.06); }
#oc-welcome-screen .oc-welcome-logo-placeholder svg { width: 38px; height: 38px; }
#oc-welcome-screen h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--oc-text);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}
#oc-welcome-screen p {
  font-size: 14px;
  color: var(--oc-text-light);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 280px;
  position: relative;
  z-index: 1;
}
#oc-welcome-start {
  padding: 14px 40px;
  background: linear-gradient(135deg, var(--oc-primary), var(--oc-accent));
  color: #fff;
  border: none;
  border-radius: var(--oc-radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s var(--oc-ease-spring), box-shadow 0.3s;
  box-shadow: 0 4px 16px rgba(27,58,92,0.3);
  position: relative;
  z-index: 1;
  letter-spacing: -0.01em;
}
#oc-welcome-start:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(27,58,92,0.35);
}
#oc-welcome-start:active { transform: scale(0.97); }
/* Welcome screen quick-start topics */
.oc-welcome-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.oc-welcome-topic {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--oc-border);
  background: var(--oc-glass-bg-heavy);
  backdrop-filter: blur(8px);
  color: var(--oc-text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--oc-transition);
}
.oc-welcome-topic:hover {
  border-color: var(--oc-accent);
  background: rgba(74,144,217,0.08);
  color: var(--oc-primary);
  transform: translateY(-1px);
}
/* ---------- Messages area ---------- */
#oc-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  background: var(--oc-bg-chat);
  background-image:
    radial-gradient(circle at 20% 50%, rgba(74,144,217,0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(27,58,92,0.03) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-behavior: smooth;
}
#oc-chat-messages::-webkit-scrollbar { width: 5px; }
#oc-chat-messages::-webkit-scrollbar-track { background: transparent; }
#oc-chat-messages::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.12);
  border-radius: 3px;
}
#oc-chat-messages::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.2); }
/* ---------- Message bubbles ---------- */
.oc-msg {
  max-width: 85%;
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.55;
  word-break: break-word;
  overflow-wrap: break-word;
  letter-spacing: -0.006em;
  animation: oc-msg-in 0.35s var(--oc-ease-spring);
  position: relative;
}
.oc-msg-assistant {
  background: #fff;
  color: var(--oc-text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: var(--oc-shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
}
/* Rich formatting in bot messages */
.oc-msg-assistant strong, .oc-msg-assistant b { font-weight: 700; }
.oc-msg-assistant a {
  color: var(--oc-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}
.oc-msg-assistant a:hover { color: var(--oc-primary); text-decoration: none; }
.oc-msg-assistant ul, .oc-msg-assistant ol { padding-left: 18px; margin: 6px 0; }
.oc-msg-assistant li { margin-bottom: 3px; }
.oc-msg-assistant code {
  background: rgba(0,0,0,0.05);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12.5px;
  font-family: 'SF Mono', 'Fira Code', monospace;
}
.oc-msg-assistant pre {
  background: #1a1a2e;
  color: #e2e8f0;
  padding: 12px 14px;
  border-radius: var(--oc-radius-xs);
  overflow-x: auto;
  margin: 8px 0;
  font-size: 12.5px;
  line-height: 1.5;
}
.oc-msg-user {
  background: linear-gradient(135deg, var(--oc-primary) 0%, var(--oc-primary-light) 100%);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  box-shadow: 0 2px 10px rgba(27,58,92,0.2);
}
/* Timestamp — reveal on hover */
.oc-msg-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.oc-msg-time {
  font-size: 10px;
  opacity: 0;
  display: inline-block;
  transition: opacity 0.25s var(--oc-transition);
  letter-spacing: 0.02em;
}
.oc-msg:hover .oc-msg-time { opacity: 0.5; }
/* ---------- Read receipts ---------- */
.oc-read-receipt {
  display: inline-flex;
  align-items: center;
  animation: oc-checkmark 0.3s ease;
}
.oc-read-receipt svg { width: 14px; height: 14px; }
.oc-read-receipt.sent { color: rgba(255,255,255,0.5); }
.oc-read-receipt.delivered { color: rgba(255,255,255,0.7); }
.oc-read-receipt.read { color: #34d399; }
/* ---------- Speaker replay button ---------- */
.re-speaker-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--oc-text-muted);
  padding: 3px;
  margin-left: 6px;
  border-radius: 6px;
  transition: color 0.25s, background 0.25s, transform 0.2s;
  vertical-align: middle;
  width: 22px;
  height: 22px;
  opacity: 0;
}
.oc-msg:hover .re-speaker-btn { opacity: 1; }
.re-speaker-btn:hover {
  color: var(--oc-accent);
  background: rgba(74,144,217,0.1);
  transform: scale(1.15);
}
.re-speaker-btn svg { width: 14px; height: 14px; }
/* ---------- Typing indicator ---------- */
.oc-typing {
  display: flex;
  gap: 5px;
  padding: 14px 18px;
  align-self: flex-start;
  background: #fff;
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  box-shadow: var(--oc-shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  animation: oc-msg-in 0.35s var(--oc-ease-spring);
}
.oc-typing-dots {
  display: flex;
  gap: 4px;
}
.oc-typing-dots span {
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--oc-accent), var(--oc-primary));
  border-radius: 50%;
  animation: oc-bounce 1.4s infinite ease-in-out both;
}
.oc-typing-dots span:nth-child(1) { animation-delay: 0s; }
.oc-typing-dots span:nth-child(2) { animation-delay: 0.16s; }
.oc-typing-dots span:nth-child(3) { animation-delay: 0.32s; }
.oc-typing-text {
  font-size: 12px;
  color: var(--oc-text-light);
  font-style: italic;
}
/* ---------- Quick reply buttons ---------- */
.oc-quick-replies {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  flex-shrink: 0;
  background: var(--oc-glass-bg-heavy);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--oc-border-light);
}
.oc-quick-replies::-webkit-scrollbar { display: none; }
.oc-quick-reply {
  flex-shrink: 0;
  scroll-snap-align: start;
  padding: 8px 18px;
  border-radius: 20px;
  border: 1.5px solid var(--oc-primary);
  background: #fff;
  color: var(--oc-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s var(--oc-transition);
  white-space: nowrap;
  animation: oc-fade-in 0.3s ease;
  letter-spacing: -0.005em;
}
.oc-quick-reply:hover {
  background: var(--oc-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(27,58,92,0.2);
  transform: translateY(-1px);
}
.oc-quick-reply:active { transform: scale(0.95); }
/* ============================================================
   RICH MESSAGES — Cards, Buttons, Galleries (Enterprise only)
   ============================================================ */
/* --- Rich card --- */
.oc-rich-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  max-width: 88%;
  align-self: flex-start;
  box-shadow: var(--oc-shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  animation: oc-form-slide 0.45s var(--oc-ease-spring);
  transition: box-shadow 0.3s, transform 0.2s;
}
.oc-rich-card:hover {
  box-shadow: var(--oc-shadow-md);
  transform: translateY(-2px);
}
.oc-rich-card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.oc-rich-card-body {
  padding: 14px 16px;
}
.oc-rich-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--oc-text);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.oc-rich-card-desc {
  font-size: 13px;
  color: var(--oc-text-light);
  line-height: 1.45;
  margin-bottom: 12px;
}
.oc-rich-card-footer {
  display: flex;
  gap: 8px;
  padding: 0 16px 14px;
}
/* --- Button groups (in cards and standalone) --- */
.oc-btn-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 88%;
  align-self: flex-start;
  animation: oc-msg-in 0.35s var(--oc-ease-spring);
}
.oc-btn-action {
  padding: 10px 16px;
  border-radius: var(--oc-radius-xs);
  border: 1.5px solid var(--oc-border);
  background: #fff;
  color: var(--oc-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s var(--oc-transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.oc-btn-action:hover {
  border-color: var(--oc-primary);
  background: rgba(27,58,92,0.04);
  transform: translateY(-1px);
  box-shadow: var(--oc-shadow-sm);
}
.oc-btn-action:active { transform: scale(0.98); }
.oc-btn-action svg { width: 16px; height: 16px; }
.oc-btn-action.oc-btn-primary {
  background: linear-gradient(135deg, var(--oc-primary), var(--oc-accent));
  color: #fff;
  border-color: transparent;
}
.oc-btn-action.oc-btn-primary:hover {
  box-shadow: 0 4px 14px rgba(27,58,92,0.25);
  background: linear-gradient(135deg, var(--oc-primary-light), var(--oc-accent-light));
}
/* --- Gallery / Carousel --- */
.oc-gallery {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 16px 8px;
  margin: 0 -16px;
}
.oc-gallery::-webkit-scrollbar { height: 4px; }
.oc-gallery::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 2px; }
.oc-gallery-item {
  flex-shrink: 0;
  scroll-snap-align: start;
  width: 240px;
  background: #fff;
  border-radius: var(--oc-radius-sm);
  overflow: hidden;
  box-shadow: var(--oc-shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  transition: box-shadow 0.3s, transform 0.2s;
}
.oc-gallery-item:hover {
  box-shadow: var(--oc-shadow-md);
  transform: translateY(-2px);
}
.oc-gallery-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
.oc-gallery-item-body {
  padding: 12px 14px;
}
.oc-gallery-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--oc-text);
  margin-bottom: 4px;
}
.oc-gallery-item-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--oc-primary);
}
.oc-gallery-item-desc {
  font-size: 12px;
  color: var(--oc-text-light);
  line-height: 1.4;
  margin-top: 4px;
}
.oc-gallery-item-btn {
  display: block;
  width: calc(100% - 24px);
  margin: 8px 12px 12px;
  padding: 8px;
  text-align: center;
  border-radius: 8px;
  background: var(--oc-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.oc-gallery-item-btn:hover {
  background: var(--oc-primary-light);
  transform: translateY(-1px);
}
/* --- Scroll indicators for gallery --- */
.oc-gallery-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 6px 0 2px;
}
.oc-gallery-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--oc-border);
  transition: background 0.3s, transform 0.2s;
}
.oc-gallery-dot.active {
  background: var(--oc-primary);
  transform: scale(1.3);
}
/* ---------- Lead capture form ---------- */
.oc-lead-form {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  align-self: flex-start;
  max-width: 90%;
  box-shadow: var(--oc-shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  animation: oc-form-slide 0.45s var(--oc-ease-spring);
}
.oc-lead-form p {
  font-size: 13px;
  color: var(--oc-text);
  margin-bottom: 14px;
  line-height: 1.5;
  font-weight: 500;
}
.oc-lead-form input, .oc-lead-form select {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--oc-border);
  border-radius: var(--oc-radius-xs);
  font-size: 13px;
  margin-bottom: 10px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  color: var(--oc-text);
  background: #fafbfc;
  font-family: var(--oc-font);
}
.oc-lead-form input:focus, .oc-lead-form select:focus {
  border-color: var(--oc-accent);
  box-shadow: 0 0 0 3px rgba(74,144,217,0.1);
}
.oc-lead-form input::placeholder { color: var(--oc-text-muted); }
.oc-lead-form button {
  width: 100%;
  padding: 11px;
  background: linear-gradient(135deg, var(--oc-primary), var(--oc-accent));
  color: #fff;
  border: none;
  border-radius: var(--oc-radius-xs);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(27,58,92,0.2);
  letter-spacing: -0.01em;
}
.oc-lead-form button:hover {
  box-shadow: 0 4px 14px rgba(27,58,92,0.3);
  transform: translateY(-1px);
}
.oc-lead-form button:active { transform: scale(0.97); }
.oc-lead-skip {
  display: block;
  text-align: center;
  font-size: 12px;
  color: var(--oc-text-muted);
  margin-top: 8px;
  cursor: pointer;
  background: none !important;
  border: none;
  width: 100%;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.oc-lead-skip:hover {
  color: var(--oc-text-light);
  background: rgba(0,0,0,0.03);
}
/* ---------- Appointment booking form ---------- */
.oc-booking-form {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  align-self: flex-start;
  max-width: 90%;
  box-shadow: var(--oc-shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  animation: oc-form-slide 0.45s var(--oc-ease-spring);
}
.oc-booking-form h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--oc-text);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.oc-booking-form label {
  font-size: 12px;
  font-weight: 600;
  color: var(--oc-text-light);
  display: block;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.oc-booking-form input,
.oc-booking-form select {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--oc-border);
  border-radius: var(--oc-radius-xs);
  font-size: 13px;
  margin-bottom: 10px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  color: var(--oc-text);
  background: #fafbfc;
  font-family: var(--oc-font);
}
.oc-booking-form input:focus,
.oc-booking-form select:focus {
  border-color: var(--oc-accent);
  box-shadow: 0 0 0 3px rgba(74,144,217,0.1);
}
.oc-booking-form .oc-booking-submit {
  width: 100%;
  padding: 11px;
  background: linear-gradient(135deg, var(--oc-primary), var(--oc-accent));
  color: #fff;
  border: none;
  border-radius: var(--oc-radius-xs);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(27,58,92,0.2);
}
.oc-booking-form .oc-booking-submit:hover {
  box-shadow: 0 4px 14px rgba(27,58,92,0.3);
  transform: translateY(-1px);
}
.oc-booking-form .oc-booking-submit:active { transform: scale(0.97); }
/* ============================================================
   FILE UPLOAD — Drag-drop zone (Enterprise only)
   ============================================================ */
/* Upload button in input bar */
.oc-upload-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--oc-radius-xs);
  background: rgba(74,144,217,0.06);
  color: var(--oc-accent);
  border: 1.5px solid rgba(74,144,217,0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--oc-transition);
  flex-shrink: 0;
}
.oc-upload-btn:hover {
  background: rgba(74,144,217,0.12);
  border-color: rgba(74,144,217,0.35);
  color: var(--oc-primary);
  transform: scale(1.05);
}
.oc-upload-btn:active { transform: scale(0.92); }
.oc-upload-btn svg { width: 18px; height: 18px; }
/* Drag-drop overlay zone */
.oc-drop-zone {
  position: absolute;
  inset: 0;
  background: rgba(74,144,217,0.06);
  backdrop-filter: blur(8px);
  border: 3px dashed var(--oc-accent);
  border-radius: var(--oc-radius);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 10;
  animation: oc-drag-pulse 1.5s ease-in-out infinite;
}
.oc-drop-zone.oc-drag-active {
  display: flex;
}
.oc-drop-zone-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(74,144,217,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--oc-accent);
}
.oc-drop-zone-icon svg { width: 28px; height: 28px; }
.oc-drop-zone-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--oc-primary);
}
.oc-drop-zone-hint {
  font-size: 12px;
  color: var(--oc-text-light);
}
/* Upload preview strip */
.oc-upload-preview {
  padding: 10px 16px;
  background: var(--oc-glass-bg-heavy);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--oc-border-light);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  animation: oc-fade-in 0.2s ease;
}
.oc-upload-preview img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--oc-border);
  box-shadow: var(--oc-shadow-sm);
}
.oc-upload-preview .oc-upload-file-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(74,144,217,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--oc-accent);
  flex-shrink: 0;
}
.oc-upload-preview .oc-upload-file-icon svg { width: 22px; height: 22px; }
.oc-upload-preview .oc-upload-info {
  flex: 1;
  min-width: 0;
}
.oc-upload-preview .oc-upload-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--oc-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.oc-upload-preview .oc-upload-size {
  font-size: 11px;
  color: var(--oc-text-muted);
  margin-top: 2px;
  display: block;
}
/* Upload progress bar */
.oc-upload-progress {
  width: 100%;
  height: 3px;
  background: var(--oc-border);
  border-radius: 2px;
  margin-top: 4px;
  overflow: hidden;
}
.oc-upload-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--oc-accent), var(--oc-primary));
  border-radius: 2px;
  transition: width 0.3s var(--oc-transition);
  width: 0%;
}
.oc-upload-preview .oc-upload-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--oc-text-muted);
  padding: 6px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.oc-upload-preview .oc-upload-remove:hover {
  color: var(--oc-danger);
  background: rgba(239,68,68,0.08);
}
.oc-upload-preview .oc-upload-remove svg { width: 16px; height: 16px; }
/* ============================================================
   SATISFACTION RATING — Star rating (Enterprise only)
   ============================================================ */
.oc-rating-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: #fff;
  border-radius: 16px;
  align-self: flex-start;
  max-width: 88%;
  box-shadow: var(--oc-shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  animation: oc-form-slide 0.45s var(--oc-ease-spring);
}
.oc-rating-widget p {
  font-size: 14px;
  font-weight: 600;
  color: var(--oc-text);
  text-align: center;
}
.oc-rating-stars {
  display: flex;
  gap: 6px;
}
.oc-rating-star {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--oc-star-empty);
  transition: color 0.15s, transform 0.2s var(--oc-ease-spring);
  display: flex;
  align-items: center;
  justify-content: center;
}
.oc-rating-star svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  transition: fill 0.15s;
}
.oc-rating-star:hover {
  color: var(--oc-star-color);
  transform: scale(1.2);
}
.oc-rating-star.active {
  color: var(--oc-star-color);
}
.oc-rating-star.active.just-selected {
  animation: oc-star-pop 0.3s var(--oc-ease-spring);
}
/* Hover preview: all stars up to hovered one light up */
.oc-rating-stars:hover .oc-rating-star {
  color: var(--oc-star-color);
}
.oc-rating-stars:hover .oc-rating-star:hover ~ .oc-rating-star {
  color: var(--oc-star-empty);
}
.oc-rating-label {
  font-size: 12px;
  color: var(--oc-text-muted);
  min-height: 16px;
  transition: opacity 0.2s;
}
/* Thumbs fallback (still supported) */
.oc-rating-thumbs {
  display: flex;
  gap: 16px;
}
.oc-rating-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--oc-border);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: all 0.2s var(--oc-ease-spring);
}
.oc-rating-btn:hover { transform: scale(1.15); }
.oc-rating-btn.thumbs-up:hover { border-color: var(--oc-success); background: #ecfdf5; }
.oc-rating-btn.thumbs-down:hover { border-color: var(--oc-danger); background: #fef2f2; }
.oc-rating-btn.selected { transform: scale(1.15); }
.oc-rating-btn.selected.thumbs-up { border-color: var(--oc-success); background: var(--oc-success-light); }
.oc-rating-btn.selected.thumbs-down { border-color: var(--oc-danger); background: var(--oc-danger-light); }
/* ============================================================
   CHAT EXPORT BUTTON (Enterprise only)
   ============================================================ */
.oc-export-btn {
  background: rgba(255,255,255,0.08);
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 7px;
  border-radius: 8px;
  transition: background 0.2s, transform 0.2s var(--oc-ease-spring);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.oc-export-btn:hover {
  background: rgba(255,255,255,0.18);
  transform: scale(1.05);
}
.oc-export-btn:active { transform: scale(0.95); }
.oc-export-btn svg { width: 18px; height: 18px; }
/* Tooltip */
.oc-export-btn::after {
  content: 'Export chat';
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: var(--oc-text);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.oc-export-btn:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}
/* ---------- Speaking indicator (waveform) ---------- */
#oc-speaking-indicator {
  display: none;
  justify-content: center;
  align-items: flex-end;
  gap: 3px;
  padding: 10px 0;
  background: linear-gradient(180deg, rgba(74,144,217,0.04) 0%, var(--oc-bg) 100%);
  border-top: 1px solid var(--oc-border-light);
  flex-shrink: 0;
  height: 40px;
}
#oc-speaking-indicator.active { display: flex; }
#oc-speaking-indicator span {
  display: block;
  width: 3.5px;
  background: linear-gradient(180deg, var(--oc-accent) 0%, var(--oc-primary) 100%);
  border-radius: 2px;
  animation: oc-waveform 0.8s ease-in-out infinite;
  transform-origin: bottom;
}
#oc-speaking-indicator span:nth-child(1) { height: 10px; animation-delay: 0s; }
#oc-speaking-indicator span:nth-child(2) { height: 16px; animation-delay: 0.08s; }
#oc-speaking-indicator span:nth-child(3) { height: 22px; animation-delay: 0.16s; }
#oc-speaking-indicator span:nth-child(4) { height: 16px; animation-delay: 0.24s; }
#oc-speaking-indicator span:nth-child(5) { height: 10px; animation-delay: 0.32s; }
/* ---------- Microphone button ---------- */
.re-mic-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(74,144,217,0.06);
  color: var(--oc-accent);
  border: 1.5px solid rgba(74,144,217,0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--oc-ease-spring);
  flex-shrink: 0;
  position: relative;
}
.re-mic-btn:hover {
  background: rgba(74,144,217,0.12);
  color: var(--oc-primary);
  border-color: rgba(74,144,217,0.4);
  transform: scale(1.08);
}
.re-mic-btn:active { transform: scale(0.92); }
.re-mic-btn svg { width: 18px; height: 18px; }
.re-mic-btn.recording {
  background: linear-gradient(135deg, #ef4444, #f43f5e);
  color: #fff;
  border-color: transparent;
  animation: pulse-recording 1.5s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(239,68,68,0.3);
}
.re-mic-btn.recording::after {
  content: '';
  position: absolute;
  top: -4px;
  right: -4px;
  width: 12px;
  height: 12px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid #fff;
  animation: pulse-recording-dot 1s ease-in-out infinite;
}
/* ---------- Mute toggle ---------- */
.re-mute-toggle {
  background: rgba(255,255,255,0.08);
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 7px;
  border-radius: 8px;
  transition: background 0.2s, opacity 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.re-mute-toggle:hover { background: rgba(255,255,255,0.18); transform: scale(1.05); }
.re-mute-toggle svg { width: 18px; height: 18px; }
.re-mute-toggle.muted { opacity: 0.45; }
/* ---------- Input area — Glass effect ---------- */
#oc-chat-input-area {
  padding: 12px 14px;
  background: var(--oc-glass-bg-heavy);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--oc-border-light);
  display: flex;
  gap: 8px;
  align-items: flex-end;
  flex-shrink: 0;
}
#oc-chat-input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--oc-border);
  border-radius: var(--oc-radius-sm);
  font-size: 14px;
  resize: none;
  outline: none;
  max-height: 100px;
  min-height: 42px;
  line-height: 1.45;
  transition: border-color 0.25s, box-shadow 0.25s;
  font-family: var(--oc-font);
  color: var(--oc-text);
  background: rgba(255,255,255,0.8);
}
#oc-chat-input:focus {
  border-color: var(--oc-accent);
  box-shadow: 0 0 0 3px rgba(74,144,217,0.1);
  background: #fff;
}
#oc-chat-input::placeholder { color: var(--oc-text-muted); }
#oc-chat-send {
  width: 42px;
  height: 42px;
  border-radius: var(--oc-radius-sm);
  background: linear-gradient(135deg, var(--oc-primary), var(--oc-accent));
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s var(--oc-ease-spring), box-shadow 0.2s;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(27,58,92,0.25);
}
#oc-chat-send:hover {
  box-shadow: 0 4px 14px rgba(27,58,92,0.3);
  transform: scale(1.05);
}
#oc-chat-send:active { transform: scale(0.92); }
#oc-chat-send:disabled { opacity: 0.4; cursor: default; transform: none; box-shadow: none; }
#oc-chat-send svg { width: 18px; height: 18px; }
/* ---------- Demo mode banner ---------- */
.oc-demo-banner {
  background: linear-gradient(90deg, #fef3c7, #fde68a, #fef3c7);
  background-size: 200% 100%;
  animation: oc-shimmer 3s linear infinite;
  color: #92400e;
  font-size: 11px;
  text-align: center;
  padding: 5px 10px;
  flex-shrink: 0;
  font-weight: 500;
  letter-spacing: 0.01em;
}
/* ============================================================
   MOBILE — Full-screen immersive
   ============================================================ */
@media (max-width: 480px) {
  #oc-chat-panel {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-height: 100%;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    border: none;
  }
  #oc-chat-panel::before { border-radius: 0; }
  #oc-chat-toggle {
    bottom: 16px;
    right: 16px;
    width: 58px;
    height: 58px;
  }
  #oc-chat-toggle svg { width: 24px; height: 24px; }
  #oc-chat-header { padding: 14px 16px; }
  #oc-chat-messages { padding: 16px 14px; }
  .oc-msg { max-width: 88%; }
  .oc-quick-replies { padding: 8px 12px; }
  .oc-gallery-item { width: 200px; }
  .oc-rich-card { max-width: 94%; }
  .oc-rating-star svg { width: 32px; height: 32px; }
}
/* Larger mobile */
@media (max-width: 768px) and (min-width: 481px) {
  #oc-chat-panel {
    width: calc(100vw - 32px);
    right: 16px;
  }
}
/* ============================================================
   ACCESSIBILITY — Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* Dark mode: load chat-widget-enterprise-dark.css or toggle .oc-dark class */
