.nwd-wm-shell,
.nwd-wm-shell * {
  box-sizing: border-box;
}

.nwd-wm-shell {
  --nwd-wm-top: 48px;
  --nwd-wm-gap: 8px;
  --nwd-wm-knob-height: 44px;
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 999999;
  pointer-events: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.nwd-wm-knob {
  pointer-events: auto;
  position: fixed;
  top: var(--nwd-wm-top);
  left: 50%;
  transform: translateX(-50%);
  min-height: var(--nwd-wm-knob-height);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  padding: 9px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(17,17,17,.96);
  color: #fff;
  box-shadow: 0 10px 26px rgba(0,0,0,.26);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  font-weight: 700;
  letter-spacing: .2px;
  white-space: nowrap;
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.nwd-wm-knob:hover,
.nwd-wm-knob:focus-visible {
  background: #222;
  outline: 3px solid rgba(255, 193, 7, .62);
  outline-offset: 2px;
}

.nwd-wm-caret {
  transition: transform .25s ease;
}

.nwd-wm-shell.is-open .nwd-wm-caret {
  transform: rotate(180deg);
}

.nwd-wm-panel {
  pointer-events: auto;
  position: fixed;
  top: calc(var(--nwd-wm-top) + var(--nwd-wm-knob-height) + var(--nwd-wm-gap));
  left: 50%;
  width: min(390px, calc(100vw - 24px));
  max-height: calc(100vh - var(--nwd-wm-top) - var(--nwd-wm-knob-height) - 24px);
  overflow: auto;
  transform: translate(-50%, -10px) scale(.985);
  transform-origin: top center;
  opacity: 0;
  visibility: hidden;
  transition: transform .3s cubic-bezier(.22,.8,.24,1), opacity .22s ease, visibility .3s;
  background: rgba(18,18,18,.985);
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.38);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nwd-wm-shell.is-open .nwd-wm-panel {
  transform: translate(-50%, 0) scale(1);
  opacity: 1;
  visibility: visible;
}

.nwd-wm-panel-inner {
  padding: 18px;
}

.nwd-wm-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.nwd-wm-header strong {
  display: block;
  font-size: 19px;
  line-height: 1.15;
}

.nwd-wm-header span {
  display: block;
  margin-top: 4px;
  opacity: .68;
  font-size: 12px;
}

.nwd-wm-close {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.nwd-wm-close:hover,
.nwd-wm-close:focus-visible {
  background: rgba(255,255,255,.09);
  outline: 2px solid rgba(255,193,7,.6);
  outline-offset: 2px;
}

.nwd-wm-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.nwd-wm-item {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.045);
  color: #fff !important;
  text-decoration: none !important;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.nwd-wm-item:hover,
.nwd-wm-item:focus-visible {
  transform: translateY(-1px);
  background: rgba(255,255,255,.1);
  border-color: rgba(255,193,7,.65);
  outline: none;
}

.nwd-wm-icon {
  width: 32px;
  height: 32px;
  font-size: 23px;
  display: grid;
  place-items: center;
  flex: 0 0 32px;
}

.nwd-wm-item-copy {
  min-width: 0;
}

.nwd-wm-item-copy strong {
  display: block;
  font-size: 14px;
  line-height: 1.25;
}

.nwd-wm-item-copy small {
  display: block;
  margin-top: 2px;
  color: rgba(255,255,255,.62);
  font-size: 11px;
  line-height: 1.3;
}

.nwd-wm-footer {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 11px;
  opacity: .58;
  text-align: center;
}

@media (max-width: 782px) {
  .nwd-wm-shell {
    --nwd-wm-gap: 6px;
    --nwd-wm-knob-height: 42px;
  }

  .nwd-wm-knob {
    font-size: 13px;
    padding: 8px 13px;
  }

  .nwd-wm-panel {
    width: min(360px, calc(100vw - 16px));
  }
}

@media (max-width: 480px) {
  .nwd-wm-panel-inner {
    padding: 14px;
  }

  .nwd-wm-item-copy small {
    display: none;
  }

  .nwd-wm-item {
    min-height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nwd-wm-panel,
  .nwd-wm-caret,
  .nwd-wm-item,
  .nwd-wm-knob {
    transition: none;
  }
}

/* v1.4.0 message indicators and built-in contact form */
.nwd-wm-badge,
.nwd-wm-knob-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ffc107;
  color: #111;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  vertical-align: middle;
}

.nwd-wm-knob-badge {
  min-width: 22px;
  height: 22px;
  box-shadow: 0 0 0 2px rgba(255,255,255,.1);
}

.nwd-contact-form {
  width: 100%;
  max-width: 760px;
}

.nwd-contact-form p {
  margin: 0 0 16px;
}

.nwd-contact-form label {
  display: block;
  font-weight: 600;
}

.nwd-contact-form input[type="text"],
.nwd-contact-form input[type="email"],
.nwd-contact-form input[type="tel"],
.nwd-contact-form select,
.nwd-contact-form textarea {
  width: 100%;
  margin-top: 7px;
  padding: 11px 12px;
  border: 1px solid #c9c9c9;
  border-radius: 7px;
  background: #fff;
  color: #111;
  font: inherit;
}

.nwd-contact-form textarea {
  resize: vertical;
}

.nwd-contact-form button[type="submit"] {
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.nwd-contact-consent label {
  font-weight: 400;
}

.nwd-contact-hp {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.nwd-contact-success,
.nwd-contact-error {
  max-width: 760px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 7px;
}

.nwd-contact-success {
  border: 1px solid #46b450;
  background: #ecf8ee;
}

.nwd-contact-error {
  border: 1px solid #d63638;
  background: #fff1f1;
}
