:root {
  --chatbot-brand: #2563eb;
  --chatbot-brand-light: #5aa7ff;
  --chatbot-navy: #07142f;
  --chatbot-text: #172033;
  --chatbot-muted: #667085;
  --chatbot-shadow: 0 30px 90px rgba(8, 20, 47, 0.26);
}

.rentrel-chatbot-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 600;
  font-family: Inter, Arial, Helvetica, sans-serif;
}

.rentrel-chatbot-launcher {
  position: relative;
  width: 62px;
  height: 62px;
  border: 0;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--chatbot-brand), var(--chatbot-brand-light));
  color: #ffffff;
  box-shadow:
    0 22px 50px rgba(37, 99, 235, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  cursor: pointer;
}

.rentrel-chatbot-launcher svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.rentrel-chatbot-pulse {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.18);
}

.rentrel-chatbot-panel {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: 360px;
  max-width: calc(100vw - 36px);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(34px) saturate(170%);
  -webkit-backdrop-filter: blur(34px) saturate(170%);
  box-shadow:
    var(--chatbot-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(12px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: 0.22s ease;
}

.rentrel-chatbot-widget.open .rentrel-chatbot-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.rentrel-chatbot-header {
  padding: 18px 18px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  background: linear-gradient(135deg, rgba(7, 20, 47, 0.98), rgba(19, 48, 105, 0.96));
  color: #ffffff;
}

.rentrel-chatbot-header strong {
  display: block;
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.rentrel-chatbot-header span {
  display: block;
  margin-top: 4px;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.72);
}

.rentrel-chatbot-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.rentrel-chatbot-body {
  max-height: 340px;
  overflow-y: auto;
  padding: 18px;
}

.rentrel-bot-message,
.rentrel-user-message {
  width: fit-content;
  max-width: 86%;
  padding: 11px 13px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.45;
  margin-bottom: 10px;
}

.rentrel-bot-message {
  background: #eef5ff;
  color: var(--chatbot-text);
  border-bottom-left-radius: 5px;
}

.rentrel-user-message {
  margin-left: auto;
  background: var(--chatbot-brand);
  color: #ffffff;
  border-bottom-right-radius: 5px;
}

.rentrel-chatbot-quick-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.rentrel-chatbot-quick-actions button {
  min-height: 38px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 14px;
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--chatbot-text);
  text-align: left;
  font-size: 0.84rem;
  font-weight: 760;
  cursor: pointer;
}

.rentrel-chatbot-quick-actions button:hover {
  background: #ffffff;
  border-color: rgba(37, 99, 235, 0.3);
}

.rentrel-chatbot-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(248, 250, 252, 0.78);
}

.rentrel-chatbot-form input {
  height: 44px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 15px;
  padding: 0 13px;
  outline: 0;
  color: var(--chatbot-text);
  background: rgba(255, 255, 255, 0.86);
}

.rentrel-chatbot-form button {
  height: 44px;
  border: 0;
  border-radius: 15px;
  padding: 0 15px;
  background: var(--chatbot-brand);
  color: #ffffff;
  font-weight: 850;
  cursor: pointer;
}

@media (max-width: 640px) {
  .rentrel-chatbot-widget {
    right: 16px;
    bottom: 16px;
  }

  .rentrel-chatbot-launcher {
    width: 58px;
    height: 58px;
    border-radius: 20px;
  }

  .rentrel-chatbot-panel {
    right: -4px;
    bottom: 72px;
    width: calc(100vw - 28px);
  }
}