/* BingCard-style support inbox. Primary actions stay Nexus orange. */

.main-content:has(#section-support.active) {
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
}

.content-wrapper:has(#section-support.active) {
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}

#section-support.active {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}

.nxs {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  min-width: 0;
  background: #fff;
  color: #111827;
}

.nxs-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  padding: 22px 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

@media (min-width: 640px) {
  .nxs-head {
    padding: 22px 24px 20px;
  }
}

.nxs-head h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.25;
  color: #111827;
}

.nxs-head p {
  margin: 4px 0 0;
  font-size: 14px;
  color: #6b7280;
}

.nxs-head-actions {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

@media (min-width: 640px) {
  .nxs-head-actions {
    display: flex;
    width: auto;
    gap: 8px;
  }
}

.nxs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  height: 40px;
  box-sizing: border-box;
  padding: 0 14px;
  border-radius: 12px;
  border: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .nxs-btn {
    width: auto;
    border-radius: 6px;
    padding-right: 28px;
  }

  .nxs-btn--block {
    width: 100%;
    padding-right: 14px;
    border-radius: 6px;
  }
}

.nxs-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: none;
}

@media (min-width: 640px) {
  .nxs-btn svg {
    display: block;
  }
}

.nxs-btn--soft {
  color: #3179ff;
  background: rgba(49, 121, 255, 0.12);
}

.nxs-btn--soft:hover {
  background: rgba(49, 121, 255, 0.2);
}

.nxs-btn--primary {
  color: #fff;
  background: #3179ff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.nxs-btn--primary:hover {
  background: #2563eb;
}

.nxs-btn--primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.nxs-btn--ghost {
  color: #111827;
  background: #fff;
  box-shadow: inset 0 0 0 1px #d1d5db;
}

.nxs-btn--ghost:hover {
  background: #f9fafb;
}

.nxs-btn--sm {
  min-height: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 14px;
  width: auto;
}

.nxs-btn--sm svg {
  display: none;
}

.nxs-split {
  display: flex;
  flex: 1;
  min-height: 0;
  margin-left: 16px;
  margin-right: 16px;
  overflow: hidden;
}

.nxs-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex-shrink: 0;
  min-height: 0;
  border-right: 1px solid #e5e7eb;
  background: #fff;
}

@media (min-width: 768px) {
  .nxs-list {
    width: 280px;
  }
}

.nxs-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
  padding: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.nxs-list-head p {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.nxs-pop {
  position: relative;
}

.nxs-filter-btn,
.nxs-field-btn,
.nxs-status-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #4b5563;
  cursor: pointer;
  font-weight: 500;
}

.nxs-filter-btn {
  height: 26px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
}

.nxs-filter-btn:hover,
.nxs-field-btn:hover {
  background: #f9fafb;
}

.nxs-filter-btn svg,
.nxs-field-btn svg,
.nxs-status-btn svg {
  width: 14px;
  height: 14px;
}

.nxs-field-btn {
  width: 100%;
  height: 40px;
  justify-content: space-between;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px #d1d5db, 0 1px 2px rgba(0, 0, 0, 0.04);
  font-size: 14px;
  color: #9ca3af;
  text-align: left;
}

.nxs-field-btn.has-value {
  color: #111827;
}

.nxs-field-btn svg {
  width: 20px;
  height: 20px;
  color: #9ca3af;
}

.nxs-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 20;
  width: 176px;
  padding: 6px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
  box-shadow:
    0 0 0 1px #e5e7eb,
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.nxs-menu--field {
  left: 0;
  right: 0;
  width: auto;
}

.nxs-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #4b5563;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-align: left;
  cursor: pointer;
}

.nxs-menu button svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.nxs-menu button:hover {
  background: #f9fafb;
  color: #4b5563;
}

.nxs-menu button.is-active,
.nxs-menu button.is-active:hover {
  background: #f3f4f6;
  color: #111827;
}

.nxs-list-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.nxs-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 16px;
  text-align: center;
}

.nxs-empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(49, 121, 255, 0.12);
  color: #3179ff;
}

.nxs-empty-icon svg {
  width: 20px;
  height: 20px;
}

.nxs-empty p,
.nxs-error {
  margin: 12px 0 0;
  font-size: 14px;
  color: #6b7280;
}

.nxs-row {
  display: flex;
  width: 100%;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid #f3f4f6;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.nxs-row:hover {
  background: #f9fafb;
}

.nxs-row.is-active {
  background: rgba(49, 121, 255, 0.12);
}

.nxs-row-body {
  min-width: 0;
  flex: 1;
}

.nxs-row-subject {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #111827;
}

.nxs-row-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.nxs-row-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6b7280;
}

.nxs-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #3b82f6;
  flex-shrink: 0;
}

.nxs-dot--open { background: #3b82f6; }
.nxs-dot--in_progress { background: #f59e0b; }
.nxs-dot--resolved { background: #22c55e; }
.nxs-dot--closed { background: #9ca3af; }

.nxs-row-time {
  flex-shrink: 0;
  font-size: 11px;
  color: #9ca3af;
}

.nxs-skel {
  padding: 12px 16px;
}

.nxs-skel span {
  display: block;
  height: 12px;
  margin-top: 8px;
  border-radius: 6px;
  background: #e5e7eb;
}

.nxs-skel span:first-child { width: 75%; margin-top: 0; }
.nxs-skel span:last-child { width: 50%; }

.nxs-thread {
  display: none;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  background: #fff;
}

@media (min-width: 768px) {
  .nxs-thread {
    display: flex;
  }
}

.nxs-placeholder {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px;
  text-align: center;
}

.nxs-placeholder svg {
  width: 112px;
  height: auto;
  margin-bottom: 8px;
}

.nxs-ill-back { fill: #f3f4f6; stroke: #e5e7eb; }
.nxs-ill-shade { fill: #d1d5db; }
.nxs-ill-paper { fill: #fff; stroke: #e5e7eb; }
.nxs-ill-line { fill: #e5e7eb; }
.nxs-ill-check { fill: #eff6ff; stroke: #3179ff; }

.nxs-placeholder strong {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: #111827;
}

.nxs-placeholder span {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: #6b7280;
}

.nxs-thread-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.nxs-thread-head .nxs-icon-btn {
  width: 20px;
  height: 20px;
}

.nxs-thread-head .nxs-icon-btn svg {
  width: 20px;
  height: 20px;
}

.nxs-thread-head h3 {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.nxs-status-btn {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 4px;
  height: 24px;
  padding: 4px 10px;
  border: 0;
  border-radius: 9999px;
  box-sizing: border-box;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  white-space: nowrap;
  cursor: pointer;
}

.nxs-status-btn svg {
  display: block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.nxs-status-btn--open { color: #2563eb; background: #eff6ff; }
.nxs-status-btn--in_progress { color: #d97706; background: #fffbeb; }
.nxs-status-btn--resolved { color: #16a34a; background: #f0fdf4; }
.nxs-status-btn--closed { color: #6b7280; background: #f3f4f6; }

.nxs-status-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 5;
  width: 176px;
  padding: 6px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.12);
}

.nxs-status-menu button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #374151;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.nxs-status-menu button:hover { background: #f9fafb; }

.nxs-status-menu button:disabled,
.nxs-status-menu button:disabled:hover {
  background: transparent;
  opacity: 0.55;
  cursor: not-allowed;
}

.nxs-status-menu .nxs-check { width: 16px; height: 16px; }

.nxs-msgs {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 20px;
}

.nxs-msg {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #f3f4f6;
}

.nxs-msg:first-child { padding-top: 0; }

.nxs-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 32px;
  height: 32px;
  margin-top: 2px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 999px;
  background: #3179ff;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.nxs-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.nxs-avatar.has-photo {
  background: #e5e7eb;
}

.nxs-avatar.has-photo .nxs-avatar-fallback {
  display: none;
}

.nxs-avatar--staff { background: #059669; }

.nxs-msg-body { min-width: 0; flex: 1; }

.nxs-msg-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.nxs-msg-top strong {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
}

.nxs-msg-top span,
.nxs-reply-error {
  font-size: 12px;
  color: #9ca3af;
}

.nxs-msg-body p {
  margin: 4px 0 0;
  white-space: pre-wrap;
  font-size: 14px;
  color: #4b5563;
}

.nxs-reply {
  flex-shrink: 0;
  padding: 16px 20px;
  border-top: 1px solid #e5e7eb;
}

.nxs-reply textarea {
  display: block;
  width: 100%;
  min-height: 0;
  resize: none;
  box-sizing: border-box;
  padding: 6px 10px;
  line-height: 20px;
  border: 0;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px #d1d5db, 0 1px 2px rgba(0, 0, 0, 0.04);
  background: #fff;
  color: #111827;
  font: inherit;
  font-size: 14px;
}

.nxs-reply textarea:focus,
.nxs-input:focus,
.nxs-textarea:focus,
.nxs-field-btn:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px #3179ff;
}

.nxs-reply-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}

.nxs-reply .nxs-attach {
  margin-top: 0;
  min-width: 0;
}

.nxs-reply-error {
  margin: 8px 0 0;
  color: #ef4444;
}

.nxs-overlay {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  justify-content: flex-end;
  background: rgba(229, 231, 235, 0.75);
}

.nxs-overlay[hidden] { display: none; }

.nxs-drawer {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 448px;
  height: 100%;
  background: #fff;
  box-shadow: -8px 0 24px rgba(17, 24, 39, 0.08);
}

.nxs-drawer--thread { max-width: 512px; }

.nxs-drawer--thread #nxsMobileThread {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.nxs-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  padding: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.nxs-drawer-head p {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.nxs-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
}

.nxs-icon-btn:hover { color: #4b5563; }
.nxs-icon-btn svg { width: 20px; height: 20px; }

.nxs-drawer-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.nxs-drawer-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 20px;
}

.nxs-label {
  display: block;
  margin: 16px 0 4px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.nxs-label:first-child { margin-top: 0; }

.nxs-input,
.nxs-textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 0;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px #d1d5db, 0 1px 2px rgba(0, 0, 0, 0.04);
  background: #fff;
  color: #111827;
  font: inherit;
  font-size: 14px;
}

.nxs-input {
  height: 40px;
  padding: 0 14px;
}

.nxs-textarea {
  min-height: 132px;
  padding: 8px 10px;
  resize: none;
}

.nxs-attach {
  display: flex;
  align-items: center;
  margin-top: 16px;
}

.nxs-attach-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 6px 10px;
  border: 0;
  border-radius: 6px;
  background: #f9fafb;
  color: #6b7280;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.nxs-attach-btn:hover { background: #f3f4f6; }
.nxs-attach-btn svg { width: 16px; height: 16px; }

.nxs-attach span {
  margin-left: 8px;
  font-size: 12px;
  color: #9ca3af;
}

.nxs-files {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.nxs-file-chip {
  font-size: 12px;
  color: #4b5563;
  background: #f3f4f6;
  border-radius: 6px;
  padding: 4px 8px;
}

.nxs-drawer-foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  padding: 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #e5e7eb;
}

.nxs-drawer-foot .nxs-btn {
  width: 100%;
  border-radius: 6px;
  padding-right: 14px;
}

.nxs-thread-pane,
.nxs-thread--mobile {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
}

.nxs-thread--mobile .nxs-reply {
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 768px) {
  .main-content:has(#section-support.active) {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .content-wrapper:has(#section-support.active) {
    overflow: visible;
  }

  #section-support.active {
    overflow: visible;
    min-height: calc(100dvh - 64px);
  }

  .nxs-split {
    flex: none;
    min-height: 0;
    height: auto;
    margin: 16px 16px calc(72px + env(safe-area-inset-bottom, 0px));
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  }

  .nxs-list {
    width: 100%;
    height: auto;
    min-height: 0;
    padding-bottom: 0;
    border-right: 1px solid #e5e7eb;
  }

  .nxs-list-body {
    flex: none;
    overflow: visible;
  }

  #nxsFilterMenu {
    position: fixed;
    z-index: 400;
  }

  body:has(#nxsNewOverlay:not([hidden])),
  body:has(#nxsThreadOverlay:not([hidden])) {
    overflow: hidden;
  }

  body:has(#nxsNewOverlay:not([hidden])) .mobile-bottom-nav,
  body:has(#nxsThreadOverlay:not([hidden])) .mobile-bottom-nav {
    display: none;
  }

  .nxs-drawer {
    width: 100%;
    max-width: none;
    height: 100dvh;
  }

  .nxs-drawer--thread {
    width: min(100%, 512px);
    max-width: 512px;
    height: 100%;
  }
}

body.dark-mode .content-wrapper:has(#section-support.active),
body.dark-mode #section-support.active,
body.dark-mode .nxs,
body.dark-mode .nxs-head,
body.dark-mode .nxs-split,
body.dark-mode .nxs-list,
body.dark-mode .nxs-thread,
body.dark-mode .nxs-drawer {
  background: #000000;
  color: #f3f4f6;
  border-color: #2a2a2a;
}

body.dark-mode .nxs-head,
body.dark-mode .nxs-list,
body.dark-mode .nxs-list-head,
body.dark-mode .nxs-thread-head,
body.dark-mode .nxs-reply,
body.dark-mode .nxs-drawer-head,
body.dark-mode .nxs-drawer-foot,
body.dark-mode .nxs-row,
body.dark-mode .nxs-msg {
  border-color: #2a2a2a;
}

body.dark-mode .nxs-head h2,
body.dark-mode .nxs-list-head p,
body.dark-mode .nxs-row-subject,
body.dark-mode .nxs-thread-head h3,
body.dark-mode .nxs-placeholder strong,
body.dark-mode .nxs-drawer-head p,
body.dark-mode .nxs-msg-top strong,
body.dark-mode .nxs-label,
body.dark-mode .nxs-btn--ghost {
  color: #fff;
}

body.dark-mode .nxs-head p,
body.dark-mode .nxs-empty p,
body.dark-mode .nxs-placeholder span,
body.dark-mode .nxs-row-status,
body.dark-mode .nxs-msg-body p {
  color: #9ca3af;
}

body.dark-mode .nxs-btn--soft {
  color: #3179ff;
  background: rgba(49, 121, 255, 0.16);
}

body.dark-mode .nxs-btn--ghost,
body.dark-mode .nxs-filter-btn,
body.dark-mode .nxs-field-btn,
body.dark-mode .nxs-input,
body.dark-mode .nxs-textarea,
body.dark-mode .nxs-reply textarea,
body.dark-mode .nxs-menu,
body.dark-mode .nxs-status-menu {
  background: #000000;
  color: #e5e7eb;
  box-shadow: inset 0 0 0 1px #2a2a2a;
}

body.dark-mode .nxs-filter-btn,
body.dark-mode .nxs-status-menu {
  border-color: #2a2a2a;
}

body.dark-mode .nxs-menu {
  border: 0;
  box-shadow:
    0 0 0 1px #2a2a2a,
    0 10px 15px -3px rgba(0, 0, 0, 0.45),
    0 4px 6px -4px rgba(0, 0, 0, 0.4);
}

body.dark-mode .nxs-menu button,
body.dark-mode .nxs-status-menu button {
  color: #d1d5db;
}

body.dark-mode .nxs-menu button.is-active,
body.dark-mode .nxs-menu button:hover,
body.dark-mode .nxs-status-menu button:hover,
body.dark-mode .nxs-row:hover {
  background: #111827;
  color: #fff;
}

body.dark-mode .nxs-status-menu button:disabled,
body.dark-mode .nxs-status-menu button:disabled:hover {
  background: transparent;
  color: #d1d5db;
  opacity: 0.55;
  cursor: not-allowed;
}

body.dark-mode .nxs-row.is-active {
  background: rgba(49, 121, 255, 0.16);
}

body.dark-mode .nxs-attach-btn {
  background: #111827;
  color: #9ca3af;
}

body.dark-mode .nxs-overlay {
  background: rgba(31, 41, 55, 0.75);
}

body.dark-mode .nxs-ill-back { fill: #334155; stroke: #475569; }
body.dark-mode .nxs-ill-shade { fill: #64748b; }
body.dark-mode .nxs-ill-paper { fill: #1e293b; stroke: #475569; }
body.dark-mode .nxs-ill-line { fill: #475569; }
body.dark-mode .nxs-ill-check { fill: #0f274d; stroke: #3179ff; }

body.dark-mode .nxs-status-btn--open { color: #60a5fa; background: rgba(59, 130, 246, 0.12); }
body.dark-mode .nxs-status-btn--in_progress { color: #fbbf24; background: rgba(245, 158, 11, 0.12); }
body.dark-mode .nxs-status-btn--resolved { color: #4ade80; background: rgba(34, 197, 94, 0.12); }
body.dark-mode .nxs-status-btn--closed { color: #9ca3af; background: rgba(156, 163, 175, 0.12); }

.nxs-chat-close {
  position: fixed;
  z-index: 2147483647;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent !important;
  color: #fff !important;
  box-shadow: none;
  cursor: pointer;
}

.nxs-chat-close[hidden] {
  display: none !important;
}

.nxs-chat-close svg {
  width: 18px;
  height: 18px;
  display: block;
}

.nxs-chat-close:hover,
.nxs-chat-close:focus-visible {
  background: rgba(255, 255, 255, 0.16) !important;
  outline: none;
}

#min-widget,
#min-widget iframe,
#branding-widget,
#branding-widget iframe,
#message-preview,
#message-preview iframe,
body:not(.nxs-chat-open) #max-widget,
body:not(.nxs-chat-open) #max-widget iframe {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
