/* Live Support widget — purple (not green), dark body */

.live-chat-shell {
  --lc-purple: #7c3aed;
  --lc-purple-deep: #6d28d9;
  --lc-body: #16141f;
  --lc-thread: #121018;
  --lc-composer-bg: #121018;
  --lc-composer-edge: #1c1a24;
  background: var(--lc-body);
  border: 1px solid rgba(124, 58, 237, 0.28);
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.live-chat-shell-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 14px 14px 14px 16px;
  background: var(--lc-purple);
}

.live-chat-header-mark {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
}

.live-chat-header-mark svg {
  width: 20px;
  height: 20px;
}

.live-chat-header-text {
  flex: 1;
  min-width: 0;
}

.live-chat-shell-header .live-chat-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0;
  line-height: 1.2;
}

.live-chat-lead {
  display: none;
}

.live-chat-shell-header .live-chat-status-line {
  margin: 3px 0 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.78);
  gap: 6px;
  line-height: 1.3;
}

.live-chat-shell-header .live-chat-status-dot {
  width: 7px;
  height: 7px;
}

.live-chat-shell-header .live-chat-status-dot--online {
  background: #4ade80;
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.25);
}

.live-chat-shell-header .live-chat-status-pill {
  display: inline;
  padding: 0;
  border: none;
  background: none;
  font-size: inherit;
  font-weight: 500;
  line-height: inherit;
  color: rgba(255, 255, 255, 0.78);
}

.live-chat-header-reply::before {
  content: "•";
  margin: 0 6px 0 2px;
  color: rgba(255, 255, 255, 0.55);
}

.live-chat-shell-header .live-chat-last-seen {
  color: rgba(255, 255, 255, 0.6);
}

.live-chat-card-close {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 1.55rem;
  border-radius: 8px;
}

.live-chat-card-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.live-chat-thread {
  background: var(--lc-thread);
  border: none;
  border-radius: 0;
  margin: 0;
  padding: 20px 16px;
}

.live-chat-thread-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 32px 16px;
  color: #9ca3af;
}

.live-chat-welcome-icon {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  background: rgba(124, 58, 237, 0.16);
  color: #a78bfa;
}

.live-chat-welcome-icon svg {
  width: 42px;
  height: 42px;
}

.live-chat-welcome-title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.live-chat-welcome-lead {
  margin: 0;
  max-width: 280px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #9ca3af;
}

.live-chat-msg--user .live-chat-msg-bubble {
  background: var(--lc-purple);
  color: #ffffff;
}

.live-chat-msg--support .live-chat-msg-bubble {
  background: #2a2433;
  color: #f3f4f6;
}

.live-chat-msg--user .live-chat-msg-ticks--read .live-chat-msg-tick {
  color: #ddd6fe;
  text-shadow: none;
}

.live-chat-msg-meta {
  color: #6b7280;
}

.live-chat-image-preview {
  margin: 0;
  padding: 8px 14px 10px;
  background: var(--lc-composer-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.live-chat-image-preview-inner img {
  border-color: rgba(255, 255, 255, 0.08);
  background: #1c1a24;
}

.live-chat-image-preview-remove {
  background: #2a2433;
  border-color: rgba(255, 255, 255, 0.1);
  color: #e5e7eb;
}

.live-chat-image-preview-remove:hover {
  background: #3b3445;
  color: #ffffff;
}

.live-chat-composer {
  margin: 0;
  padding: 12px 14px 14px;
  background: var(--lc-composer-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  gap: 8px;
}

.live-chat-composer-attach,
.live-chat-composer-send {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.live-chat-composer-attach {
  border: none;
  background: #2a2433;
  color: #f3f4f6;
  box-shadow: none;
}

.live-chat-composer-attach:hover {
  background: #342e3f;
  color: #ffffff;
  border-color: transparent;
}

.live-chat-composer-send {
  border: none;
  background: var(--lc-purple);
  color: #ffffff;
  box-shadow: none;
}

.live-chat-composer-send:hover {
  background: var(--lc-purple-deep);
  color: #ffffff;
  border-color: transparent;
}

.live-chat-composer-input {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #1c1a24;
  color: #f9fafb;
}

.live-chat-composer-input::placeholder {
  color: #9ca3af;
}

.live-chat-composer-input:focus {
  border-color: rgba(124, 58, 237, 0.55);
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.18);
  background: #221e2c;
}

.live-chat-send-status {
  margin: 0;
  padding: 0 14px 12px;
  background: var(--lc-composer-bg);
  color: #9ca3af;
  border-radius: 0;
}

body.support-open .live-chat-send-status {
  color: #9ca3af;
}

.live-chat-msg-image:focus-visible,
.dmax-chat-viewable-image:focus-visible {
  outline-color: #a78bfa;
}

/* Fullscreen live chat from hamburger */
body.support-open #supportSection.support-section {
  background: #121018;
}

body.support-open #supportLiveChatCard.support-card-livechat {
  padding: 0;
  background: #121018;
}

body.support-open #supportInAppChatWrap .live-chat-shell {
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.support-card-livechat {
  background: #16141f;
  border-color: rgba(124, 58, 237, 0.35);
}

.support-icon-livechat {
  background: rgba(124, 58, 237, 0.2);
  color: #c4b5fd;
}

.support-livechat-button {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.support-inapp-wrap {
  background: #16141f;
  border-color: rgba(124, 58, 237, 0.28);
}

.support-livechat-guest-text {
  color: #9ca3af;
}

@media (max-width: 768px) {
  body.support-open #supportSection.support-section,
  body.support-open #supportLiveChatCard.support-card-livechat {
    background: #121018;
  }

  body.support-open #supportLiveChatCard.support-card-livechat {
    padding: 0;
  }

  body.support-open #supportLiveChatCard .support-title {
    color: #ffffff;
  }

  body.support-open #supportLiveChatCard .support-subtitle,
  body.support-open #supportLiveChatGuest .support-livechat-guest-text {
    color: #9ca3af;
  }
}
