/* NorWeb Clinic demo kit: booking widget, WhatsApp preview and mini chat.
   Pages theme it with --nwc-accent, --nwc-on-accent, --nwc-ink, --nwc-muted,
   --nwc-line, --nwc-surface, --nwc-soft and --nwc-font. */
.nwc {
  --w-a: var(--nwc-accent, #0B7A75);
  --w-oa: var(--nwc-on-accent, #FFFFFF);
  --w-ink: var(--nwc-ink, #0F2427);
  --w-mu: var(--nwc-muted, #4E6266);
  --w-ln: var(--nwc-line, #D9E3E1);
  --w-sf: var(--nwc-surface, #FFFFFF);
  --w-so: var(--nwc-soft, #DDF1EC);
  font-family: var(--nwc-font, inherit);
  color: var(--w-ink);
  font-size: 15px;
  line-height: 1.45;
}
.nwc *, .nwc *::before, .nwc *::after { box-sizing: border-box; }
:where(.nwc button, .nwc input, .nwc select) { font: inherit; color: inherit; }
.nwc button:focus-visible, .nwc input:focus-visible, .nwc select:focus-visible {
  outline: 3px solid var(--w-a); outline-offset: 2px;
}

/* Booking widget */
.nwc-book {
  background: var(--w-sf); border: 1px solid var(--w-ln); border-radius: 20px;
  padding: 18px; display: flex; flex-direction: column; gap: 14px; min-height: 540px;
}
.nwc-bh { display: flex; align-items: center; gap: 12px; }
.nwc-mark {
  width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: var(--w-a); color: var(--w-oa); font-weight: 700; font-size: 18px;
}
.nwc-bht { display: flex; flex-direction: column; line-height: 1.25; }
.nwc-bht small { color: var(--w-mu); font-size: 13px; }
.nwc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; counter-reset: st; }
.nwc-steps li {
  counter-increment: st; font-size: 12px; color: var(--w-mu);
  border-top: 3px solid var(--w-ln); padding-top: 6px;
}
.nwc-steps li::before { content: counter(st) ". "; }
.nwc-steps li.on { color: var(--w-ink); border-color: var(--w-a); font-weight: 600; }
.nwc-steps li.done { border-color: var(--w-a); }
.nwc-body { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.nwc-q { margin: 0; font-weight: 600; }
.nwc-muted { color: var(--w-mu); font-weight: 400; }
.nwc-list { display: flex; flex-direction: column; gap: 8px; }
.nwc-opt {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left;
  padding: 11px 14px; min-height: 54px; border-radius: 14px; border: 1px solid var(--w-ln);
  background: var(--w-sf); cursor: pointer; transition: border-color .15s, background .15s;
}
.nwc-opt span { display: flex; flex-direction: column; }
.nwc-opt small { color: var(--w-mu); font-size: 13px; }
.nwc-opt em { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nwc-opt:hover, .nwc-opt.sel { border-color: var(--w-a); background: var(--w-so); }
.nwc-chips, .nwc-days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.nwc-chip {
  border: 1px solid var(--w-ln); border-radius: 999px; padding: 8px 13px; min-height: 40px;
  background: var(--w-sf); white-space: nowrap; cursor: pointer;
}
.nwc-chip.sel { background: var(--w-a); border-color: var(--w-a); color: var(--w-oa); }
.nwc-day {
  flex: 1 0 44px; display: flex; flex-direction: column; align-items: center; line-height: 1.15;
  padding: 7px 4px; border-radius: 12px; border: 1px solid var(--w-ln); background: var(--w-sf); cursor: pointer;
}
.nwc-day b { font-size: 18px; font-variant-numeric: tabular-nums; }
.nwc-day small { font-size: 11px; color: var(--w-mu); }
.nwc-day.sel { border-color: var(--w-a); background: var(--w-so); }
.nwc-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.nwc-slot {
  padding: 8px 4px; min-height: 40px; border-radius: 10px; border: 1px solid var(--w-ln);
  background: var(--w-sf); cursor: pointer; font-variant-numeric: tabular-nums; font-size: 14px;
}
.nwc-slot:hover:not(:disabled) { border-color: var(--w-a); }
.nwc-slot:disabled { cursor: not-allowed; color: var(--w-mu); text-decoration: line-through; opacity: .5; background: transparent; }
.nwc-slot.sel { background: var(--w-a); border-color: var(--w-a); color: var(--w-oa); }
.nwc-sum {
  display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px;
  background: var(--w-so); font-size: 14px;
}
.nwc-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--w-mu); }
.nwc-field input, .nwc-field select {
  min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--w-ln);
  background: var(--w-sf); color: var(--w-ink); font-size: 15px; width: 100%;
}
.nwc-tel { display: flex; align-items: stretch; }
.nwc-tel > span {
  display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--w-ln); border-right: 0;
  border-radius: 10px 0 0 10px; color: var(--w-ink); background: var(--w-so); font-size: 15px;
}
.nwc-tel input { border-radius: 0 10px 10px 0; }
.nwc-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--w-mu); cursor: pointer; }
.nwc-check input { width: 18px; height: 18px; margin-top: 1px; flex: none; accent-color: var(--w-a); }
.nwc-err { margin: 0; color: #A3261E; font-size: 14px; font-weight: 600; }
.nwc-foot { display: flex; gap: 8px; justify-content: flex-end; }
.nwc-btn {
  min-height: 46px; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--w-a);
  background: var(--w-a); color: var(--w-oa); font-weight: 600; cursor: pointer;
}
.nwc-btn:disabled { opacity: .45; cursor: not-allowed; }
.nwc-btn-ghost { background: transparent; color: var(--w-ink); border-color: var(--w-ln); }
.nwc-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; margin: auto 0; padding: 20px 6px; }
.nwc-done p { margin: 0; }
.nwc-tick { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--w-a); color: var(--w-oa); margin-bottom: 6px; }
.nwc-big { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* WhatsApp preview */
.nwc-wa {
  display: flex; flex-direction: column; min-height: 540px; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--w-ln); background: #EFE8DE;
}
.nwc-wa-top { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: #075E54; color: #FFFFFF; }
.nwc-wa-top div { display: flex; flex-direction: column; line-height: 1.2; }
.nwc-wa-top small { font-size: 12px; color: #D5ECE7; }
.nwc-wa-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #FFFFFF; color: #075E54; font-weight: 700; flex: none; }
.nwc-wa-chat { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 14px; overflow-y: auto; max-height: 640px; }
.nwc-wa-msg {
  align-self: flex-start; max-width: 90%; background: #FFFFFF; color: #111B21; font-size: 14px;
  border-radius: 2px 12px 12px 12px; padding: 9px 11px 6px; box-shadow: 0 1px 1px rgba(17, 27, 33, .1);
  animation: nwc-in .3s ease-out;
}
.nwc-wa-msg p { margin: 0 0 4px; line-height: 1.42; overflow-wrap: anywhere; }
.nwc-wa-meta { display: block; text-align: right; font-size: 11px; color: #667781; }
.nwc-wa-btns { display: grid; grid-template-columns: 1fr 1fr; margin: 7px -11px -6px; border-top: 1px solid #E9EDEF; }
.nwc-wa-btns span { text-align: center; padding: 9px 4px; color: #027EB5; font-weight: 600; font-size: 14px; }
.nwc-wa-btns span + span { border-left: 1px solid #E9EDEF; }
.nwc-wa-gap { align-self: center; margin: 4px 0; padding: 4px 10px; border-radius: 8px; background: rgba(255, 255, 255, .85); color: #54656F; font-size: 12px; text-align: center; }
.nwc-wa-hint { margin: auto; max-width: 240px; text-align: center; color: #54656F; font-size: 14px; background: rgba(255, 255, 255, .8); padding: 12px 14px; border-radius: 12px; }
.nwc-wa-typing { align-self: flex-start; display: flex; gap: 4px; background: #FFFFFF; border-radius: 12px; padding: 11px 13px; }
.nwc-wa-typing i { width: 6px; height: 6px; border-radius: 50%; background: #9AA6AC; animation: nwc-dot 1s infinite; }
.nwc-wa-typing i:nth-child(2) { animation-delay: .15s; }
.nwc-wa-typing i:nth-child(3) { animation-delay: .3s; }
.nwc-wa-note { margin: 0; padding: 10px 14px; font-size: 13px; line-height: 1.4; color: var(--w-mu); background: var(--w-sf); border-top: 1px solid var(--w-ln); }
@keyframes nwc-dot { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes nwc-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Mini chat on clinic websites */
.nwc-mini { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.nwc-mini-fab {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 18px;
  border-radius: 999px; border: 0; background: var(--w-a); color: var(--w-oa); font-weight: 700; cursor: pointer;
  box-shadow: 0 8px 24px rgba(15, 36, 39, .18);
}
.nwc-mini-dot { width: 9px; height: 9px; border-radius: 50%; background: #7CE3B4; box-shadow: 0 0 0 3px rgba(124, 227, 180, .35); }
.nwc-mini-panel {
  width: min(340px, calc(100vw - 36px)); max-height: min(520px, 70vh); display: flex; flex-direction: column;
  background: var(--w-sf); border: 1px solid var(--w-ln); border-radius: 18px; overflow: hidden;
  box-shadow: 0 18px 48px rgba(15, 36, 39, .2);
}
.nwc-mini-panel[hidden] { display: none; }
.nwc-mini-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; background: var(--w-a); color: var(--w-oa); }
.nwc-mini-top div { display: flex; flex-direction: column; line-height: 1.2; }
.nwc-mini-top small { font-size: 12px; opacity: .85; }
.nwc-mini-x { width: 36px; height: 36px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, .16); color: inherit; font-size: 22px; cursor: pointer; }
.nwc-mini-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.nwc-mini-m, .nwc-mini-u { margin: 0; padding: 9px 12px; border-radius: 14px; max-width: 90%; }
.nwc-mini-m { background: var(--w-so); align-self: flex-start; border-top-left-radius: 4px; }
.nwc-mini-u { background: var(--w-a); color: var(--w-oa); align-self: flex-end; border-top-right-radius: 4px; }
.nwc-mini-q { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px 14px; border-top: 1px solid var(--w-ln); }
.nwc-mini-q button { border: 1px solid var(--w-ln); background: var(--w-sf); border-radius: 999px; padding: 7px 11px; font-size: 13px; cursor: pointer; text-align: left; }
.nwc-mini-q button:hover { border-color: var(--w-a); }

@media (prefers-reduced-motion: reduce) {
  .nwc *, .nwc *::before, .nwc *::after { animation: none !important; transition: none !important; }
}
