/**
 * @file
 * CN Chat — nur komponentenspezifische Rest-Styles (Farben, Schatten, Radien, Zustände).
 * Generische Layout-/Abstands-Utilities: Twig {{ cns('…') }}.
 *
 * @version 3.1.0 — 15.04.2026 Europe/Berlin
 */

/* ── Trigger ── */
.cns-4b7d3b1 {
  appearance: none;
  border: none;
  background: transparent;
  line-height: 0;
}

.cns-476089c {
  max-height: 50px;
}

/* ── Overlay ── */
.cns-5fc1a19 {
  display: none;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.45);
}

.cns-5fc1a19[aria-hidden="false"] {
  display: flex;
}

/* ── Dialog ── */
.cns-26f5376 {
  max-width: 500px;
  height: 500px;
  margin: 0 auto;
  border-radius: 14px;
  background: #fff;
  color: #1d2733;
  color-scheme: light;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

@media (max-width: 768px) {
  .cns-26f5376 {
    margin: 0 10px;
  }
}

@media (max-width: 540px) {
  .cns-26f5376 {
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    margin: 10px;
    border-radius: 10px;
  }
}

/* ── Header ── */
.cns-a463d0f {
  padding: 12px 16px;
  border-bottom: 1px solid #e4e7ec;
}

.cns-57a390c {
  height: 60px !important;
}

.cns-219be76 {
  min-width: 22px;
  min-height: 22px;
  color: #6b7280;
  cursor: default;
}

.cns-219be76:hover {
  color: #1d2733;
}

.cns-a89274f {
  width: 22px;
  height: 22px;
  color: #6b7280;
}

.cns-219be76:hover .cns-a89274f {
  color: #1d2733;
}

.cns-86740f2 {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 2px;
}

.cns-ac1c4b5 {
  font-size: 1rem;
  font-weight: 700;
  color: inherit;
}

.cns-ebbad2f {
  appearance: none;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: #6b7280;
  padding: 0 2px;
}

.cns-ebbad2f:hover {
  color: #1d2733;
}

/* ── Messages ── */
.cns-804fc48 {
  min-height: 0;
  padding: 14px 16px;
}

.cns-9dc6438 {
  max-width: 85%;
  border-radius: 12px;
}

.cns-860ffd6 {
  background: #f3f5f8;
  color: #1d2733;
}

.cns-4517787 {
  background: #e7f0ff;
  color: #1d2733;
}

.cns-e39d2e1 {
  color: inherit;
}

/* ── Footer ── */
.cns-91716eb {
  padding: 10px 16px 14px;
  border-top: 1px solid #e4e7ec;
}

.cns-cd85a76 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cns-eb71f8f {
  min-height: 52px;
  resize: none;
  border: 1px solid #c7cfd9;
  border-radius: 10px;
  font: inherit;
  background: #fff;
  color: #1d2733;
  padding: 8px 12px;
}

.cns-e4bce5a {
  min-height: 0;
}

.cns-ab38903 {
  gap: 6px;
  min-height: 36px;
}

.cns-9c69f00 {
  font-size: 0.75rem;
  color: #6b7280;
  max-width: 140px;
  line-height: 1.2;
}

.cns-b861156,
.cns-89fc62c {
  appearance: none;
  width: 40px;
  height: 36px;
  border: 1px solid #c7cfd9;
  border-radius: 10px;
  background: #fff;
  color: #5c6570;
}

.cns-b861156:hover:not(:disabled),
.cns-89fc62c:hover:not(:disabled) {
  border-color: #165dff;
  color: #165dff;
}

.cns-b861156:disabled,
.cns-89fc62c:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cns-b861156.cns-9abc267,
.cns-89fc62c.cns-9abc267 {
  border-color: #165dff;
  background: #e8f0ff;
  color: #165dff;
}

.cns-c04859f {
  appearance: none;
  border: 1px solid #c7cfd9;
  background: #fff;
  color: #1d2733;
}

.cns-beecad1 {
  appearance: none;
  border: 1px solid #165dff;
  background: #165dff;
  color: #fff;
}

.cns-c04859f,
.cns-beecad1 {
  font: inherit;
  font-size: 0.875rem;
  border-radius: 10px;
  padding: 8px 14px;
}

/* ── Thinking ── */
.cns-10d8160 {
  display: none;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f3f5f8;
}

.cns-10d8160[aria-hidden="false"] {
  display: inline-flex;
}

.cns-2a139a4 {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c7cfd9;
  animation: cns-dot-pulse 1.4s ease-in-out infinite;
}

.cns-2a139a4[data-cns-chat-dot="0"] {
  animation-delay: 0s;
}

.cns-2a139a4[data-cns-chat-dot="1"] {
  animation-delay: 0.15s;
}

.cns-2a139a4[data-cns-chat-dot="2"] {
  animation-delay: 0.3s;
}

.cns-2a139a4[data-cns-chat-dot="3"] {
  animation-delay: 0.45s;
}

.cns-2a139a4[data-cns-chat-dot="4"] {
  animation-delay: 0.6s;
}

@keyframes cns-dot-pulse {
  0%,
  100% {
    background: #dfe3e9;
    transform: scale(1);
  }

  40% {
    background: #3b4a5c;
    transform: scale(1.25);
  }
}
