.siteChat {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999990;
  font-family: inherit;
}

.siteChat__fab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(15,23,42,0.88);
  color: #fff;
  box-shadow: 0 18px 45px rgba(0,0,0,0.34);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.siteChat__fabAvatar,
.siteChat__avatar,
.siteChat__msgAvatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  overflow: hidden;
  border-radius: 999px;
  flex-shrink: 0;
}

.siteChat__fabAvatar,
.siteChat__avatar {
  background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08));
}

.siteChat__fabAvatar img,
.siteChat__avatar img,
.siteChat__msgAvatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.siteChat__fabText {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.siteChat__panel {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(430px, calc(100vw - 28px));
  height: min(720px, calc(100vh - 28px));
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(9,14,25,0.96), rgba(17,24,39,0.94));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 25px 70px rgba(0,0,0,0.45);
  backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.98);
  transition: opacity .24s ease, transform .24s ease;
}

.siteChat.is-open .siteChat__panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.siteChat.is-open .siteChat__fab {
  opacity: 0;
  pointer-events: none;
}

.siteChat__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
}

.siteChat__identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.siteChat__title {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.siteChat__subtitle {
  color: rgba(255,255,255,0.68);
  font-size: 12px;
}

.siteChat__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.siteChat__iconBtn,
.siteChat__secondary,
.siteChat__send {
  border: 1px solid rgba(255,255,255,0.14);
  cursor: pointer;
}

.siteChat__iconBtn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 18px;
}

.siteChat__messages {
  flex: 1 1 auto;
  padding: 16px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.siteChat__msg {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.siteChat__msg--user {
  justify-content: flex-end;
}

.siteChat__msg--user .siteChat__msgAvatar {
  order: 2;
  font-size: 12px;
  font-weight: 800;
  color: rgba(255,255,255,0.88);
  background: rgba(255,255,255,0.12);
}

.siteChat__msg--assistant .siteChat__msgAvatar {
  background: rgba(255,255,255,0.08);
}

.siteChat__bubble {
  max-width: 78%;
  padding: 12px 14px;
  border-radius: 18px;
  color: rgba(255,255,255,0.94);
  line-height: 1.45;
  font-size: 14px;
}

.siteChat__msg--assistant .siteChat__bubble {
  border-bottom-left-radius: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
}

.siteChat__msg--user .siteChat__bubble {
  border-bottom-right-radius: 6px;
  background: linear-gradient(135deg, rgba(112, 160, 255, 0.34), rgba(157, 107, 255, 0.28));
  border: 1px solid rgba(255,255,255,0.10);
}

.siteChat__sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-left: 44px;
  margin-top: -4px;
}

.siteChat__source {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 12px;
}

.siteChat__typing {
  display: inline-flex;
  gap: 5px;
  padding: 0 16px 12px 16px;
}

.siteChat__typing span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.56);
  animation: siteChatTyping 1.2s infinite ease-in-out;
}

.siteChat__typing span:nth-child(2) { animation-delay: .18s; }
.siteChat__typing span:nth-child(3) { animation-delay: .36s; }

@keyframes siteChatTyping {
  0%, 80%, 100% { opacity: .25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

.siteChat__composer {
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.14);
}

.siteChat__composer textarea {
  width: 100%;
  min-height: 48px;
  max-height: 140px;
  resize: none;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  padding: 13px 14px;
  font: inherit;
  box-sizing: border-box;
}

.siteChat__composer textarea::placeholder {
  color: rgba(255,255,255,0.48);
}

.siteChat__composerMeta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.siteChat__secondary,
.siteChat__send {
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  font: inherit;
  font-weight: 700;
}

.siteChat__secondary {
  background: rgba(255,255,255,0.06);
}

.siteChat__send {
  background: linear-gradient(135deg, rgba(103, 144, 255, 0.92), rgba(156, 104, 255, 0.92));
}

.footerChatBtn {
  position: relative;
}

.footerChatBtn::after {
  content: '';
  position: absolute;
  right: 7px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #8bd3ff;
  box-shadow: 0 0 10px rgba(139,211,255,.65);
}

@media (max-width: 700px) {
  .siteChat {
    right: 12px;
    bottom: 12px;
  }

  .siteChat__panel {
    width: calc(100vw - 12px);
    height: min(78vh, 650px);
  }

  .siteChat__bubble {
    max-width: 84%;
  }
}


.siteChat__typing[hidden] {
  display: none !important;
}

.siteChat.is-busy .siteChat__send {
  opacity: .8;
}

.siteChat__sourceCard {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.08);
  min-width: 180px;
  max-width: 280px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.siteChat__sourceCard:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.16);
}

.siteChat__sourceTitle {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: rgba(255,255,255,0.94);
  margin-bottom: 4px;
  line-height: 1.35;
}

.siteChat__sourceMeta {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,0.62);
  margin-bottom: 4px;
}

.siteChat__sourceSnippet {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.76);
  line-height: 1.4;
}


.siteChat__sourceCategory {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}

.siteChat__sourceCategory:hover {
  background: rgba(255,255,255,0.12);
}

.siteChat__sourceCategory a {
  color: inherit;
  text-decoration: none;
}

.siteChat__sourceCategory a:hover {
  color: inherit;
  text-decoration: none;
}

.siteChat__bubble a {
  color: #9fc2ff;
  text-decoration: none;
  font-weight: 600;
  transition: color .18s ease, text-decoration-color .18s ease;
}

.siteChat__bubble a:hover {
  color: #d8e4ff;
  text-decoration: underline;
  text-decoration-color: rgba(216, 228, 255, 0.82);
}

.siteChat__msg--assistant .siteChat__bubble strong {
  font-weight: 800;
}

.siteChat__composerMeta {
  gap: 10px;
}

.siteChat__hintRow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 14px 16px;
}

.siteChat__hintChip {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.82);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
}

.siteChat__hintChip:hover {
  background: rgba(255,255,255,0.08);
}


.siteChat__msgBody {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.siteChat__inlineImageWrap {
  margin-top: 10px;
}

.siteChat__inlineImageLink {
  display: block;
}

.siteChat__inlineImage {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  cursor: zoom-in;
}

.siteChat__status {
  font-size: 12px;
  color: rgba(255,255,255,.56);
}

.siteChat--fullscreen {
  position: static;
  inset: auto;
  width: 100%;
  height: 100%;
}

.siteChat--fullscreen .siteChat__panel {
  position: relative;
  inset: auto;
  width: 100%;
  height: 100%;
  max-height: none;
  transform: none;
  opacity: 1;
  pointer-events: auto;
  border-radius: 28px;
}

.chatbotPage {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(117, 181, 255, .16), transparent 28%),
    radial-gradient(circle at top right, rgba(175, 118, 255, .15), transparent 24%),
    linear-gradient(180deg, #08101d 0%, #0d1525 100%);
  color: #fff;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: grid;
  place-items: center;
  padding: 24px;
  box-sizing: border-box;
}

.chatbotStage {
  width: min(980px, 100%);
  height: min(88vh, 920px);
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.chatbotTopLink {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(16px);
}

.chatbotTopLink:hover {
  background: rgba(255,255,255,.12);
}

.chatbotPage #siteChatPopout {
  display: none;
}

.footerTopBtn--chatAvatar {
  padding: 0;
  overflow: hidden;
}

.footerTopBtn__avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 999px;
}

@media (max-width: 700px) {
  .chatbotPage {
    padding: 0;
  }

  .chatbotStage {
    width: 100%;
    height: 100vh;
  }

  .siteChat--fullscreen .siteChat__panel {
    border-radius: 0;
  }

  .chatbotTopLink {
    top: 12px;
    left: 12px;
  }
}


.footerTextLink{
      display:inline-flex;
      align-items:center;
      color:rgba(255,255,255,0.86);
      text-decoration:none;
      font-size:13px;
      transition:opacity .2s ease, color .2s ease;
      vertical-align:middle;
    }
    .footerTextLink:hover{
      background:none;
      color:#fff;
      text-decoration:underline;
      border-color:transparent;
    }

    .footerVideoBtn{
      margin-left:10px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      width:30px;
      height:30px;
      border-radius:999px;
      border:1px solid rgba(255,255,255,0.25);
      background:rgba(0,0,0,0.18);
      color:rgba(255,255,255,0.92);
      cursor:pointer;
      vertical-align:middle;
      transition:all .2s ease;
    }
    .footerVideoBtn:hover{
      background:rgba(0,0,0,0.28);
      border-color:rgba(255,255,255,0.35);
    }

    .footerTopBtn{
      margin-left:8px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      width:30px;
      height:30px;
      border-radius:999px;
      border:1px solid rgba(255,255,255,0.25);
      background:rgba(0,0,0,0.18);
      color:rgba(255,255,255,0.92);
      cursor:pointer;
      vertical-align:middle;
      transition:all .2s ease;
    }
    .footerTopBtn:hover{
      background:rgba(0,0,0,0.28);
      border-color:rgba(255,255,255,0.35);
    }

    .cookieConsent{
      position:fixed;
      right:20px;
      bottom:78px;
      z-index:999998;
      display:flex;
      align-items:center;
      gap:14px;
      width:min(420px, calc(100vw - 24px));
      padding:12px 14px;
      border-radius:18px;
      background:rgba(15,23,42,0.96);
      border:1px solid rgba(255,255,255,0.16);
      box-shadow:0 22px 60px rgba(0,0,0,0.38);
      backdrop-filter:blur(12px);
      -webkit-backdrop-filter:blur(12px);
      color:#fff;
      animation:cookieConsentIn .35s ease;
    }

    .cookieConsent__text{
      min-width:0;
      display:flex;
      flex-direction:column;
      gap:4px;
      font-size:12px;
      line-height:1.35;
      color:rgba(255,255,255,0.86);
    }

    .cookieConsent__text strong{
      font-size:12px;
      color:#fff;
      font-weight:800;
      letter-spacing:.2px;
    }

    .cookieConsent__text a{
      color:rgba(255,255,255,0.95);
      text-decoration:underline;
      text-underline-offset:2px;
    }

    .cookieConsent__actions{
      display:flex;
      align-items:center;
      gap:8px;
      flex-shrink:0;
    }

    .cookieConsent__btn{
      appearance:none;
      border:0;
      border-radius:999px;
      padding:9px 12px;
      font-size:12px;
      font-weight:700;
      cursor:pointer;
      transition:transform .18s ease, opacity .18s ease, background .18s ease;
      white-space:nowrap;
    }

    .cookieConsent__btn:hover{
      transform:translateY(-1px);
    }

    .cookieConsent__btn--ghost{
      background:rgba(255,255,255,0.08);
      color:rgba(255,255,255,0.92);
      border:1px solid rgba(255,255,255,0.14);
    }

    .cookieConsent__btn--ghost:hover{
      background:rgba(255,255,255,0.12);
    }

    .cookieConsent__btn--primary{
      background:linear-gradient(135deg, rgba(255,255,255,0.95), rgba(226,232,240,0.95));
      color:#0f172a;
    }

    .cookieConsent.isHiding{
      opacity:0;
      transform:translateY(8px);
      transition:opacity .22s ease, transform .22s ease;
    }

    @keyframes cookieConsentIn{
      from{
        opacity:0;
        transform:translateY(10px);
      }
      to{
        opacity:1;
        transform:translateY(0);
      }
    }

    .videoLightbox{
      position:fixed;
      inset:0;
      display:none;
      z-index:999999;
    }
    .videoLightbox.isOpen{ display:block; }

    .videoLightbox__backdrop{
      position:absolute;
      inset:0;
      background:rgba(0,0,0,0.65);
      backdrop-filter:blur(6px);
    }

    .videoLightbox__panel{
      position:absolute;
      left:50%;
      top:50%;
      transform:translate(-50%, -50%);
      width:min(1000px, calc(100vw - 30px));
      max-height:calc(100vh - 30px);
      padding:16px;
      border-radius:20px;
      background:rgba(15,23,42,0.95);
      border:1px solid rgba(255,255,255,0.12);
      box-shadow:0 25px 80px rgba(0,0,0,0.55);
    }

    .videoLightbox__close{
      position:absolute;
      right:12px;
      top:12px;
      width:36px;
      height:36px;
      border-radius:999px;
      border:1px solid rgba(255,255,255,0.25);
      background:rgba(0,0,0,0.22);
      color:#fff;
      cursor:pointer;
      font-size:18px;
      line-height:34px;
      z-index:3;
    }
    .videoLightbox__close:hover{
      background:rgba(0,0,0,0.35);
    }

    .videoLightbox__head{
      padding-right:50px;
      margin-bottom:10px;
    }
    .videoLightbox__title{
      font-weight:800;
      letter-spacing:0.2px;
      font-size:15px;
      color:rgba(255,255,255,0.95);
    }
    .videoLightbox__desc{
      margin-top:4px;
      font-size:13px;
      line-height:1.35;
      color:rgba(255,255,255,0.78);
      white-space:pre-wrap;
    }
    .videoLightbox__title:empty,
    .videoLightbox__desc:empty{
      display:none;
    }

    .siteChat__fab{
      display:none !important;
    }

    @media (max-width: 720px){
      .cookieConsent{
        left:12px;
        right:12px;
        bottom:72px;
        width:auto;
        padding:12px;
        border-radius:16px;
        flex-direction:column;
        align-items:stretch;
      }

      .cookieConsent__actions{
        width:100%;
        justify-content:flex-end;
      }

      .cookieConsent__btn{
        flex:1 1 auto;
        text-align:center;
      }
    }


.siteChat--fullscreen .siteChat__bubble {
  max-width: min(80%, 760px);
}

.footerTopBtn--offset {
  margin-left: 10px;
  text-decoration: none;
}

.footerTopBtn--adminAction {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
}

.footerLoginAs {
  margin-left: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.82);
}

.videoLightbox__player {
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: #000;
}
