.contact-embed {
  --chat-accent: #f2b84b;
  --chat-ink: #f7f9fc;
  --chat-muted: #9ba8bb;
  --chat-line: rgba(255, 255, 255, 0.1);
}
.contact-embed .chat {
  width: 100%;
  max-width: 720px;
  min-width: 0;
  height: min(640px, 80dvh);
  min-height: 420px;
  background: rgba(12, 24, 40, 0.92);
  border: 1px solid var(--chat-line);
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
  color: var(--chat-ink);
}
.contact-embed .chat header {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--chat-line);
  background: rgba(255, 255, 255, 0.018);
}
.contact-embed .avatar {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--chat-accent);
  color: #17202b;
  display: grid;
  place-items: center;
  font-weight: 900;
  flex: 0 0 auto;
}
.contact-embed .chat header div:nth-child(2) {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.contact-embed .chat header strong { font-size: 15px; }
.contact-embed .chat header span { font-size: 12px; color: var(--chat-muted); }
.contact-embed .chat header i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4bd28f;
  margin-right: 5px;
  box-shadow: 0 0 0 4px rgba(75, 210, 143, 0.1);
}
.contact-embed .reset {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #9eacbd;
  font-size: 22px;
  cursor: pointer;
}
.contact-embed .messages {
  padding: 24px;
  overflow: auto;
  scroll-behavior: smooth;
}
.contact-embed .day {
  text-align: center;
  color: #748397;
  font-size: 11px;
  margin-bottom: 20px;
}
.contact-embed .bubble { max-width: 82%; margin: 0 0 14px; }
.contact-embed .bubble p {
  padding: 13px 16px;
  margin: 0;
  border-radius: 7px 17px 17px 17px;
  background: #18283a;
  color: #e5eaf1;
  line-height: 1.5;
  font-size: 14px;
  white-space: pre-wrap;
}
.contact-embed .bubble time {
  display: block;
  font-size: 10px;
  color: #728196;
  margin: 6px 8px;
}
.contact-embed .bubble.user { margin-left: auto; }
.contact-embed .bubble.user p {
  background: var(--chat-accent);
  color: #17202b;
  border-radius: 17px 7px 17px 17px;
}
.contact-embed .bubble.user time { text-align: right; }
.contact-embed .bubble.pending { opacity: 0.65; }
.contact-embed .chat form {
  border-top: 1px solid var(--chat-line);
  padding: 14px 18px 16px;
}
.contact-embed .identity {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.contact-embed .identity label {
  font-size: 10px;
  color: #9eacbd;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.contact-embed .identity input {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 6px;
  background: #101f30;
  border: 1px solid var(--chat-line);
  border-radius: 10px;
  padding: 11px;
  color: #fff;
  outline: none;
}
.contact-embed .identity input:focus,
.contact-embed .composer:focus-within { border-color: var(--chat-accent); }
.contact-embed .composer {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  background: #101f30;
  border: 1px solid var(--chat-line);
  border-radius: 14px;
  padding: 9px;
}
.contact-embed .composer textarea {
  flex: 1;
  min-width: 0;
  resize: none;
  max-height: 120px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  padding: 7px;
  font: inherit;
  line-height: 1.45;
}
.contact-embed .composer button {
  border: 0;
  border-radius: 10px;
  background: var(--chat-accent);
  color: #17202b;
  height: 40px;
  padding: 0 14px;
  font-weight: 800;
  cursor: pointer;
  flex: 0 0 auto;
}
.contact-embed .composer button b { display: none; }
.contact-embed .composer button:active { transform: translateY(1px); }
.contact-embed .status {
  text-align: center;
  margin: 9px 0 0;
  color: #77869a;
  font-size: 10px;
}
.contact-embed .status.error { color: #ff8f8f; }
.contact-embed .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (max-width: 640px) {
  .contact-embed .identity { grid-template-columns: 1fr; }
  .contact-embed .chat {
    height: min(560px, 75dvh);
    min-height: 380px;
    border-radius: 16px;
  }
  .contact-embed .messages { padding: 18px; }
  .contact-embed .composer button span { display: none; }
  .contact-embed .composer button b { display: block; font-size: 18px; }
  .contact-embed .chat form { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .contact-embed * { scroll-behavior: auto !important; }
}

/* Affiliate recommendation message: disclosed, accessible and visually distinct from support replies. */
.offer-message{opacity:0;transform:translateY(8px);transition:opacity .28s ease,transform .28s ease}
.offer-message.is-visible{opacity:1;transform:none}
.offer-message>p{border-radius:7px 17px 8px 8px}
.offer-card{display:grid;gap:7px;margin-top:-9px;padding:14px 15px 15px;background:linear-gradient(145deg,#132d3c,#102536);border:1px solid rgba(242,184,75,.34);border-radius:8px 8px 17px 17px;box-shadow:0 14px 34px rgba(0,0,0,.18)}
.offer-card .offer-meta{width:max-content;color:var(--accent);font-size:9px;font-weight:800;letter-spacing:.11em;text-transform:uppercase}
.offer-card strong{color:#fff;font-size:15px;line-height:1.3}
.offer-card small{color:#b7c3d1;font-size:11px;line-height:1.45}
.offer-card a{display:flex;align-items:center;justify-content:center;min-height:42px;margin-top:4px;padding:10px 16px;border-radius:10px;background:var(--accent);color:#17202b;font-size:13px;font-weight:900;text-decoration:none;white-space:nowrap;box-shadow:0 8px 20px rgba(242,184,75,.16);transition:transform .16s ease,filter .16s ease}
.offer-card a:hover{filter:brightness(1.06)}
.offer-card a:focus-visible{outline:3px solid #fff;outline-offset:2px}
.offer-card a:active{transform:translateY(1px)}
.offer-card .offer-disclosure{color:#8796a9;font-size:9px}
@media(max-width:800px){.offer-message{max-width:94%}.offer-card a{min-height:44px}}
@media(prefers-reduced-motion:reduce){.offer-message{opacity:1;transform:none;transition:none}.offer-card a{transition:none}}
