/* Faisons Simple — chat widget (Simon) */
:root {
  --fs-chat-pink: #FF2D87;
  --fs-chat-coral: #FF7A2E;
  --fs-chat-orange: #FF9A3C;
  --fs-chat-ink: #1A1A2E;
  --fs-chat-muted: #6B6B85;
  --fs-chat-line: #E8E8F0;
  --fs-chat-bg: #FFFFFF;
  --fs-chat-soft: #F7F7FB;
  --fs-chat-tint: #FFF5F9;
  --fs-chat-z: 90;
  --fs-chat-radius: 14px;
  --fs-chat-shadow: 0 18px 48px rgba(26, 26, 46, 0.18);
  --fs-chat-font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.fs-chat {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: var(--fs-chat-z);
  font-family: var(--fs-chat-font);
  color: var(--fs-chat-ink);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.fs-chat *,
.fs-chat *::before,
.fs-chat *::after {
  box-sizing: border-box;
}

.fs-chat__launcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.25rem;
  padding: 0 1.15rem 0 1rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: #fff;
  font: inherit;
  font-weight: 650;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  background: linear-gradient(115deg, var(--fs-chat-pink) 0%, #FF4F6A 45%, var(--fs-chat-coral) 100%);
  box-shadow: 0 14px 36px rgba(255, 45, 135, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fs-chat__launcher:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(255, 45, 135, 0.42);
}

.fs-chat__launcher:focus-visible {
  outline: 3px solid rgba(255, 45, 135, 0.45);
  outline-offset: 3px;
}

.fs-chat__launcher-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
}

.fs-chat__launcher[aria-expanded="true"] {
  background: var(--fs-chat-ink);
  box-shadow: 0 10px 28px rgba(26, 26, 46, 0.28);
}

.fs-chat__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.75rem);
  width: min(24.5rem, calc(100vw - 1.5rem));
  height: min(34rem, calc(100vh - 6.5rem));
  display: flex;
  flex-direction: column;
  background: var(--fs-chat-bg);
  border: 1px solid var(--fs-chat-line);
  border-radius: var(--fs-chat-radius);
  box-shadow: var(--fs-chat-shadow);
  overflow: hidden;
}

.fs-chat__panel[hidden] {
  display: none !important;
}

.fs-chat__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  color: #fff;
  background: linear-gradient(115deg, var(--fs-chat-pink) 0%, #FF4F6A 40%, var(--fs-chat-coral) 100%);
}

.fs-chat__logo {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.2rem;
  flex: 0 0 auto;
}

.fs-chat__titles {
  min-width: 0;
  flex: 1 1 auto;
}

.fs-chat__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.fs-chat__subtitle {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  opacity: 0.92;
  line-height: 1.3;
}

.fs-chat__close {
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  flex: 0 0 auto;
}

.fs-chat__close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.fs-chat__close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.fs-chat__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  background: var(--fs-chat-soft);
}

.fs-chat__messages {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  scroll-behavior: smooth;
}

.fs-chat__msg {
  max-width: 88%;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  font-size: 0.9rem;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.fs-chat__msg--bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--fs-chat-line);
  color: var(--fs-chat-ink);
  border-bottom-left-radius: 4px;
}

.fs-chat__msg--user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--fs-chat-pink), var(--fs-chat-coral));
  color: #fff;
  border-bottom-right-radius: 4px;
}

.fs-chat__msg--meta {
  align-self: center;
  max-width: 100%;
  padding: 0.35rem 0.6rem;
  font-size: 0.75rem;
  color: var(--fs-chat-muted);
  background: transparent;
}

.fs-chat__status {
  padding: 0 1rem 0.35rem;
  font-size: 0.75rem;
  color: var(--fs-chat-muted);
  min-height: 1.1rem;
}

.fs-chat__capture {
  padding: 0.65rem 1rem 0;
  display: grid;
  gap: 0.45rem;
  background: var(--fs-chat-soft);
}

.fs-chat__capture[hidden] {
  display: none !important;
}

.fs-chat__capture label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fs-chat-muted);
}

.fs-chat__capture input[type="email"],
.fs-chat__capture input[type="text"] {
  width: 100%;
  border: 1px solid var(--fs-chat-line);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  font-size: 0.9rem;
  background: #fff;
  color: var(--fs-chat-ink);
}

.fs-chat__capture input:focus {
  outline: none;
  border-color: var(--fs-chat-pink);
  box-shadow: 0 0 0 3px rgba(255, 45, 135, 0.15);
}

.fs-chat__hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.fs-chat__form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid var(--fs-chat-line);
  background: #fff;
}

.fs-chat__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid var(--fs-chat-line);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 0.9rem;
  resize: none;
  min-height: 2.75rem;
  max-height: 6.5rem;
  line-height: 1.4;
  color: var(--fs-chat-ink);
  background: var(--fs-chat-soft);
}

.fs-chat__input:focus {
  outline: none;
  border-color: var(--fs-chat-pink);
  box-shadow: 0 0 0 3px rgba(255, 45, 135, 0.15);
  background: #fff;
}

.fs-chat__send {
  flex: 0 0 auto;
  align-self: flex-end;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  color: #fff;
  font: inherit;
  font-weight: 650;
  font-size: 0.9rem;
  background: var(--fs-chat-pink);
}

.fs-chat__send:hover:not(:disabled) {
  background: #e02578;
}

.fs-chat__send:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.fs-chat__send:focus-visible {
  outline: 3px solid rgba(255, 45, 135, 0.45);
  outline-offset: 2px;
}

.fs-chat__footer {
  padding: 0 1rem 0.75rem;
  font-size: 0.7rem;
  color: var(--fs-chat-muted);
  background: #fff;
}

.fs-chat__footer a {
  color: var(--fs-chat-pink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 480px) {
  .fs-chat {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .fs-chat__panel {
    position: fixed;
    right: 0.5rem;
    left: 0.5rem;
    bottom: 4.5rem;
    width: auto;
    height: min(70vh, 32rem);
  }

  .fs-chat__launcher-label {
    display: none;
  }

  .fs-chat__launcher {
    width: 3.4rem;
    height: 3.4rem;
    padding: 0;
    border-radius: 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fs-chat__launcher {
    transition: none;
  }

  .fs-chat__messages {
    scroll-behavior: auto;
  }
}
