.chat-window-container {
  display: flex;
  justify-content: center; /* Center horizontally */
  /* align-items: center; Center vertically (optional) */ 
  height: 100vh; /* Full viewport height (optional) */
  
  background: #FBFBFB;
}

#chat-window {
  display: flex;
	flex-direction: column;
	overflow-y: scroll;
	margin-top: 10vh;
  margin-bottom: 10vh;
	/* height: 50vh; */
	width: 50vw;

  background: #fff;
  border-radius: 10px;
  padding: 40px;	
	height: initial;
}

#chat-messages {
  white-space: pre-wrap;
  display: flex;
  flex-direction: column;
} 

#input-area {
  /* margin-top: 5px; */
  justify-content: center;
  align-self: center;

  margin-top: 20px;
}

#user-input {
	background: #f4f4f4;
  border: none;
  border-radius: 50px;
  padding: 14px 24px;
  font-family: 'Open Sans';
  /* color: #0D0D0D; */
  font-size: 16px;
}

#send-button {
	cursor: pointer;
	background: #FF856D;
  color: #fff;
  border: none;
  padding: 14px 24px;
  border-radius: 50px;
  margin-left: 5px;
  font-size: 14px;
}

.bot-message::before {
	content: '';
    display: block;
    position: absolute;
    left: -58px;
    border: solid 2px #e1e1e1;
    border-radius: 50%;
    top: 0;
    width: 32px;
    height: 32px;
    padding: .25rem;
    background-image: url(https://llm.martinezrenovation.fr/wp-content/uploads/2024/10/logomrn.png);
    background-size: cover;
    background-position: center;
}

.bot-message,
.user-message {
	font-family: 'Open Sans';
  color: #0D0D0D;
  font-size: 16px;
}

.user-message {
  align-self: flex-end;

  border-width: 1px;
  border-radius:5px;
	
	padding-bottom: .625rem;
  padding-top: .625rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.bot-message {
  align-self: flex-start;
  margin-top: 3px !important;
  margin-bottom: 3px !important;
  border-width: 1px;
  border-radius: 5px;

  background-color: transparent;
    padding-top: 2px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
}

.clickable-value {
  cursor: pointer;
}

#pdf-link {
  font-size: large;
  font-weight: bolder;
}

#wait-please {
  font-size: large;
  font-weight: bolder;
  /* color: lightblue; */
  margin-top: 5px;
  align-self: center;

  color: #97C1A9;
}

.yes-no-button {
	background: #fff;
  cursor: pointer;
  padding: 8px 20px;
}

#add-to-cart-button {
  height: 25px;
  align-self: center;
}

form.select-variation-form {
  display: flex;
  flex-direction: row; /* Aligns children in a row */
  /* align-items: center; Vertically aligns children */
} 

.variation-select {
  margin-right: 5px;
  height: 25px;
}

@supports (-moz-appearance:none) {
  /* Reset styles for Firefox */
  input[type="date"] {
      all: initial;
      border: none;
      outline: none;
  }
}

#departure-date {
	margin-right: 5px;
  height: 25px;
	align-self: center;
}

/* ====== Chatbot — tabla de resultados SQL (v1.1.0) ====== */
#chat-messages .bot-table-wrap {
  max-height: 380px;
  overflow: auto;
  margin: 8px 0;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.06);
}

#chat-messages table.bot-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

#chat-messages .bot-table th,
#chat-messages .bot-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  white-space: nowrap;
  color: inherit; /* respeta el tema actual */
}

/* Cabecera sticky */
#chat-messages .bot-table th {
  position: sticky;
  top: 0;
  background: #141415;
  color: #fff;
  font-weight: 700;
  text-align: left;
  z-index: 2;
}

/* Zebra + hover */
#chat-messages .bot-table tbody tr:nth-child(even) {
  background: rgba(255,255,255,0.02);
}
#chat-messages .bot-table tbody tr:hover {
  background: rgba(255,255,255,0.05);
}

/* Sorting hint */
#chat-messages .bot-table th.sortable { cursor: pointer; }
#chat-messages .bot-table th.sortable .sort {
  opacity: 0.6; font-size: 12px; margin-left: 6px;
}

/* Badges de estado */
#chat-messages .bot-badges .badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
#chat-messages .badge.processing { background:#2a4bff22;border:1px solid #2a4bff55;color:#8ea2ff; }
#chat-messages .badge.completed  { background:#1c7c3a22;border:1px solid #1c7c3a66;color:#69d19a; }
#chat-messages .badge.pending    { background:#a07b0022;border:1px solid #a07b0066;color:#ffd56a; }
#chat-messages .badge.cancelled  { background:#7a1c1c22;border:1px solid #7a1c1c66;color:#ff8f8f; }

/* Barra de acciones (CSV, copiar SQL, etc.) */
#chat-messages .table-actions {
  display: flex; gap: 10px; align-items: center; margin: 6px 0 10px;
}
#chat-messages .table-actions button {
  background: #2b2b2f; color: #fff; border: 1px solid rgba(255,255,255,0.12);
  padding: 6px 10px; border-radius: 8px; cursor: pointer;
}
#chat-messages .table-actions button:hover { background: #34343a; }

/* Paginación */
#chat-messages .pagination {
  display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin: 6px 2px 0;
}
#chat-messages .pagination button {
  background: #2b2b2f; color: #fff; border: 1px solid rgba(255,255,255,0.12);
  padding: 4px 10px; border-radius: 8px; cursor: pointer;
}
#chat-messages .pagination button[disabled] { opacity: .5; cursor: not-allowed; }

/* (Opcional) Números tabulares para montos y cantidades */
#chat-messages .bot-table td { font-variant-numeric: tabular-nums; }

/* Formato de links en conversaciones */
#chat-messages a {
  text-decoration: underline;
  cursor: pointer;
}
#chat-messages a:hover { opacity: .85; }



