.bloom-open {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #111;
  color: white;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  z-index: 999;
  box-shadow: 0 18px 45px rgba(0,0,0,.25);
}

.bloom-panel {
  display: none;
  position: fixed;
  right: 26px;
  bottom: 98px;
  width: min(390px, calc(100vw - 32px));
  z-index: 1000;
}

.bloom-panel.open {
  display: block;
}

.bloom-card {
  background: white;
  border-radius: 26px;
  padding: 20px;
  box-shadow: 0 25px 70px rgba(0,0,0,.28);
  position: relative;
}

.bloom-close {
  position: absolute;
  top: 14px;
  right: 18px;
  border: none;
  background: transparent;
  font-size: 1.8rem;
  font-weight: 900;
  cursor: pointer;
}

.bloom-header {
  display: grid;
  gap: 3px;
  margin-bottom: 16px;
}

.bloom-header strong {
  font-size: 1.35rem;
}

.bloom-header span {
  color: #666;
  font-size: .9rem;
}

.bloom-chat {
  max-height: 260px;
  overflow-y: auto;
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.bloom-message {
  padding: 11px 13px;
  border-radius: 16px;
  font-size: .92rem;
  line-height: 1.45;
  max-width: 86%;
}

.bloom-message.bot {
  background: #f3f0ea;
  color: #111;
  justify-self: start;
}

.bloom-message.user {
  background: #111;
  color: white;
  justify-self: end;
}

.bloom-form {
  display: grid;
  gap: 10px;
}

.bloom-form textarea,
.bloom-form input {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 16px;
  padding: 12px;
  font: inherit;
}

.bloom-form textarea {
  min-height: 76px;
  resize: vertical;
}

.bloom-form button {
  border: none;
  background: #111;
  color: white;
  border-radius: 999px;
  padding: 13px;
  font-weight: 900;
  cursor: pointer;
}

.hidden {
  display: none;
}

@media(max-width: 600px) {
  .bloom-panel {
    right: 12px;
    bottom: 86px;
    width: calc(100vw - 24px);
  }
}