/* Advisor Popup Styles */
.advisor-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  display: none; /* Hidden by default */
  align-items: center;
  justify-content: center;
}

.advisor-overlay.is-visible {
  display: flex;
}

.advisor-popup, .advisor-chat-window {
  background-color: var(--brand-primary);
  color: var(--brand-text);
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  padding: 30px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  display: none; /* Hidden by default */
}

.advisor-popup.is-visible, .advisor-chat-window.is-visible {
  display: block;
}

.advisor-popup h3 {
  font-family: 'Playfair Display', serif;
  margin-top: 0;
  margin-bottom: 20px;
}

.advisor-popup .btn-group {
  display: flex;
  flex-direction: column;
}

.advisor-popup .btn {
  margin-bottom: 10px;
  padding: 15px;
  font-size: 1.1rem;
}

.advisor-close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--brand-muted);
  cursor: pointer;
}

/* Chat Window Styles */
.chat-messages {
  height: 300px;
  overflow-y: auto;
  border: 1px solid var(--brand-secondary);
  padding: 15px;
  margin-bottom: 20px;
  text-align: left;
}

.chat-message {
  padding: 8px 12px;
  border-radius: 15px;
  margin-bottom: 10px;
  max-width: 80%;
  line-height: 1.4;
}

.bot-message {
  background-color: var(--brand-secondary);
  color: var(--brand-text);
  align-self: flex-start;
  float: left;
  clear: both;
}

.user-message {
  background-color: var(--brand-accent);
  color: #fff;
  align-self: flex-end;
  float: right;
  clear: both;
}

.chat-options .btn {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  text-align: center;
}

.chat-product-recommendation {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--brand-secondary);
    border-radius: 5px;
    margin-top: 10px;
    text-decoration: none;
    color: var(--brand-text);
}

.chat-product-recommendation:hover {
    background-color: var(--brand-secondary);
}

.chat-product-recommendation img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    margin-right: 15px;
}
