.pcm-static-chat-button {
  align-items: center;
  background: #cc1a1a;
  border: 0;
  border-radius: 999px;
  bottom: 24px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
  color: #fff;
  cursor: pointer;
  display: flex;
  height: 56px;
  justify-content: center;
  position: fixed;
  right: 24px;
  transition: background 0.2s ease, transform 0.2s ease;
  width: 56px;
  z-index: 70;
}

.pcm-static-chat-button:hover { background: #a31515; transform: translateY(-1px); }
.pcm-static-chat-button:focus-visible,
.pcm-static-chat-close:focus-visible,
.pcm-static-chat-send:focus-visible { outline: 3px solid rgba(204, 26, 26, 0.35); outline-offset: 2px; }

.pcm-static-chat-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  bottom: 96px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.2);
  display: flex;
  flex-direction: column;
  max-height: 480px;
  overflow: hidden;
  position: fixed;
  right: 24px;
  width: min(384px, calc(100vw - 32px));
  z-index: 70;
}

.pcm-static-chat-header { align-items: center; background: #cc1a1a; color: #fff; display: flex; gap: 12px; padding: 12px 16px; }
.pcm-static-chat-avatar { align-items: center; background: rgba(255,255,255,.2); border-radius: 999px; display: flex; height: 32px; justify-content: center; width: 32px; }
.pcm-static-chat-title { font: 600 14px/1.25 Arial, sans-serif; }
.pcm-static-chat-subtitle { color: #fecaca; font: 12px/1.25 Arial, sans-serif; margin-top: 2px; }
.pcm-static-chat-close { background: transparent; border: 0; color: inherit; cursor: pointer; margin-left: auto; padding: 4px; }
.pcm-static-chat-messages { display: flex; flex: 1; flex-direction: column; gap: 12px; min-height: 0; overflow-y: auto; padding: 16px; }
.pcm-static-chat-message { display: flex; gap: 8px; }
.pcm-static-chat-message.is-user { flex-direction: row-reverse; }
.pcm-static-chat-message-avatar { align-items: center; background: #cc1a1a; border-radius: 999px; color: #fff; display: flex; flex: 0 0 auto; height: 28px; justify-content: center; width: 28px; }
.pcm-static-chat-message.is-user .pcm-static-chat-message-avatar { background: #e5e7eb; color: #4b5563; }
.pcm-static-chat-bubble { background: #f3f4f6; border-radius: 14px 14px 14px 3px; color: #1f2937; font: 14px/1.55 Arial, sans-serif; max-width: 75%; padding: 8px 12px; white-space: pre-wrap; }
.pcm-static-chat-message.is-user .pcm-static-chat-bubble { background: #cc1a1a; border-radius: 14px 14px 3px 14px; color: #fff; }
.pcm-static-chat-bubble a { color: #2563eb; text-decoration: underline; }
.pcm-static-chat-form { border-top: 1px solid #e5e7eb; display: flex; gap: 8px; padding: 12px; }
.pcm-static-chat-input { border: 1px solid #d1d5db; border-radius: 999px; flex: 1; font: 14px Arial, sans-serif; min-width: 0; padding: 8px 16px; }
.pcm-static-chat-input:focus { border-color: #cc1a1a; box-shadow: 0 0 0 2px rgba(204, 26, 26, .15); outline: 0; }
.pcm-static-chat-send { align-items: center; background: #cc1a1a; border: 0; border-radius: 999px; color: #fff; cursor: pointer; display: flex; height: 36px; justify-content: center; width: 36px; }
.pcm-static-chat-send:disabled { cursor: not-allowed; opacity: .5; }

@media (max-width: 640px) {
  .pcm-static-chat-button { bottom: 18px; right: 16px; }
  .pcm-static-chat-panel { bottom: 86px; right: 16px; width: calc(100vw - 32px); }
}
