:root {
  --fp-ink: #13201a;
  --fp-muted: #5d6a64;
  --fp-line: #d7ded8;
  --fp-panel: #ffffff;
  --fp-bg: #f7f5ef;
  --fp-primary: #1f6b5c;
  --fp-primary-dark: #0f2d25;
  --fp-accent: #ecb365;
  --fp-shadow: 0 22px 70px rgba(19, 32, 26, 0.18);
}

.fp-chat-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 2147483000;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: #fff;
  background: var(--fp-primary-dark);
  box-shadow: 0 14px 34px rgba(15, 45, 37, 0.22);
  font: 700 15px/1.2 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
}

.fp-chat-launcher svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.fp-chat-panel {
  position: fixed;
  right: 22px;
  bottom: 88px;
  z-index: 2147483001;
  display: none;
  width: min(390px, calc(100vw - 28px));
  max-height: min(680px, calc(100vh - 110px));
  overflow: hidden;
  border: 1px solid rgba(19, 32, 26, 0.1);
  border-radius: 18px;
  color: var(--fp-ink);
  background: var(--fp-panel);
  box-shadow: var(--fp-shadow);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.fp-chat-panel.is-open {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.fp-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 14px;
  background: #edf6f2;
  border-bottom: 1px solid var(--fp-line);
}

.fp-chat-title {
  display: grid;
  gap: 4px;
}

.fp-chat-title strong {
  font-size: 16px;
}

.fp-chat-title span {
  color: var(--fp-muted);
  font-size: 13px;
  line-height: 1.35;
}

.fp-chat-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(19, 32, 26, 0.14);
  border-radius: 8px;
  color: var(--fp-ink);
  background: #fff;
  cursor: pointer;
}

.fp-chat-close svg {
  width: 18px;
  height: 18px;
}

.fp-chat-log {
  display: grid;
  align-content: start;
  gap: 10px;
  overflow-y: auto;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff 0%, var(--fp-bg) 100%);
}

.fp-message {
  max-width: 86%;
  border-radius: 14px;
  padding: 11px 12px;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.fp-message.assistant {
  justify-self: start;
  border-bottom-left-radius: 5px;
  background: #fff;
  border: 1px solid var(--fp-line);
}

.fp-message.user {
  justify-self: end;
  border-bottom-right-radius: 5px;
  color: #fff;
  background: var(--fp-primary);
}

.fp-chat-form {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--fp-line);
  background: #fff;
}

.fp-chat-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.fp-chat-input {
  width: 100%;
  min-height: 48px;
  resize: none;
  border: 1px solid var(--fp-line);
  border-radius: 12px;
  padding: 12px;
  color: var(--fp-ink);
  background: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
  box-sizing: border-box;
}

.fp-chat-send,
.fp-book-button {
  border: 0;
  border-radius: 12px;
  padding: 0 14px;
  min-height: 48px;
  color: #fff;
  background: var(--fp-primary-dark);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.fp-chat-send {
  width: 54px;
  display: grid;
  place-items: center;
}

.fp-chat-send svg {
  width: 19px;
  height: 19px;
}

.fp-chat-send:disabled {
  opacity: 0.55;
  cursor: wait;
}

.fp-book-button {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  text-decoration: none;
}

.fp-book-button.is-visible {
  display: inline-flex;
}

.fp-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--fp-muted);
  font-size: 12px;
  line-height: 1.35;
}

.fp-consent input {
  margin-top: 2px;
}

.fp-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fp-chip {
  border: 1px solid var(--fp-line);
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--fp-primary-dark);
  background: #fff;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

@media (max-width: 520px) {
  .fp-chat-launcher {
    right: 14px;
    bottom: 14px;
  }

  .fp-chat-panel {
    right: 14px;
    bottom: 78px;
    max-height: calc(100vh - 92px);
    border-radius: 14px;
  }
}

