/*
 * Namefoods Support Hub frontend UI.
 * All selectors are scoped beneath #nfsh-root and critical controls use
 * explicit values so Elementor/theme button styles cannot leak into the chat.
 */

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

#nfsh-root {
  --nfsh-accent: #6c4cf1;
  --nfsh-text: #17151c;
  --nfsh-muted: #6d6876;
  --nfsh-line: #e8e6ec;
  --nfsh-surface: #ffffff;
  --nfsh-canvas: #f7f6f9;
  --nfsh-danger: #b4233a;
  color: var(--nfsh-text);
  color-scheme: light;
  direction: ltr;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  isolation: isolate;
}

/* Neutralise common theme/Elementor control rules inside the widget. */
#nfsh-root button,
#nfsh-root input,
#nfsh-root select,
#nfsh-root textarea {
  -webkit-appearance: none !important;
  appearance: none !important;
  box-sizing: border-box !important;
  font: inherit !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

#nfsh-root button {
  margin: 0 !important;
  text-decoration: none !important;
}

#nfsh-root button::before,
#nfsh-root button::after {
  display: none !important;
  content: none !important;
}

#nfsh-root svg {
  display: block;
  flex: 0 0 auto;
  fill: none !important;
  stroke: currentColor;
}

#nfsh-root h3,
#nfsh-root p {
  padding: 0;
}

/*
 * The floating root always occupies a fixed virtual canvas. Both the bubble
 * and the panel are absolutely positioned in it, so a hidden panel can never
 * move the bubble toward the top of the page.
 */
#nfsh-root.nfsh-floating {
  position: fixed !important;
  z-index: 2147483000 !important;
  top: auto !important;
  bottom: 24px !important;
  width: min(390px, calc(100vw - 48px)) !important;
  height: min(680px, calc(100dvh - 48px)) !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;
  background: transparent !important;
  pointer-events: none !important;
  transform: none !important;
}

#nfsh-root.nfsh-position-right {
  right: 24px !important;
  left: auto !important;
}

#nfsh-root.nfsh-position-left {
  left: 24px !important;
  right: auto !important;
}

#nfsh-root .nfsh-bubble {
  position: absolute !important;
  right: 0 !important;
  bottom: 0 !important;
  left: auto !important;
  top: auto !important;
  z-index: 2 !important;
  display: grid !important;
  place-items: center !important;
  width: 62px !important;
  min-width: 62px !important;
  max-width: 62px !important;
  height: 62px !important;
  min-height: 62px !important;
  max-height: 62px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 20px !important;
  outline: 0 !important;
  color: #ffffff !important;
  background: var(--nfsh-accent) !important;
  background-image: none !important;
  box-shadow: 0 16px 38px rgba(43, 28, 88, 0.26) !important;
  opacity: 1;
  visibility: visible;
  pointer-events: auto !important;
  cursor: pointer !important;
  overflow: visible !important;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 160ms ease, visibility 160ms ease !important;
}

#nfsh-root.nfsh-position-left .nfsh-bubble {
  left: 0 !important;
  right: auto !important;
}

#nfsh-root .nfsh-bubble:hover {
  color: #ffffff !important;
  background: var(--nfsh-accent) !important;
  border: 0 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 20px 44px rgba(43, 28, 88, 0.31) !important;
}

#nfsh-root .nfsh-bubble:focus-visible,
#nfsh-root .nfsh-close:focus-visible,
#nfsh-root .nfsh-primary:focus-visible,
#nfsh-root .nfsh-back:focus-visible,
#nfsh-root .nfsh-conversation-card:focus-visible,
#nfsh-root .nfsh-composer > button:focus-visible,
#nfsh-root .nfsh-attach:focus-within {
  outline: 3px solid rgba(108, 76, 241, 0.24) !important;
  outline-offset: 3px !important;
}

#nfsh-root .nfsh-bubble svg {
  width: 28px !important;
  height: 28px !important;
  color: inherit !important;
}

#nfsh-root .nfsh-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  place-items: center;
  min-width: 23px;
  height: 23px;
  padding: 0 6px;
  border: 3px solid #ffffff;
  border-radius: 999px;
  color: #ffffff;
  background: #e5484d;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

#nfsh-root .nfsh-panel {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(23, 21, 28, 0.08) !important;
  border-radius: 24px !important;
  color: var(--nfsh-text) !important;
  background: var(--nfsh-surface) !important;
  box-shadow: 0 28px 80px rgba(30, 20, 58, 0.22) !important;
  overflow: hidden !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none !important;
  transform: translateY(14px) scale(0.985);
  transform-origin: bottom right;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

#nfsh-root.nfsh-position-left .nfsh-panel {
  transform-origin: bottom left;
}

#nfsh-root.is-open .nfsh-panel,
#nfsh-root.nfsh-embedded .nfsh-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto !important;
  transform: translateY(0) scale(1);
}

/* The panel has its own close control, so the launcher cleanly disappears. */
#nfsh-root.is-open .nfsh-bubble {
  opacity: 0;
  visibility: hidden;
  pointer-events: none !important;
  transform: scale(0.86) !important;
}

#nfsh-root.nfsh-embedded {
  position: relative;
  width: 100%;
  max-width: 980px;
  height: min(760px, 75vh);
  min-height: 600px;
  margin: 0 auto;
  isolation: isolate;
}

#nfsh-root.nfsh-embedded .nfsh-panel {
  border-radius: 22px !important;
  box-shadow: 0 18px 54px rgba(30, 20, 58, 0.12) !important;
}

#nfsh-root .nfsh-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 78px !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 16px 16px 15px 21px !important;
  border: 0 !important;
  color: #ffffff;
  background: var(--nfsh-accent);
}

#nfsh-root .nfsh-header-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

#nfsh-root .nfsh-header-copy strong {
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 760 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em !important;
}

#nfsh-root .nfsh-presence {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
}

#nfsh-root .nfsh-presence i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f5c542;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14);
}

#nfsh-root .nfsh-presence.is-online i {
  background: #72e79b;
}

#nfsh-root .nfsh-close {
  display: grid !important;
  place-items: center !important;
  flex: 0 0 auto !important;
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 13px !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.12) !important;
  background-image: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

#nfsh-root .nfsh-close:hover {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  background: rgba(255, 255, 255, 0.19) !important;
}

#nfsh-root .nfsh-close svg {
  width: 18px;
  height: 18px;
}

#nfsh-root .nfsh-body {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  color: var(--nfsh-text);
  background: var(--nfsh-canvas);
  overflow: hidden;
}

#nfsh-root .nfsh-home,
#nfsh-root .nfsh-start-view {
  width: 100%;
  height: 100%;
  padding: 21px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

#nfsh-root .nfsh-hero {
  margin: 0 0 14px;
  padding: 21px;
  border: 1px solid rgba(24, 21, 31, 0.06);
  border-radius: 18px;
  background: #ffffff;
}

#nfsh-root .nfsh-hero h3,
#nfsh-root .nfsh-start-view h3 {
  margin: 0 0 8px !important;
  color: var(--nfsh-text) !important;
  font-size: 23px !important;
  font-weight: 680 !important;
  line-height: 1.18 !important;
  letter-spacing: -0.035em !important;
}

#nfsh-root .nfsh-hero p {
  margin: 0 !important;
  color: var(--nfsh-muted) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
}

#nfsh-root .nfsh-primary {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 50px !important;
  margin: 0 !important;
  padding: 0 17px !important;
  border: 0 !important;
  border-radius: 14px !important;
  outline: 0 !important;
  color: #ffffff !important;
  background: var(--nfsh-accent) !important;
  background-image: none !important;
  box-shadow: 0 10px 24px rgba(61, 42, 139, 0.18) !important;
  font-size: 14px !important;
  font-weight: 720 !important;
  line-height: 1.2 !important;
  cursor: pointer !important;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease !important;
}

#nfsh-root .nfsh-primary:hover {
  color: #ffffff !important;
  background: var(--nfsh-accent) !important;
  border: 0 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 13px 29px rgba(61, 42, 139, 0.23) !important;
}

#nfsh-root .nfsh-primary:disabled {
  opacity: 0.58 !important;
  cursor: wait !important;
  transform: none !important;
}

#nfsh-root .nfsh-start {
  justify-content: space-between !important;
  padding-right: 18px !important;
  padding-left: 18px !important;
}

#nfsh-root .nfsh-start svg {
  width: 18px;
  height: 18px;
}

#nfsh-root .nfsh-section-title {
  margin: 23px 2px 10px;
  color: #817b8b;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

#nfsh-root .nfsh-conversation-list {
  display: grid;
  gap: 9px;
}

#nfsh-root .nfsh-conversation-card {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 11px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 70px !important;
  margin: 0 !important;
  padding: 12px !important;
  border: 1px solid rgba(24, 21, 31, 0.07) !important;
  border-radius: 16px !important;
  color: var(--nfsh-text) !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
  text-align: left !important;
  cursor: pointer !important;
}

#nfsh-root .nfsh-conversation-card:hover {
  color: var(--nfsh-text) !important;
  border-color: rgba(108, 76, 241, 0.38) !important;
  background: #ffffff !important;
}

#nfsh-root .nfsh-conversation-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: var(--nfsh-accent);
  background: #f0edff;
  font-size: 13px;
  font-weight: 850;
}

#nfsh-root .nfsh-conversation-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

#nfsh-root .nfsh-conversation-copy strong {
  overflow: hidden;
  color: var(--nfsh-text) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#nfsh-root .nfsh-conversation-copy small,
#nfsh-root .nfsh-conversation-meta small {
  color: #817b8b !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
}

#nfsh-root .nfsh-conversation-meta {
  display: grid;
  justify-items: end;
  gap: 4px;
}

#nfsh-root .nfsh-conversation-meta b {
  display: grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--nfsh-accent);
  font-size: 10px;
  font-weight: 800;
}

#nfsh-root .nfsh-empty {
  padding: 22px;
  color: #837d8c;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

#nfsh-root .nfsh-back {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 30px !important;
  margin: 0 0 17px !important;
  padding: 2px 0 !important;
  border: 0 !important;
  border-radius: 7px !important;
  color: #5e5966 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  cursor: pointer !important;
}

#nfsh-root .nfsh-back:hover {
  color: var(--nfsh-text) !important;
  background: transparent !important;
  border: 0 !important;
}

#nfsh-root .nfsh-back svg {
  width: 17px;
  height: 17px;
}

#nfsh-root .nfsh-start-form {
  display: grid;
  gap: 14px;
  margin: 0 !important;
}

#nfsh-root .nfsh-start-form label {
  display: grid;
  gap: 7px;
  margin: 0;
}

#nfsh-root .nfsh-start-form label > span {
  color: #5f5968 !important;
  font-size: 12px !important;
  font-weight: 720 !important;
  line-height: 1.3 !important;
}

#nfsh-root .nfsh-start-form input,
#nfsh-root .nfsh-start-form select,
#nfsh-root .nfsh-start-form textarea {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 12px 13px !important;
  border: 1px solid #dfdce5 !important;
  border-radius: 12px !important;
  outline: 0 !important;
  color: #211d28 !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
}

#nfsh-root .nfsh-start-form textarea {
  min-height: 118px !important;
  resize: vertical !important;
}

#nfsh-root .nfsh-start-form input:focus,
#nfsh-root .nfsh-start-form select:focus,
#nfsh-root .nfsh-start-form textarea:focus,
#nfsh-root .nfsh-composer textarea:focus {
  border-color: var(--nfsh-accent) !important;
  box-shadow: 0 0 0 3px rgba(108, 76, 241, 0.12) !important;
}

#nfsh-root .nfsh-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

#nfsh-root .nfsh-consent {
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 9px !important;
}

#nfsh-root .nfsh-consent input {
  width: 17px !important;
  min-width: 17px !important;
  height: 17px !important;
  min-height: 17px !important;
  margin: 1px 0 0 !important;
  padding: 0 !important;
  border: 1px solid #c9c5d0 !important;
  border-radius: 5px !important;
  background: #ffffff !important;
}

#nfsh-root .nfsh-consent input:checked {
  border-color: var(--nfsh-accent) !important;
  background-color: var(--nfsh-accent) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='m3.5 8 3 3 6-6'/%3E%3C/svg%3E") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 13px 13px !important;
}

#nfsh-root .nfsh-consent span {
  color: #5f5968 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
}

#nfsh-root .nfsh-consent a {
  color: var(--nfsh-accent) !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

#nfsh-root .nfsh-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

#nfsh-root .nfsh-error {
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid #ffd5da;
  border-radius: 11px;
  color: #a12031;
  background: #fff0f1;
  font-size: 12px;
  line-height: 1.45;
}

#nfsh-root .nfsh-thread-view {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  background: var(--nfsh-canvas);
}

#nfsh-root .nfsh-thread-top {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 64px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--nfsh-line);
  background: #ffffff;
}

#nfsh-root .nfsh-thread-top .nfsh-back {
  display: grid !important;
  place-items: center !important;
  width: 32px !important;
  min-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
}

#nfsh-root .nfsh-thread-top > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

#nfsh-root .nfsh-thread-top strong {
  overflow: hidden;
  color: var(--nfsh-text) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#nfsh-root .nfsh-thread-top small {
  color: #857f8e !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
}

#nfsh-root .nfsh-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  padding: 18px 15px 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

#nfsh-root .nfsh-message {
  display: flex;
  justify-content: flex-start;
}

#nfsh-root .nfsh-message.is-customer {
  justify-content: flex-end;
}

#nfsh-root .nfsh-message-bubble {
  max-width: 82%;
  padding: 11px 13px 8px;
  border: 1px solid rgba(24, 21, 31, 0.06);
  border-radius: 17px 17px 17px 5px;
  color: var(--nfsh-text);
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(28, 20, 44, 0.05);
}

#nfsh-root .nfsh-message.is-customer .nfsh-message-bubble {
  border: 0;
  border-radius: 17px 17px 5px 17px;
  color: #ffffff;
  background: var(--nfsh-accent);
}

#nfsh-root .nfsh-message p {
  margin: 0 !important;
  color: inherit !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  overflow-wrap: anywhere;
}

#nfsh-root .nfsh-message time {
  display: block;
  margin-top: 6px;
  color: inherit;
  font-size: 9px;
  line-height: 1.2;
  text-align: right;
  opacity: 0.6;
}

#nfsh-root .nfsh-file {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  color: inherit !important;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none !important;
}

#nfsh-root .nfsh-file small {
  font-weight: 500;
  opacity: 0.65;
}

#nfsh-root .nfsh-thread-error {
  margin: 0 12px 8px;
}

#nfsh-root .nfsh-composer {
  position: relative;
  margin: 0 !important;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  min-height: 68px;
  padding: 10px 11px;
  border-top: 1px solid #e7e4eb;
  background: #ffffff;
}

#nfsh-root .nfsh-composer textarea {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 44px !important;
  max-height: 120px !important;
  margin: 0 !important;
  padding: 11px 12px !important;
  border: 1px solid #e0dde5 !important;
  border-radius: 13px !important;
  outline: 0 !important;
  color: #211d28 !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  resize: none !important;
}

#nfsh-root .nfsh-composer > button {
  display: grid !important;
  place-items: center !important;
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 13px !important;
  color: #ffffff !important;
  background: var(--nfsh-accent) !important;
  background-image: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

#nfsh-root .nfsh-composer > button:hover {
  color: #ffffff !important;
  background: var(--nfsh-accent) !important;
  border: 0 !important;
}

#nfsh-root .nfsh-composer > button:disabled {
  opacity: 0.55 !important;
  cursor: wait !important;
}

#nfsh-root .nfsh-composer > button svg {
  width: 18px;
  height: 18px;
}

#nfsh-root .nfsh-attach {
  display: grid !important;
  place-items: center !important;
  width: 42px !important;
  min-width: 42px !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #e0dde5 !important;
  border-radius: 13px !important;
  color: #615b69 !important;
  background: #ffffff !important;
  cursor: pointer !important;
}

#nfsh-root .nfsh-attach:hover {
  border-color: #c9c5d0 !important;
  background: #faf9fc !important;
}

#nfsh-root .nfsh-attach svg {
  width: 19px;
  height: 19px;
}

#nfsh-root .nfsh-attach input {
  display: none !important;
}

#nfsh-root .nfsh-selected-file {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 7px 9px;
  border-radius: 9px;
  background: #f2eff8;
  font-size: 11px;
  line-height: 1.35;
}

#nfsh-root .nfsh-selected-file button {
  display: grid !important;
  place-items: center !important;
  flex: 0 0 auto !important;
  width: 24px !important;
  min-width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 7px !important;
  color: #615b69 !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

#nfsh-root .nfsh-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  height: 100%;
}

#nfsh-root .nfsh-loading span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--nfsh-accent);
  animation: nfshPulse 1s infinite ease-in-out;
}

#nfsh-root .nfsh-loading span:nth-child(2) {
  animation-delay: 0.12s;
}

#nfsh-root .nfsh-loading span:nth-child(3) {
  animation-delay: 0.24s;
}

@keyframes nfshPulse {
  0%, 80%, 100% {
    transform: scale(0.6);
    opacity: 0.45;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.nfsh-account-heading {
  margin-bottom: 20px;
}

.nfsh-account-heading h2 {
  margin-bottom: 6px;
}

.nfsh-account-heading p {
  margin: 0;
  color: #726c79;
}

@media (max-width: 520px) {
  #nfsh-root.nfsh-floating {
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100dvh !important;
  }

  #nfsh-root .nfsh-bubble,
  #nfsh-root.nfsh-position-left .nfsh-bubble {
    right: max(12px, env(safe-area-inset-right)) !important;
    bottom: max(12px, env(safe-area-inset-bottom)) !important;
    left: auto !important;
    width: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;
    height: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
    border-radius: 19px !important;
  }

  #nfsh-root.nfsh-position-left .nfsh-bubble {
    right: auto !important;
    left: max(12px, env(safe-area-inset-left)) !important;
  }

  #nfsh-root .nfsh-panel {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: translateY(18px);
  }

  #nfsh-root .nfsh-header {
    min-height: 74px;
    padding-top: max(16px, env(safe-area-inset-top));
  }

  #nfsh-root .nfsh-two {
    grid-template-columns: minmax(0, 1fr);
  }

  #nfsh-root .nfsh-home,
  #nfsh-root .nfsh-start-view {
    padding: 18px;
  }

  #nfsh-root.nfsh-embedded {
    height: 78vh;
    min-height: 620px;
  }

  #nfsh-root.nfsh-embedded .nfsh-panel {
    border: 1px solid rgba(23, 21, 28, 0.08) !important;
    border-radius: 18px !important;
    box-shadow: 0 14px 40px rgba(30, 20, 58, 0.12) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #nfsh-root .nfsh-bubble,
  #nfsh-root .nfsh-panel,
  #nfsh-root .nfsh-primary,
  #nfsh-root .nfsh-loading span {
    animation: none !important;
    transition: none !important;
  }
}
