
/* Jisr Guided Assistant — lightweight scripted helper */
.jisr-assistant-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(145deg, #17345f, #2c8c82);
  color: white;
  padding: 14px 18px;
  font-weight: 950;
  box-shadow: 0 20px 42px rgba(15,39,71,.22);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
.jisr-assistant-launcher .bubble {
  width: 28px;
  height: 28px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  background: rgba(255,255,255,.16);
}
.jisr-assistant-panel {
  position: fixed;
  right: 22px;
  bottom: 86px;
  width: min(390px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 120px));
  z-index: 9999;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(23,52,95,.14);
  box-shadow: 0 28px 70px rgba(15,39,71,.24);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  display: none;
}
.jisr-assistant-panel.open {
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.jisr-assistant-header {
  background: linear-gradient(145deg, #17345f, #2c8c82);
  color: white;
  padding: 18px 18px 16px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}
.jisr-assistant-header strong {
  display: block;
  font-size: 18px;
  line-height: 1.1;
}
.jisr-assistant-header span {
  display: block;
  margin-top: 4px;
  opacity: .84;
  font-size: 13px;
  line-height: 1.4;
}
.jisr-assistant-close {
  border: 0;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  color: white;
  cursor: pointer;
  font-size: 18px;
}
.jisr-assistant-body {
  padding: 16px;
  overflow: auto;
  background: #fcfaf7;
}
.jisr-assistant-message {
  border-radius: 20px;
  padding: 13px 14px;
  line-height: 1.55;
  font-size: 14px;
  margin-bottom: 12px;
}
.jisr-assistant-message.bot {
  background: white;
  border: 1px solid rgba(23,52,95,.10);
  color: #27384f;
}
.jisr-assistant-message.user {
  background: #17345f;
  color: white;
  margin-left: 42px;
}
.jisr-assistant-options {
  display: grid;
  gap: 9px;
  margin: 12px 0;
}
.jisr-assistant-option {
  border: 1px solid rgba(23,52,95,.12);
  border-radius: 16px;
  background: white;
  color: #17345f;
  font-weight: 850;
  text-align: left;
  padding: 12px 13px;
  cursor: pointer;
}
.jisr-assistant-option:hover,
.jisr-assistant-option:focus {
  outline: 3px solid rgba(44,140,130,.18);
  border-color: #2c8c82;
}
.jisr-assistant-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.jisr-assistant-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 999px;
  padding: 8px 12px;
  text-decoration: none;
  font-weight: 900;
  font-size: 13px;
}
.jisr-assistant-actions .primary {
  background: #17345f;
  color: white;
}
.jisr-assistant-actions .secondary {
  background: #f8fbff;
  color: #17345f;
  border: 1px solid rgba(23,52,95,.12);
}
.jisr-assistant-footer {
  padding: 12px 14px;
  background: white;
  border-top: 1px solid rgba(23,52,95,.10);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.jisr-assistant-footer small {
  color: #66768a;
  line-height: 1.35;
}
.jisr-assistant-reset {
  border: 0;
  border-radius: 999px;
  background: #fff7f3;
  color: #17345f;
  font-weight: 900;
  padding: 9px 12px;
  cursor: pointer;
}
@media(max-width: 640px) {
  .jisr-assistant-launcher {
    right: 14px;
    bottom: 14px;
    padding: 12px 14px;
  }
  .jisr-assistant-panel {
    right: 12px;
    bottom: 74px;
    width: calc(100vw - 24px);
    max-height: calc(100vh - 92px);
  }
}
@media print {
  .jisr-assistant-launcher,
  .jisr-assistant-panel {
    display: none !important;
  }
}
