#irsl-root.irsl-root {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 2147482600;
  width: auto;
  max-width: calc(100vw - 24px);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #102033;
}

#irsl-root,
#irsl-root * {
  box-sizing: border-box;
}

#irsl-root .irsl-bubble {
  all: unset;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  max-width: min(270px, calc(100vw - 32px));
  padding: 6px 14px 6px 6px;
  border: 1px solid rgba(255,255,255,.86);
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff 0%, #edf6ff 58%, #dbeeff 100%);
  box-shadow: 0 18px 44px rgba(7,30,66,.22), 0 8px 20px rgba(12,98,196,.18);
  color: #0b2b52;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

#irsl-root .irsl-bubble:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(7,30,66,.26), 0 10px 24px rgba(12,98,196,.22);
}

#irsl-root .irsl-avatar-wrap {
  display: block;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 5px 16px rgba(16,32,51,.14);
}

#irsl-root .irsl-avatar-wrap img,
#irsl-root .irsl-head img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

#irsl-root .irsl-bubble-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

#irsl-root .irsl-bubble-copy strong {
  display: block;
  color: #083b76;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.05;
  white-space: nowrap;
}

#irsl-root .irsl-bubble-copy small {
  display: block;
  color: #51677e;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.15;
  white-space: nowrap;
}

#irsl-root .irsl-panel[hidden] {
  display: none !important;
}

#irsl-root .irsl-panel {
  position: absolute;
  left: 0;
  bottom: 76px;
  display: none;
  flex-direction: column;
  width: min(390px, calc(100vw - 28px));
  max-height: min(570px, calc(100vh - 96px));
  overflow: hidden;
  border: 1px solid #cddbed;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(5,25,52,.26);
}

#irsl-root[data-open="true"] .irsl-panel:not([hidden]) {
  display: flex;
}

#irsl-root .irsl-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: linear-gradient(135deg, #082a52 0%, #0b63c7 78%, #d91f2b 165%);
  color: #ffffff;
}

#irsl-root .irsl-head img {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.88);
  border-radius: 999px;
  background: #ffffff;
}

#irsl-root .irsl-head strong {
  display: block;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.1;
}

#irsl-root .irsl-head span {
  display: block;
  margin-top: 2px;
  color: rgba(255,255,255,.9);
  font-size: 12px;
  font-weight: 700;
}

#irsl-root .irsl-close {
  all: unset;
  display: grid;
  place-items: center;
  margin-left: auto;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #ffffff;
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}

#irsl-root .irsl-log {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 230px;
  max-height: 390px;
  overflow: auto;
  padding: 12px;
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

#irsl-root .irsl-msg {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.35;
}

#irsl-root .irsl-msg.bot {
  align-self: flex-start;
  border: 1px solid #d6e6f8;
  background: #edf6ff;
  color: #102033;
}

#irsl-root .irsl-msg.user {
  align-self: flex-end;
  background: #0c62c4;
  color: #ffffff;
}

#irsl-root .irsl-links {
  display: grid;
  gap: 6px;
  max-width: 88%;
}

#irsl-root .irsl-links a {
  display: block;
  padding: 8px 10px;
  border: 1px solid #d6e6f8;
  border-radius: 11px;
  background: #ffffff;
  color: #0b4f9d;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
}

#irsl-root .irsl-form {
  display: grid;
  grid-template-columns: 1fr 62px;
  gap: 7px;
  margin: 0;
  padding: 10px 12px;
  border-top: 1px solid #e5edf7;
  background: #ffffff;
}

#irsl-root .irsl-form input {
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #cfdaea;
  border-radius: 999px;
  background: #ffffff;
  color: #102033;
  font: inherit;
  font-size: 14px;
  outline: none;
}

#irsl-root .irsl-form input:focus {
  border-color: #0c62c4;
  box-shadow: 0 0 0 3px rgba(12,98,196,.12);
}

#irsl-root .irsl-form button {
  border: 0;
  border-radius: 999px;
  background: #0c62c4;
  color: #ffffff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

#irsl-root .irsl-note {
  padding: 0 12px 10px;
  color: #6a7b8d;
  font-size: 10px;
  line-height: 1.35;
}

@media (max-width: 640px) {
  #irsl-root.irsl-root {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  #irsl-root .irsl-bubble {
    max-width: calc(100vw - 20px);
  }

  #irsl-root .irsl-panel {
    right: 0;
    bottom: 74px;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 88px);
  }
}

