/* =========================
   PALETA – VILLA TIROL
========================= */
:root {
  --ck-primary: #9a5333;   /* marrom Villa Tirol */
  --ck-dark: #343434;      /* texto escuro */
  --ck-light: #d9d9d9;     /* cinza claro */
  --ck-white: #ffffff;
}

/* =========================
   RESET BÁSICO
========================= */
#ck-chat,
#ck-chat * {
  box-sizing: border-box;
  font-family: Inter, Arial, sans-serif;
}

/* =========================
   LAUNCHER (BOTÃO FLUTUANTE – ESQUERDA)
========================= */
#ck-chat-launcher {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: auto;
  width: 56px;
  height: 56px;
  background: var(--ck-primary);
  color: var(--ck-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999999;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

#ck-chat-launcher svg {
  width: 26px;
  height: 26px;
}

/* =========================
   CHAT CONTAINER (ESQUERDA)
========================= */
#ck-chat {
  position: fixed;
  bottom: 90px;
  left: 24px;
  right: auto;
  width: 360px;
  height: 520px;
  background: var(--ck-white);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 999999;
}

/* =========================
   HEADER
========================= */
#ck-header {
  background: linear-gradient(135deg, #7f4328, var(--ck-primary));
  padding: 20px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ck-white);
}

.ck-header-avatar {
  position: relative;
}

.ck-header-avatar img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid var(--ck-white);
  object-fit: cover;
}

.ck-status {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 14px;
  height: 14px;
  background: #00c853;
  border-radius: 50%;
  border: 2px solid var(--ck-primary);
}

.ck-header-info strong {
  font-size: 15px;
  display: block;
}

.ck-header-info .ck-hotel {
  font-size: 13px;
  opacity: 0.9;
}

/* =========================
   MESSAGES AREA
========================= */
#ck-messages {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  background: #f6f6f6;
}

/* =========================
   MESSAGE ROWS
========================= */
.ck-msg.ck-user {
  display: flex;
  justify-content: flex-end;
}

.ck-bot-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 85%;
}

/* =========================
   AVATAR INLINE
========================= */
.ck-avatar-inline {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  margin-top: 4px;
}

/* =========================
   BUBBLES
========================= */
.ck-bubble {
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.4;
  border-radius: 14px;
}

.ck-bubble.bot {
  background: var(--ck-light);
  color: var(--ck-dark);
  border-radius: 14px 14px 14px 4px;
}

.ck-bubble.user {
  background: var(--ck-primary);
  color: var(--ck-white);
  border-radius: 14px 14px 4px 14px;
  max-width: 85%;
}

/* =========================
   QUICK BUTTONS
========================= */
.ck-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px 36px;
}

.ck-buttons button {
  background: var(--ck-light);
  border: 1px solid var(--ck-primary);
  color: var(--ck-dark);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
}

.ck-buttons button:hover {
  background: var(--ck-primary);
  color: var(--ck-white);
}

/* =========================
   CARDS (MAPA / QUARTOS)
========================= */
.ck-card {
  background: var(--ck-white);
  border-radius: 16px;
  padding: 12px;
  margin: 10px 0;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  color: var(--ck-dark);
}

/* =========================
   CARD BUTTONS
========================= */
.ck-card a {
  display: block;
  margin-top: 10px;
  background: var(--ck-primary);
  color: var(--ck-white);
  padding: 12px;
  border-radius: 14px;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
}

.ck-card a:hover {
  background: #7f4328;
}

/* =========================
   INPUT AREA
========================= */
#ck-input {
  display: flex;
  border-top: 1px solid #e5e5e5;
  background: var(--ck-white);
}

#ck-input input {
  flex: 1;
  border: none;
  padding: 12px;
  font-size: 14px;
  outline: none;
  color: var(--ck-dark);
}

#ck-input button {
  border: none;
  background: var(--ck-primary);
  padding: 0 18px;
  cursor: pointer;
  font-size: 16px;
  color: var(--ck-white);
}

/* =========================
   FOOTER
========================= */
#ck-footer {
  font-size: 11px;
  text-align: center;
  padding: 6px 0;
  color: #9ca3af;
  background: var(--ck-white);
  border-top: 1px solid #f1f1f1;
}

#ck-footer strong {
  color: var(--ck-primary);
  font-weight: 600;
}
