/* ── ASK PONZ CHAT WIDGET ── */
.chat-launcher {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1000;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--pink);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(255,45,120,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  font-size: 1.6rem;
  line-height: 1;
}

.chat-launcher:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(255,45,120,0.5);
}

.chat-launcher-label {
  position: absolute;
  right: 72px;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--cream);
  font-family: 'League Spartan', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 8px 14px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.2s;
}

.chat-launcher-label::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--bg2);
}

.chat-panel {
  position: fixed;
  bottom: 100px;
  right: 28px;
  z-index: 1001;
  width: 380px;
  max-width: calc(100vw - 48px);
  height: 500px;
  max-height: calc(100vh - 140px);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,0.4);
}

.chat-panel.open {
  display: flex;
}

.chat-header {
  padding: 16px 20px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-title {
  font-family: 'League Spartan', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--cream);
}

.chat-header-title span {
  color: var(--pink);
}

.chat-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}

.chat-close:hover {
  color: var(--cream);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.55;
  font-family: 'Lora', serif;
}

.chat-msg.bot {
  align-self: flex-start;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
}

.chat-msg.user {
  align-self: flex-end;
  background: var(--pink);
  color: #fff;
  border: none;
}

.chat-msg.bot a {
  color: var(--pink);
  text-decoration: underline;
}

.chat-typing {
  align-self: flex-start;
  padding: 10px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: none;
  gap: 4px;
  align-items: center;
}

.chat-typing.show {
  display: flex;
}

.chat-typing-dot {
  width: 6px;
  height: 6px;
  background: var(--muted);
  border-radius: 50%;
  animation: typingBounce 1.2s ease-in-out infinite;
}

.chat-typing-dot:nth-child(2) { animation-delay: 0.15s; }
.chat-typing-dot:nth-child(3) { animation-delay: 0.3s; }

.chat-input-wrap {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
}

.chat-input {
  flex: 1;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--cream);
  font-family: 'Lora', serif;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s;
}

.chat-input::placeholder {
  color: var(--muted);
}

.chat-input:focus {
  border-color: var(--pink);
}

.chat-send {
  background: var(--pink);
  border: none;
  border-radius: 8px;
  padding: 0 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.chat-send:hover {
  background: var(--pink-dim);
}

.chat-send svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

/* ── CHAT MOBILE ── */
@media (max-width: 480px) {
  .chat-panel {
    bottom: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }
  .chat-launcher-label { display: none; }
}
