/* AdeptDEV Chat Launcher | NANU palette | 2026-08-24 */
#adeptdev-chat-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9998;
  width: min(360px, calc(100vw - 24px));
  font-family: 'Onest', Arial, sans-serif;
  pointer-events: none;
}
#adeptdev-chat-launcher * { box-sizing: border-box; }
#adeptdev-chat-launcher .adeptdev-chat-shell {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
#adeptdev-chat-launcher .adeptdev-chat-bubble,
#adeptdev-chat-launcher .adeptdev-chat-panel {
  pointer-events: auto;
}
#adeptdev-chat-launcher .adeptdev-chat-bubble {
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 12px 16px 12px 14px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff 0%, #fff8f2 100%);
  box-shadow: 0 18px 44px rgba(55,54,54,.18), 0 6px 18px rgba(236,102,8,.18);
  color: #373636;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, opacity .22s ease;
  max-width: 100%;
}
#adeptdev-chat-launcher .adeptdev-chat-bubble:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 54px rgba(55,54,54,.2), 0 10px 20px rgba(236,102,8,.22);
}
#adeptdev-chat-launcher.is-open .adeptdev-chat-bubble,
#adeptdev-chat-launcher.is-chatting .adeptdev-chat-bubble {
  opacity: .06;
  transform: translateY(8px) scale(.96);
  pointer-events: none;
}
#adeptdev-chat-launcher .adeptdev-chat-bubble__icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ec6608 0%, #ff8c3a 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 20px rgba(236,102,8,.34);
}
#adeptdev-chat-launcher .adeptdev-chat-bubble__text { min-width: 0; text-align: left; }
#adeptdev-chat-launcher .adeptdev-chat-bubble__eyebrow {
  display: block;
  font-size: 11px;
  line-height: 1.1;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(55,54,54,.6);
  margin-bottom: 4px;
}
#adeptdev-chat-launcher .adeptdev-chat-bubble__title {
  display: block;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
  color: #373636;
}
#adeptdev-chat-launcher .adeptdev-chat-badge {
  position: relative;
  width: 10px;
  height: 10px;
  min-width: 10px;
  border-radius: 999px;
  background: #a8b0b9;
  box-shadow: 0 0 0 4px rgba(168,176,185,.15);
}
#adeptdev-chat-launcher.is-ready .adeptdev-chat-badge,
#adeptdev-chat-launcher.is-chatting .adeptdev-chat-badge {
  background: #ec6608;
  box-shadow: 0 0 0 4px rgba(236,102,8,.18);
}
#adeptdev-chat-launcher .adeptdev-chat-panel {
  width: min(360px, calc(100vw - 24px));
  padding: 18px 18px 16px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf5 100%);
  box-shadow: 0 24px 60px rgba(55,54,54,.2), 0 6px 18px rgba(236,102,8,.16);
  border: 1px solid rgba(236,102,8,.12);
  color: #373636;
  opacity: 0;
  transform: translateY(12px) scale(.98);
  transition: opacity .22s ease, transform .22s ease;
  position: relative;
  overflow: hidden;
}
#adeptdev-chat-launcher.is-open .adeptdev-chat-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}
#adeptdev-chat-launcher .adeptdev-chat-panel::before {
  content: '';
  position: absolute;
  inset: -42% auto auto -15%;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(236,102,8,.16) 0%, rgba(236,102,8,0) 72%);
  pointer-events: none;
}
#adeptdev-chat-launcher .adeptdev-chat-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 1;
}
#adeptdev-chat-launcher .adeptdev-chat-panel__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(236,102,8,.08);
  color: #ec6608;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
#adeptdev-chat-launcher .adeptdev-chat-panel__title {
  margin: 0;
  font-size: 22px;
  line-height: 1.12;
  font-weight: 800;
  color: #373636;
}
#adeptdev-chat-launcher .adeptdev-chat-panel__lead {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(55,54,54,.8);
}
#adeptdev-chat-launcher .adeptdev-chat-close {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 12px;
  border: 0;
  background: rgba(55,54,54,.08);
  color: #373636;
  font-size: 18px;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
#adeptdev-chat-launcher .adeptdev-chat-close:hover {
  background: rgba(236,102,8,.12);
  transform: rotate(90deg);
}
#adeptdev-chat-launcher .adeptdev-chat-features {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin: 16px 0 18px;
}
#adeptdev-chat-launcher .adeptdev-chat-feature {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(55,54,54,.82);
}
#adeptdev-chat-launcher .adeptdev-chat-feature svg {
  color: #ec6608;
  margin-top: 1px;
}
#adeptdev-chat-launcher .adeptdev-chat-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
#adeptdev-chat-launcher .adeptdev-chat-btn {
  appearance: none;
  border: 0;
  border-radius: 16px;
  min-height: 46px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
#adeptdev-chat-launcher .adeptdev-chat-btn:hover { transform: translateY(-1px); }
#adeptdev-chat-launcher .adeptdev-chat-btn--primary {
  background: linear-gradient(135deg, #ec6608 0%, #ff8c3a 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(236,102,8,.28);
}
#adeptdev-chat-launcher .adeptdev-chat-btn--secondary {
  background: rgba(55,54,54,.08);
  color: #373636;
}
#adeptdev-chat-launcher .adeptdev-chat-btn--ghost {
  background: transparent;
  color: #373636;
  border: 1px solid rgba(55,54,54,.14);
}
#adeptdev-chat-launcher.needs-consent [data-adeptdev-chat-open] { display: none; }
#adeptdev-chat-launcher:not(.needs-consent) [data-adeptdev-chat-allow] { display: none; }
#adeptdev-chat-launcher:not(.needs-consent) [data-adeptdev-chat-settings],
#adeptdev-chat-launcher:not(.needs-consent) .adeptdev-chat-tip { display: none; }
#adeptdev-chat-launcher .adeptdev-chat-meta {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(55,54,54,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
#adeptdev-chat-launcher .adeptdev-chat-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #373636;
}
#adeptdev-chat-launcher .adeptdev-chat-status::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #a8b0b9;
  box-shadow: 0 0 0 4px rgba(168,176,185,.15);
}
#adeptdev-chat-launcher.is-ready .adeptdev-chat-status::before,
#adeptdev-chat-launcher.is-chatting .adeptdev-chat-status::before {
  background: #ec6608;
  box-shadow: 0 0 0 4px rgba(236,102,8,.16);
}
#adeptdev-chat-launcher .adeptdev-chat-powered {
  color: rgba(55,54,54,.68);
  font-size: 12px;
  text-decoration: none;
  font-weight: 600;
}
#adeptdev-chat-launcher .adeptdev-chat-powered:hover { color: #ec6608; }
#adeptdev-chat-launcher .adeptdev-chat-tip {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(55,54,54,.05);
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(55,54,54,.78);
}
#adeptdev-chat-launcher.is-hidden { opacity: 0; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease; }
@media (max-width: 767px) {
  #adeptdev-chat-launcher {
    right: 12px;
    left: 12px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
    width: auto;
  }
  #adeptdev-chat-launcher .adeptdev-chat-panel,
  #adeptdev-chat-launcher .adeptdev-chat-bubble {
    width: 100%;
  }
  #adeptdev-chat-launcher .adeptdev-chat-bubble {
    justify-content: space-between;
    border-radius: 18px;
    min-height: 58px;
  }
  #adeptdev-chat-launcher .adeptdev-chat-panel {
    border-radius: 20px;
    padding: 16px;
  }
  #adeptdev-chat-launcher .adeptdev-chat-panel__title {
    font-size: 20px;
  }
}

/* AdeptDEV Chat V3 — hard guard against the provider's native launcher.
   Jivo appends its own custom <jdiv> root directly under <body>. Keep that root
   invisible unless our launcher has explicitly opened the provider chat. */
html:not(.adeptdev-provider-chat-open) body > jdiv,
html:not(.adeptdev-provider-chat-open) body > [id*="jivo" i],
html:not(.adeptdev-provider-chat-open) body > [class*="jivo" i],
html:not(.adeptdev-provider-chat-open) body > iframe[src*="jivo" i] {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
