/* Chat widget LK Media — přebírá proměnné z style.css */

.lkchat-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 900;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid rgba(201,169,110,.35);
  color: var(--accent); font-size: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s ease, border-color .2s ease;
}
.lkchat-fab:hover { transform: translateY(-2px); border-color: var(--accent); }
.lkchat-fab:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.lkchat-panel {
  position: fixed; right: 24px; bottom: 92px; z-index: 900;
  width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 140px));
  background: var(--bg-secondary); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg); display: none; flex-direction: column;
  overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.lkchat-panel[data-open="true"] { display: flex; }

.lkchat-head {
  padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.08);
  font-family: var(--font-display); color: var(--text-primary); font-size: 17px;
  display: flex; justify-content: space-between; align-items: center;
}
.lkchat-head button { background: none; border: 0; color: var(--text-muted); cursor: pointer; font-size: 20px; line-height: 1; }
.lkchat-head button:hover { color: var(--text-primary); }

.lkchat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.lkchat-msg { max-width: 85%; padding: 10px 13px; border-radius: 14px; font-size: 14.5px; line-height: 1.55; white-space: pre-wrap; word-wrap: break-word; }
.lkchat-msg--user { align-self: flex-end; background: rgba(201,169,110,.14); color: var(--text-primary); }
.lkchat-msg--bot { align-self: flex-start; background: var(--bg-card); color: var(--text-secondary); }
.lkchat-msg--err { align-self: flex-start; background: #3a2020; color: #f0c9c9; }

.lkchat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.lkchat-form input {
  flex: 1; min-width: 0; background: var(--bg-card); border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px; padding: 10px 14px; color: var(--text-primary); font-size: 14.5px;
  font-family: inherit;
}
.lkchat-form input:focus { outline: none; border-color: var(--accent); }
.lkchat-form button {
  background: var(--accent); border: 0; border-radius: 999px;
  padding: 0 18px; color: #1a1408; font-weight: 600; cursor: pointer;
  font-family: inherit; font-size: 14px;
}
.lkchat-form button:disabled { opacity: .5; cursor: default; }

.lkchat-note { padding: 0 16px 10px; font-size: 11.5px; color: var(--text-muted); }

@media (max-width: 520px) {
  .lkchat-panel { right: 8px; left: 8px; width: auto; bottom: 84px; }
  .lkchat-fab { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .lkchat-fab { transition: none; }
}
