/* ---------- Chat bubble + panel ---------- */

.chat-bubble{
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--forest-800);
  color: var(--sand-050);
  border: none;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15,29,23,0.35);
  z-index: 999;
}

.chat-panel{
  position: fixed;
  bottom: 0;
  right: 0;
  width: 100%;
  max-width: 380px;
  height: min(72vh, 560px);
  background: var(--sand-050);
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -6px 24px rgba(15,29,23,0.25);
  display: flex;
  flex-direction: column;
  transform: translateY(110%);
  transition: transform 0.25s ease;
  z-index: 1000;
  overflow: hidden;
}

@media (min-width: 420px){
  .chat-panel{
    right: 20px;
    bottom: 86px;
    border-radius: 12px;
  }
}

.chat-panel.open{
  transform: translateY(0);
}

.chat-header{
  background: var(--forest-800);
  color: var(--sand-050);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
}

.chat-header .chat-close{
  background: none;
  border: none;
  color: var(--sand-050);
  font-size: 16px;
  cursor: pointer;
}

.chat-body{
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-msg{
  max-width: 85%;
  padding: 10px 13px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.chat-msg.bot{
  background: var(--sand-100);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}

.chat-msg.user{
  background: var(--forest-800);
  color: var(--sand-050);
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}

.chat-msg.typing{
  opacity: 0.6;
  font-style: italic;
}

.chat-quick{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 12px;
}

.chat-quick button{
  font-size: 12.5px;
  padding: 7px 11px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--sand-100);
  cursor: pointer;
}

.chat-input-row{
  display: flex;
  border-top: 1px solid var(--line);
  padding: 10px;
  gap: 8px;
}

.chat-input-row input{
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 9px 14px;
  font-size: 14px;
  font-family: var(--font-body);
  background: var(--sand-100);
}

.chat-input-row input:focus{
  outline: 2px solid var(--brass-500);
  outline-offset: 1px;
}

.chat-input-row button{
  background: var(--brass-500);
  color: var(--sand-050);
  border: none;
  border-radius: 100px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
