/* NiceDial Web Voice AI — embeddable widget */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=Outfit:wght@600;700&display=swap");

.nwc-root {
  --nwc-accent: #3ee0b8;
  --nwc-accent-dim: color-mix(in srgb, var(--nwc-accent) 18%, transparent);
  --nwc-accent-ink: #06241c;
  --nwc-bg: #0b1220;
  --nwc-panel: #121a2b;
  --nwc-panel-elev: #182235;
  --nwc-text: #e8eef8;
  --nwc-muted: #93a4b8;
  --nwc-danger: #ff6b7a;
  --nwc-user: #7eb6ff;
  --nwc-border: rgba(255, 255, 255, 0.09);
  --nwc-shadow: 0 28px 64px rgba(0, 0, 0, 0.5);
  --nwc-radius: 20px;
  --nwc-font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nwc-display: "Outfit", var(--nwc-font);
  position: fixed;
  z-index: 99990;
  bottom: max(20px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  font-family: var(--nwc-font);
  color: var(--nwc-text);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.nwc-root.nwc-pos-right {
  right: max(20px, env(safe-area-inset-right));
}

.nwc-root.nwc-pos-left {
  left: max(20px, env(safe-area-inset-left));
  align-items: flex-start;
}

/* —— FAB —— */
.nwc-fab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.75rem 1.15rem 0.75rem 0.75rem;
  background: linear-gradient(
    145deg,
    var(--nwc-accent) 0%,
    color-mix(in srgb, var(--nwc-accent) 72%, #0d6b5c) 100%
  );
  color: var(--nwc-accent-ink);
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  box-shadow:
    0 10px 28px color-mix(in srgb, var(--nwc-accent) 38%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition:
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.nwc-fab:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 36px color-mix(in srgb, var(--nwc-accent) 48%, transparent);
}

.nwc-fab:active {
  transform: translateY(-1px) scale(0.98);
}

.nwc-fab:focus-visible {
  outline: 2px solid var(--nwc-accent);
  outline-offset: 3px;
}

.nwc-fab-icon {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  background: rgba(6, 36, 28, 0.18);
  flex-shrink: 0;
}

.nwc-fab-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.nwc-fab-label {
  padding-right: 0.15rem;
}

.nwc-fab-ring {
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--nwc-accent) 45%, transparent);
  opacity: 0;
  pointer-events: none;
}

.nwc-fab--idle .nwc-fab-ring {
  animation: nwc-ring 2.8s ease-out infinite;
}

.nwc-fab--live {
  background: linear-gradient(145deg, #ff5a6a, #d62839);
  color: #fff;
  box-shadow: 0 10px 28px rgba(214, 40, 57, 0.4);
  animation: nwc-live-breathe 1.8s ease-in-out infinite;
}

.nwc-fab--live .nwc-fab-icon {
  background: rgba(0, 0, 0, 0.2);
}

.nwc-fab--open:not(.nwc-fab--live) {
  filter: brightness(1.05);
}

@keyframes nwc-ring {
  0% {
    transform: scale(0.92);
    opacity: 0.55;
  }
  100% {
    transform: scale(1.22);
    opacity: 0;
  }
}

@keyframes nwc-live-breathe {
  0%,
  100% {
    box-shadow: 0 10px 28px rgba(214, 40, 57, 0.35);
  }
  50% {
    box-shadow: 0 12px 36px rgba(214, 40, 57, 0.55);
  }
}

/* —— Panel —— */
.nwc-panel {
  width: min(380px, calc(100vw - 32px));
  background:
    radial-gradient(520px 180px at 10% -20%, var(--nwc-accent-dim), transparent 60%),
    linear-gradient(180deg, var(--nwc-panel-elev) 0%, var(--nwc-panel) 48%);
  border: 1px solid var(--nwc-border);
  border-radius: var(--nwc-radius);
  box-shadow: var(--nwc-shadow);
  padding: 0;
  overflow: hidden;
  transform-origin: bottom right;
}

.nwc-root.nwc-pos-left .nwc-panel {
  transform-origin: bottom left;
}

.nwc-panel[hidden] {
  display: none !important;
}

.nwc-panel.nwc-panel--open {
  display: flex !important;
  flex-direction: column;
  animation: nwc-panel-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes nwc-panel-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.nwc-panel-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1rem 0.75rem;
}

/* Light card shell — sticky brand bar (fits above FAB on host sites) */
.nwc-root .nwc-panel.nwc-panel--light {
  --nwc-text: #0f172a;
  --nwc-muted: #64748b;
  --nwc-border: #e2e8f0;
  --nwc-panel: #ffffff;
  --nwc-panel-elev: #ffffff;
  --nwc-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  width: min(340px, calc(100vw - 24px));
  max-height: min(72vh, calc(100dvh - 5.75rem)) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  box-shadow: var(--nwc-shadow);
}

.nwc-root .nwc-panel.nwc-panel--light.nwc-panel--card {
  border-top: 3px solid #0d9488 !important;
}

.nwc-root .nwc-panel.nwc-panel--light[hidden] {
  display: none !important;
}

.nwc-root .nwc-panel.nwc-panel--light.nwc-panel--open {
  display: flex !important;
}

.nwc-root .nwc-panel--light .nwc-panel-body {
  overflow: auto !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  padding: 0 0.7rem 0.65rem !important;
  background: #fff !important;
}

.nwc-root .nwc-panel-head.nwc-panel-head--bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between;
  gap: 0.5rem;
  flex: 0 0 auto !important;
  padding: 0.55rem 0.65rem 0.5rem !important;
  margin: 0 !important;
  background: #f0fdfa !important;
  border-bottom: 1px solid #ccfbf1 !important;
  color: #0f172a !important;
  position: relative;
  z-index: 2;
}

.nwc-root .nwc-brand-row {
  display: flex !important;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  flex: 1;
}

.nwc-root .nwc-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: #fff;
  display: grid !important;
  place-items: center;
  box-shadow: 0 1px 4px rgba(13, 148, 136, 0.2);
  border: 1px solid #99f6e4;
}

.nwc-root .nwc-avatar--sm {
  width: 1.85rem;
  height: 1.85rem;
}

.nwc-root .nwc-avatar svg {
  width: 1.55rem;
  height: 1.55rem;
  display: block;
}

.nwc-root .nwc-panel-head--bar .nwc-head-text {
  min-width: 0;
  padding-top: 0;
}

.nwc-root .nwc-panel-head--bar .nwc-title {
  display: block !important;
  color: #0f766e !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.nwc-root .nwc-panel-head--bar .nwc-subtitle {
  display: block !important;
  color: #64748b !important;
  font-size: 0.62rem !important;
  line-height: 1.25;
  margin: 0.08rem 0 0 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nwc-root .nwc-icon-btn.nwc-icon-btn--quiet {
  width: 1.55rem !important;
  height: 1.55rem !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #64748b !important;
  border: 1px solid #e2e8f0 !important;
  font-size: 1rem;
  flex-shrink: 0;
}

.nwc-root .nwc-icon-btn.nwc-icon-btn--quiet:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
}

.nwc-consent--compact {
  font-size: 0.65rem;
  margin-bottom: 0.4rem;
}

.nwc-panel--light .nwc-status {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #334155;
  padding: 0.45rem 0.6rem;
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

.nwc-panel--light .nwc-transcript {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.nwc-panel--light .nwc-line--assistant .nwc-bubble {
  background: #ecfdf5;
  color: #134e4a;
}

.nwc-panel--light .nwc-line--user .nwc-bubble {
  background: #eff6ff;
  color: #1e3a5f;
}

.nwc-panel--light .nwc-btn-ghost {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.nwc-panel--light .nwc-viz,
.nwc-panel--light .nwc-transcript {
  display: none;
}

.nwc-panel--light.nwc-panel--active .nwc-viz,
.nwc-panel--light.nwc-panel--active .nwc-transcript {
  display: flex;
}

.nwc-panel--light.nwc-panel--active .nwc-transcript {
  display: block;
}

.nwc-panel--light .nwc-viz-bar {
  background: color-mix(in srgb, var(--nwc-accent, #0d9488) 70%, #0f766e);
}

.nwc-panel--light .nwc-viz {
  height: 36px;
  margin-bottom: 0.5rem;
}

.nwc-brand-mark {
  position: relative;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 14px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--nwc-accent-dim);
  border: 1px solid color-mix(in srgb, var(--nwc-accent) 35%, transparent);
  color: var(--nwc-accent);
}

.nwc-brand-mark svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.nwc-brand-mark::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 16px;
  border: 1.5px solid transparent;
  opacity: 0;
  transition: opacity 0.2s;
}

.nwc-panel--listening .nwc-brand-mark::after,
.nwc-panel--speaking .nwc-brand-mark::after {
  opacity: 1;
  border-color: color-mix(in srgb, var(--nwc-accent) 55%, transparent);
  animation: nwc-ring 1.6s ease-out infinite;
}

.nwc-panel--speaking .nwc-brand-mark {
  color: #fff;
  background: color-mix(in srgb, var(--nwc-accent) 55%, #0b1220);
}

.nwc-head-text {
  flex: 1;
  min-width: 0;
  padding-top: 0.1rem;
}

.nwc-title {
  display: block;
  font-family: var(--nwc-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.nwc-subtitle {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: var(--nwc-muted);
}

.nwc-icon-btn {
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, 0.04);
  color: var(--nwc-muted);
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s, color 0.15s;
}

.nwc-icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--nwc-text);
}

.nwc-panel-body {
  padding: 0 1rem 1rem;
}

.nwc-consent {
  margin: 0 0 0.75rem;
  font-size: 0.7rem;
  color: var(--nwc-muted);
  line-height: 1.4;
  opacity: 0.9;
}

/* —— Status / phase —— */
.nwc-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--nwc-border);
  color: var(--nwc-text);
}

.nwc-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--nwc-muted);
  flex-shrink: 0;
}

.nwc-status--ready .nwc-status-dot,
.nwc-status--listening .nwc-status-dot {
  background: var(--nwc-accent);
  box-shadow: 0 0 0 3px var(--nwc-accent-dim);
}

.nwc-status--speaking .nwc-status-dot {
  background: var(--nwc-accent);
  animation: nwc-dot-pulse 0.9s ease-in-out infinite;
}

.nwc-status--connecting .nwc-status-dot,
.nwc-status--thinking .nwc-status-dot {
  background: #f0b429;
  animation: nwc-dot-pulse 1s ease-in-out infinite;
}

.nwc-status--error {
  background: rgba(255, 107, 122, 0.1);
  border-color: rgba(255, 107, 122, 0.35);
  color: #ffb3bb;
}

.nwc-status--error .nwc-status-dot {
  background: var(--nwc-danger);
}

@keyframes nwc-dot-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.25);
    opacity: 0.65;
  }
}

/* —— Voice visualizer —— */
.nwc-viz {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 48px;
  margin: 0 0 0.75rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--nwc-border);
}

.nwc-panel--active .nwc-viz {
  display: flex;
}

.nwc-viz-bar {
  width: 4px;
  height: 12px;
  border-radius: 99px;
  background: var(--nwc-accent);
  opacity: 0.45;
  transform-origin: center bottom;
}

.nwc-panel--listening .nwc-viz-bar {
  animation: nwc-bars 1.1s ease-in-out infinite;
  opacity: 0.85;
}

.nwc-panel--speaking .nwc-viz-bar {
  animation: nwc-bars 0.7s ease-in-out infinite;
  opacity: 1;
}

.nwc-viz-bar:nth-child(1) {
  animation-delay: 0s;
}
.nwc-viz-bar:nth-child(2) {
  animation-delay: 0.08s;
}
.nwc-viz-bar:nth-child(3) {
  animation-delay: 0.16s;
}
.nwc-viz-bar:nth-child(4) {
  animation-delay: 0.24s;
}
.nwc-viz-bar:nth-child(5) {
  animation-delay: 0.12s;
}
.nwc-viz-bar:nth-child(6) {
  animation-delay: 0.2s;
}
.nwc-viz-bar:nth-child(7) {
  animation-delay: 0.04s;
}

@keyframes nwc-bars {
  0%,
  100% {
    height: 10px;
  }
  50% {
    height: 28px;
  }
}

/* —— Transcript —— */
.nwc-transcript {
  display: none;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 100px;
  max-height: 220px;
  overflow: auto;
  margin-bottom: 0.85rem;
  padding: 0.65rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--nwc-border);
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}

.nwc-panel--active .nwc-transcript,
.nwc-transcript:not(:empty) {
  display: flex;
}

.nwc-transcript:empty::before {
  content: "Your conversation will appear here…";
  color: var(--nwc-muted);
  font-size: 0.78rem;
  margin: auto;
  text-align: center;
  padding: 1.5rem 0.5rem;
}

.nwc-line {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-width: 92%;
  animation: nwc-line-in 0.25s ease both;
}

.nwc-line--user {
  align-self: flex-end;
  align-items: flex-end;
}

.nwc-line--assistant {
  align-self: flex-start;
}

.nwc-line--system {
  align-self: center;
  max-width: 100%;
}

@keyframes nwc-line-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.nwc-who {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nwc-accent);
  padding: 0 0.2rem;
}

.nwc-line--user .nwc-who {
  color: var(--nwc-user);
}

.nwc-line--system .nwc-who {
  color: var(--nwc-muted);
}

.nwc-bubble {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: 14px;
  font-size: 0.82rem;
  line-height: 1.4;
  background: var(--nwc-panel-elev);
  border: 1px solid var(--nwc-border);
}

.nwc-line--user .nwc-bubble {
  background: color-mix(in srgb, var(--nwc-user) 18%, #0b1220);
  border-color: color-mix(in srgb, var(--nwc-user) 28%, transparent);
  border-bottom-right-radius: 4px;
}

.nwc-line--assistant .nwc-bubble {
  border-bottom-left-radius: 4px;
}

.nwc-line--system .nwc-bubble {
  background: transparent;
  border-style: dashed;
  color: var(--nwc-muted);
  font-size: 0.75rem;
  text-align: center;
}

/* —— Actions —— */
.nwc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.nwc-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  transition:
    transform 0.12s ease,
    opacity 0.15s,
    background 0.15s,
    border-color 0.15s;
}

.nwc-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.nwc-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.nwc-btn-primary {
  flex: 1 1 auto;
  background: var(--nwc-accent);
  color: var(--nwc-accent-ink);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--nwc-accent) 28%, transparent);
}

.nwc-btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--nwc-text);
  border: 1px solid var(--nwc-border);
}

.nwc-btn-danger {
  background: color-mix(in srgb, var(--nwc-danger) 88%, #fff);
  color: #2a060c;
}

.nwc-btn-block {
  width: 100%;
  margin-top: 0.4rem;
}

.nwc-call-actions {
  display: none;
  width: 100%;
  gap: 0.45rem;
}

.nwc-panel--active .nwc-actions-idle {
  display: none;
}

.nwc-panel--active .nwc-call-actions {
  display: flex;
}

/* —— Visitor gate (verify wizard) —— */
.nwc-gate {
  margin-bottom: 0.85rem;
  padding: 0.75rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--nwc-border);
}

.nwc-gate--wizard {
  margin: 0 0 0.65rem;
  padding: 0.7rem 0.7rem 0.65rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  color: #0f172a;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.nwc-panel--light .nwc-gate--wizard {
  margin: 0;
  padding: 0.55rem 0 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.nwc-panel--active .nwc-gate-mount {
  display: none;
}

.nwc-gate-mount[hidden] {
  display: none !important;
}

/* Stepper — compact horizontal */
.nwc-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.2rem;
  margin: 0 0 0.65rem;
  padding: 0;
}

.nwc-step {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.3rem;
  flex: 0 0 auto;
  min-width: 0;
}

.nwc-step-num {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 700;
  background: #e2e8f0;
  color: #94a3b8;
  border: 1.5px solid #e2e8f0;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.nwc-step-label {
  font-size: 0.62rem;
  font-weight: 650;
  color: #94a3b8;
  letter-spacing: 0.01em;
}

.nwc-step-line {
  flex: 1;
  height: 1.5px;
  margin-top: 0;
  background: #e2e8f0;
  border-radius: 2px;
  min-width: 0.75rem;
  transition: background 0.2s;
}

.nwc-step.is-active .nwc-step-num,
.nwc-step.is-done .nwc-step-num {
  background: #0d9488;
  border-color: #0d9488;
  color: #fff;
}

.nwc-step.is-active .nwc-step-label {
  color: #0f766e;
}

.nwc-step.is-done .nwc-step-label {
  color: #64748b;
}

.nwc-step-line.is-done {
  background: #0d9488;
}

/* Intro */
.nwc-gate-intro {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0 0 0.55rem;
}

.nwc-gate-intro-icon {
  width: 0.95rem;
  height: 0.95rem;
  color: #0d9488;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.nwc-gate-intro-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.nwc-gate-intro-title {
  margin: 0;
  font-family: var(--nwc-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.nwc-gate-intro-sub {
  margin: 0.12rem 0 0;
  font-size: 0.66rem;
  color: #64748b;
  line-height: 1.3;
}

/* Icon fields */
.nwc-gate--wizard .nwc-gate-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.nwc-field {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.nwc-field:focus-within {
  border-color: #0d9488;
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.14);
}

.nwc-field-icon {
  width: 2rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: #94a3b8;
  pointer-events: none;
}

.nwc-field-icon svg {
  width: 0.92rem;
  height: 0.92rem;
}

.nwc-field input {
  flex: 1;
  min-width: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0.48rem 0.55rem 0.48rem 0 !important;
  font: inherit;
  font-size: 0.8rem;
  color: #0f172a;
  border-radius: 10px;
}

.nwc-field input:focus {
  outline: none;
}

.nwc-field input::placeholder {
  color: #94a3b8;
}

.nwc-field--phone {
  padding-left: 0;
  gap: 0;
}

.nwc-dial {
  appearance: none;
  border: 0;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  border-radius: 9px 0 0 9px;
  padding: 0.45rem 0.3rem 0.45rem 0.4rem;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  max-width: 3.6rem;
  flex-shrink: 0;
}

.nwc-field--phone input {
  padding-left: 0.5rem !important;
}

.nwc-wa-banner {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 0.64rem;
  line-height: 1.3;
  font-weight: 500;
}

.nwc-wa-banner-icon {
  width: 0.9rem;
  height: 0.9rem;
  color: #16a34a;
  flex-shrink: 0;
  margin-top: 0;
}

.nwc-wa-banner-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.nwc-or {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: #94a3b8;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: lowercase;
}

.nwc-or::before,
.nwc-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.nwc-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: #fff;
  color: #334155;
  border: 1px solid #e2e8f0;
  box-shadow: none;
  font-weight: 650;
  font-size: 0.78rem;
  padding: 0.48rem 0.7rem;
  border-radius: 10px;
}

.nwc-btn-outline:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.nwc-btn-lg {
  padding: 0.52rem 0.75rem;
  font-size: 0.8rem;
  border-radius: 10px;
}

.nwc-btn-ico {
  display: inline-flex;
  width: 0.9rem;
  height: 0.9rem;
}

.nwc-btn-ico svg {
  width: 100%;
  height: 100%;
}

.nwc-gate--wizard .nwc-btn-primary {
  background: #0d9488;
  color: #fff;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.22);
}

.nwc-gate--wizard .nwc-btn-primary:hover:not(:disabled) {
  filter: brightness(1.05);
}

.nwc-gate--wizard .nwc-btn-ghost {
  background: transparent;
  color: #64748b;
  border: 0;
  box-shadow: none;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.35rem 0.5rem;
}

.nwc-otp-input {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  letter-spacing: 0.4em;
  font-size: 1.15rem !important;
  font-weight: 700;
  padding: 0.55rem 0.4rem !important;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  color: #0f172a;
}

.nwc-otp-input:focus {
  outline: none;
  border-color: #0d9488;
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.14);
}

.nwc-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  margin: 0.5rem 0 0.35rem;
  font-size: 0.62rem;
  color: #94a3b8;
}

.nwc-privacy-ico {
  width: 0.75rem;
  height: 0.75rem;
  display: inline-flex;
  color: #94a3b8;
}

.nwc-privacy-ico svg {
  width: 100%;
  height: 100%;
}

.nwc-btn-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: #99f6e4;
  color: #115e59;
  border: 0;
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 10px;
  padding: 0.52rem 0.75rem;
  box-shadow: none;
}

.nwc-btn-start:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  filter: none;
}

.nwc-btn-start:not(:disabled) {
  background: #0d9488;
  color: #fff;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.22);
  cursor: pointer;
}

.nwc-verified-banner {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 0.75rem;
  font-weight: 650;
  margin-bottom: 0.35rem;
}

.nwc-verified-check {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #0d9488;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  flex-shrink: 0;
}

.nwc-gate--compact .nwc-gate-intro--verify {
  display: none;
}

.nwc-gate--compact .nwc-gate-intro-sub {
  display: none;
}

.nwc-gate-lead {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  color: var(--nwc-muted);
  line-height: 1.45;
}

.nwc-gate-form label {
  display: block;
  font-size: 0.7rem;
  font-weight: 650;
  color: var(--nwc-muted);
  margin: 0.5rem 0 0.25rem;
}

.nwc-gate-form input {
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid var(--nwc-border);
  background: rgba(0, 0, 0, 0.32);
  color: var(--nwc-text);
  font: inherit;
  font-size: 0.88rem;
  padding: 0.55rem 0.7rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.nwc-gate--wizard .nwc-gate-form input:focus {
  outline: none;
  border-color: #0d9488;
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.14);
}

.nwc-gate-form input::placeholder {
  color: color-mix(in srgb, var(--nwc-muted) 70%, transparent);
}

.nwc-gate-msg {
  margin: 0 0 0.45rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #0d9488;
}

.nwc-gate-msg--error {
  color: #dc2626;
}

.nwc-gate-field[hidden],
.nwc-field[hidden],
.nwc-gate-step[hidden] {
  display: none !important;
}

.nwc-hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.nwc-gate--compact .nwc-gate-lead {
  font-size: 0.74rem;
}

/* Verified chip */
.nwc-verified-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--nwc-accent);
  background: var(--nwc-accent-dim);
  border: 1px solid color-mix(in srgb, var(--nwc-accent) 30%, transparent);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  margin-bottom: 0.35rem;
}

/* —— Mobile sheet —— */
@media (max-width: 480px) {
  .nwc-root.nwc-pos-right,
  .nwc-root.nwc-pos-left {
    right: 12px;
    left: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    align-items: stretch;
  }

  .nwc-fab {
    align-self: flex-end;
  }

  .nwc-root.nwc-pos-left .nwc-fab {
    align-self: flex-start;
  }

  .nwc-panel {
    width: 100%;
    max-height: min(72vh, calc(100dvh - 5.5rem));
    display: flex;
    flex-direction: column;
    border-radius: 18px 18px 16px 16px;
  }

  .nwc-root .nwc-panel.nwc-panel--light {
    max-height: min(70vh, calc(100dvh - 5.5rem)) !important;
  }

  .nwc-panel.nwc-panel--open {
    animation: nwc-sheet-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .nwc-panel-body {
    overflow: auto;
    flex: 1;
  }

  .nwc-transcript {
    max-height: 180px;
  }

  @keyframes nwc-sheet-in {
    from {
      opacity: 0;
      transform: translateY(24px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

@supports not (color: color-mix(in srgb, white 50%, black)) {
  .nwc-root {
    --nwc-accent-dim: rgba(62, 224, 184, 0.16);
  }
  .nwc-fab {
    background: linear-gradient(145deg, var(--nwc-accent), #2aa890);
    box-shadow: 0 10px 28px rgba(62, 224, 184, 0.35);
  }
  .nwc-line--user .nwc-bubble {
    background: rgba(126, 182, 255, 0.16);
    border-color: rgba(126, 182, 255, 0.28);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nwc-fab,
  .nwc-fab-ring,
  .nwc-panel,
  .nwc-viz-bar,
  .nwc-line,
  .nwc-status-dot,
  .nwc-brand-mark::after {
    animation: none !important;
    transition: none !important;
  }
}
