.zondy-floating-root {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1600;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.zondy-float-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  max-width: calc(100vw - 32px);
  border: 0;
  border-radius: 999px;
  padding: 8px 15px 8px 8px;
  background: #14532d;
  color: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
}

.zondy-float-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f8fafc;
  color: #14532d;
  font-size: 0.82rem;
  letter-spacing: 0;
}

.zondy-float-label {
  white-space: nowrap;
  font-size: 0.9rem;
}

.zondy-float-panel {
  display: none;
  position: absolute;
  right: 0;
  bottom: 66px;
  width: min(390px, calc(100vw - 28px));
  max-height: min(620px, calc(100vh - 112px));
  background: #fff;
  border: 1px solid rgba(20, 83, 45, 0.16);
  border-radius: 10px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.26);
  overflow: hidden;
}

.zondy-float-panel.zondy-open {
  display: grid;
  grid-template-rows: auto auto minmax(140px, 1fr) auto auto;
}

.zondy-float-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #14532d;
  color: #fff;
  font-weight: 800;
}

.zondy-float-close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
}

.zondy-float-intro {
  padding: 10px 16px;
  color: #4b5563;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(20, 83, 45, 0.10);
}

.zondy-float-messages {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px;
  overflow-y: auto;
  background: #f8fafc;
}

.zondy-float-message {
  max-width: 88%;
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 0.9rem;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.zondy-float-message--assistant {
  align-self: flex-start;
  background: #fff;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.zondy-float-message--user {
  align-self: flex-end;
  background: #166534;
  color: #fff;
}

.zondy-float-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border-top: 1px solid rgba(20, 83, 45, 0.10);
}

.zondy-float-quick button,
.zondy-float-form button {
  border: 0;
  border-radius: 999px;
  background: #14532d;
  color: #fff;
  padding: 8px 11px;
  font-size: 0.82rem;
  line-height: 1.2;
  cursor: pointer;
}

.zondy-float-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px;
  background: #fff;
}

.zondy-float-form input {
  min-width: 0;
  border: 1px solid rgba(20, 83, 45, 0.22);
  border-radius: 999px;
  padding: 9px 11px;
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .zondy-floating-root {
    right: 14px;
    bottom: 14px;
  }

  .zondy-float-button {
    min-height: 50px;
    padding-right: 12px;
  }

  .zondy-float-panel {
    right: 0;
    bottom: 62px;
    width: calc(100vw - 28px);
    max-height: calc(100vh - 100px);
  }

  .zondy-float-quick button {
    flex: 1 1 128px;
  }
}
