.corner-bot {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  display: grid;
  justify-items: end;
  gap: 0.55rem;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

.corner-bot__launch {
  border: 0;
  border-radius: 0.4rem;
  padding: 0.8rem 1.05rem;
  background: #164533;
  color: #fff;
  font-weight: 650;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(22, 69, 51, 0.28);
}

.corner-bot__panel {
  width: min(22rem, calc(100vw - 2rem));
  max-height: min(30rem, calc(100dvh - 6rem));
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  overflow: hidden;
  border-radius: 0.55rem;
  background: #fff;
  color: #1c2420;
  border: 1px solid #d9e0da;
  box-shadow: 0 18px 50px rgba(28, 36, 32, 0.18);
}

.corner-bot__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0.9rem;
  background: #1f5c45;
  color: #fff;
}

.corner-bot__close {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.corner-bot__log {
  padding: 0.8rem;
  overflow: auto;
  display: grid;
  gap: 0.5rem;
  align-content: start;
  background: #f7f8f6;
  min-height: 10rem;
}

.corner-bot__bubble {
  max-width: 92%;
  padding: 0.6rem 0.7rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.corner-bot__bubble--bot {
  background: #fff;
  border: 1px solid #d9e0da;
  justify-self: start;
}

.corner-bot__bubble--user {
  background: #1f5c45;
  color: #fff;
  justify-self: end;
}

.corner-bot__cta {
  justify-self: start;
  color: #164533;
  font-weight: 700;
  font-size: 0.88rem;
}

.corner-bot__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.5rem 0.7rem;
  border-top: 1px solid #d9e0da;
  background: #fff;
}

.corner-bot__chip {
  border: 1px solid #d9e0da;
  background: #eef2ef;
  color: #1c2420;
  border-radius: 999px;
  padding: 0.3rem 0.6rem;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}

.corner-bot__compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem;
  padding: 0.6rem 0.7rem 0.75rem;
  border-top: 1px solid #d9e0da;
  background: #fff;
}

.corner-bot__compose input {
  width: 100%;
  border: 1px solid #d9e0da;
  border-radius: 0.4rem;
  padding: 0.6rem 0.65rem;
  font: inherit;
}

.corner-bot__compose button {
  border: 0;
  border-radius: 0.4rem;
  padding: 0 0.85rem;
  background: #164533;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
