/* ChatMo Base Styles */
.chatmo-widget { position: fixed; bottom: 24px; right: 24px; z-index: 1000; }
.chatmo-position-left { left: 24px; right: auto; }
.chatmo-hide-mobile { display: block; }
.chatmo-hide-desktop { display: block; }
@media (max-width: 767px){ .chatmo-hide-mobile { display: none !important; } }
@media (min-width: 768px){ .chatmo-hide-desktop { display: none !important; } }
.chatmo-toggle { display: inline-flex; align-items: center; gap: 8px; border: none; cursor: pointer; padding: 12px 16px; border-radius: 999px; color: #fff; background: var(--chatmo-main-color, #1f7aec) !important; font-weight: 600; letter-spacing: 0.01em; box-shadow: 0 8px 18px rgba(0,0,0,0.12); transition: background .2s ease, box-shadow .2s ease, transform .06s ease; }
.chatmo-toggle:hover { background: var(--chatmo-hover-color, #1760bf) !important; box-shadow: 0 10px 22px rgba(0,0,0,0.14); transform: translateY(-1px); }
.chatmo-toggle:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(31,122,236,0.35), 0 8px 18px rgba(0,0,0,0.12); }
.chatmo-toggle .chatmo-toggle-label { font-weight: 700; }
/* Status indicator dot */
.chatmo-status-badge { display: inline-flex; align-items: center; justify-content: center; width: 10px; height: 10px; border-radius: 999px; margin-left: 2px; background: #6b7280; }
.chatmo-status-badge.chatmo-online { background: #22c55e; }
.chatmo-status-badge.chatmo-offline { background: #ef4444; }
.chatmo-shape-square .chatmo-toggle { border-radius: 10px; }
.chatmo-panel { margin-top: 10px; width: clamp(280px, 92vw, 380px); background: var(--chatmo-panel-bg, #fff) !important; border: 1px solid #e5e7eb; border-radius: 16px; box-shadow: 0 6px 30px rgba(0,0,0,.12); padding: 14px 16px; overflow: hidden; }
.chatmo-widget.chatmo-closed .chatmo-panel { display: none; }
.chatmo-greeting { position: absolute; right: 0; bottom: 56px; background: var(--chatmo-panel-bg, #fff); color: #111827; padding: 10px 12px; border-radius: 12px; border: 1px solid #e5e7eb; box-shadow: 0 8px 24px rgba(0,0,0,.1); transition: opacity .2s ease, transform .2s ease; }

.chatmo-availability-notice { margin: 4px 0 12px; padding: 10px 12px; border-radius: 10px; background: #fff7ed; color: #9a3412; border-left: 4px solid #f97316; font-size: 13px; }

.chatmo-icon { display: inline-block; width: 20px; height: 20px; }
.chatmo-svg { width: 20px; height: 20px; display: inline-block; }

/* Channel Cards */
.chatmo-panel-section.chatmo-panel-channels { display: grid; gap: 10px; }
.chatmo-channel { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid #e5e7eb; background: #f8fafc; color: #111827; text-decoration: none; transition: border-color .18s ease, box-shadow .18s ease, transform .06s ease; }
.chatmo-channel:hover { border-color: #cbd5e1; box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-1px); }
.chatmo-channel:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(31,122,236,0.35), 0 6px 18px rgba(0,0,0,.08); }
.chatmo-channel .chatmo-icon { width: 28px; height: 28px; border-radius: 8px; background: rgba(31,122,236,0.10); display: inline-flex; align-items: center; justify-content: center; }
.chatmo-channel .chatmo-label { font-weight: 600; }

/* Tab header and channel base styles are in chatmo-form.css */

/* Footer branding for free version */
.chatmo-footer { padding: 10px 12px; border-top: 1px solid #e5e7eb; font-size: 12px; color: #64748b; text-align: center; }

/* Responsive adjustments */
@media (max-width: 480px) {
  .chatmo-widget { right: 16px; bottom: 16px; }
  .chatmo-position-left { left: 16px; }
  .chatmo-toggle { padding: 10px 14px; }
}

@media (max-width: 360px) {
  .chatmo-widget { right: 8px; bottom: 14px; }
  .chatmo-position-left { left: 8px; }
}

/* Motion accessibility */
@media (prefers-reduced-motion: reduce) {
  .chatmo-toggle { transition: none !important; }
}