/* NANU Support 2026 v1.4.4 CORS + EXACT AVATAR FIX | AdeptDEV custom Chatwoot client UI | https://adeptdev.ro */
:root,
:host,
#nanu-chat-root {
  --nanu-chat-orange: #ec6608;
  --nanu-chat-ink: #373636;
  --nanu-chat-muted: #777473;
  --nanu-chat-line: rgba(55, 54, 54, .10);
  --nanu-chat-soft: #f7f7f7;
  --nanu-chat-soft-orange: rgba(236, 102, 8, .085);
  --nanu-chat-success: #1e9b69;
  --nanu-chat-danger: #d64c4c;
  --nanu-chat-shadow: 0 28px 76px rgba(42, 37, 34, .20), 0 5px 20px rgba(42, 37, 34, .08);
  --nanu-chat-radius: 28px;
  --nanu-chat-font: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html.nanu-chat-open,
html.nanu-chat-open body {
  overscroll-behavior: none;
}

#nanu-chat-root,
#nanu-chat-root * {
  box-sizing: border-box;
}

#nanu-chat-root {
  position: fixed;
  z-index: 2147483000;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  width: auto;
  height: auto;
  font-family: var(--nanu-chat-font);
  color: var(--nanu-chat-ink);
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  pointer-events: none;
  isolation: isolate;
  contain: layout style;
}


.nanu-chat-launcher,
.nanu-chat-shell,
.nanu-chat-toast {
  pointer-events: auto;
}

.nanu-chat-launcher {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 11px;
  margin-left: auto;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--nanu-chat-ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nanu-chat-launcher__hint {
  display: flex;
  align-items: center;
  min-height: 42px;
  max-width: 220px;
  padding: 9px 14px;
  border: 1px solid rgba(55, 54, 54, .08);
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 12px 34px rgba(55,54,54,.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
  opacity: 0;
  transform: translateX(10px) scale(.96);
  animation: nanuChatHintIn .44s cubic-bezier(.2,.75,.25,1) .55s forwards;
}

.nanu-chat-launcher__button {
  position: relative;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  flex: 0 0 62px;
  border-radius: 21px;
  background: var(--nanu-chat-orange);
  box-shadow: 0 18px 38px rgba(236,102,8,.30), 0 4px 12px rgba(55,54,54,.12);
  transition: transform .24s cubic-bezier(.2,.75,.25,1), box-shadow .24s ease;
  overflow: visible;
}

.nanu-chat-launcher:hover .nanu-chat-launcher__button {
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 22px 44px rgba(236,102,8,.35), 0 5px 15px rgba(55,54,54,.11);
}

.nanu-chat-launcher:active .nanu-chat-launcher__button {
  transform: scale(.965);
}

.nanu-chat-launcher__button::before {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(236,102,8,.22);
  border-radius: 25px;
  animation: nanuChatPulse 2.5s ease-out infinite;
  pointer-events: none;
}

.nanu-chat-launcher__icon,
.nanu-chat-launcher__close {
  width: 27px;
  height: 27px;
  color: #fff;
  transition: opacity .18s ease, transform .28s cubic-bezier(.2,.75,.25,1);
}

.nanu-chat-launcher__close {
  position: absolute;
  opacity: 0;
  transform: rotate(-45deg) scale(.6);
}

.nanu-chat-launcher[aria-expanded="true"] .nanu-chat-launcher__icon {
  opacity: 0;
  transform: rotate(45deg) scale(.6);
}

.nanu-chat-launcher[aria-expanded="true"] .nanu-chat-launcher__close {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.nanu-chat-launcher[aria-expanded="true"] .nanu-chat-launcher__button::before {
  animation: none;
  opacity: 0;
}

.nanu-chat-launcher__badge {
  position: absolute;
  top: -6px;
  right: -6px;
  display: none;
  min-width: 23px;
  height: 23px;
  padding: 0 6px;
  align-items: center;
  justify-content: center;
  border: 3px solid #fff;
  border-radius: 999px;
  background: var(--nanu-chat-ink);
  color: #fff;
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
}

.nanu-chat-launcher__badge.is-visible { display: flex; }
.nanu-chat-launcher[aria-expanded="true"] .nanu-chat-launcher__hint { display: none; }

.nanu-chat-shell {
  position: absolute;
  right: 0;
  bottom: 78px;
  width: min(410px, calc(100vw - 32px));
  height: min(690px, calc(100vh - 126px));
  height: min(690px, calc(100dvh - 126px));
  min-height: 0;
  max-height: calc(100dvh - 126px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(55,54,54,.08);
  border-radius: var(--nanu-chat-radius);
  background: rgba(255,255,255,.985);
  box-shadow: var(--nanu-chat-shadow);
  opacity: 0;
  visibility: hidden;
  transform-origin: 93% 100%;
  transform: translateY(16px) scale(.965);
  transition: opacity .22s ease, visibility .22s ease, transform .30s cubic-bezier(.2,.75,.25,1);
}

.nanu-chat-shell.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.nanu-chat-shell::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;
  height: 188px;
  background: linear-gradient(145deg, rgba(236,102,8,.10), rgba(236,102,8,.025) 58%, rgba(255,255,255,0));
  pointer-events: none;
}

.nanu-chat-head {
  position: relative;
  z-index: 3;
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 14px 18px;
  border-bottom: 1px solid rgba(55,54,54,.07);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nanu-chat-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 1;
}

.nanu-chat-brand__mark {
  position: relative;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  border-radius: 15px;
  background: var(--nanu-chat-orange);
  box-shadow: 0 10px 24px rgba(236,102,8,.22);
  overflow: visible;
}

.nanu-chat-brand__mark img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 7px;
  box-sizing: border-box;
  filter: brightness(0) invert(1);
}
.nanu-chat-brand__mark.has-agent-avatar {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 9px 22px rgba(55,54,54,.12);
}
.nanu-chat-brand__mark.has-agent-avatar img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  padding: 0;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  filter: none;
}

.nanu-chat-brand__fallback {
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -.04em;
}
.nanu-chat-brand__mark.has-agent-avatar .nanu-chat-brand__fallback { color: var(--nanu-chat-orange); }

.nanu-chat-brand__status-dot {
  position: absolute;
  z-index: 3;
  right: -3px;
  bottom: -3px;
  width: 14px;
  height: 14px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #b7b3b1;
  box-shadow: 0 2px 7px rgba(55,54,54,.18);
  transition: background .2s ease, transform .2s ease;
}
.nanu-chat-brand__status-dot.is-online { background: var(--nanu-chat-success); }
.nanu-chat-brand__status-dot.is-busy { background: #d9a43b; }
.nanu-chat-brand__status-dot.is-offline { background: #aaa6a4; }
.nanu-chat-brand__status-dot.is-unknown { background: var(--nanu-chat-orange); }

.nanu-chat-brand__copy { min-width: 0; }
.nanu-chat-brand__title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 850;
  letter-spacing: -.015em;
}

.nanu-chat-brand__status {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 3px;
  color: var(--nanu-chat-muted);
  font-size: 11.5px;
  line-height: 1.25;
  font-weight: 550;
}

.nanu-chat-brand__status.is-connecting { color: #8a6719; }

.nanu-chat-head__actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nanu-chat-icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--nanu-chat-ink);
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

.nanu-chat-icon-btn:hover { background: rgba(55,54,54,.055); }
.nanu-chat-icon-btn:active { transform: scale(.94); }
.nanu-chat-icon-btn svg { width: 20px; height: 20px; }

.nanu-chat-main {
  position: relative;
  z-index: 1;
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.nanu-chat-view {
  display: none;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.nanu-chat-view.is-active {
  display: flex;
  animation: nanuChatViewIn .25s ease both;
}

.nanu-chat-welcome,
.nanu-chat-consent,
.nanu-chat-prechat,
.nanu-chat-fallback {
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  overflow-anchor: none;
  scrollbar-width: thin;
  padding: 23px 20px 20px;
}

.nanu-chat-eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  margin-bottom: 13px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--nanu-chat-soft-orange);
  color: #bf4f00;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.nanu-chat-welcome h2,
.nanu-chat-consent h2,
.nanu-chat-prechat h2,
.nanu-chat-fallback h2 {
  margin: 0;
  max-width: 330px;
  color: var(--nanu-chat-ink);
  font-family: var(--nanu-chat-font);
  font-size: clamp(25px, 6vw, 31px);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 860;
}

.nanu-chat-welcome__lead,
.nanu-chat-consent__lead,
.nanu-chat-prechat__lead,
.nanu-chat-fallback__lead {
  margin: 11px 0 19px;
  color: var(--nanu-chat-muted);
  font-size: 13px;
  line-height: 1.55;
}

.nanu-chat-context {
  display: none;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid rgba(236,102,8,.13);
  border-radius: 17px;
  background: rgba(236,102,8,.045);
}

.nanu-chat-context.is-visible { display: flex; }
.nanu-chat-context__icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  border-radius: 11px;
  background: #fff;
  color: var(--nanu-chat-orange);
  box-shadow: 0 4px 14px rgba(55,54,54,.07);
}
.nanu-chat-context__icon svg { width: 19px; height: 19px; }
.nanu-chat-context__copy { min-width: 0; }
.nanu-chat-context__label {
  display: block;
  color: var(--nanu-chat-muted);
  font-size: 10px;
  font-weight: 650;
}
.nanu-chat-context__title {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 750;
}

.nanu-chat-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 2px;
}

.nanu-chat-quick {
  position: relative;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--nanu-chat-line);
  border-radius: 18px;
  background: #fff;
  color: var(--nanu-chat-ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 5px 16px rgba(55,54,54,.035);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.nanu-chat-quick:hover {
  transform: translateY(-2px);
  border-color: rgba(236,102,8,.23);
  background: rgba(236,102,8,.025);
  box-shadow: 0 9px 23px rgba(55,54,54,.065);
}

.nanu-chat-quick__icon {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--nanu-chat-soft-orange);
  color: var(--nanu-chat-orange);
}
.nanu-chat-quick__icon svg { width: 17px; height: 17px; }
.nanu-chat-quick__text { font-size: 12.5px; line-height: 1.25; font-weight: 730; }

.nanu-chat-start {
  width: 100%;
  min-height: 50px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 15px;
  background: var(--nanu-chat-orange);
  color: #fff;
  font: 760 13px/1 var(--nanu-chat-font);
  cursor: pointer;
  box-shadow: 0 11px 24px rgba(236,102,8,.20);
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.nanu-chat-start:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(236,102,8,.26); }
.nanu-chat-start:active { transform: scale(.985); }
.nanu-chat-start:disabled { cursor: not-allowed; opacity: .55; box-shadow: none; }
.nanu-chat-start svg { width: 17px; height: 17px; }

.nanu-chat-secondary {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--nanu-chat-line);
  border-radius: 14px;
  background: #fff;
  color: var(--nanu-chat-ink);
  font: 700 12.5px/1 var(--nanu-chat-font);
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.nanu-chat-secondary:hover { background: var(--nanu-chat-soft); border-color: rgba(55,54,54,.16); }

.nanu-chat-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 13px;
  color: #969190;
  font-size: 10px;
  line-height: 1.35;
  text-align: center;
}
.nanu-chat-trust svg { width: 13px; height: 13px; flex: 0 0 13px; }

.nanu-chat-form { display: flex; flex-direction: column; gap: 11px; }
.nanu-chat-field { display: flex; flex-direction: column; gap: 6px; }
.nanu-chat-field label { font-size: 11px; font-weight: 750; color: #686565; }
.nanu-chat-field__control {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 49px;
  border: 1px solid rgba(55,54,54,.12);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(55,54,54,.025);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.nanu-chat-field__control:focus-within {
  border-color: rgba(236,102,8,.55);
  box-shadow: 0 0 0 4px rgba(236,102,8,.075);
}
.nanu-chat-field__prefix {
  padding-left: 14px;
  color: var(--nanu-chat-ink);
  font-size: 13px;
  font-weight: 750;
}
.nanu-chat-field input {
  width: 100%;
  height: 47px;
  padding: 0 14px;
  border: 0;
  outline: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--nanu-chat-ink);
  font: 600 13px/1 var(--nanu-chat-font);
}
.nanu-chat-field__control.has-prefix input { padding-left: 8px; }
.nanu-chat-field input::placeholder { color: #aaa7a5; font-weight: 500; }
.nanu-chat-field__error { min-height: 14px; color: var(--nanu-chat-danger); font-size: 10px; font-weight: 650; }

.nanu-chat-prechat__privacy {
  margin: 3px 1px 0;
  color: #8b8887;
  font-size: 9.8px;
  line-height: 1.45;
}
.nanu-chat-prechat__privacy a { color: var(--nanu-chat-orange); text-decoration: none; font-weight: 700; }

.nanu-chat-consent__shield,
.nanu-chat-fallback__icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 19px;
  background: var(--nanu-chat-soft-orange);
  color: var(--nanu-chat-orange);
}
.nanu-chat-consent__shield svg,
.nanu-chat-fallback__icon svg { width: 28px; height: 28px; }

.nanu-chat-conversation {
  position: relative;
  flex-direction: column;
  background: linear-gradient(180deg, #fafafa 0%, #fff 35%);
}

.nanu-chat-connection-bar {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 31px;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(217,164,59,.18);
  background: rgba(217,164,59,.09);
  color: #8a6719;
  font-size: 10px;
  font-weight: 700;
}
.nanu-chat-connection-bar.is-visible { display: flex; }
.nanu-chat-connection-bar span {
  width: 6px; height: 6px; border-radius: 50%; background: #d9a43b;
  animation: nanuChatBlink 1s ease-in-out infinite;
}

.nanu-chat-messages {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  overflow-anchor: none;
  scroll-behavior: auto;
  padding: 18px 15px 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(55,54,54,.15) transparent;
}

.nanu-chat-messages::-webkit-scrollbar { width: 5px; }
.nanu-chat-messages::-webkit-scrollbar-thumb { background: rgba(55,54,54,.14); border-radius: 999px; }

.nanu-chat-empty {
  height: 100%;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  color: var(--nanu-chat-muted);
  text-align: center;
}
.nanu-chat-empty__icon {
  width: 54px; height: 54px; display: grid; place-items: center;
  margin-bottom: 13px; border-radius: 18px; background: var(--nanu-chat-soft-orange); color: var(--nanu-chat-orange);
}
.nanu-chat-empty__icon svg { width: 25px; height: 25px; }
.nanu-chat-empty strong { color: var(--nanu-chat-ink); font-size: 14px; }
.nanu-chat-empty span { margin-top: 5px; max-width: 245px; font-size: 11px; line-height: 1.45; }

.nanu-chat-day {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 15px 4px;
  color: #aaa6a4;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.nanu-chat-day::before,
.nanu-chat-day::after { content: ""; height: 1px; flex: 1; background: rgba(55,54,54,.075); }

.nanu-chat-message {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  margin: 7px 0;
  animation: none;
}
.nanu-chat-message.is-new { animation: nanuChatMessageIn .22s cubic-bezier(.2,.75,.25,1) both; }
.nanu-chat-messages.is-updating .nanu-chat-message:not(.is-new) { animation: none !important; }
.nanu-chat-message--mine { justify-content: flex-end; }
.nanu-chat-message--agent { justify-content: flex-start; }
.nanu-chat-message--system { justify-content: center; margin: 11px 0; }
.nanu-chat-message__avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  position: relative;
  border-radius: 50%;
  background: var(--nanu-chat-soft-orange);
  color: var(--nanu-chat-orange);
  overflow: hidden;
  font-size: 10px;
  font-weight: 850;
}
.nanu-chat-message__avatar img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.nanu-chat-avatar-fallback { display: grid; width: 100%; height: 100%; place-items: center; }
.nanu-chat-avatar-fallback[hidden] { display: none !important; }
.nanu-chat-message__stack { max-width: 79%; min-width: 0; }
.nanu-chat-message__sender { margin: 0 0 4px 4px; color: #8a8785; font-size: 9px; font-weight: 700; }
.nanu-chat-message__bubble {
  position: relative;
  padding: 10px 12px 8px;
  border: 1px solid rgba(55,54,54,.075);
  border-radius: 17px 17px 17px 6px;
  background: #fff;
  color: var(--nanu-chat-ink);
  box-shadow: 0 4px 13px rgba(55,54,54,.04);
}
.nanu-chat-message--mine .nanu-chat-message__bubble {
  border-color: transparent;
  border-radius: 17px 17px 6px 17px;
  background: var(--nanu-chat-orange);
  color: #fff;
  box-shadow: 0 7px 17px rgba(236,102,8,.16);
}
.nanu-chat-message__content { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12.5px; line-height: 1.48; font-weight: 520; }
.nanu-chat-message__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 4px;
  color: #a09d9b;
  font-size: 8.5px;
  font-weight: 600;
}
.nanu-chat-message--mine .nanu-chat-message__meta { color: rgba(255,255,255,.77); }
.nanu-chat-message__system-chip {
  max-width: 88%;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(55,54,54,.055);
  color: #8f8b89;
  font-size: 9px;
  line-height: 1.3;
  text-align: center;
}

.nanu-chat-attachment-grid { display: grid; gap: 6px; margin-top: 6px; }
.nanu-chat-attachment {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(55,54,54,.05);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}
.nanu-chat-message--mine .nanu-chat-attachment { background: rgba(255,255,255,.14); }
.nanu-chat-attachment img {
  width: 96px;
  max-width: 100%;
  max-height: 120px;
  border-radius: 9px;
  object-fit: cover;
}
.nanu-chat-attachment svg { width: 17px; height: 17px; flex: 0 0 17px; }
.nanu-chat-attachment span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 700; }

.nanu-chat-typing {
  position: absolute;
  z-index: 4;
  left: 15px;
  bottom: 118px;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  padding: 0;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
  transition: opacity .16s ease, visibility .16s ease, transform .16s ease;
}
.nanu-chat-typing.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.nanu-chat-typing__bubble {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 13px;
  border: 1px solid rgba(55,54,54,.075);
  border-radius: 15px 15px 15px 6px;
  background: #fff;
  box-shadow: 0 4px 13px rgba(55,54,54,.04);
}
.nanu-chat-typing__bubble i { width: 5px; height: 5px; border-radius: 50%; background: #9f9b99; animation: nanuChatTyping .9s ease-in-out infinite; }
.nanu-chat-typing__bubble i:nth-child(2) { animation-delay: .12s; }
.nanu-chat-typing__bubble i:nth-child(3) { animation-delay: .24s; }

.nanu-chat-composer-wrap {
  position: relative;
  z-index: 2;
  padding: 9px 11px 11px;
  border-top: 1px solid rgba(55,54,54,.075);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nanu-chat-chip-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 0 -1px 8px;
  padding: 1px 1px 3px;
  scrollbar-width: none;
}
.nanu-chat-chip-row::-webkit-scrollbar { display: none; }
.nanu-chat-chip {
  flex: 0 0 auto;
  min-height: 29px;
  padding: 0 10px;
  border: 1px solid rgba(55,54,54,.09);
  border-radius: 999px;
  background: #fff;
  color: #696665;
  font: 700 9.5px/1 var(--nanu-chat-font);
  cursor: pointer;
  white-space: nowrap;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.nanu-chat-chip:hover { background: var(--nanu-chat-soft-orange); color: #bf4f00; border-color: rgba(236,102,8,.18); }

.nanu-chat-composer {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  min-height: 48px;
  padding: 5px 5px 5px 7px;
  border: 1px solid rgba(55,54,54,.11);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(55,54,54,.035);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.nanu-chat-composer:focus-within { border-color: rgba(236,102,8,.40); box-shadow: 0 0 0 4px rgba(236,102,8,.06); }
.nanu-chat-composer textarea {
  width: 100%;
  min-height: 37px;
  max-height: 104px;
  resize: none;
  overflow-y: auto;
  padding: 9px 5px 7px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--nanu-chat-ink);
  font: 520 12.5px/1.42 var(--nanu-chat-font);
}
.nanu-chat-composer textarea::placeholder { color: #aaa7a5; }
.nanu-chat-compose-btn {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  flex: 0 0 37px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #85817f;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
.nanu-chat-compose-btn:hover { background: var(--nanu-chat-soft); color: var(--nanu-chat-ink); }
.nanu-chat-compose-btn:active { transform: scale(.92); }
.nanu-chat-compose-btn svg { width: 18px; height: 18px; }
.nanu-chat-send { background: var(--nanu-chat-orange); color: #fff; box-shadow: 0 6px 15px rgba(236,102,8,.18); }
.nanu-chat-send:hover { background: var(--nanu-chat-orange); color: #fff; }
.nanu-chat-send:disabled { opacity: .45; cursor: default; box-shadow: none; }
.nanu-chat-file-input { display: none !important; }
.nanu-chat-compose-note { margin-top: 6px; color: #aaa7a5; font-size: 8.7px; line-height: 1.3; text-align: center; }

.nanu-chat-credit {
  position: relative;
  z-index: 5;
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 12px 5px;
  border-top: 1px solid rgba(55,54,54,.055);
  background: rgba(255,255,255,.97);
  color: #aaa6a4;
  font-size: 8.5px;
  line-height: 1;
  letter-spacing: .02em;
  pointer-events: auto;
}
.nanu-chat-credit a {
  color: #7f7b79;
  font-weight: 800;
  text-decoration: none;
  transition: color .16s ease;
}
.nanu-chat-credit a:hover { color: var(--nanu-chat-orange); }

.nanu-chat-toast {
  position: absolute;
  right: 9px;
  bottom: 88px;
  max-width: 290px;
  padding: 10px 12px;
  border: 1px solid rgba(55,54,54,.09);
  border-radius: 13px;
  background: rgba(255,255,255,.98);
  color: var(--nanu-chat-ink);
  box-shadow: 0 14px 34px rgba(55,54,54,.14);
  font-size: 10.5px;
  line-height: 1.35;
  font-weight: 650;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.nanu-chat-toast.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.nanu-chat-toast.is-error { border-color: rgba(214,76,76,.2); }

.nanu-chat-loading {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nanu-chat-loading i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: nanuChatTyping .9s ease-in-out infinite; }
.nanu-chat-loading i:nth-child(2) { animation-delay: .12s; }
.nanu-chat-loading i:nth-child(3) { animation-delay: .24s; }

/* Always suppress the stock Chatwoot launcher. In fallback mode only its conversation panel is opened. */
.woot-widget-bubble,
.woot--bubble-holder,
.woot-widget-holder .woot-widget-bubble {
  display: none !important;
}

@keyframes nanuChatHintIn {
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes nanuChatPulse {
  0% { opacity: .8; transform: scale(.94); }
  70%, 100% { opacity: 0; transform: scale(1.19); }
}
@keyframes nanuChatViewIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes nanuChatMessageIn {
  from { opacity: 0; transform: translateY(7px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes nanuChatTyping {
  0%, 80%, 100% { opacity: .35; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}
@keyframes nanuChatBlink {
  0%, 100% { opacity: .35; }
  50% { opacity: 1; }
}


@media (min-width: 621px) and (min-height: 640px) {
  .nanu-chat-shell[data-chat-screen="welcome"] .nanu-chat-welcome {
    overflow-y: hidden;
  }
}

@media (max-width: 620px) {
  #nanu-chat-root {
    right: 13px;
    bottom: max(13px, env(safe-area-inset-bottom));
  }
  .nanu-chat-launcher__hint { display: none; }
  .nanu-chat-launcher__button {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    border-radius: 19px;
  }
  .nanu-chat-shell {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    min-height: 0;
    max-height: none;
    border: 0;
    border-radius: 0;
    transform: translateY(22px) scale(.99);
  }
  .nanu-chat-shell.is-open { transform: translateY(0) scale(1); }
  .nanu-chat-head {
    min-height: 76px;
    padding: calc(10px + env(safe-area-inset-top)) 12px 10px 15px;
  }
  .nanu-chat-brand__mark { width: 42px; height: 42px; flex-basis: 42px; border-radius: 14px; }
  .nanu-chat-welcome,
  .nanu-chat-consent,
  .nanu-chat-prechat,
  .nanu-chat-fallback { padding: 22px 17px calc(20px + env(safe-area-inset-bottom)); }
  .nanu-chat-welcome h2,
  .nanu-chat-consent h2,
  .nanu-chat-prechat h2,
  .nanu-chat-fallback h2 { font-size: 29px; }
  .nanu-chat-actions-grid { gap: 8px; }
  .nanu-chat-quick { min-height: 86px; }
  .nanu-chat-messages { padding: 16px 12px 14px; }
  .nanu-chat-message__stack { max-width: 83%; }
  .nanu-chat-composer-wrap { padding-bottom: max(9px, env(safe-area-inset-bottom)); }
  html.nanu-chat-open body { overflow: hidden !important; }
  .nanu-chat-shell { touch-action: manipulation; }
  .nanu-chat-messages, .nanu-chat-welcome, .nanu-chat-consent, .nanu-chat-prechat, .nanu-chat-fallback { touch-action: pan-y; }
  .nanu-chat-typing { left: 12px; bottom: calc(118px + env(safe-area-inset-bottom)); }
  html.nanu-chat-open #nanu-chat-root { inset: 0; }
  html.nanu-chat-open .nanu-chat-launcher { display: none; }
}

@media (max-width: 360px) {
  .nanu-chat-actions-grid { grid-template-columns: 1fr; }
  .nanu-chat-quick { min-height: 66px; flex-direction: row; align-items: center; justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  #nanu-chat-root *, #nanu-chat-root *::before, #nanu-chat-root *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Composer emoji tray */
.nanu-chat-eyebrow svg { width: 13px; height: 13px; }
.nanu-chat-emoji-panel {
  position: absolute;
  right: 13px;
  bottom: 79px;
  z-index: 6;
  width: 232px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(55,54,54,.09);
  border-radius: 16px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 16px 36px rgba(55,54,54,.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nanu-chat-emoji-panel[hidden] { display: none !important; }
.nanu-chat-emoji-panel button {
  min-width: 0;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--nanu-chat-ink);
  font: 18px/1 var(--nanu-chat-font);
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.nanu-chat-emoji-panel button:hover { background: var(--nanu-chat-soft-orange); transform: scale(1.06); }
.nanu-chat-emoji-panel button:last-child {
  grid-column: span 2;
  font-size: 10px;
  font-weight: 750;
}


/* v1.3 viewport/consent stability patch
   The site adds body.scrolled { padding-top: 200px } when its sticky catalog header appears.
   Keep the chat in a full viewport layer so that body reflow can never change its anchor. */
#nanu-chat-root {
  z-index: 2147481500 !important; /* Cookie/Privacy Center must always stay above the chat. */
  inset: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
}
#nanu-chat-root[hidden] { display: none !important; }
body.scrolled #nanu-chat-root,
body.scrolled-and #nanu-chat-root {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  transform: none !important;
}
.nanu-chat-launcher {
  position: absolute;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  margin: 0;
}
.nanu-chat-shell {
  right: max(20px, env(safe-area-inset-right));
  bottom: calc(max(20px, env(safe-area-inset-bottom)) + 78px);
}
.nanu-chat-toast {
  right: max(20px, env(safe-area-inset-right));
  bottom: calc(max(20px, env(safe-area-inset-bottom)) + 88px);
}

/* Returning conversations use a stable history loader instead of briefly flashing an empty state. */
.nanu-chat-history-loading {
  flex: 1;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--nanu-chat-orange);
}
.nanu-chat-history-loading i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: nanuChatTyping .9s ease-in-out infinite;
}
.nanu-chat-history-loading i:nth-child(2) { animation-delay: .12s; }
.nanu-chat-history-loading i:nth-child(3) { animation-delay: .24s; }

/* Do not reserve conversation-height whitespace on the desktop welcome screen. */
@media (min-width: 621px) {
  .nanu-chat-shell[data-chat-screen="welcome"] {
    height: auto;
    max-height: calc(100vh - 126px);
    max-height: calc(100dvh - 126px);
  }
  .nanu-chat-shell[data-chat-screen="welcome"] .nanu-chat-main {
    flex: 0 1 auto;
    min-height: 0;
  }
  .nanu-chat-shell[data-chat-screen="welcome"] .nanu-chat-welcome {
    flex: 0 1 auto;
    overflow-y: auto;
    padding-bottom: 15px;
  }
  .nanu-chat-shell[data-chat-screen="welcome"] .nanu-chat-credit {
    flex: 0 0 24px;
  }
}

/* Presence dot: neutral until Chatwoot actually reports an operator state. */
.nanu-chat-brand__status-dot.is-unknown {
  background: #aaa6a4;
  transform: scale(.88);
}
.nanu-chat-brand__mark.has-agent-avatar .nanu-chat-brand__status-dot {
  transform: scale(1);
}

/* Small, visible and non-intrusive AdeptDEV signature. */
.nanu-chat-credit {
  min-height: 23px;
  padding: 4px 12px 5px;
  background: #fff;
  color: #aaa6a4;
  font-size: 8px;
  letter-spacing: .015em;
}
.nanu-chat-credit a { color: #777371; font-weight: 820; }

@media (max-width: 620px) {
  #nanu-chat-root {
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
  }
  .nanu-chat-launcher {
    right: max(13px, env(safe-area-inset-right));
    bottom: max(13px, env(safe-area-inset-bottom));
  }
  .nanu-chat-shell {
    position: fixed;
    inset: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: none;
  }
  .nanu-chat-toast {
    right: 13px;
    bottom: calc(max(13px, env(safe-area-inset-bottom)) + 70px);
  }
}


/* ============================================================
   v1.3.3 HARD VIEWPORT PORTAL
   NANU toggles body.scrolled and changes body padding when the sticky
   catalog header appears. Nothing in the chat may use that body box as
   its positioning reference. The root becomes a zero-size portal and
   every visible chat surface is fixed directly to the viewport.
   ============================================================ */
#nanu-chat-root {
  position: static !important;
  inset: auto !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  transform: none !important;
  contain: none !important;
  isolation: auto !important;
  overflow: visible !important;
  pointer-events: none !important;
}
#nanu-chat-root[hidden] { display: none !important; }

#nanu-chat-root .nanu-chat-launcher {
  position: fixed !important;
  z-index: 2147481502 !important;
  right: max(20px, env(safe-area-inset-right)) !important;
  bottom: max(20px, env(safe-area-inset-bottom)) !important;
  left: auto !important;
  top: auto !important;
  margin: 0 !important;
}
#nanu-chat-root .nanu-chat-shell {
  position: fixed !important;
  z-index: 2147481501 !important;
  right: max(20px, env(safe-area-inset-right)) !important;
  bottom: calc(max(20px, env(safe-area-inset-bottom)) + 78px) !important;
  left: auto !important;
  top: auto !important;
  margin: 0 !important;
}
#nanu-chat-root .nanu-chat-toast {
  position: fixed !important;
  z-index: 2147481503 !important;
  right: max(20px, env(safe-area-inset-right)) !important;
  bottom: calc(max(20px, env(safe-area-inset-bottom)) + 88px) !important;
  left: auto !important;
  top: auto !important;
}

/* Sticky-header classes must be a complete no-op for the chat portal. */
body.scrolled #nanu-chat-root,
body.scrolled-and #nanu-chat-root {
  position: static !important;
  inset: auto !important;
  width: 0 !important;
  height: 0 !important;
  transform: none !important;
  contain: none !important;
}
body.scrolled #nanu-chat-root .nanu-chat-launcher,
body.scrolled-and #nanu-chat-root .nanu-chat-launcher {
  position: fixed !important;
  right: max(20px, env(safe-area-inset-right)) !important;
  bottom: max(20px, env(safe-area-inset-bottom)) !important;
}
body.scrolled #nanu-chat-root .nanu-chat-shell,
body.scrolled-and #nanu-chat-root .nanu-chat-shell {
  position: fixed !important;
  right: max(20px, env(safe-area-inset-right)) !important;
  bottom: calc(max(20px, env(safe-area-inset-bottom)) + 78px) !important;
  top: auto !important;
}

/* Header avatar is always a real Chatwoot operator photo when available. */
.nanu-chat-brand__mark {
  overflow: hidden;
}
.nanu-chat-brand__mark.has-agent-avatar {
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 22px rgba(55,54,54,.14);
}
.nanu-chat-brand__mark.has-agent-avatar img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  padding: 0 !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: center !important;
  filter: none !important;
}
.nanu-chat-brand__mark .nanu-chat-brand__status-dot {
  right: -1px;
  bottom: -1px;
}
.nanu-chat-brand__mark.has-agent-avatar { overflow: visible; }

@media (max-width: 620px) {
  #nanu-chat-root {
    position: static !important;
    inset: auto !important;
    width: 0 !important;
    height: 0 !important;
  }
  #nanu-chat-root .nanu-chat-launcher,
  body.scrolled #nanu-chat-root .nanu-chat-launcher,
  body.scrolled-and #nanu-chat-root .nanu-chat-launcher {
    right: max(13px, env(safe-area-inset-right)) !important;
    bottom: max(13px, env(safe-area-inset-bottom)) !important;
  }
  #nanu-chat-root .nanu-chat-shell,
  body.scrolled #nanu-chat-root .nanu-chat-shell,
  body.scrolled-and #nanu-chat-root .nanu-chat-shell {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 0 !important;
  }
  #nanu-chat-root .nanu-chat-toast {
    right: 13px !important;
    bottom: calc(max(13px, env(safe-area-inset-bottom)) + 70px) !important;
  }
}


/* ============================================================
   v1.4 TOTAL FIX — Shadow DOM + <html> viewport portal
   The visible chat is now isolated from all NANU storefront CSS.
   body.scrolled, sticky headers, body padding and broad theme selectors
   cannot move or restyle the chat anymore.
   ============================================================ */
#nanu-chat-root {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: visible !important;
  transform: none !important;
  contain: none !important;
  isolation: isolate !important;
  pointer-events: none !important;
  font-family: var(--nanu-chat-font) !important;
}
#nanu-chat-root[hidden] { display: none !important; }
#nanu-chat-root .nanu-chat-launcher {
  position: absolute !important;
  right: max(20px, env(safe-area-inset-right)) !important;
  bottom: max(20px, env(safe-area-inset-bottom)) !important;
  top: auto !important;
  left: auto !important;
  margin: 0 !important;
  pointer-events: auto !important;
}
#nanu-chat-root .nanu-chat-shell {
  position: absolute !important;
  right: max(20px, env(safe-area-inset-right)) !important;
  bottom: calc(max(20px, env(safe-area-inset-bottom)) + 78px) !important;
  top: auto !important;
  left: auto !important;
  margin: 0 !important;
  pointer-events: auto !important;
}
#nanu-chat-root .nanu-chat-toast {
  position: absolute !important;
  right: max(20px, env(safe-area-inset-right)) !important;
  bottom: calc(max(20px, env(safe-area-inset-bottom)) + 88px) !important;
  top: auto !important;
  left: auto !important;
  margin: 0 !important;
  pointer-events: auto !important;
}

/* High-quality Chatwoot profile avatar: full image first, thumbnail only as fallback. */
.nanu-chat-brand__mark {
  width: 48px !important;
  height: 48px !important;
  flex: 0 0 48px !important;
  border-radius: 16px !important;
  overflow: visible !important;
  background: var(--nanu-chat-orange) !important;
}
.nanu-chat-brand__mark.has-agent-avatar {
  border-radius: 50% !important;
  background: #fff !important;
}
.nanu-chat-brand__mark.has-agent-avatar img {
  position: absolute !important;
  inset: 0 !important;
  width: 48px !important;
  height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 50% !important;
  background: #fff !important;
  box-shadow: 0 5px 16px rgba(55,54,54,.13) !important;
}
.nanu-chat-brand__fallback {
  width: 100% !important;
  height: 100% !important;
  display: grid !important;
  place-items: center !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 850 !important;
}
.nanu-chat-brand__fallback[hidden] { display: none !important; }
.nanu-chat-brand__status-dot {
  z-index: 5 !important;
  right: -2px !important;
  bottom: -2px !important;
  width: 13px !important;
  height: 13px !important;
  border: 3px solid #fff !important;
  box-shadow: 0 2px 7px rgba(55,54,54,.18) !important;
}
.nanu-chat-brand__status-dot.is-online { background: #1e9b69 !important; }
.nanu-chat-brand__status-dot.is-busy { background: #f4a340 !important; }
.nanu-chat-brand__status-dot.is-offline { background: #9a9694 !important; }
.nanu-chat-brand__status-dot.is-unknown { background: #b7b3b1 !important; }

@media (max-width: 620px) {
  #nanu-chat-root .nanu-chat-launcher {
    right: max(13px, env(safe-area-inset-right)) !important;
    bottom: max(13px, env(safe-area-inset-bottom)) !important;
  }
  #nanu-chat-root .nanu-chat-shell {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 0 !important;
  }
  #nanu-chat-root .nanu-chat-toast {
    right: 13px !important;
    bottom: calc(max(13px, env(safe-area-inset-bottom)) + 70px) !important;
  }
}
