:root {
  --nvx-wa-green: #0b806b;
  --nvx-wa-green-dark: #075e54;
  --nvx-wa-ink: #123b52;
  --nvx-wa-muted: #688191;
  --nvx-wa-line: #d9e7e8;
  --nvx-wa-bg: #f3f8f8;
  --nvx-wa-orange: #f58220;
}

html.nvx-wa-open { overflow: hidden; }

.nvx-wa-nav-button { position: relative; }
.nvx-wa-nav-button em {
  margin-left: auto;
  padding: 3px 6px;
  border-radius: 999px;
  background: #0b806b;
  color: #fff;
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .6px;
}

.nvx-wa-overlay {
  position: fixed;
  inset: 0;
  z-index: 100010;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(2, 27, 36, .79);
  backdrop-filter: blur(10px);
}

.nvx-wa-modal {
  display: flex;
  flex-direction: column;
  width: min(1220px, 100%);
  height: min(880px, calc(100vh - 44px));
  max-height: calc(100vh - 44px);
  overflow: hidden;
  border: 1px solid rgba(168, 220, 211, .58);
  border-radius: 22px;
  background: var(--nvx-wa-bg);
  box-shadow: 0 38px 110px rgba(0, 24, 31, .45);
  color: var(--nvx-wa-ink);
}

.nvx-wa-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 19px 24px;
  background: linear-gradient(118deg, #053f42, #076557 58%, #0b806b);
  color: #fff;
}

.nvx-wa-brand-mark {
  display: grid;
  flex: 0 0 48px;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 15px;
  background: rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
  font-size: 17px;
  font-weight: 950;
  letter-spacing: -.5px;
}

.nvx-wa-heading { min-width: 0; }
.nvx-wa-heading p,
.nvx-wa-card-head p,
.nvx-wa-guide > p,
.nvx-wa-side-head p,
.nvx-wa-evidence-cards p,
.nvx-wa-webhook-card p {
  margin: 0 0 4px;
  color: #6edac5;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 1.55px;
}
.nvx-wa-heading h2 { margin: 0; font-size: 23px; line-height: 1.2; }
.nvx-wa-heading > span { display: block; margin-top: 4px; color: #c7e6df; font-size: 11px; }

.nvx-wa-header-chips {
  display: flex;
  flex: 1;
  justify-content: flex-end;
  gap: 6px;
}
.nvx-wa-header-chips span {
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #d9f1ec;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .7px;
}

.nvx-wa-close {
  display: grid;
  flex: 0 0 38px;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .23);
  border-radius: 11px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}

.nvx-wa-status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-bottom: 1px solid var(--nvx-wa-line);
  background: var(--nvx-wa-line);
}
.nvx-wa-status-strip article {
  min-width: 0;
  padding: 11px 15px;
  background: #fff;
}
.nvx-wa-status-strip small,
.nvx-wa-status-strip b,
.nvx-wa-status-strip span { display: block; }
.nvx-wa-status-strip small { margin-bottom: 3px; color: #6b8692; font-size: 7px; font-weight: 950; letter-spacing: .9px; }
.nvx-wa-status-strip b { overflow: hidden; color: #1d5364; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.nvx-wa-status-strip span { overflow: hidden; margin-top: 3px; color: #82949d; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.nvx-wa-status-strip article.ready { box-shadow: inset 3px 0 #21a274; }
.nvx-wa-status-strip article.warning { box-shadow: inset 3px 0 #e27b24; }
.nvx-wa-status-strip article.ready b { color: #16724f; }
.nvx-wa-status-strip article.warning b { color: #b55a17; }
.nvx-wa-status-strip button {
  margin-top: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #087763;
  cursor: pointer;
  font-size: 8px;
  font-weight: 900;
}
.nvx-wa-status-strip button:disabled { cursor: wait; opacity: .55; }

.nvx-wa-tabs {
  display: flex;
  gap: 3px;
  padding: 9px 18px 0;
  border-bottom: 1px solid var(--nvx-wa-line);
  background: #fff;
}
.nvx-wa-tabs button {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: -1px;
  padding: 10px 13px 11px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #6c8490;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 850;
}
.nvx-wa-tabs button span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  background: #e9f1f1;
  color: #53717c;
  font-size: 8px;
}
.nvx-wa-tabs button.active { border-color: var(--nvx-wa-green); color: #08715f; }
.nvx-wa-tabs button.active span { background: var(--nvx-wa-green); color: #fff; }

.nvx-wa-content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  scrollbar-color: #86aaa5 #edf4f3;
  scrollbar-width: thin;
}
.nvx-wa-content::-webkit-scrollbar,
.nvx-wa-template-list::-webkit-scrollbar { width: 9px; }
.nvx-wa-content::-webkit-scrollbar-track,
.nvx-wa-template-list::-webkit-scrollbar-track { background: #edf4f3; }
.nvx-wa-content::-webkit-scrollbar-thumb,
.nvx-wa-template-list::-webkit-scrollbar-thumb { border: 2px solid #edf4f3; border-radius: 999px; background: #86aaa5; }

.nvx-wa-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 295px;
  gap: 17px;
  min-height: 100%;
  padding: 19px;
}
.nvx-wa-panel[hidden] { display: none; }
.nvx-wa-main-card,
.nvx-wa-guide,
.nvx-wa-template-list,
.nvx-wa-event-card,
.nvx-wa-webhook-card {
  border: 1px solid var(--nvx-wa-line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 9px 28px rgba(10, 62, 66, .055);
}
.nvx-wa-main-card { padding: 19px; }
.nvx-wa-card-head,
.nvx-wa-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.nvx-wa-card-head p,
.nvx-wa-side-head p,
.nvx-wa-evidence-cards p,
.nvx-wa-webhook-card p { color: var(--nvx-wa-green); }
.nvx-wa-card-head h3,
.nvx-wa-side-head h3,
.nvx-wa-guide h3,
.nvx-wa-evidence-cards h3,
.nvx-wa-webhook-card h3 { margin: 0; color: #194557; font-size: 16px; }
.nvx-wa-card-head > div > span { display: block; margin-top: 4px; color: #758b95; font-size: 9px; }
.nvx-wa-card-head code { color: #0b806b; font-size: 9px; }

.nvx-wa-secondary,
.nvx-wa-side-head button,
.nvx-wa-webhook-card button {
  padding: 8px 10px;
  border: 1px solid #cfe0df;
  border-radius: 9px;
  background: #f8fbfb;
  color: #08715f;
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  font-weight: 850;
}

.nvx-wa-safety-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 15px 0;
  padding: 11px 13px;
  border-left: 3px solid var(--nvx-wa-orange);
  border-radius: 9px;
  background: #fff7ef;
}
.nvx-wa-safety-note b { flex: 0 0 auto; color: #b55b18; font-size: 9px; }
.nvx-wa-safety-note span { color: #7d695b; font-size: 9px; line-height: 1.45; }

.nvx-wa-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.nvx-wa-form label,
.nvx-wa-form legend {
  color: #355e6c;
  font-size: 9px;
  font-weight: 850;
}
.nvx-wa-form input,
.nvx-wa-form select,
.nvx-wa-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 11px;
  border: 1px solid #cadcdd;
  border-radius: 9px;
  outline: 0;
  background: #fbfdfd;
  color: #183f50;
  font: inherit;
  font-size: 11px;
}
.nvx-wa-form textarea { min-height: 92px; resize: vertical; line-height: 1.55; }
.nvx-wa-form input:focus,
.nvx-wa-form select:focus,
.nvx-wa-form textarea:focus { border-color: #3b9a89; box-shadow: 0 0 0 3px rgba(11, 128, 107, .1); }
.nvx-wa-form label > small { display: block; margin-top: 4px; color: #81949c; font-size: 7px; font-weight: 550; line-height: 1.4; }
.nvx-wa-wide { grid-column: 1 / -1; }

.nvx-wa-form fieldset {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 11px;
  border: 1px solid #d7e4e4;
  border-radius: 10px;
}
.nvx-wa-form legend { padding: 0 6px; }

.nvx-wa-template-preview {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px;
  border: 1px solid #d6e5e4;
  border-radius: 10px;
  background: #f6faf9;
}
.nvx-wa-template-preview > span { color: #7b9098; font-size: 9px; }
.nvx-wa-template-preview div { flex: 0 0 180px; }
.nvx-wa-template-preview b,
.nvx-wa-template-preview span { display: block; }
.nvx-wa-template-preview b { color: #17604f; font-size: 10px; }
.nvx-wa-template-preview div span { margin-top: 3px; color: #85969d; font-size: 7px; }
.nvx-wa-template-preview p { margin: 0; color: #41636e; font-size: 10px; line-height: 1.5; }

.nvx-wa-parameter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.nvx-wa-no-parameters { padding: 8px 0; color: #758d95; font-size: 9px; }

.nvx-wa-confirm {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #d7e5e4;
  border-radius: 9px;
  background: #f9fbfb;
  cursor: pointer;
}
.nvx-wa-confirm input {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin: 1px 0 0;
  accent-color: var(--nvx-wa-green);
}
.nvx-wa-confirm span,
.nvx-wa-confirm b { display: block; }
.nvx-wa-confirm span { color: #718791; font-size: 8px; font-weight: 600; line-height: 1.5; }
.nvx-wa-confirm b { color: #285768; font-size: 9px; }

.nvx-wa-message {
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.5;
}
.nvx-wa-message.info { background: #eaf5f6; color: #256777; }
.nvx-wa-message.success { background: #e8f7ef; color: #176b49; }
.nvx-wa-message.error { background: #fff0ee; color: #a33d35; }

.nvx-wa-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-top: 2px;
}
.nvx-wa-actions > span { color: #768b94; font-size: 8px; line-height: 1.5; }
.nvx-wa-primary {
  flex: 0 0 auto;
  padding: 11px 15px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #0b806b, #075e54);
  box-shadow: 0 9px 20px rgba(7, 94, 84, .23);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 900;
}
.nvx-wa-primary b { margin-left: 7px; }
.nvx-wa-primary:disabled { cursor: wait; opacity: .6; }

.nvx-wa-guide { align-self: start; padding: 19px; }
.nvx-wa-guide ol { margin: 15px 0; padding-left: 22px; color: #5f7883; font-size: 9px; line-height: 1.65; }
.nvx-wa-guide li::marker { color: var(--nvx-wa-green); font-weight: 900; }
.nvx-wa-guide > div {
  padding: 13px;
  border: 1px solid #d8e6e4;
  border-radius: 11px;
  background: #f6faf9;
}
.nvx-wa-guide > div.success { border-color: #aadac3; background: #eef9f3; }
.nvx-wa-guide > div small,
.nvx-wa-guide > div b,
.nvx-wa-guide > div span { display: block; }
.nvx-wa-guide > div small { color: #708b91; font-size: 7px; font-weight: 950; letter-spacing: .8px; }
.nvx-wa-guide > div b { margin-top: 5px; color: #245766; font-size: 10px; }
.nvx-wa-guide > div span { margin-top: 4px; color: #748a92; font-size: 8px; line-height: 1.5; overflow-wrap: anywhere; }

.nvx-wa-template-list {
  align-self: stretch;
  max-height: calc(100vh - 305px);
  overflow: auto;
  padding: 16px;
}
.nvx-wa-side-head { margin-bottom: 12px; }
.nvx-wa-side-head button { width: 31px; height: 31px; padding: 0; font-size: 15px; }
.nvx-wa-template-row { margin-bottom: 8px; padding: 10px; border: 1px solid #dce8e7; border-radius: 10px; background: #fbfdfd; }
.nvx-wa-template-row > div { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.nvx-wa-template-row small { color: #80939b; font-size: 7px; }
.nvx-wa-template-row > b { display: block; margin-top: 6px; color: #285563; font-size: 9px; overflow-wrap: anywhere; }
.nvx-wa-template-row p { display: -webkit-box; margin: 5px 0 0; overflow: hidden; color: #71858e; font-size: 8px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.nvx-wa-badge {
  display: inline-flex;
  padding: 3px 6px;
  border-radius: 999px;
  background: #edf3f3;
  color: #5f777f;
  font-size: 7px;
  font-weight: 950;
}
.nvx-wa-badge.approved { background: #e4f5eb; color: #16704c; }
.nvx-wa-badge.pending { background: #fff4df; color: #a76111; }
.nvx-wa-badge.rejected,
.nvx-wa-badge.paused,
.nvx-wa-badge.disabled { background: #ffebe9; color: #a33d35; }

.nvx-wa-evidence-panel { display: block; }
.nvx-wa-evidence-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.nvx-wa-evidence-cards article { display: flex; gap: 13px; padding: 15px; border: 1px solid var(--nvx-wa-line); border-radius: 13px; background: #fff; }
.nvx-wa-evidence-cards article > span {
  display: grid;
  flex: 0 0 35px;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 11px;
  background: #e3f2ef;
  color: #08715f;
  font-size: 11px;
  font-weight: 950;
}
.nvx-wa-evidence-cards article.warning > span { background: #fff0e4; color: #c06018; }
.nvx-wa-evidence-cards h3 { font-size: 12px; }
.nvx-wa-evidence-cards ul { margin: 9px 0 0; padding-left: 15px; color: #6c818a; font-size: 8px; line-height: 1.65; }

.nvx-wa-webhook-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; padding: 14px 16px; }
.nvx-wa-webhook-card code { display: block; margin-top: 7px; color: #17604f; font-size: 9px; overflow-wrap: anywhere; }
.nvx-wa-webhook-card > div > span { display: block; margin-top: 5px; color: #7b8e96; font-size: 8px; }

.nvx-wa-event-card { margin-top: 12px; padding: 16px; }
.nvx-wa-event-list { margin-top: 12px; overflow: hidden; border: 1px solid #dce8e7; border-radius: 11px; }
.nvx-wa-event-list article {
  display: grid;
  grid-template-columns: 11px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-top: 1px solid #e7efef;
  background: #fff;
}
.nvx-wa-event-list article:first-child { border-top: 0; }
.nvx-wa-event-dot { width: 8px; height: 8px; border-radius: 50%; background: #7f989f; box-shadow: 0 0 0 3px #edf3f3; }
.nvx-wa-event-dot.accepted,
.nvx-wa-event-dot.completed,
.nvx-wa-event-dot.sent,
.nvx-wa-event-dot.delivered,
.nvx-wa-event-dot.read,
.nvx-wa-event-dot.received { background: #23966b; box-shadow: 0 0 0 3px #e2f4eb; }
.nvx-wa-event-dot.failed,
.nvx-wa-event-dot.rejected { background: #c84940; box-shadow: 0 0 0 3px #fde9e7; }
.nvx-wa-event-list small,
.nvx-wa-event-list b,
.nvx-wa-event-list div > span { display: block; }
.nvx-wa-event-list small { color: #81939a; font-size: 7px; text-transform: uppercase; }
.nvx-wa-event-list b { margin-top: 3px; color: #315965; font-size: 9px; line-height: 1.4; }
.nvx-wa-event-list div > span { margin-top: 2px; color: #87979e; font-size: 7px; overflow-wrap: anywhere; }
.nvx-wa-event-list em { padding: 4px 6px; border-radius: 999px; background: #edf4f3; color: #4d7078; font-size: 7px; font-style: normal; font-weight: 900; text-transform: uppercase; }
.nvx-wa-empty { padding: 18px 10px; color: #81939a; font-size: 9px; text-align: center; }
.nvx-wa-empty.error { color: #a33d35; }

@media (max-width: 960px) {
  .nvx-wa-overlay { padding: 0; }
  .nvx-wa-modal { width: 100%; height: 100vh; max-height: 100vh; border-radius: 0; }
  .nvx-wa-header-chips { display: none; }
  .nvx-wa-status-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nvx-wa-panel { grid-template-columns: 1fr; }
  .nvx-wa-template-list { max-height: none; }
  .nvx-wa-evidence-cards { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .nvx-wa-header { padding: 15px; }
  .nvx-wa-brand-mark { display: none; }
  .nvx-wa-heading h2 { font-size: 19px; }
  .nvx-wa-heading > span { display: none; }
  .nvx-wa-status-strip { grid-template-columns: 1fr; }
  .nvx-wa-tabs { overflow-x: auto; padding-left: 10px; }
  .nvx-wa-tabs button { flex: 0 0 auto; }
  .nvx-wa-panel { padding: 11px; }
  .nvx-wa-main-card { padding: 14px; }
  .nvx-wa-card-head { align-items: flex-start; flex-direction: column; }
  .nvx-wa-form { grid-template-columns: 1fr; }
  .nvx-wa-form fieldset,
  .nvx-wa-parameter-grid { grid-template-columns: 1fr; }
  .nvx-wa-wide { grid-column: auto; }
  .nvx-wa-template-preview { flex-direction: column; }
  .nvx-wa-template-preview div { flex-basis: auto; }
  .nvx-wa-actions { align-items: stretch; flex-direction: column; }
  .nvx-wa-primary { width: 100%; }
  .nvx-wa-webhook-card { align-items: stretch; flex-direction: column; }
}
