.bh-chat-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #09b3f0, #35c9f5);
  color: #ffffff;
  box-shadow: 0 20px 42px rgba(9, 179, 240, 0.32);
  font: 900 0.95rem/1 "Inter", Arial, sans-serif;
  cursor: pointer;
}

.bh-chat-launcher span:first-child {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  font-size: 1.1rem;
}

.bh-chat-panel {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 9999;
  width: min(390px, calc(100vw - 28px));
  max-height: min(680px, calc(100vh - 120px));
  display: none;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(20, 32, 51, 0.1);
  box-shadow: 0 28px 80px rgba(11, 27, 44, 0.22);
  font-family: "Inter", Arial, sans-serif;
}

.bh-chat-panel.is-open {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.bh-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #102139, #0787b8);
}

.bh-chat-title {
  display: grid;
  gap: 3px;
}

.bh-chat-title strong {
  font-size: 1rem;
}

.bh-chat-title span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 700;
}

.bh-chat-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 1.25rem;
  cursor: pointer;
}

.bh-chat-messages {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  overflow-y: auto;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(237, 248, 254, 0.78)),
    #f6faff;
}

.bh-chat-message {
  max-width: 88%;
  padding: 11px 13px;
  border-radius: 16px;
  color: #24344a;
  background: #ffffff;
  border: 1px solid rgba(20, 32, 51, 0.08);
  box-shadow: 0 8px 18px rgba(11, 27, 44, 0.06);
  font-size: 0.92rem;
  line-height: 1.45;
}

.bh-chat-message.user {
  justify-self: end;
  color: #ffffff;
  background: linear-gradient(135deg, #09b3f0, #0787b8);
}

.bh-chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bh-chat-choice,
.bh-chat-submit,
.bh-chat-link {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(9, 179, 240, 0.18);
  background: #ffffff;
  color: #102139;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
}

.bh-chat-choice:hover,
.bh-chat-link:hover {
  border-color: rgba(9, 179, 240, 0.42);
  color: #0787b8;
}

.bh-chat-form {
  display: grid;
  gap: 10px;
  padding: 14px 16px 16px;
  background: #ffffff;
  border-top: 1px solid rgba(20, 32, 51, 0.08);
}

.bh-chat-input {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid rgba(20, 32, 51, 0.12);
  border-radius: 14px;
  background: #f8fbfd;
  color: #102139;
  font: inherit;
  outline: none;
}

.bh-chat-input:focus {
  border-color: rgba(9, 179, 240, 0.42);
  box-shadow: 0 0 0 4px rgba(9, 179, 240, 0.08);
  background: #ffffff;
}

.bh-chat-submit {
  color: #ffffff;
  border: 0;
  background: linear-gradient(135deg, #09b3f0, #35c9f5);
}

@media (max-width: 540px) {
  .bh-chat-launcher {
    right: 14px;
    bottom: 14px;
  }

  .bh-chat-panel {
    right: 14px;
    bottom: 82px;
  }
}
