.plp-chat-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(155deg, var(--color-accent), var(--color-accent-dark));
  color: #fff;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
  font-family: var(--font-body);
}
.plp-chat-launcher:hover { transform: translateY(-2px) scale(1.03); }
.plp-chat-launcher:focus-visible { outline: 3px solid var(--color-gold); outline-offset: 3px; }
.plp-chat-launcher svg { width: 26px; height: 26px; }
.plp-chat-launcher .plp-chat-dot {
  position: absolute; top: 4px; right: 4px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--color-gold); border: 2px solid var(--color-paper);
}

.plp-chat-panel {
  position: fixed;
  right: 22px;
  bottom: 94px;
  z-index: 60;
  width: min(370px, calc(100vw - 32px));
  max-height: min(560px, calc(100vh - 140px));
  background: var(--color-paper-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.plp-chat-panel[data-open="true"] { opacity: 1; transform: none; pointer-events: auto; }

.plp-chat-head {
  background: var(--color-ink);
  color: #fff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.plp-chat-head .who { display: flex; align-items: center; gap: 10px; }
.plp-chat-head .avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(155deg, var(--color-accent), var(--color-gold));
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; flex-shrink: 0;
}
.plp-chat-head .title { font-weight: 700; font-size: 0.95rem; line-height: 1.2; }
.plp-chat-head .subtitle { font-size: 0.76rem; color: rgba(255,255,255,0.65); }
.plp-chat-close { background: none; border: none; color: rgba(255,255,255,0.8); cursor: pointer; padding: 6px; line-height: 0; }
.plp-chat-close:hover { color: #fff; }

.plp-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--color-paper);
}

.plp-msg { display: flex; }
.plp-msg.bot { justify-content: flex-start; }
.plp-msg.user { justify-content: flex-end; }
.plp-bubble {
  max-width: 84%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.plp-msg.bot .plp-bubble { background: var(--color-paper-raised); border: 1px solid var(--color-border); border-bottom-left-radius: 4px; }
.plp-msg.user .plp-bubble { background: var(--color-accent); color: #fff; border-bottom-right-radius: 4px; }

.plp-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.plp-choice-btn {
  border: 1px solid var(--color-border-strong);
  background: var(--color-paper-raised);
  color: var(--color-ink);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
}
.plp-choice-btn:hover { background: var(--color-accent-tint); border-color: var(--color-accent); }
.plp-choice-btn:focus-visible { outline: 3px solid var(--color-gold); outline-offset: 2px; }

.plp-chat-foot { border-top: 1px solid var(--color-border); padding: 12px 14px; background: var(--color-paper-raised); }
.plp-chat-form { display: flex; gap: 8px; }
.plp-chat-form input {
  flex: 1; font: inherit; padding: 10px 12px; border-radius: 999px; border: 1px solid var(--color-border-strong);
  background: var(--color-paper); color: var(--color-ink); font-size: 0.9rem;
}
.plp-chat-form input:focus { outline: 3px solid var(--color-gold); outline-offset: 1px; border-color: var(--color-accent); }
.plp-chat-form button {
  width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--color-accent); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.plp-chat-form button:hover { background: var(--color-accent-dark); }
.plp-chat-form button[disabled] { opacity: 0.5; cursor: not-allowed; }
.plp-field-error { color: #B3261E; font-size: 0.76rem; padding: 4px 4px 0; min-height: 1.1em; }

.plp-summary { background: var(--color-paper-raised); border: 1px solid var(--color-border); border-radius: 10px; padding: 12px 14px; font-size: 0.85rem; display: grid; gap: 6px; }
.plp-summary div { display: flex; justify-content: space-between; gap: 12px; }
.plp-summary .k { color: var(--color-ink-soft); }
.plp-summary .v { font-weight: 600; text-align: right; }

.plp-success { text-align: center; padding: 6px 4px; }
.plp-success .check {
  width: 48px; height: 48px; border-radius: 50%; background: var(--color-success-tint); color: var(--color-success);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-size: 1.4rem;
}
.plp-success h4 { margin: 0 0 6px; font-family: var(--font-display); }
.plp-success p { font-size: 0.88rem; color: var(--color-ink-soft); margin: 0 0 14px; }
.plp-call-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--color-accent-dark); text-decoration: none; }
.plp-call-link:hover { text-decoration: underline; }
.plp-call-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; }
.plp-call-or { font-weight: 500; color: var(--color-ink-soft); font-size: 0.85em; }

.plp-typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.plp-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--color-ink-soft); opacity: 0.5; animation: plp-blink 1.1s infinite ease-in-out; }
.plp-typing span:nth-child(2) { animation-delay: 0.15s; }
.plp-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes plp-blink { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }

@media (prefers-reduced-motion: reduce) {
  .plp-chat-panel, .plp-chat-launcher { transition: none; }
  .plp-typing span { animation: none; opacity: 0.6; }
}
