:root {
  --bg: #f7f8fc;
  --surface: #ffffff;
  --text: #222;
  --muted: #555;
  --primary: #1a76d1;
  --border: #e2e8f0;
}



.chat-widget {
  position: fixed;
  right: 15px;
  bottom: 5rem;
  width: 300px;
  max-width: calc(100% - 3rem);
  z-index: 1000;
  display: grid;
  place-items: end;
}

.chat-toggle {
  background: var(--primary);
    border: none;
    color: white;
    padding: 1rem 2.1rem;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
    position: fixed;
    z-index: 2147483647;
    bottom: 15px;
    right: 15px;
}


.chat-widget.closed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  display: none;
}

.chat-window {
  width: 100%;
  background: var(--surface);
  border-radius: 1rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #eef2ff;
  border-bottom: 1px solid #e0e7ff;
  font-weight: 700;
}

.chat-header .closebutton {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: var(--muted);
  cursor: pointer;
}

.chat-messages {
  min-height: 180px;
    max-height: 260px;
    overflow-y: auto;
    display: grid;
    gap: 0.5rem;
}

.chat-message {
 padding: 0.5rem 0.5rem;
    border-radius: 0.85rem;
    background: #f8fafc;
    color: var(--text);
    font-size: 14px;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  padding: 1rem;
  border-top: 1px solid var(--border);
}

.chat-form input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  outline: none;
}

.chat-form button {
  background: var(--primary);
  border: none;
  color: white;
  border-radius: 999px;
  padding: 0 1.2rem;
  cursor: pointer;
}

@media (max-width: 480px) {
  .chat-widget {
    right: 0.75rem;
    bottom: 0.75rem;
    width: min(100%, 92vw);
  }
}
.vehicle-item{
  font-size: 12px;
    font-weight: 500;
    text-decoration: underline;
    color: #17a2b8;
}