.aarohi-widget {
  position: fixed;
  right: 18px;
  bottom: 92px;
  z-index: 120;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.aarohi-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px 10px 10px;
  background: #082f49;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.22);
  cursor: pointer;
}

.aarohi-toggle img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: #eef6ff;
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.aarohi-panel {
  position: absolute;
  right: 0;
  bottom: 64px;
  width: min(380px, calc(100vw - 28px));
  height: min(560px, calc(100vh - 132px));
  min-height: 360px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d8e5f2;
  border-radius: 18px;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.22);
}

.aarohi-panel.hidden {
  display: none;
}

.aarohi-head {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: linear-gradient(135deg, #eff8ff, #fff7ed);
  border-bottom: 1px solid #d8e5f2;
}

.aarohi-head img {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  object-fit: cover;
}

.aarohi-head strong {
  display: block;
  color: #0f172a;
  line-height: 1.2;
}

.aarohi-head span {
  color: #52657a;
  font-size: 0.86rem;
}

.aarohi-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #0f172a;
  font-weight: 900;
  cursor: pointer;
}

.aarohi-messages {
  flex: 1 1 auto;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  overflow-y: auto;
  background: #f8fbff;
}

.aarohi-msg {
  max-width: 88%;
  border-radius: 14px;
  padding: 10px 12px;
  color: #1f2937;
  background: #fff;
  border: 1px solid #d8e5f2;
  white-space: pre-wrap;
  line-height: 1.45;
}

.aarohi-msg.user {
  align-self: flex-end;
  color: #fff;
  background: #0f6fa8;
  border-color: #0f6fa8;
}

.aarohi-quick {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 12px;
  background: #f8fbff;
}

.aarohi-quick button,
.aarohi-quick a,
.aarohi-lead button,
.aarohi-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 9px 12px;
  background: #e8f2fb;
  color: #064b76;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.aarohi-lead,
.aarohi-form {
  flex: 0 0 auto;
  display: grid;
  gap: 9px;
  padding: 12px 14px;
  background: #fff;
  border-top: 1px solid #d8e5f2;
}

.aarohi-lead.hidden {
  display: none;
}

.aarohi-lead input,
.aarohi-lead select,
.aarohi-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 40px;
  border: 1px solid #cbddec;
  border-radius: 10px;
  padding: 9px 10px;
  font: inherit;
}

.aarohi-form {
  grid-template-columns: 1fr auto;
}

.aarohi-form textarea {
  resize: none;
}

.aarohi-form button {
  border-radius: 12px;
  background: #0f6fa8;
  color: #fff;
}

@media (max-width: 640px) {
  .aarohi-widget {
    right: 12px;
    bottom: 82px;
  }

  .aarohi-panel {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 78px;
    width: auto;
    height: min(560px, calc(100vh - 112px));
    min-height: 0;
  }

  .aarohi-toggle span {
    display: inline;
  }

  .aarohi-head {
    grid-template-columns: 46px 1fr auto;
    gap: 10px;
    padding: 10px;
  }

  .aarohi-head img {
    width: 46px;
    height: 46px;
  }

  .aarohi-messages {
    min-height: 170px;
  }

  .aarohi-lead {
    max-height: 220px;
    overflow-y: auto;
  }
}
