.cr-hero {
  background: #f5f8ff;
  padding: 60px 20px;
  text-align: center;
  font-family: sans-serif;
}
.cr-container { max-width: 800px; margin: auto; }
.cr-title { font-size: 2.2rem; font-weight: 600; color: #1b1b1b; margin-bottom: 12px; }
.cr-title .highlight { color: #00bcd4; }
.cr-sub { font-size: 1rem; color: #555; margin-bottom: 24px; }
.cr-powered { font-size: 0.95rem; color: #009688; margin-top: 18px; font-weight: 500; }
.cr-encourage { font-size: 1rem; color: #333; margin-bottom: 16px; }
.cr-chatbox {
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: auto;
}
#cr-input {
  flex: 1;
  border: none;
  padding: 15px 20px;
  font-size: 1rem;
  outline: none;
}
#cr-submit {
  background: #00bcd4;
  color: white;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;padding:10px;
}
.cr-trending { font-size: 0.9rem; margin-top: 20px; color: #777; }
#cr-results { margin-top: 30px; text-align: left; }
.cr-response p { font-size: 1rem; margin-bottom: 12px; }
.cr-response ul { list-style: none; padding: 0; }
.cr-response li { margin-bottom: 8px; }
.cr-response a { color: #0073aa; text-decoration: none; }
.cr-response a:hover { text-decoration: underline; }

/* Popup Styles */
.cr-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.cr-popup a {text-decoration:underline !important; }

li.recommened-li,
.cr-popup ul {list-style:disc !important;}

.cr-popup.active {
  display: flex;
}

.cr-popup-content {
  background-color: #fff;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.cr-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #00bcd4;
  color: white;
}

.cr-popup-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: white;
}

.cr-popup-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.cr-popup-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.cr-chat-messages {
  display: flex;
  flex-direction: column;
}

.cr-message {
  margin-bottom: 15px;
  max-width: 80%;
}

.cr-message-user {
  align-self: flex-end;
  background-color: #e3f2fd;
  border-radius: 18px 18px 0 18px;
  padding: 10px 15px;
}

.cr-message-ai {
  align-self: flex-start;
  background-color: #f5f5f5;
  border-radius: 18px 18px 18px 0;
  padding: 10px 15px;
}

.cr-message-ai a {
  color: #0073aa !important;
  text-decoration: underline;
}

.cr-message-ai a:hover {
  text-decoration: underline;
}

.cr-message-ai ul {
  padding-left: 10px;
  margin: 10px 0;
}

.cr-message-ai li {
  margin-bottom: 5px;
}

.cr-popup-footer {
  display: flex;
  padding: 15px;
  border-top: 1px solid #eee;
}

#cr-popup-input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 10px 15px;
  font-size: 1rem;
  outline: none;
}

#cr-popup-submit {
  background-color: #00bcd4;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 10px 20px;
  margin-left: 10px;
  cursor: pointer;
  font-size: 1rem;
}

.cr-login-prompt {
  padding: 20px;
  text-align: center;
  border-top: 1px solid #eee;
}

.cr-login-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.cr-login-btn, .cr-signup-btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
}

.cr-login-btn {
  background-color: #00bcd4;
  color: white !important;
}

.cr-signup-btn {
  background-color: #f5f5f5;
  color: #333;
  border: 1px solid #ddd;
}
