/* Local RozgarOne Help Chat — no external API or AI service is used. */
.rz-chatbot {
  --rz-chat-green: #00543f;
  --rz-chat-green-light: #eaf3e4;
  --rz-chat-ink: #123d32;
  --rz-chat-line: #c9dcc2;
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10060;
  font-family: Inter, Arial, sans-serif;
}

.rz-chatbot__toggle {
  width: 60px;
  height: 60px;
  margin-left: auto;
  border: 0;
  border-radius: 50%;
  background: var(--rz-chat-green);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 84, 63, 0.32);
  font-size: 25px;
  transition: transform .2s ease, background .2s ease;
}

.rz-chatbot__toggle:hover,
.rz-chatbot__toggle:focus-visible { background: #08765a; transform: translateY(-2px); }

.rz-chatbot__panel {
  display: none;
  width: min(360px, calc(100vw - 32px));
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid var(--rz-chat-line);
  border-radius: 20px;
  background: #fffdf8;
  box-shadow: 0 20px 48px rgba(10, 59, 46, .24);
}

.rz-chatbot.is-open .rz-chatbot__panel { display: block; }

.rz-chatbot__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--rz-chat-green);
  color: #fff;
}

.rz-chatbot__title { flex: 1; font-size: 17px; font-weight: 800; }
.rz-chatbot__language {
  max-width: 96px;
  padding: 6px 24px 6px 8px;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 8px;
  background: rgba(255,255,255,.14);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}
.rz-chatbot__language option { color: #123d32; background: #fff; }

.rz-chatbot__close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.rz-chatbot__content { padding: 14px; }
.rz-chatbot__welcome { margin: 0 0 10px; color: var(--rz-chat-ink); font-size: 14px; font-weight: 650; line-height: 1.45; }
.rz-chatbot__messages { max-height: 210px; overflow-y: auto; padding-right: 3px; }
.rz-chatbot__message { width: fit-content; max-width: 92%; margin: 8px 0; padding: 10px 12px; border-radius: 12px; font-size: 13px; line-height: 1.42; }
.rz-chatbot__message--bot { background: var(--rz-chat-green-light); color: var(--rz-chat-ink); }
.rz-chatbot__message--user { margin-left: auto; background: var(--rz-chat-green); color: #fff; }
.rz-chatbot__support-link { display: block; width: fit-content; margin: 4px 0 10px; color: var(--rz-chat-green); font-size: 13px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.rz-chatbot__support-link:hover { color: #08765a; }
.rz-chatbot__suggestions { display: flex; gap: 7px; overflow-x: auto; margin: 10px 0; padding-bottom: 3px; }
.rz-chatbot__suggestion { flex: 0 0 auto; padding: 7px 9px; border: 1px solid var(--rz-chat-line); border-radius: 999px; background: #fff; color: var(--rz-chat-green); cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; }
.rz-chatbot__suggestion:hover { background: var(--rz-chat-green-light); }
.rz-chatbot__form { display: flex; gap: 8px; border-top: 1px solid #e0eadb; padding-top: 11px; }
.rz-chatbot__input { min-width: 0; flex: 1; padding: 10px 11px; border: 1px solid var(--rz-chat-line); border-radius: 10px; color: var(--rz-chat-ink); font: inherit; font-size: 13px; }
.rz-chatbot__input:focus { outline: 2px solid rgba(0,84,63,.2); border-color: var(--rz-chat-green); }
.rz-chatbot__send { padding: 9px 12px; border: 0; border-radius: 10px; background: var(--rz-chat-green); color: #fff; cursor: pointer; font: inherit; font-size: 13px; font-weight: 800; }

@media (max-width: 600px) {
  .rz-chatbot { right: 14px; bottom: 14px; }
  .rz-chatbot__toggle { width: 54px; height: 54px; font-size: 22px; }
  .rz-chatbot__panel { width: min(360px, calc(100vw - 28px)); }
}

.rz-chatbot__launcher { display: flex; width: 60px; margin-left: auto; align-items: center; flex-direction: column; gap: 5px; }
.rz-chatbot__launcher-label { width: 100%; color: var(--rz-chat-green); font-size: 12px; font-weight: 800; line-height: 1; text-align: center; text-shadow: 0 1px 10px rgba(255,255,255,.9); white-space: nowrap; }
.rz-chatbot__toggle { position: relative; margin-left: 0; }
.rz-chatbot__online-dot { position: absolute; top: 3px; right: 3px; width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; background: #22c55e; animation: rzChatOnlinePulse 1.5s ease-out infinite; }

@keyframes rzChatOnlinePulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .72); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
