#ndovu-wa-root,
#ndovu-wa-root * {
  box-sizing: border-box;
}

#ndovu-wa-root {
  --ndovu-wa-green: #1fa855;
  --ndovu-wa-green-dark: #148844;
  --ndovu-wa-ink: #171717;
  --ndovu-wa-muted: #666;
  --ndovu-wa-border: #e8e8e8;
  --ndovu-wa-surface: #fff;
  position: fixed;
  bottom: var(--ndovu-wa-bottom, 24px);
  z-index: 99990;
  font-family: inherit;
  line-height: 1.35;
}

#ndovu-wa-root .ndovu-wa-fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 54px;
  padding: 0 19px;
  border: 0;
  border-radius: 999px;
  background: var(--ndovu-wa-green);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

#ndovu-wa-root .ndovu-wa-fab:hover {
  background: var(--ndovu-wa-green-dark);
  transform: translateY(-1px);
  box-shadow: 0 13px 32px rgba(0, 0, 0, .25);
}

#ndovu-wa-root .ndovu-wa-fab:focus-visible,
#ndovu-wa-root .ndovu-wa-chat-button:focus-visible,
#ndovu-wa-root .ndovu-wa-close:focus-visible,
#ndovu-wa-root .ndovu-wa-directions:focus-visible {
  outline: 3px solid #111;
  outline-offset: 3px;
}

#ndovu-wa-root .ndovu-wa-fab .ndovu-wa-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  object-fit: contain;
}

#ndovu-wa-root .ndovu-wa-panel {
  position: absolute;
  bottom: calc(100% + 12px);
  width: min(390px, calc(100vw - 28px));
  max-height: min(650px, calc(100vh - 110px));
  overflow: auto;
  border: 1px solid var(--ndovu-wa-border);
  border-radius: 18px;
  background: var(--ndovu-wa-surface);
  color: var(--ndovu-wa-ink);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .2);
}

#ndovu-wa-root .ndovu-wa-panel[hidden] {
  display: none !important;
}

#ndovu-wa-root .ndovu-wa-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--ndovu-wa-border);
}

#ndovu-wa-root .ndovu-wa-panel-header strong {
  display: block;
  margin: 0 0 4px;
  font-size: 17px;
}

#ndovu-wa-root .ndovu-wa-panel-header p {
  margin: 0;
  color: var(--ndovu-wa-muted);
  font-size: 13px;
}

#ndovu-wa-root .ndovu-wa-close {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid var(--ndovu-wa-border);
  border-radius: 50%;
  background: #fff;
  color: #333;
  font-size: 25px;
  line-height: 30px;
  cursor: pointer;
}

#ndovu-wa-root .ndovu-wa-context {
  margin: 14px 14px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f5f7f6;
  color: #3a3a3a;
  font-size: 12px;
}

#ndovu-wa-root .ndovu-wa-locations {
  display: grid;
  gap: 10px;
  padding: 14px;
}

#ndovu-wa-root .ndovu-wa-location-card {
  padding: 14px;
  border: 1px solid var(--ndovu-wa-border);
  border-radius: 13px;
  background: #fff;
}

#ndovu-wa-root .ndovu-wa-location-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

#ndovu-wa-root .ndovu-wa-location-heading strong {
  font-size: 15px;
}

#ndovu-wa-root .ndovu-wa-location-heading p {
  margin: 5px 0 0;
  color: var(--ndovu-wa-muted);
  font-size: 12px;
  line-height: 1.45;
}

#ndovu-wa-root .ndovu-wa-directions {
  flex: 0 0 auto;
  color: #454545;
  font-size: 11px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#ndovu-wa-root .ndovu-wa-team-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

#ndovu-wa-root .ndovu-wa-chat-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 13px;
  border: 0;
  border-radius: 9px;
  background: var(--ndovu-wa-green);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

#ndovu-wa-root .ndovu-wa-chat-button:hover {
  background: var(--ndovu-wa-green-dark);
}

@media (max-width: 640px) {
  #ndovu-wa-root {
    bottom: calc(var(--ndovu-wa-mobile-bottom, 18px) + var(--ndovu-wa-mobile-safe-offset, 0px));
  }

  #ndovu-wa-root .ndovu-wa-fab {
    min-height: 52px;
    padding: 0 16px;
  }

  #ndovu-wa-root .ndovu-wa-panel {
    position: fixed;
    right: 14px !important;
    left: 14px !important;
    bottom: calc(var(--ndovu-wa-mobile-bottom, 18px) + var(--ndovu-wa-mobile-safe-offset, 0px) + 64px);
    width: auto;
    max-height: calc(100vh - 105px);
  }
}

@media (prefers-reduced-motion: reduce) {
  #ndovu-wa-root .ndovu-wa-fab {
    transition: none;
  }
}
