/* Extracted from resources/views/chatbot.blade.php <style> block, as part
   of the CSP hardening (removal of 'unsafe-inline' from style-src). Content
   is unchanged. */
.chatbot-wrapper {
  position: fixed;
  bottom: 85px;
  right: 25px;
  z-index: 9999;
  font-family: inherit;
}

.chatbot-launcher {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: transparent;
  border: none;
  box-shadow: none;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.2s ease;
}
.chatbot-launcher-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center 15%;
  pointer-events: none;
  /* No background plate behind the mascot (transparent PNG) - a drop
     shadow on the artwork itself keeps it readable over any page
     content instead of a white/colored disc. */
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.35));
}
.chatbot-launcher-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ecl-brand-600, #0078c1);
  color: #fff;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  pointer-events: none;
}
.chatbot-launcher:hover {
  transform: scale(1.08);
}

.chatbot-window {
  position: absolute;
  bottom: 100px;
  right: 0;
  width: 310px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  border: 1px solid #ddd;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.chatbot-header {
  background-color: var(--ecl-brand-600, #0078c1);
  color: #fff;
  padding: 12px 16px;
  font-weight: bold;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chatbot-close-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.chatbot-body {
  padding: 16px;
  max-height: 380px;
  overflow-y: auto;
}

.chat-msg.bot-msg {
  background-color: #f1f3f5;
  color: #333;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  margin-bottom: 14px;
  border-left: 3px solid var(--ecl-brand-600, #0078c1);
}

.chat-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-opt-btn, .chat-redirect-link {
  display: block;
  width: 100%;
  text-align: left;
  background-color: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.2s ease;
}
.chat-opt-btn:hover, .chat-redirect-link:hover {
  background-color: #e9ecef;
  border-color: var(--ecl-brand-600, #0078c1);
  color: var(--ecl-brand-600, #0078c1);
}

.sub-category-title {
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 8px;
}

.chat-back-btn {
  margin-top: 10px;
  background: transparent;
  border: none;
  color: var(--ecl-brand-600, #0078c1);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 0;
  text-align: left;
}
.chat-back-btn:hover {
  text-decoration: underline;
}

/* Formerly a JS property assignment (icon.style.fontSize) inside
   showCategory() in the inline <script> block - moved to a class since it's
   a fixed value, not derived from any Blade/server data. */
.chat-redirect-link .fa-external-link-alt {
  font-size: 11px;
}
