/* پشتیبان شناور اکو روم */
.rr-support-btn {
  position: fixed;
  inset-inline-end: 1.15rem;
  bottom: 1.15rem;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #1d4ed8);
  box-shadow: 0 12px 28px rgba(15, 118, 110, .35);
  border-radius: 999px;
  padding: .7rem 1rem .7rem .75rem;
  font-weight: 700;
  font-family: inherit;
}
.rr-support-btn:hover { filter: brightness(1.06); }
.rr-support-btn .rr-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.25);
}
.rr-support-btn svg { flex: 0 0 auto; }
.rr-support-panel {
  position: fixed;
  inset-inline-end: 1.15rem;
  bottom: 4.6rem;
  z-index: 81;
  width: min(400px, calc(100vw - 1.6rem));
  height: min(560px, calc(100vh - 6.4rem));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 22px 50px rgba(15, 23, 42, .18);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.rr-support-panel.open { display: flex; }
.rr-support-head {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .85rem 1rem;
  background: linear-gradient(135deg, #0f766e, #115e59);
  color: #fff;
}
.rr-support-head strong { display: block; font-size: .98rem; }
.rr-support-head small { opacity: .85; font-size: .78rem; }
.rr-support-head .rr-x {
  margin-inline-start: auto;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
}
.rr-support-body {
  flex: 1;
  overflow: auto;
  padding: .9rem;
  background: linear-gradient(180deg, #f8fafc, #f0fdfa);
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.rr-msg {
  max-width: 92%;
  padding: .75rem .9rem;
  border-radius: 14px;
  font-size: .9rem;
  line-height: 1.75;
  word-break: break-word;
}
.rr-msg p { margin: 0 0 .65rem; }
.rr-msg p:last-child { margin-bottom: 0; }
.rr-msg ul { margin: .2rem 0 .65rem; padding-inline-start: 1.15rem; }
.rr-msg li { margin: .15rem 0; }
.rr-msg strong { font-weight: 700; }
.rr-msg a { color: #1d4ed8; text-decoration: underline; }
.rr-msg.bot {
  align-self: flex-end;
  background: #fff;
  border: 1px solid var(--line);
}
.rr-msg.me {
  align-self: flex-start;
  background: linear-gradient(135deg, #0f766e, #0d9488);
  color: #fff;
}
.rr-msg.me a { color: #ecfeff; }
.rr-msg .rr-act {
  display: block;
  margin-top: .45rem;
  font-size: .8rem;
  opacity: .9;
}
.rr-sugs {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: 0 .9rem .35rem;
}
.rr-sugs button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: .28rem .7rem;
  font-size: .78rem;
  cursor: pointer;
  color: var(--ink);
}
.rr-sugs button:hover { border-color: var(--brand); color: var(--brand-dark); }
.rr-support-form {
  display: flex;
  gap: .45rem;
  padding: .7rem;
  border-top: 1px solid var(--line);
  background: #fff;
}
.rr-support-form textarea {
  flex: 1;
  min-height: 44px;
  max-height: 110px;
  resize: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .55rem .7rem;
}
.rr-support-form button[type="submit"] {
  border: 0;
  background: var(--brand);
  color: #fff;
  border-radius: 12px;
  padding: 0 .95rem;
  font-weight: 700;
  cursor: pointer;
}
.rr-support-form button[disabled] { opacity: .55; cursor: wait; }
.rr-typing { font-size: .82rem; color: var(--muted); align-self: flex-end; }
.chat-item-support { background: #f0fdfa; }

/* راهنمای زمینه‌ای صفحه */
.rr-help-btn { background: none; border: 0; }
.rr-help-overlay {
  position: fixed; inset: 0; z-index: 88;
  background: rgba(15, 23, 42, .35);
  display: none;
}
.rr-help-panel {
  position: fixed;
  top: 0; bottom: 0;
  inset-inline-start: 0;
  z-index: 89;
  width: min(420px, 100vw);
  background: #fff;
  box-shadow: 8px 0 40px rgba(15, 23, 42, .18);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.rr-help-overlay.is-open { display: block; }
.rr-help-panel.is-open { display: flex; }
.rr-help-panel[hidden],
.rr-help-overlay[hidden] {
  display: none !important;
}
.rr-help-head {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: 1.1rem 1.15rem;
  background: linear-gradient(135deg, #0f766e, #1d4ed8);
  color: #fff;
}
.rr-help-kicker { margin: 0; font-size: .75rem; opacity: .85; }
.rr-help-head h2 { margin: .15rem 0 0; font-size: 1.15rem; line-height: 1.5; }
.rr-help-close {
  margin-inline-start: auto;
  border: 0; background: transparent;
  color: #fff; font-size: 1.5rem; cursor: pointer; line-height: 1;
}
.rr-help-body {
  flex: 1; overflow: auto;
  padding: 1.1rem 1.2rem 1.6rem;
  font-size: .92rem;
  line-height: 1.8;
}
.rr-help-body p { margin: 0 0 .85rem; }
.rr-help-body h3 { margin: 1rem 0 .35rem; font-size: 1rem; color: #115e59; }
.rr-help-body ol, .rr-help-body ul { margin: .2rem 0 1rem; padding-inline-start: 1.2rem; }
.rr-help-body a { color: #1d4ed8; }
.rr-help-links { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.rr-help-links a {
  display: inline-block;
  padding: .25rem .65rem;
  border-radius: 999px;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  color: #115e59;
  font-size: .8rem;
}

@media (max-width: 640px) {
  .rr-support-btn span.rr-lbl { display: none; }
  .rr-support-btn { padding: .8rem; }
  .rr-support-panel {
    inset: auto 0 0 0;
    width: 100%;
    height: min(78vh, 620px);
    bottom: 0;
    border-radius: 18px 18px 0 0;
  }
}
