/* Import Ubuntu Sans font for broad website compatibility */
@import url('https://fonts.googleapis.com/css2?family=Ubuntu+Sans:wght@400;500;700&display=swap');

/* Import Font Awesome for icon compatibility */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

body, #sterk-assistent-orb-container, #sterk-assistent-flyout, .sterk-assistent-header, .sterk-assistent-actions, #sterk-assistent-body {
  font-family: 'Ubuntu Sans', sans-serif;
  font-size: 12px;
}

/* Chat balloons: default styling, will be overridden by inline style for border/rounding from backend */
.sterk-assistent-message {
  display: flex;
  flex-direction: column;
  margin-bottom: 5px;
  max-width: 92%;
  word-break: break-word;
  background: #f5f5f5;
  padding: 8px 16px;
  box-shadow: none;
  font-size: 13px;
  font-family: 'Ubuntu Sans', sans-serif;
  font-weight: 400;
  transition: background 0.22s, color 0.22s, border 0.22s, border-radius 0.22s;
}
.sterk-assistent-message.user {
  background: #f5f5f5;
  color: #111;
  align-self: flex-end;
  margin-left: auto;
  font-family: 'Ubuntu Sans', sans-serif;
  font-weight: 400;
}
.sterk-assistent-message.assistant {
  background: #f5f5f5;
  /* De kleur hieronder wordt overschreven via inline style of via een dynamic style block vanuit PHP/JS */
  /* color: #2a3d7a; */ /* deze verwijderen of overschrijven */
  color: var(--sterk-assistent-assistant-text-color, #2a3d7a);
  align-self: flex-start;
  margin-right: auto;
  font-family: 'Ubuntu Sans', sans-serif;
  font-weight: 400;
}

/* Highlighted keywords in search results (vetgedrukt, geen vergroting) */
.sterk-assistent-result-keyword,
.sterk-assistent-search-highlight {
  font-weight: bold !important;
  color: inherit !important;
  background: none !important;
  font-size: inherit !important;
  padding: 0;
}

/* Search result box background (configurable via inline style) */
.sterk-assistent-result-box {
  border-radius: 10px;
  margin: 12px 0;
  padding: 15px 20px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.04);
  transition: background .2s;
}

/* Mobile: chat balloons max width 330px !important */
@media (max-width: 480px) {
  .sterk-assistent-message {
    max-width: 330px !important;
  }
  #sterk-assistent-flyout {
    max-width: 330px !important;
    min-width: 280px;
  }
}

/* Desktop: chat balloons/flyout max width 420px */
@media (min-width: 481px) {
  .sterk-assistent-message {
    max-width: 420px !important;
  }
  #sterk-assistent-flyout {
    max-width: 420px !important;
    min-width: 320px;
  }
}

/* Send button styling */
.sterk-assistent-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
  position: relative;
}
#sterk-assistent-send-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 22px;
  cursor: pointer;
  margin-left: 2px;
  transition: background 0.18s, box-shadow 0.18s;
  box-shadow: none !important;
  padding: 0;
  background: #111;
  color: #fff;
  outline: none;
}
#sterk-assistent-send-btn:focus {
  outline: 2px solid #ff6a00;
}
#sterk-assistent-send-btn .fa,
#sterk-assistent-send-btn svg {
  color: inherit;
  font-size: 22px;
  width: 22px;
  height: 22px;
  margin: 0 auto;
  display: block;
  pointer-events: none;
  line-height: 1;
  text-align: center;
  vertical-align: middle;
  transition: color 0.22s;
}

/* Pills main navigation in flyout */
#sterk-assistent-nav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 16px 6px 16px;
  margin-bottom: 6px;
  min-height: 38px;
}
.sterk-pill-link {
  display: inline-block;
  background: #fff;
  color: #ff6a00;
  border-radius: 999px;
  padding: 7px 22px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none !important;
  box-shadow: 0 1px 6px rgba(0,0,0,0.03);
  border: none;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.38s cubic-bezier(.32,1.45,.45,1),transform 0.38s cubic-bezier(.32,1.45,.45,1);
  will-change: opacity,transform;
}
#sterk-assistent-nav-pills.show .sterk-pill-link {
  opacity: 1;
  transform: scale(1);
}
.sterk-pill-link:hover, .sterk-pill-link:focus {
  background: #ffe1c5;
  color: #c96e00;
  outline: none;
}
@media (max-width: 480px) {
  .sterk-pill-link {
    font-size: 13px;
    padding: 7px 12px;
  }
}

/* Pill bar for custom pills under the logo */
#sterk-assistent-custom-pills-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 25px 20px 10px 20px;
  margin-bottom: 4px;
  min-height: 28px;
}
.sterk-custom-pill {
  display: inline-block;
  background: #ededed;
  color: #ff6a00;
  border-radius: 999px;
  padding: 6px 18px;
  font-weight: 600;
  font-size: 12px;
  font-family: 'Ubuntu Sans', sans-serif;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.38s cubic-bezier(.32,1.45,.45,1),transform 0.38s cubic-bezier(.32,1.45,.45,1);
  will-change: opacity,transform;
}
#sterk-assistent-custom-pills-bar.show .sterk-custom-pill {
  opacity: 1;
  transform: scale(1);
}
.sterk-custom-pill:hover, .sterk-custom-pill:focus {
  background: #ffe1c5;
  color: #c96e00;
  outline: none;
}

/* WhatsApp and New Chat buttons */
#sterk-whatsapp-btn,
#sterk-newchat-btn {
  background: #ff4400;
  color: #fff;
  border: none;
  padding: 8px 17px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s;
  margin-left: 5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(255,68,0,0.09);
}
#sterk-whatsapp-btn {
  margin-left: 0;
}
#sterk-newchat-btn {
  background: #666;
  margin-left: 5px;
}
#sterk-whatsapp-btn:hover,
#sterk-newchat-btn:hover {
  background: #a83c00;
  color: #fff;
}
#sterk-newchat-btn:hover {
  background: #222;
}

/* WhatsApp knop afbeelding (ronde button) */
.sterk-whatsapp-btn-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
  display: inline-block;
  vertical-align: middle;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}

/* Orb and flyout container styling as before */
#sterk-assistent-orb-container {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
#sterk-assistent-orb-css-container {
  background: #000;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  overflow: hidden;
  user-select: none;
  transition:
    box-shadow 0.3s,
    border-color 0.3s,
    background 0.3s,
    border-radius 0.3s,
    filter 0.3s,
    transform 0.5s cubic-bezier(.34,1.56,.64,1),
    z-index 0s;
  min-width: 60px;
  min-height: 60px;
  max-width: 240px;
  max-height: 240px;
  position: fixed;
  z-index: 10012;
  opacity: 0;
  transform: scale(0.7) translateY(40px);
  animation: sterk-orb-appear 0.55s cubic-bezier(.34,1.56,.64,1) forwards;
}
#sterk-assistent-orb-css-container.floating {
  position: absolute !important;
  bottom: auto;
  right: 32px;
  left: auto;
  top: -54px;
  z-index: 10101 !important;
  transform: scale(1) translateY(0) !important;
  box-shadow: 0 16px 28px -6px rgba(0,0,0,0.16), 0 8px 32px 0 rgba(0,0,0,0.14);
}
@keyframes sterk-orb-appear {
  0% { opacity: 0; transform: scale(0.7) translateY(40px);}
  70% { opacity: 1; transform: scale(1.05) translateY(-8px);}
  100% { opacity: 1; transform: scale(1) translateY(0);}
}
#sterk-assistent-orb-css-container.bounce-up:not(.floating) {
  animation: sterk-orb-bounce-up 0.42s cubic-bezier(.51,1.75,.58,1) forwards;
}
@keyframes sterk-orb-bounce-up {
  0%   { transform: scale(1) translateY(0);}
  40%  { transform: scale(1.11,0.89) translateY(-18px);}
  60%  { transform: scale(0.93,1.16) translateY(-60px);}
  80%  { transform: scale(1.04,0.97) translateY(-56px);}
  100% { transform: scale(1) translateY(-54px);}
}
#sterk-assistent-orb-css-container.bounce-down {
  animation: sterk-orb-bounce-down 0.46s cubic-bezier(.51,1.42,.51,1.1) forwards;
}
@keyframes sterk-orb-bounce-down {
  0%   { transform: scale(1) translateY(-54px);}
  35%  { transform: scale(0.93,1.16) translateY(-12px);}
  70%  { transform: scale(1.09,0.92) translateY(10px);}
  100% { transform: scale(1) translateY(0);}
}

/* Flyout styling (with fadeup) */
#sterk-assistent-flyout {
  margin-bottom: 12px;
  min-width: 320px;
  max-width: 420px;
  background: #fff;
  color: #222;
  border-radius: 10px;
  box-shadow: 0 8px 36px rgba(0,0,0,0.22);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(32px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(.4,0,.2,1), transform 0.35s cubic-bezier(.4,0,.2,1);
  z-index: 10000;
  position: relative;
}
#sterk-assistent-flyout.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.sterk-assistent-header {
  background: transparent;
  border-bottom: 1px solid #f0f0f0;
  border-radius: 10px 10px 0 0;
  padding: 10px 20px 5px 12px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sterk-assistent-flyout-logo {
  object-fit: contain;
  width: 44px;
  height: 44px;
  margin-right: 8px;
  margin-left: 0;
  border-radius: 0;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}
.sterk-assistent-header span {
  color: #111;
  font-size: 12px;
  flex: 1;
}
#sterk-assistent-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #bbb;
  cursor: pointer;
  border-radius: 50%;
  width: 32px; height: 32px;
  transition: background 0.2s;
}
#sterk-assistent-close:hover {
  background: #f0f0f0;
  color: #333;
}
#sterk-assistent-body {
  padding: 20px 20px 5px 20px;
  max-height: 370px;
  min-height: 120px;
  overflow-y: auto;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: transparent;
}
#sterk-assistent-convo {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}
.sterk-assistent-input {
  flex: 1;
  border-radius: 5px;
  border: 1.5px solid #e0e0e0;
  padding: 7px 10px;
  font-family: 'Ubuntu Sans', sans-serif;
  outline: none;
  font-size: 12px;
  transition: border 0.15s;
  background: #fff;
}
.sterk-assistent-input:focus {
  border: 1.5px solid #ff6a00;
}
.sterk-assistent-actions {
  padding: 7px 20px 13px 20px;
  display: flex;
  justify-content: flex-end;
  background: transparent;
  border-radius: 0 0 10px 10px;
}

/* Loader */
.sterk-dots-loader {
  display: flex;
  align-items: flex-end;
  height: 21px;
  justify-content: flex-start;
  margin-left: 6px;
  gap: 2px;
}
.sterk-dots-loader span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 1px;
  background: #101010;
  border-radius: 50%;
  opacity: 0.98;
  animation: sterk-dot-bounce 1.1s infinite cubic-bezier(.6,.2,.4,1.3);
}
.sterk-dots-loader span:nth-child(2) {
  animation-delay: 0.12s;
  background: #292929;
}
.sterk-dots-loader span:nth-child(3) {
  animation-delay: 0.22s;
  background: #111;
}
@keyframes sterk-dot-bounce {
  0%, 100% { transform: translateY(0);}
  30% { transform: translateY(-6px);}
  60% { transform: translateY(0);}
}
/* Contact Form 7 in chat styling */
.sterk-cf7-form-assistent {
  margin: 10px 10px;
  padding: 0;
  background: transparant;
}
.sterk-cf7-form-assistent form {
  max-width: 100%;
}
.sterk-cf7-form-assistent input,
.sterk-cf7-form-assistent textarea,
.sterk-cf7-form-assistent select {
  width: 100% !important;
  box-sizing: border-box;
  margin-bottom: 8px;
Background-color: #ffffff;
}
.sterk-cf7-form-assistent .wpcf7-submit {
  width: auto !important;
  margin-top: 5px;
Background-color: #000000;
Color: #ffffff;
Border-radius: 5px;
}