/* ── script.live Chat Widget ── */
.lc-chat-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #e11d6f;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(225,29,111,0.35);
  z-index: 9999;
  transition: transform 0.15s, box-shadow 0.15s;
}

.lc-chat-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(225,29,111,0.45);
}

.lc-chat-fab svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.lc-chat-window {
  position: fixed;
  bottom: 88px;
  right: 24px;
  width: 360px;
  height: 480px;
  background: #fff;
  border: 1px solid #e8e4de;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  z-index: 9998;
  display: none;
  flex-direction: column;
  font-family: 'DM Sans', system-ui, sans-serif;
}

.lc-chat-window.open {
  display: flex;
}

/* Header */
.lc-chat-header {
  background: #1a1a1a;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.lc-chat-header-left {
  display: flex;
  flex-direction: column;
}

.lc-chat-header-title {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.lc-chat-header-sub {
  color: rgba(255,255,255,0.75);
  font-size: 11px;
  margin-top: 2px;
}

.lc-chat-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lc-chat-clear {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 10px;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

.lc-chat-clear:hover { color: #fff; }

.lc-chat-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.75);
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.lc-chat-close:hover { color: #fff; }

/* Messages */
.lc-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lc-chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.5;
  word-wrap: break-word;
}

.lc-chat-msg a {
  color: inherit;
  text-decoration: underline;
}

.lc-chat-msg-user {
  align-self: flex-end;
  background: #e11d6f;
  color: #fff;
  border-radius: 12px 12px 2px 12px;
}

.lc-chat-msg-assistant {
  align-self: flex-start;
  background: #f5f5f4;
  color: #1a1a1a;
  border-radius: 12px 12px 12px 2px;
}

.lc-chat-msg-assistant strong {
  font-weight: 600;
}

/* CTA Buttons under bot messages */
.lc-chat-ctas {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.lc-chat-cta {
  display: block;
  background: #e11d6f;
  color: #fff !important;
  text-align: center;
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: opacity 0.15s, transform 0.15s;
}

.lc-chat-cta:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* Input */
.lc-chat-input-area {
  border-top: 1px solid #e8e4de;
  padding: 12px 14px;
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.lc-chat-input {
  flex: 1;
  border: 1px solid #e8e4de;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  background: #fff;
  color: #1a1a1a;
}

.lc-chat-input:focus {
  border-color: #e11d6f;
}

.lc-chat-input::placeholder {
  color: #aaa;
}

.lc-chat-send {
  background: #e11d6f;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s;
}

.lc-chat-send:hover { background: #c91a63; }
.lc-chat-send:disabled { opacity: 0.5; cursor: not-allowed; }

/* Typing indicator */
.lc-chat-typing {
  align-self: flex-start;
  padding: 10px 14px;
  background: #f5f5f4;
  border-radius: 12px 12px 12px 2px;
  font-size: 13px;
  color: #888;
}

.lc-chat-typing span {
  animation: lc-blink 1.4s infinite;
}

.lc-chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.lc-chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes lc-blink {
  0%, 60%, 100% { opacity: 0.3; }
  30% { opacity: 1; }
}

/* Live-Recording-Indicator (in App-Pages) */
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #e11d6f;
}
.live-indicator::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e11d6f;
  box-shadow: 0 0 12px rgba(225, 29, 111, 0.6);
  animation: live-pulse 1.4s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Brand-Logo (script.live) */
.brand-logo {
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
}
.brand-text {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.025em;
  color: #1a1a1a;
}
.brand-dot {
  color: #e11d6f;
  font-weight: 900;
}

/* Mobile */
@media (max-width: 480px) {
  .lc-chat-window {
    width: calc(100vw - 16px);
    height: calc(100vh - 120px);
    right: 8px;
    bottom: 80px;
    border-radius: 12px;
  }
}
