.oab46-site-assistant {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 99999;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.oab46-site-assistant,
.oab46-site-assistant * {
  box-sizing: border-box;
}

.oab46-site-assistant__button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: #111;
  color: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}

.oab46-site-assistant__button:hover,
.oab46-site-assistant__button:focus-visible {
  background: #c8102e;
  outline: none;
}

.oab46-site-assistant__button-icon {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #c8102e;
  color: #fff;
  font-weight: 900;
}

.oab46-site-assistant__panel {
  position: absolute;
  right: 0;
  bottom: 64px;
  width: min(392px, calc(100vw - 24px));
  height: min(520px, calc(100vh - 112px));
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 112px);
  min-height: 360px;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.25);
}

.oab46-site-assistant__panel[hidden] {
  display: none !important;
}

.oab46-site-assistant__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #151010, #c8102e);
  color: #fff;
}

.oab46-site-assistant__header strong,
.oab46-site-assistant__header span {
  display: block;
  line-height: 1.2;
  letter-spacing: 0;
}

.oab46-site-assistant__header strong {
  font-size: 16px;
}

.oab46-site-assistant__header span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.oab46-site-assistant__close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.oab46-site-assistant__intro {
  padding: 10px 16px;
  border-bottom: 1px solid #eee;
  color: #333;
  font-size: 13px;
  line-height: 1.45;
}

.oab46-site-assistant__body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #f7f5f2;
}

.oab46-site-assistant__loading,
.oab46-site-assistant__notice {
  padding: 18px;
  color: #222;
  font-size: 14px;
  line-height: 1.5;
}

.oab46-site-assistant__chatkit {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
}

.oab46-site-assistant__messages {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 14px;
}

.oab46-site-assistant__msg {
  width: fit-content;
  max-width: 88%;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #161616;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.oab46-site-assistant__msg strong {
  font-weight: 900;
}

.oab46-site-assistant__msg code {
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(17, 17, 17, 0.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.oab46-site-assistant__msg--bot {
  background: #fff;
  border: 1px solid #e5e1dc;
}

.oab46-site-assistant__msg--user {
  margin-left: auto;
  background: #c8102e;
  color: #fff;
}

.oab46-site-assistant__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #e5e1dc;
  background: #fff;
}

.oab46-site-assistant__form input {
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #d7d2cc;
  border-radius: 6px;
  color: #111;
  font: inherit;
}

.oab46-site-assistant__form button {
  min-width: 78px;
  height: 42px;
  border: 0;
  border-radius: 6px;
  background: #111;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.oab46-site-assistant__form button:hover,
.oab46-site-assistant__form button:focus-visible {
  background: #c8102e;
  outline: none;
}

.oab46-site-assistant__clear {
  display: block;
  width: 100%;
  padding: 8px 12px 10px;
  border: 0;
  border-top: 1px solid #eee;
  background: #fff;
  color: #555;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.oab46-site-assistant__clear:hover,
.oab46-site-assistant__clear:focus-visible {
  color: #c8102e;
  outline: none;
}

@media (max-width: 640px) {
  .oab46-site-assistant {
    right: 12px;
    bottom: 12px;
  }

  .oab46-site-assistant__button {
    min-height: 44px;
    padding: 0 14px;
    font-size: 14px;
  }

  .oab46-site-assistant__panel {
    right: -2px;
    bottom: 56px;
    width: calc(100vw - 20px);
    height: min(500px, calc(100vh - 92px));
    max-height: calc(100vh - 92px);
  }
}
