/* CHAT WIDGET ROGER - styles */
.chat-launcher {
  position: fixed; bottom: 24px; right: 24px;
  background: #1F1A17;
  border-radius: 999px;
  display: flex; align-items: center; gap: 12px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 16px 40px rgba(31, 26, 23, 0.32);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  border: none;
  color: #FAF6F0;
  padding: 8px 22px 8px 8px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  text-align: left;
  line-height: 1.2;
}
.chat-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(31, 26, 23, 0.4);
  background: #2A231F;
}
.chat-launcher-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 35% 30%;
  border: 2px solid #FF6B35;
  display: block;
  flex-shrink: 0;
}
.chat-launcher-text { display: flex; flex-direction: column; }
.chat-launcher-text strong {
  font-size: 14px;
  font-weight: 700;
  color: #FF6B35;
  letter-spacing: 0.1px;
}
.chat-launcher-text span {
  font-size: 13px;
  color: rgba(250, 246, 240, 0.85);
  font-weight: 500;
  margin-top: 1px;
}
.chat-launcher .chat-pulse {
  position: absolute; top: -4px; left: 38px;
  width: 18px; height: 18px;
  background: #FF6B35;
  color: white;
  border-radius: 50%;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #1F1A17;
}

.chat-window {
  position: fixed; bottom: 100px; right: 24px;
  width: 380px; max-width: calc(100vw - 48px);
  height: 580px; max-height: calc(100vh - 140px);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 32px 80px rgba(31, 26, 23, 0.28);
  z-index: 999;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #E5DFD5;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
.chat-window.open { display: flex; }

.chat-header {
  background: #1F1A17;
  color: #FAF6F0;
  padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
}
.chat-avatar-wrap { position: relative; flex-shrink: 0; }
.chat-avatar-img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 35% 30%;
  display: block;
  border: 2px solid rgba(255, 107, 53, 0.6);
}
.chat-status-dot {
  position: absolute;
  bottom: 0; right: 0;
  width: 12px; height: 12px;
  background: #2EA64A;
  border-radius: 50%;
  border: 2px solid #1F1A17;
}
.chat-name { display: flex; flex-direction: column; flex-grow: 1; line-height: 1.2; }
.chat-name strong { font-size: 16px; font-weight: 700; color: #FAF6F0; }
.chat-name span { font-size: 12px; color: rgba(250, 246, 240, 0.7); margin-top: 2px; }
.chat-close {
  background: transparent; border: none; cursor: pointer;
  color: #FAF6F0; opacity: 0.7; font-size: 22px; line-height: 1;
  padding: 0 4px;
  font-family: inherit;
}
.chat-close:hover { opacity: 1; }

.chat-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
  background: #FAF6F0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-bubble-bot {
  max-width: 88%;
  background: #ffffff;
  border: 1px solid #E5DFD5;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.55;
  color: #1A1A1A;
  align-self: flex-start;
}
.chat-bubble-user {
  max-width: 88%;
  background: #1F1A17;
  color: #FAF6F0;
  border-radius: 14px;
  border-bottom-right-radius: 4px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.55;
  align-self: flex-end;
}

.chat-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.chat-action-btn {
  background: #FF6B35;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-family: inherit;
  transition: background 0.2s;
}
.chat-action-btn:hover { background: #E85A28; }
.chat-action-btn.outline {
  background: transparent;
  color: #1F1A17;
  border: 1px solid #E5DFD5;
}
.chat-action-btn.outline:hover { background: #ffffff; border-color: #FF6B35; }

.chat-input-bar {
  padding: 12px 16px;
  background: #ffffff;
  border-top: 1px solid #E5DFD5;
  display: flex; gap: 10px; align-items: center;
}
.chat-input-field {
  flex-grow: 1;
  border: 1px solid #E5DFD5;
  background: #FAF6F0;
  border-radius: 20px;
  padding: 10px 14px;
  font-size: 13px;
  color: #1A1A1A;
  font-family: inherit;
  outline: none;
}
.chat-input-field:focus { border-color: #FF6B35; background: #ffffff; }
.chat-input-send {
  background: #FF6B35;
  color: white;
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: inherit;
}
.chat-input-send:hover { background: #E85A28; }
.chat-input-send:disabled { background: #B4B2A9; cursor: not-allowed; }

.chat-footer {
  font-size: 11px;
  color: #6B6661;
  text-align: center;
  padding: 8px 16px 12px;
  background: #ffffff;
  line-height: 1.4;
}

/* HOVER CARD - opent boven de launcher bij hover */
.chat-hint {
  position: fixed;
  bottom: 96px; right: 24px;
  width: 320px;
  background: linear-gradient(160deg, #1F1A17 0%, #2A231F 100%);
  border-radius: 18px;
  padding: 22px 22px 18px;
  box-shadow: 0 24px 56px rgba(31, 26, 23, 0.32);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #FAF6F0;
}
.chat-hint.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.chat-hint-top { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.chat-hint-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 35% 30%;
  border: 2px solid #FF6B35;
  flex-shrink: 0;
}
.chat-hint-greet { flex-grow: 1; }
.chat-hint-greet strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #FAF6F0;
  margin-bottom: 4px;
}
.chat-hint-greet p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(250, 246, 240, 0.78);
}
.chat-hint-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(250, 246, 240, 0.12);
  padding-top: 14px;
}
.chat-hint-status {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px;
  color: rgba(250, 246, 240, 0.7);
}
.chat-hint-status::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2EA64A;
  box-shadow: 0 0 0 3px rgba(46, 166, 74, 0.2);
}
.chat-hint-cta {
  background: #FF6B35;
  color: white;
  border: none;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.chat-hint-cta:hover { background: #E85A28; }
.chat-hint::after {
  content: '';
  position: absolute;
  bottom: -7px; right: 60px;
  width: 14px; height: 14px;
  background: #2A231F;
  transform: rotate(45deg);
}

@media (max-width: 480px) {
  .chat-window { right: 12px; bottom: 88px; left: 12px; width: auto; max-width: none; height: calc(100vh - 110px); }
  .chat-launcher { right: 16px; bottom: 16px; padding: 6px 18px 6px 6px; }
  .chat-launcher-text strong { font-size: 13px; }
  .chat-launcher-text span { font-size: 12px; }
  .chat-hint { display: none !important; }
}
