/* AGENZ AI Guide: responsive, header-aware production surface */
html body .service-companion {
  position: fixed !important;
  isolation: isolate;
  z-index: 96 !important;
  left: clamp(16px, 2vw, 28px) !important;
  bottom: clamp(18px, 2vw, 28px) !important;
  width: 62px !important;
  height: 62px !important;
  pointer-events: none !important;
}

html body .service-companion,
html body .service-companion * {
  box-sizing: border-box;
}

html body .service-companion.open {
  width: 62px !important;
  height: 62px !important;
}

html body .service-companion .companion-backdrop {
  display: none;
}

html body .service-companion .companion-robot,
html body .service-companion.open .companion-robot {
  position: absolute !important;
  z-index: 4;
  left: 0 !important;
  bottom: 0 !important;
  width: 62px !important;
  height: 62px !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  border: 4px solid #fff !important;
  border-radius: 50% !important;
  background: linear-gradient(145deg, #0b4eae, #2f82f2) !important;
  box-shadow: 0 13px 32px rgba(21, 95, 209, .3) !important;
  animation: none !important;
  pointer-events: auto !important;
}

html body .service-companion .companion-robot img {
  display: none !important;
}

html body .service-companion .companion-robot::after {
  content: "AI";
  color: #fff;
  font: 900 .82rem/1 Manrope, sans-serif;
  letter-spacing: .08em;
}

html body .service-companion .companion-status {
  position: absolute;
  top: 3px !important;
  right: 3px !important;
  width: 11px !important;
  height: 11px !important;
  border: 2px solid #fff !important;
  border-radius: 50% !important;
  background: #25b985 !important;
  box-shadow: 0 0 0 4px rgba(37, 185, 133, .18) !important;
}

html body .service-companion .companion-bubble {
  position: fixed !important;
  z-index: 3;
  top: var(--agenz-guide-safe-top, 96px) !important;
  right: auto !important;
  bottom: 78px !important;
  left: clamp(94px, 7.5vw, 112px) !important;
  width: min(460px, calc(100vw - 132px)) !important;
  min-height: 330px;
  max-height: none !important;
  box-sizing: border-box;
  padding: 0 !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto !important;
  overflow: hidden !important;
  border: 1px solid #d7dfe9 !important;
  border-radius: 24px 24px 24px 8px !important;
  color: #111827 !important;
  background: rgba(255, 255, 255, .992) !important;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .22), 0 8px 24px rgba(15, 23, 42, .08) !important;
  backdrop-filter: blur(18px) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translate(-10px, 10px) scale(.975) !important;
  transform-origin: bottom left;
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease !important;
}

html body .service-companion.open .companion-bubble {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
}

html body .service-companion .companion-close {
  position: absolute !important;
  z-index: 5;
  top: 13px !important;
  right: 13px !important;
  width: 32px !important;
  height: 32px !important;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #d9e1ec !important;
  border-radius: 50% !important;
  color: #344054 !important;
  background: #fff !important;
  font-size: 18px !important;
  line-height: 1 !important;
  box-shadow: 0 5px 14px rgba(15, 23, 42, .08);
}

html body .service-companion .companion-head {
  display: block !important;
  padding: 18px 54px 15px 19px !important;
  border: 0 !important;
  border-bottom: 1px solid #e7ebf1 !important;
  background: linear-gradient(135deg, #fff 8%, #f4f7fd 100%) !important;
}

html body .service-companion .companion-kicker {
  display: flex !important;
  align-items: center;
  gap: 7px;
  color: #155bd7 !important;
  font-size: 9px !important;
  font-weight: 900;
  letter-spacing: .12em;
}

html body .service-companion .companion-kicker i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #25b985;
  box-shadow: 0 0 0 4px rgba(37, 185, 133, .12);
}

html body .service-companion .companion-kicker b {
  color: #155bd7 !important;
  font: inherit;
}

html body .service-companion .companion-head > strong {
  display: block !important;
  margin: 9px 0 5px !important;
  color: #0d1733 !important;
  font-size: 20px !important;
  line-height: 1.18 !important;
  letter-spacing: -.025em;
}

html body .service-companion .companion-head > p {
  max-width: 350px;
  margin: 0 !important;
  color: #5f6b7d !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
}

html body .service-companion.has-conversation .companion-head {
  padding-block: 12px !important;
}

html body .service-companion.has-conversation .companion-head > strong {
  margin-bottom: 0 !important;
  font-size: 16px !important;
}

html body .service-companion.has-conversation .companion-head > p {
  display: none !important;
}

html body .service-companion .companion-messages {
  min-width: 0;
  min-height: 0 !important;
  max-height: none !important;
  box-sizing: border-box;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding: 15px 17px !important;
  display: flex !important;
  flex-direction: column;
  gap: 11px;
  background: #fff !important;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #bec8d6 transparent;
}

html body .service-companion .companion-messages::-webkit-scrollbar {
  width: 7px;
}

html body .service-companion .companion-messages::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: #bec8d6;
  background-clip: padding-box;
}

html body .service-companion .companion-message {
  align-self: flex-start;
  width: fit-content;
  max-width: 92%;
  box-sizing: border-box;
  padding: 11px 13px;
  overflow: visible !important;
  border: 1px solid #e0e6ef !important;
  border-radius: 15px 15px 15px 5px !important;
  color: #344054 !important;
  background: #f7f9fc !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  box-shadow: none !important;
}

html body .service-companion .companion-message.user {
  align-self: flex-end;
  max-width: 84%;
  border-color: #155bd7 !important;
  border-radius: 15px 15px 5px 15px !important;
  color: #fff !important;
  background: #155bd7 !important;
}

html body .service-companion .companion-message.error {
  border-color: #f1b7c2 !important;
  color: #8c1127 !important;
  background: #fff3f5 !important;
}

html body .service-companion .companion-retry {
  min-height: 32px;
  margin-top: 9px !important;
  padding: 6px 12px !important;
  border: 1px solid #c8102e !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: #c8102e !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  letter-spacing: .04em;
  line-height: 1 !important;
}

html body .service-companion .companion-retry:hover,
html body .service-companion .companion-retry:focus-visible {
  color: #c8102e !important;
  background: #fff !important;
  outline: 2px solid rgba(200, 16, 46, .2);
  outline-offset: 2px;
}

html body .service-companion .companion-message.pending {
  min-width: 72px;
  color: #155bd7 !important;
  animation: companionThinking 1s ease-in-out infinite;
}

html body .service-companion .companion-message-role {
  display: block;
  margin-bottom: 5px;
  color: #155bd7 !important;
  font-size: 8px !important;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

html body .service-companion .companion-message.user .companion-message-role {
  color: rgba(255, 255, 255, .72) !important;
}

html body .service-companion .companion-message-content {
  min-width: 0;
}

html body .service-companion .companion-message-content > :first-child {
  margin-top: 0 !important;
}

html body .service-companion .companion-message-content > :last-child {
  margin-bottom: 0 !important;
}

html body .service-companion .companion-message-content p,
html body .service-companion .companion-message-content h4,
html body .service-companion .companion-message-content ul,
html body .service-companion .companion-message-content ol {
  color: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

html body .service-companion .companion-message-content p {
  margin: 0 0 8px !important;
}

html body .service-companion .companion-message-content h4 {
  margin: 10px 0 5px !important;
  font-weight: 900;
}

html body .service-companion .companion-message-content ul,
html body .service-companion .companion-message-content ol {
  margin: 7px 0 9px !important;
  padding-left: 19px !important;
}

html body .service-companion .companion-message-content li {
  margin: 0 0 5px;
  padding-left: 2px;
}

html body .service-companion .companion-message-content strong {
  display: inline !important;
  margin: 0 !important;
  color: #17213b !important;
  font-size: inherit !important;
}

html body .service-companion .companion-message-content a {
  color: #155bd7 !important;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

html body .service-companion .companion-choices {
  min-width: 0;
  max-height: 82px;
  margin: 0 !important;
  padding: 0 17px 11px !important;
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px;
  overflow-x: hidden !important;
  overflow-y: auto;
  background: #fff !important;
}

html body .service-companion .companion-choices[hidden] {
  display: none !important;
}

html body .service-companion .companion-choices button {
  flex: 0 1 auto;
  min-width: 0;
  padding: 7px 10px !important;
  border: 1px solid #dce3ed !important;
  border-radius: 999px !important;
  color: #1552ad !important;
  background: #fff !important;
  font-size: 10px !important;
  line-height: 1.3 !important;
  white-space: normal !important;
  text-align: left;
}

html body .service-companion .companion-choices button:hover,
html body .service-companion .companion-choices button:focus-visible {
  border-color: #155bd7 !important;
  background: #f1f6ff !important;
}

html body .service-companion .companion-form {
  min-width: 0;
  padding: 10px 15px 9px !important;
  border-top: 1px solid #e7ebf1 !important;
  background: #fff !important;
}

html body .service-companion .companion-input-shell {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 42px !important;
  gap: 8px;
  align-items: end;
  box-sizing: border-box;
  padding: 6px 6px 6px 12px !important;
  overflow: hidden;
  border: 1px solid #cfd8e5 !important;
  border-radius: 15px !important;
  background: #fff !important;
  transition: border-color .18s, box-shadow .18s;
}

html body .service-companion .companion-input-shell:focus-within {
  border-color: #155bd7 !important;
  box-shadow: 0 0 0 3px rgba(21, 91, 215, .1) !important;
}

html body .service-companion .companion-form textarea {
  width: 100% !important;
  min-width: 0;
  min-height: 38px !important;
  max-height: 96px !important;
  box-sizing: border-box;
  padding: 8px 0 6px !important;
  resize: none !important;
  overflow-x: hidden !important;
  border: 0 !important;
  outline: 0 !important;
  color: #182033 !important;
  background: transparent !important;
  font: 500 12px/1.5 Manrope, sans-serif !important;
}

html body .service-companion .companion-form textarea::placeholder {
  color: #8a94a5 !important;
  opacity: 1;
}

html body .service-companion .companion-send {
  width: 42px !important;
  height: 42px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 12px !important;
  color: #fff !important;
  background: #c8102e !important;
  font-size: 16px !important;
  box-shadow: 0 8px 18px rgba(200, 16, 46, .2);
}

html body .service-companion .companion-send:disabled,
html body .service-companion .companion-form textarea:disabled {
  opacity: .5;
  cursor: not-allowed;
}

html body .service-companion .companion-feedback {
  min-height: 14px;
  margin: 6px 2px 0 !important;
  overflow: hidden;
  color: #667085 !important;
  font-size: 9px !important;
  line-height: 1.35 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body .service-companion .companion-form small {
  display: block !important;
  margin-top: 2px !important;
  color: #8a94a5 !important;
  font-size: 8px !important;
  line-height: 1.4 !important;
}

html body .service-companion .companion-cta {
  min-width: 0;
  padding: 10px 17px !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  overflow: hidden;
  border-top: 1px solid #e7ebf1 !important;
  color: #155bd7 !important;
  background: #f8faff !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  letter-spacing: .08em;
  text-transform: uppercase;
}

html body .service-companion .companion-cta b {
  overflow: hidden;
  color: inherit !important;
  font: inherit !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body .service-companion .companion-cta span {
  flex: 0 0 auto;
  color: #c8102e !important;
  font-size: 14px !important;
}

.companion-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@keyframes companionThinking {
  50% { opacity: .45; }
}

@media (max-width: 620px) {
  html.agenz-guide-active,
  html.agenz-guide-active body {
    overflow: hidden !important;
  }

  html body .service-companion {
    left: 12px !important;
    bottom: 82px !important;
    width: 56px !important;
    height: 56px !important;
  }

  html body .service-companion.open {
    width: 56px !important;
    height: 56px !important;
  }

  html body .service-companion .companion-robot,
  html body .service-companion.open .companion-robot {
    width: 56px !important;
    height: 56px !important;
  }

  html body .service-companion.open .companion-robot {
    opacity: 0 !important;
    pointer-events: none !important;
  }

  html body .service-companion .companion-backdrop {
    position: fixed !important;
    z-index: 1;
    inset: 0 !important;
    width: 100vw;
    height: 100dvh;
    display: block !important;
    border: 0 !important;
    background: rgba(10, 18, 35, .38) !important;
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none !important;
    transition: opacity .2s ease, visibility .2s ease;
  }

  html body .service-companion.open .companion-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto !important;
  }

  html body .service-companion .companion-bubble {
    top: var(--agenz-guide-safe-top, 78px) !important;
    right: 10px !important;
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
    left: 10px !important;
    width: auto !important;
    min-height: 0 !important;
    border-radius: 21px !important;
    transform: translateY(12px) scale(.985) !important;
    transform-origin: bottom center;
  }

  html body .service-companion .companion-head {
    padding: 15px 50px 13px 16px !important;
  }

  html body .service-companion .companion-head > strong {
    font-size: 18px !important;
  }

  html body .service-companion .companion-head > p {
    font-size: 11px !important;
  }

  html body .service-companion .companion-messages {
    padding: 13px !important;
  }

  html body .service-companion .companion-message {
    max-width: 95%;
    font-size: 11.5px !important;
  }

  html body .service-companion .companion-choices {
    padding-inline: 13px !important;
  }

  html body .service-companion .companion-form {
    padding-inline: 12px !important;
  }

  html body .service-companion .companion-cta {
    padding-inline: 14px !important;
  }
}

@media (max-height: 560px) and (min-width: 621px) {
  html body .service-companion .companion-bubble {
    bottom: 16px !important;
    min-height: 260px;
  }

  html body .service-companion .companion-head {
    padding-block: 11px !important;
  }

  html body .service-companion .companion-head > p {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .service-companion .companion-bubble,
  html body .service-companion .companion-backdrop {
    transition: none !important;
  }

  html body .service-companion .companion-message.pending {
    animation: none !important;
  }
}
