/* The website sales chat: the launcher, the panel at the bottom right (the owner, 5 October 2026) and, since 8 October
   2026, the in-chat forms to talk to the team or leave it a message. Loaded by the homepage (hash-guarded in
   rosa_one/homepage.json as a shared helper) and by the other public pages; one tag everywhere (test_public_assets.py). */
.sales-chat-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #6b304e;
  border-radius: 999px;
  background: #6b304e;
  color: #fff;
  box-shadow: 0 8px 30px #331a3326;
  padding: 13px 20px 13px 14px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.sales-chat-launcher img {
  width: 22px;
  height: 22px;
}
.sales-chat-launcher[hidden] {
  display: none;
}
.sales-chat-dialog {
  position: fixed;
  inset: auto 24px 24px auto;
  margin: 0;
  z-index: 61;
  box-sizing: border-box;
  width: min(380px, calc(100vw - 24px));
  height: min(640px, calc(100dvh - 48px));
  flex-direction: column;
  border: 1px solid #eadfe7;
  border-radius: 20px;
  padding: 0;
  background: #fffafc;
  color: #332a35;
  box-shadow: 0 20px 80px #331a3333;
  overflow: hidden;
}
.sales-chat-dialog[open] {
  display: flex;
}
.sales-chat-dialog > header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #6b304e;
  color: #fff;
}
.sales-chat-dialog > header img {
  width: 28px;
  height: 28px;
}
.sales-chat-dialog > header div {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.sales-chat-dialog > header strong {
  font-size: 16px;
}
.sales-chat-dialog > header small {
  font-size: 13px;
  opacity: 0.85;
}
.sales-chat-dialog > header button {
  background: transparent;
  border: 1px solid #ffffff66;
  color: #fff;
  border-radius: 50%;
  min-width: 36px;
  min-height: 36px;
  font-size: 22px;
  cursor: pointer;
  margin-left: 6px;
}
.sales-chat-body {
  flex: 1;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 16px;
}
.sales-chat-identify {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding: 14px;
  border: 1px solid #eadfe7;
  border-radius: 14px;
  background: #fff;
}
.sales-chat-note {
  font-size: 13px;
  line-height: 1.5;
  color: #6e5e6b;
  margin: 0;
}
.sales-chat-dialog [hidden] {
  display: none;
}
.sales-chat-dialog label {
  font-size: 14px;
  font-weight: 600;
}
.sales-chat-dialog input,
.sales-chat-dialog textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  border: 1px solid #cdbcca;
  border-radius: 10px;
  background: #fff;
  padding: 12px;
  font-family: inherit;
  font-size: 16px;
  color: inherit;
}
.sales-chat-dialog button:disabled {
  opacity: 0.55;
  cursor: default;
}
.sales-chat-log {
  padding: 4px 0;
}
.sales-chat-bubble {
  margin: 8px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f4eaf1;
  overflow-wrap: anywhere;
}
.sales-chat-bubble.visitor {
  background: #ecefeb;
  margin-left: 32px;
}
.sales-chat-bubble strong {
  font-size: 12px;
}
.sales-chat-bubble p {
  font-size: 15px;
  line-height: 1.5;
  white-space: pre-wrap;
  margin: 5px 0 0;
}
.sales-chat-turn {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #eadfe7;
  background: #fff;
}
.sales-chat-turn textarea {
  resize: none;
  max-height: 120px;
}
.sales-chat-turn button {
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  padding: 0;
}
.sales-chat-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.sales-chat-status {
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  margin: 0;
  padding: 0 16px;
}
.sales-chat-status:empty {
  display: none;
}
.sales-chat-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 10px 16px 14px;
  font-size: 13px;
}
.sales-chat-dialog :focus-visible,
.sales-chat-launcher:focus-visible {
  outline: 3px solid #95627e;
  outline-offset: 3px;
}
@media (max-width: 640px) {
  .sales-chat-launcher {
    right: 12px;
    bottom: 12px;
    padding: 12px 16px 12px 12px;
  }
  .sales-chat-dialog {
    inset: 0;
    width: auto;
    height: auto;
    max-height: none;
    border-radius: 0;
    border: 0;
  }
}
.sales-chat-launcher [hidden] {
  display: none;
}
.sales-chat-lead {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding: 14px;
  border: 1px solid #eadfe7;
  border-radius: 14px;
  background: #fff;
}
.sales-chat-lead strong {
  font-size: 15px;
}
.sales-chat-lead label small {
  font-weight: 400;
  color: #6e5e6b;
}
.sales-chat-lead textarea {
  resize: vertical;
  min-height: 72px;
}
.sales-chat-lead .sales-chat-status {
  padding: 0;
}
.sales-chat-lead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sales-chat-lead-actions .button {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 15px;
}
.sales-chat-lead-actions .button.secondary {
  background: #fff;
  color: #6b304e;
  border: 1px solid #cdbcca;
}
.sales-chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 16px 0;
}
.sales-chat-actions button {
  flex: 1 1 auto;
  min-height: 40px;
  border: 1px solid #d9c6d4;
  border-radius: 999px;
  background: #fff;
  color: #6b304e;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.sales-chat-actions button[aria-pressed='true'] {
  background: #6b304e;
  border-color: #6b304e;
  color: #fff;
}
.sales-chat-actions button:disabled {
  opacity: 0.55;
  cursor: default;
}
