.nhw-portal-body {
  margin: 0;
}

html,
body.nhw-portal-body {
  height: 100%;
}
.nhw-portal-body {
  overflow: hidden;
}

.nhw-portal-login,
.nhw-portal-otp {
  min-height: 100%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at top, #f3f7ff 0%, #f8fbff 45%, #ffffff 100%);
  padding: 24px;
  font-family: 'Jost', 'Poppins', 'Montserrat', sans-serif;
  color: #1e2530;
}

.nhw-portal-register {
  min-height: 100%;
  display: grid;
  place-items: start center;
  background: radial-gradient(circle at top, #f3f7ff 0%, #f8fbff 45%, #ffffff 100%);
  padding: 32px 24px 120px;
  font-family: 'Jost', 'Poppins', 'Montserrat', sans-serif;
  color: #1e2530;
}

.nhw-register-card {
  width: min(760px, 100%);
  text-align: center;
}

.nhw-register-kicker {
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: #7b8798;
  margin-bottom: 8px;
}

.nhw-register-form {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

.nhw-register-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.nhw-register-field {
  text-align: left;
}

.nhw-register-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #2f3a4d;
}

.nhw-register-field input,
.nhw-register-field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #d9e2ef;
  background: #fbfcff;
  font-size: 1rem;
}

.nhw-register-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 16px 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #ffffff 40%);
  display: flex;
  justify-content: center;
  z-index: 5;
}

.nhw-register-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #2e90d1;
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 12px 26px;
  min-width: 200px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 10px 20px rgba(46, 144, 209, 0.25);
  cursor: pointer;
}

.nhw-register-arrow {
  font-size: 1.2rem;
}

.nhw-portal-card {
  width: min(520px, 100%);
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 36px 32px;
  box-shadow: 0 18px 40px rgba(17, 36, 66, 0.12);
  border: 1px solid #e6edf7;
}

.nhw-portal-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.nhw-portal-logo {
  max-width: 200px;
  width: 200px;
  height: auto;
}

.nhw-portal-heading {
  text-align: center;
  font-size: clamp(1.8rem, 1.4rem + 1vw, 2.3rem);
  margin: 6px 0 6px;
}

.nhw-portal-subheading {
  text-align: center;
  color: #5b6678;
  margin-bottom: 22px;
}

.nhw-field {
  margin-bottom: 16px;
}
.nhw-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #2f3a4d;
}

.nhw-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #d9e2ef;
  background: #fbfcff;
}
.nhw-input-wrap.is-error {
  border-color: #d64545;
  box-shadow: 0 0 0 1px rgba(214, 69, 69, 0.15);
}
.nhw-input-wrap input {
  border: 0;
  outline: none;
  flex: 1;
  font-size: 1rem;
  background: transparent;
  color: #1e2530;
}
.nhw-input-prefix {
  font-weight: 600;
  color: #586174;
}
.nhw-input-icon {
  opacity: 0.6;
}

.nhw-portal-legal {
  font-size: 0.9rem;
  color: #5b6678;
  line-height: 1.4;
  text-align: center;
  margin-top: 6px;
}
.nhw-portal-legal a {
  color: #2e90d1;
  text-decoration: underline;
}

.nhw-portal-hint {
  font-size: 0.85rem;
  color: #7b8798;
  text-align: center;
  margin: 8px 0 18px;
}

.nhw-primary-btn,
.nhw-secondary-btn {
  display: block;
  width: 100% !important;
  border: 0;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
}
.nhw-primary-btn.is-loading {
  opacity: 0.7;
  pointer-events: none;
}
.nhw-btn-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-top-color: #000000;
  border-radius: 50%;
  animation: nhw-spin 0.8s linear infinite;
  vertical-align: middle;
}

@keyframes nhw-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.nhw-primary-btn {
  background: #2e90d1;
  color: #fff;
  box-shadow: 0 10px 20px rgba(46, 144, 209, 0.25);
  margin-bottom: 12px;
}
.nhw-secondary-btn {
  background: #eaf4fb;
  color: #2f3a4d;
  margin-bottom: 6px;
}

.nhw-field.is-hidden {
  display: none;
}

.nhw-field-error {
  color: #d64545;
  font-size: 0.85rem;
  margin-top: 6px;
}

.nhw-form-error {
  color: #d64545;
  font-size: 0.9rem;
  margin-top: 10px;
  text-align: center;
  display: none;
}
.nhw-form-error.is-visible {
  display: block;
}

.nhw-portal-otp.is-hidden,
.nhw-portal-login.is-hidden,
.nhw-portal-register.is-hidden,
.nhw-portal-visit.is-hidden,
.nhw-portal-dashboard.is-hidden {
  display: none;
}

.nhw-otp-fields {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 10px;
  justify-content: center;
}
.nhw-otp-input {
  text-align: center;
  padding: 12px 0;
  font-size: 1.2rem;
  border-radius: 10px;
  border: 1px solid #d9e2ef;
  background: #fbfcff;
}
.nhw-otp-input:focus {
  outline: none;
  border-color: #2e90d1;
  box-shadow: 0 0 0 2px rgba(46, 144, 209, 0.15);
}
.nhw-otp-error {
  color: #d64545;
  font-size: 0.9rem;
  text-align: center;
  min-height: 20px;
  margin-top: 10px;
  margin-bottom: 6px;
}

.nhw-link-btn {
  border: 0;
  background: transparent;
  color: #5b6678;
  text-decoration: underline;
  cursor: pointer;
  display: block;
  margin: 8px auto 0;
  text-align: center;
}

@media (max-width: 600px) {
  .nhw-otp-fields {
    gap: 6px;
  }
  .nhw-otp-input {
    font-size: 1rem;
    padding: 10px 0;
  }
  .nhw-register-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .nhw-portal-card {
    padding: 30px 22px 26px;
    border-radius: 16px;
  }
  .nhw-portal-title {
    letter-spacing: 4px;
  }
  .nhw-portal-tabs {
    gap: 6px;
  }
}
.nhw-portal-otp .nhw-portal-card {
  text-align: center;
}

.nhw-portal-otp .nhw-portal-subheading {
  margin-left: auto;
  margin-right: auto;
  max-width: 420px;
}
.nhw-portal-body {
  font-family: 'Jost', 'Poppins', 'Montserrat', sans-serif;
}

.nhw-portal-visit {
  --theme-icon-light: #a77e61;
  --theme-accent: #a77e61;
  min-height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f6f8fb;
  padding: 28px 24px 0;
  gap: 24px;
  font-family: 'Jost', 'Poppins', 'Montserrat', sans-serif;
  color: #1e2530;
  overflow-y: auto;
}
.nhw-visit-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}
.nhw-visit-logo {
  width: 120px;
  height: auto;
}
.nhw-visit-loading {
  margin-top: 120px;
  text-align: center;
}
.nhw-visit-loading-title {
  font-size: 1.6rem;
  font-weight: 600;
}
.nhw-visit-loading-sub {
  margin-top: 8px;
  color: #7b8798;
}
.nhw-visit-loading-bar {
  margin: 20px auto 0;
  width: min(520px, 90vw);
  height: 10px;
  border-radius: 999px;
  background: #e6ecf2;
  overflow: hidden;
}
.nhw-visit-loading-bar span {
  display: block;
  width: 70px;
  height: 100%;
  background: #2e90d1;
  border-radius: inherit;
  animation: nhw-visit-bar 1.8s ease-in-out infinite;
}
@keyframes nhw-visit-bar {
  0% { transform: translateX(-10px); }
  50% { transform: translateX(220px); }
  100% { transform: translateX(-10px); }
}
.nhw-visit-shell {
  width: min(1100px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
  padding-bottom: 120px;
}
.nhw-visit-main {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 10px 24px rgba(21, 35, 52, 0.08);
}
.nhw-visit-main.is-questionnaire .nhw-visit-kicker,
.nhw-visit-main.is-questionnaire .nhw-visit-title {
    text-align: center;
}
.nhw-visit-main.is-checkout .nhw-visit-kicker,
.nhw-visit-main.is-checkout .nhw-visit-title,
.nhw-visit-main.is-checkout .nhw-visit-subtitle {
  text-align: center;
}
.nhw-visit-main.is-checkout-visit-type .nhw-visit-kicker,
.nhw-visit-main.is-checkout-visit-type .nhw-visit-title,
.nhw-visit-main.is-checkout-visit-type .nhw-visit-subtitle {
  display: none;
}
.nhw-visit-main.is-checkout-complete .nhw-visit-logo-wrap,
.nhw-visit-main.is-checkout-complete .nhw-visit-progress-horizontal,
.nhw-visit-main.is-checkout-complete .nhw-visit-kicker,
.nhw-visit-main.is-checkout-complete .nhw-visit-title,
.nhw-visit-main.is-checkout-complete .nhw-visit-subtitle {
  display: none;
}

.nhw-visit-progress-horizontal {
    display: none;
    margin: 8px auto 28px;
    width: min(720px, 100%);
}

.nhw-visit-progress-track {
    background: #e6e9ee;
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
}

.nhw-visit-progress-fill {
    display: block;
    height: 100%;
    width: calc(var(--progress, 0) * 100%);
    background: var(--theme-accent);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.nhw-visit-main.is-questionnaire-started .nhw-visit-progress-fill {
    width: calc(var(--qi-progress, var(--progress, 0)) * 100%);
}

.nhw-visit-main.is-questionnaire-started .nhw-visit-progress-horizontal {
    display: block;
}

.nhw-visit-main.is-questionnaire-started ~ .nhw-visit-steps::before {
    display: none;
}
.nhw-visit-main.is-questionnaire-started ~ .nhw-visit-steps::after {
    display: none;
}

.nhw-visit-main.is-questionnaire-started ~ .nhw-visit-steps .nhw-visit-progress-badge {
    display: none;
}
.nhw-visit-kicker {
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: #7b8798;
  text-transform: uppercase;
}
.nhw-visit-kicker:empty {
  display: none;
}
.nhw-visit-title {
  font-size: 1.7rem;
  margin: 10px 0 24px;
}
.nhw-visit-subtitle {
  margin: -12px auto 26px;
  max-width: 520px;
  text-align: center;
  color: #7b8798;
}
.nhw-visit-subtitle:empty {
  display: none;
}
.nhw-visit-form {
  display: grid;
  gap: 16px;
}
.nhw-visit-form.is-hidden {
  display: none;
}
.nhw-visit-question.is-hidden {
  display: none;
}
.nhw-visit-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.nhw-visit-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: #2f3a4d;
}
.nhw-visit-form input,
.nhw-visit-form select {
  border: 1px solid #d9e2ef;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.95rem;
  background: #fbfcff;
}
.nhw-visit-placeholder {
  background: #f7f8fb;
  border: 1px dashed #d9e2ef;
  border-radius: 12px;
  padding: 24px;
  color: #6b7280;
}
.nhw-visit-symptom-list {
  display: grid;
  gap: 16px;
  margin-top: 6px;
}
.nhw-visit-form label.nhw-visit-symptom-item {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(21, 35, 52, 0.08);
  border: 1px solid #e7edf5;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #1f2a37;
  width: 100%;
}
.nhw-visit-symptom-item span {
  line-height: 1.35;
}
.nhw-visit-symptom-item input {
  margin: 0;
}
.nhw-visit-symptom-item input {
  width: 18px;
  height: 18px;
  accent-color: var(--theme-accent);
}
.nhw-visit-other {
  margin-top: 26px;
}
.nhw-visit-other-title {
  font-weight: 700;
  margin-bottom: 6px;
  color: #1e2530;
}
.nhw-visit-other-sub {
  font-size: 0.9rem;
  color: #7b8798;
  margin-bottom: 12px;
}
.nhw-visit-other-input {
  width: 100%;
  border: 1px solid #d9e2ef;
  border-radius: 12px;
  padding: 14px;
  font-size: 0.95rem;
  background: #fbfcff;
  resize: vertical;
}
.nhw-visit-height-weight {
  display: grid;
  gap: 18px;
  max-width: 720px;
  margin: 0 auto;
}
.nhw-visit-hw-row {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.nhw-visit-height-weight input {
  border: 1px solid #d9e2ef;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 1rem;
  background: #fbfcff;
}

.nhw-telegra-question {
  max-width: 820px;
  margin: 0 auto;
}
.nhw-telegra-loading,
.nhw-telegra-error,
.nhw-telegra-empty {
  text-align: center;
  color: #6b7280;
  padding: 18px 0;
}
.nhw-telegra-options {
  display: grid;
  gap: 16px;
  margin-top: 6px;
}
label.nhw-telegra-option {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  position: relative;
  padding: 16px 18px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(21, 35, 52, 0.08);
  border: 1px solid #e7edf5;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #1f2a37;
  line-height: 1.55;
  cursor: pointer;
  user-select: none;
}
.nhw-telegra-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.nhw-telegra-indicator {
  width: 18px;
  height: 18px;
  border: 2px solid #cbd5e1;
  display: inline-block;
  box-sizing: border-box;
  flex: 0 0 auto;
  background: #ffffff;
}
.nhw-telegra-option input[type="radio"] + .nhw-telegra-indicator {
  border-radius: 999px;
}
.nhw-telegra-option input[type="checkbox"] + .nhw-telegra-indicator {
  border-radius: 4px;
}
.nhw-telegra-option input:checked + .nhw-telegra-indicator {
  border-color: var(--theme-accent);
  background: var(--theme-accent);
}
.nhw-telegra-option input[type="radio"]:checked + .nhw-telegra-indicator::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ffffff;
  margin: 3px auto 0;
}
.nhw-telegra-option input[type="checkbox"]:checked + .nhw-telegra-indicator::after {
  content: "";
  display: block;
  width: 10px;
  height: 6px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(-45deg);
  margin: 4px auto 0;
}
.nhw-telegra-label {
  line-height: 1.85;
  display: block;
  white-space: normal;
}
.nhw-telegra-desc {
  text-align: center;
  color: #7b8798;
  margin: -8px auto 16px;
  max-width: 620px;
}
.nhw-telegra-input-wrap {
  margin: 10px auto 0;
  max-width: 680px;
}
.nhw-telegra-text {
  width: 100%;
  border: 1px solid #d9e2ef;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 1rem;
  background: #fbfcff;
}
.nhw-telegra-upload {
  margin: 10px auto 0;
  max-width: 680px;
  text-align: center;
}
.nhw-telegra-file {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.nhw-telegra-dropzone {
  border: 1.5px dashed #e2e8f0;
  border-radius: 14px;
  padding: 28px 24px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.04);
  display: grid;
  gap: 6px;
  justify-items: center;
  color: #4b5563;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.nhw-telegra-dropzone.is-dragover {
  border-color: var(--theme-accent);
  box-shadow: 0 12px 28px rgba(167, 126, 97, 0.2);
  background: #fffaf6;
}
.nhw-telegra-drop-icon {
  color: #94a3b8;
}
.nhw-telegra-drop-title {
  font-weight: 700;
  color: #374151;
}
.nhw-telegra-drop-sub {
  font-size: 13px;
  color: #6b7280;
}
.nhw-telegra-upload-help {
  margin-top: 10px;
  color: #6b7280;
}
.nhw-telegra-upload-preview {
  margin-top: 12px;
}
.nhw-telegra-upload-preview.is-hidden {
  display: none;
}
.nhw-telegra-preview-img {
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid #e7edf5;
}
.nhw-telegra-file-chip {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #374151;
  font-weight: 600;
  margin: 4px;
}
.nhw-telegra-file-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  margin-right: 8px;
}
.nhw-telegra-agreement {
  max-width: 720px;
  margin: 0 auto;
}
.nhw-telegra-agreement-text {
  max-height: 240px;
  overflow: auto;
  padding: 18px 18px 8px;
  border: 1px solid #e7edf5;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.04);
  color: #374151;
  line-height: 1.5;
}
.nhw-telegra-agreement-text p {
  margin: 10px 0;
}
.nhw-telegra-agreement-text ul,
.nhw-telegra-agreement-text ol {
  margin: 8px 0 12px 18px;
}
.nhw-telegra-agreement-text li {
  margin: 6px 0;
}
.nhw-telegra-agreement-title {
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 13px;
  color: #1f2937;
  margin-bottom: 6px;
}
.nhw-telegra-agreement-subtitle {
  font-weight: 700;
  margin: 12px 0 6px;
  color: #1f2937;
}
.nhw-telegra-consent {
  display: flex !important;
  align-items: center;
  gap: 12px;
  margin: 10px 0 16px;
}
.nhw-telegra-consent a {
  color: var(--theme-accent);
  text-decoration: none;
  font-weight: 700;
}
.nhw-telegra-consent a:hover {
  text-decoration: underline;
}
.nhw-telegra-consent input {
  width: 18px;
  height: 18px;
  accent-color: var(--theme-accent);
}
.nhw-telegra-signature-label {
  font-weight: 700;
  margin-bottom: 8px;
}
.nhw-telegra-canvas {
  width: 100%;
  border: 1px solid #d9e2ef;
  border-radius: 12px;
  background: #ffffff;
  touch-action: none;
}
.nhw-telegra-clear {
  margin-top: 10px;
  border: 1px solid var(--theme-accent) !important;
  color: var(--theme-accent) !important;
  background: #ffffff !important;
  border-radius: 10px;
  padding: 10px 14px;
}
.nhw-visit-inline-error {
  margin-top: 16px;
  color: #a81f1f;
  font-weight: 600;
}
.nhw-visit-inline-error.is-hidden {
  display: none;
}
.nhw-visit-medications {
  display: grid;
  gap: 16px;
}
.nhw-visit-allergies {
  display: grid;
  gap: 16px;
}
.nhw-visit-med-empty {
  text-align: center;
  color: #7b8798;
  padding: 18px;
  border: 1px dashed #d9e2ef;
  border-radius: 12px;
}
.nhw-visit-allergy-empty {
  text-align: center;
  color: #7b8798;
  padding: 18px;
  border: 1px dashed #d9e2ef;
  border-radius: 12px;
}
.nhw-visit-med-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #e6ecf2;
}
.nhw-visit-allergy-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #e6ecf2;
}
.nhw-visit-med-card:last-child {
  border-bottom: none;
}
.nhw-visit-allergy-card:last-child {
  border-bottom: none;
}
.nhw-visit-med-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(46, 173, 143, 0.12);
  color: #2ead8f;
  display: grid;
  place-items: center;
  font-size: 1rem;
}
.nhw-visit-allergy-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(220, 38, 38, 0.12);
  color: #dc2626;
  display: grid;
  place-items: center;
  font-size: 1rem;
}
.nhw-visit-med-name {
  font-weight: 700;
  color: #1f2a37;
}
.nhw-visit-allergy-name {
  font-weight: 700;
  color: #1f2a37;
}
.nhw-visit-med-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: #7b8798;
}
.nhw-visit-allergy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: #7b8798;
}
.nhw-visit-med-actions {
  display: flex;
  gap: 8px;
}
.nhw-visit-med-actions button {
  border: 1px solid #d9e2ef;
  background: #fff;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  padding: 0;
}
.nhw-visit-med-actions .nhw-visit-med-delete {
  color: #a81f1f;
}
.nhw-visit-med-actions .nhw-visit-allergy-delete {
  color: #a81f1f;
}
.nhw-visit-add-med {
  justify-self: center;
  border: 0;
  border-radius: 10px;
  background: #a77e61 !important;
  color: #fff !important;
  padding: 12px 28px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  justify-content: center;
}
.nhw-visit-add-allergy {
  justify-self: center;
  border: 0;
  border-radius: 10px;
  background: #a77e61 !important;
  color: #fff !important;
  padding: 12px 28px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  justify-content: center;
}
.nhw-visit-add-med:hover,
.nhw-visit-add-med:focus {
  background: #c39a7f !important;
}
.nhw-visit-add-allergy:hover,
.nhw-visit-add-allergy:focus {
  background: #c39a7f !important;
}
.nhw-visit-add-icon {
  font-size: 1.2rem;
}
.nhw-visit-form label.nhw-visit-med-confirm {
  display: inline-flex !important;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  color: #4b5563;
  justify-content: center;
  margin: 0 auto;
}
.nhw-visit-form label.nhw-visit-allergy-confirm {
  display: inline-flex !important;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  color: #4b5563;
  justify-content: center;
  margin: 0 auto;
}
.nhw-visit-med-confirm input {
  width: 18px;
  height: 18px;
  accent-color: var(--theme-accent);
  margin: 0;
}
.nhw-visit-allergy-confirm input {
  width: 18px;
  height: 18px;
  accent-color: var(--theme-accent);
  margin: 0;
}
.nhw-visit-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2000;
}
.nhw-visit-modal.is-hidden {
  display: none;
}
.nhw-visit-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.nhw-visit-modal-card {
  position: relative;
  width: min(420px, 92vw);
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  z-index: 1;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
  display: grid;
  gap: 14px;
}
.nhw-visit-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nhw-visit-modal-close {
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
}
.nhw-visit-modal-sub {
  color: #7b8798;
  font-size: 0.9rem;
}
.nhw-visit-modal-card label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: #2f3a4d;
}
.nhw-visit-modal-card input {
  border: 1px solid #d9e2ef;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.95rem;
  background: #fbfcff;
}
.nhw-visit-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 6px;
}
.nhw-visit-modal-actions button {
  border: 0;
  border-radius: 10px;
  padding: 12px 14px;
  font-weight: 700;
  cursor: pointer;
}
.nhw-visit-modal-cancel {
  background: #ffffff !important;
  border: 1px solid #a77e61 !important;
  color: #a77e61 !important;
}
.nhw-visit-modal-save {
  background: #a77e61 !important;
  color: #fff !important;
}
.nhw-visit-modal-save:hover,
.nhw-visit-modal-save:focus {
  background: #c39a7f !important;
}
.nhw-visit-delete-card {
  width: min(420px, 92vw);
  padding: 20px 24px;
}
.nhw-visit-delete-confirm {
  background: #ff4d4f !important;
  color: #fff !important;
}
.nhw-visit-delete-confirm:hover,
.nhw-visit-delete-confirm:focus {
  background: #ff6b6d !important;
}
.nhw-visit-steps {
  position: relative;
  padding: 10px 0 10px 44px;
  --progress: 0;
  overflow: visible;
}
.nhw-visit-steps::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 18px;
  bottom: 18px;
  width: 4px;
  background: #e2e8f0;
  border-radius: 999px;
}
.nhw-visit-steps::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 18px;
  width: 4px;
  height: calc((100% - 36px) * var(--progress));
  background: var(--theme-accent);
  border-radius: 999px;
}
.nhw-visit-progress-badge {
  position: absolute;
  left: 22px;
  top: calc(18px + (100% - 36px) * var(--progress) - 12px);
  background: #111827;
  color: #fff;
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
  z-index: 3;
}
.nhw-visit-progress-badge::after {
  content: '';
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 6px solid #111827;
}
.nhw-visit-progress-badge.is-hidden {
  display: none;
}
.nhw-visit-step {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
  color: #8a96a8;
}
.nhw-visit-step:last-child {
  margin-bottom: 0;
}
.nhw-step-dot {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nhw-step-dot svg {
  width: 26px;
  height: 26px;
}
.nhw-visit-step.is-active .nhw-step-dot {
  border-color: var(--theme-accent);
  background: rgba(167, 126, 97, 0.12);
}
.nhw-step-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: #1e2530;
}
.nhw-step-sub {
  font-size: 0.78rem;
  color: #7b8798;
}
.nhw-visit-footer {
  position: sticky;
  bottom: 0;
  width: min(1100px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  justify-items: stretch;
  background: #f6f8fb;
  padding: 18px 24px 28px;
  box-shadow: 0 -10px 20px rgba(21, 35, 52, 0.06);
}
.nhw-visit-footer-inner {
  grid-column: 1;
  width: 100%;
  display: flex;
  gap: 24px;
  align-items: stretch;
}
.nhw-visit-footer-inner.has-back .nhw-visit-back,
.nhw-visit-footer-inner.has-back .nhw-visit-next {
  flex: 1;
  min-width: 0;
  width: auto !important;
}
.nhw-visit-footer-inner:not(.has-back) .nhw-visit-next {
  width: 100% !important;
}
.nhw-visit-back {
  flex: 1;
  border: 0;
  border-radius: 12px;
  padding: 14px 18px;
  background: #d9dde3;
  color: #2b3443;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
}
.nhw-visit-back:hover,
.nhw-visit-back:focus {
  background: #cfd5dd;
}
.nhw-visit-back.is-hidden {
  display: none;
}
.nhw-visit-back-icon {
  font-size: 1.2rem;
}
.nhw-portal-visit .nhw-visit-next {
  flex: 1;
  width: 100% !important;
  max-width: none;
  min-width: 0;
  border: 0;
  border-radius: 12px;
  padding: 14px 18px;
  background: #a77e61;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(167, 126, 97, 0.28);
}
.nhw-portal-visit .nhw-visit-next:hover,
.nhw-portal-visit .nhw-visit-next:focus {
  background: #c39a7f !important;
  box-shadow: 0 14px 24px rgba(167, 126, 97, 0.28);
}
.nhw-portal-visit .nhw-visit-next.is-loading {
  opacity: 0.7;
  pointer-events: none;
}
.nhw-portal-visit .nhw-visit-next.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}
.nhw-portal-visit .nhw-visit-next.is-loading .nhw-visit-next-icon {
  opacity: 0;
}
.nhw-visit-back.is-loading {
  opacity: 0.7;
  pointer-events: none;
}
.nhw-visit-next > span:first-child {
  flex: 1;
  text-align: center;
}
.nhw-visit-next-icon {
  font-size: 1.4rem;
}
.nhw-visit-error {
  color: #a81f1f;
  margin-top: 40px;
  font-weight: 600;
}
.nhw-visit-error.is-hidden,
.nhw-visit-loading.is-hidden,
.nhw-visit-shell.is-hidden,
.nhw-visit-footer.is-hidden {
  display: none;
}

/* Force full width when Elementor wraps the portal */
.nhw-portal-body .elementor,
.nhw-portal-body .elementor-section,
.nhw-portal-body .elementor-section.elementor-section-boxed > .elementor-container,
.nhw-portal-body .elementor-container,
.nhw-portal-body .e-con,
.nhw-portal-body .e-con > .e-con-inner {
  max-width: 100% !important;
  width: 100% !important;
}

.nhw-portal-dashboard {
  min-height: 100%;
  width: 100%;
  max-width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: 260px 1fr;
  background: #f6f9fc;
  color: #1e2530;
  font-family: 'Jost', 'Poppins', 'Montserrat', sans-serif;
  box-sizing: border-box;
  height: 100vh;
  overflow: hidden;
}
.nhw-portal-dashboard.is-messages .nhw-dashboard-main {
  padding-bottom: 0;
}

.nhw-sidebar {
  background: #ffffff;
  border-right: 1px solid #eef2f7;
  padding: 18px 0px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
  transition: width 0.2s ease;
  position: relative;
  position: sticky;
  top: 0;
  height: 100vh;
}
.nhw-sidebar:hover .nhw-sidebar-nav {
  overflow-y: auto;
}
.nhw-sidebar-brand img {
  width: 120px;
  height: auto;
  transition: opacity 0.2s ease;
  display: block;
  margin: 0 auto;
}
.nhw-sidebar-nav {
  display: grid;
  gap: 6px;
  grid-auto-rows: min-content;
  align-content: start;
  justify-content: start;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(120, 130, 145, 0.45) transparent;
  padding-right: 4px;
  padding-top: 36px;
}
.nhw-sidebar-nav::-webkit-scrollbar {
  width: 6px;
}
.nhw-sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}
.nhw-sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(120, 130, 145, 0.45);
  border-radius: 10px;
}
.nhw-sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(120, 130, 145, 0.7);
}
.nhw-sidebar-nav a {
  text-decoration: none;
  color: #4c5a6b;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nhw-nav-icon {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}
.nhw-nav-label {
  white-space: nowrap;
}
.nhw-sidebar-nav a.is-active {
  background: #eaf4fb;
  color: #1b2a42;
}
.nhw-portal-body .nhw-sidebar-toggle {
  position: absolute;
  top: 8px;
  right: 10px;
  transform: none;
  border: 0 !important;
  background: transparent !important;
  color: #4c5a6b;
  padding: 0;
  border-radius: 0;
  cursor: pointer;
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
  transition: color 0.2s ease;
  opacity: 1;
  appearance: none;
  outline: none;
}
.nhw-portal-body .nhw-sidebar-toggle:hover {
  background: transparent !important;
}
.nhw-portal-body .nhw-sidebar-toggle:hover .nhw-toggle-icon {
  color: #7b8796;
}
.nhw-sidebar.is-collapsed .nhw-sidebar-toggle {
  right: 10px;
}
.nhw-toggle-icon {
  font-size: 18px;
  line-height: 1;
  color: #7b8796;
  font-family: Arial, Helvetica, sans-serif;
}

.nhw-sidebar.is-collapsed {
  width: 70px;
  padding: 18px 10px;
}
.nhw-sidebar.is-collapsed .nhw-sidebar-brand {
  display: none;
}
.nhw-sidebar.is-collapsed .nhw-nav-label {
  display: none;
}
.nhw-sidebar.is-collapsed .nhw-sidebar-nav a {
  justify-content: center;
}
.nhw-sidebar.is-collapsed .nhw-sidebar-toggle {
  right: -14px;
}

.nhw-dashboard-main {
  padding: 22px 24px 60px;
  max-width: 100%;
  overflow-x: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.nhw-dashboard-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}
.nhw-header-icons {
  display: flex;
  gap: 14px;
  font-size: 1.2rem;
}
.nhw-dashboard-page.is-hidden {
  display: none;
}
.nhw-dashboard-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
}
.nhw-dashboard-page[data-dashboard-page="messages"] {
  min-height: 0;
  overflow: hidden;
}
.nhw-dashboard-page[data-dashboard-page="notifications"]:not(.is-hidden) {
  overflow-y: auto;
  height: 100%;
}
.nhw-dashboard-page[data-dashboard-page="provider-group-information"] {
  overflow-y: auto;
}

.nhw-dashboard-tag {
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: #8a96a8;
  margin-bottom: 6px;
}
.nhw-dashboard-title {
  font-size: 1.6rem;
  margin: 0;
}
.nhw-dashboard-text {
  color: #5b6678;
  font-size: 0.95rem;
  margin-top: 6px;
}

.nhw-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 24px;
  max-width: 100%;
}

.nhw-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(21, 35, 52, 0.08);
  min-width: 0;
  font-size: 0.9rem;
}
.nhw-card-image {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 10px;
}
.nhw-card h3 {
  font-size: 1.1rem;
  margin: 6px 0 6px;
}
.nhw-card p {
  font-size: 0.85rem;
  margin: 0;
}
.nhw-notifications .nhw-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nhw-notifications h3 {
  font-size: 1rem;
  margin: 0 0 4px;
}
.nhw-notifications .nhw-card-desc {
  font-size: 0.82rem;
  color: #7b8798;
  margin: 0 0 6px;
}
.nhw-notifications-list {
  max-height: 280px;
  overflow-y: auto;
  padding-right: 6px;
}
.nhw-notifications-list::-webkit-scrollbar {
  width: 6px;
}
.nhw-notifications-list::-webkit-scrollbar-thumb {
  background: #d6dee6;
  border-radius: 6px;
}
.nhw-notification-item {
  border-top: 1px solid #edf2f7;
  padding: 12px 0;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: start;
  gap: 12px;
  min-width: 0;
}
.nhw-notification-icon {
  color: #f2a33a;
  font-size: 1rem;
  margin-top: 2px;
}
.nhw-notification-title {
  font-weight: 600;
  font-size: 0.9rem;
}
.nhw-notification-text {
  color: #5b6678;
  font-size: 0.8rem;
  word-break: break-word;
}
.nhw-notification-meta {
  color: #8a96a8;
  font-size: 0.7rem;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.nhw-notification-time {
  font-size: 0.7rem;
}

.nhw-provider-group-head {
  border-bottom: 1px solid #e7edf3;
  padding-bottom: 16px;
  margin-bottom: 18px;
}
.nhw-provider-group-logo {
  width: 88px;
  height: auto;
  display: block;
  margin-bottom: 12px;
}
.nhw-provider-group-policies {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 260px));
  gap: 22px;
  align-content: start;
}
.nhw-provider-policy-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 330px;
  border: 1px solid #dce4ed;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(21, 35, 52, 0.06);
  overflow: hidden;
  text-decoration: none;
  color: #1f2c47;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.nhw-provider-policy-card:hover,
.nhw-provider-policy-card:focus {
  border-color: #2fb8a4;
  box-shadow: 0 14px 30px rgba(47, 184, 164, 0.16);
  transform: translateY(-2px);
}
.nhw-provider-policy-preview {
  position: relative;
  flex: 1;
  min-height: 260px;
  margin: 10px;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    repeating-linear-gradient(
      to bottom,
      rgba(25, 44, 78, 0.12) 0px,
      rgba(25, 44, 78, 0.12) 1px,
      rgba(255, 255, 255, 0) 1px,
      rgba(255, 255, 255, 0) 16px
    );
  background-size: auto, auto;
}
.nhw-provider-policy-preview iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  pointer-events: none;
  border-radius: 8px;
}
.nhw-provider-policy-preview::before {
  content: "Policy Preview";
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #1f2c47;
  background: #ffffff;
}
.nhw-provider-policy-preview--terms::before {
  content: "TERMS OF USE";
}
.nhw-provider-policy-preview--privacy::before {
  content: "PRIVACY POLICY";
}
.nhw-provider-policy-title {
  padding: 14px 16px 16px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border-top: 1px solid #e7edf3;
}
.nhw-portal-body .nhw-notification-close {
  border: 1px solid #d9a07a;
  background: #fff8f3;
  font-size: 0.85rem;
  color: #a46f4b;
  cursor: pointer;
  line-height: 1;
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  padding: 0;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.nhw-notification-empty {
  color: #8a96a8;
  padding: 12px 0;
  text-align: center;
}
.nhw-notification-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}

.nhw-notifications-section {
  margin-top: 24px;
}
.nhw-notifications-list--full {
  display: grid;
  gap: 16px;
  margin-top: 16px;
  align-content: start;
  overflow: visible;
  padding-right: 0;
}
.nhw-notifications-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.nhw-notifications-header .nhw-link-btn {
  margin: 0;
}
.nhw-notification-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px 18px;
  border: 1px solid #e7edf5;
  box-shadow: 0 10px 22px rgba(21, 35, 52, 0.06);
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 16px;
  align-items: start;
}
.nhw-notification-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #384326;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}
.nhw-notification-card-meta {
  color: #8a96a8;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}
.nhw-notification-card-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1b2a42;
  margin-bottom: 4px;
}
.nhw-notification-card-text {
  color: #5b6678;
  font-size: 0.85rem;
  line-height: 1.5;
}
.nhw-notification-card-close {
  border: 1px solid #d9a07a;
  background: #fff8f3;
  color: #a46f4b;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  aspect-ratio: 1 / 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  box-sizing: border-box;
}
.nhw-notifications-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
  margin-top: auto;
  padding-top: 16px;
  padding-bottom: 10px;
  background: linear-gradient(180deg, rgba(246,249,252,0) 0%, #f6f9fc 40%, #f6f9fc 100%);
}
.nhw-notifications-actions .nhw-link-btn {
  margin: 0;
}


.nhw-dashboard-section {
  margin-top: 26px;
}
.nhw-dashboard-section h3 {
  font-size: 1rem;
}
.nhw-orders-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.nhw-orders-list--full .nhw-order-item {
  margin-bottom: 12px;
}
.nhw-visits-section {
  display: flex;
  flex-direction: column;
}
.nhw-visits-section .nhw-orders-list--full {
  width: 100%;
}
.nhw-order-item {
  background: #ffffff;
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 8px 20px rgba(21, 35, 52, 0.06);
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.nhw-order-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nhw-order-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #eef3f9;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  overflow: hidden;
}
.nhw-order-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nhw-order-title {
  font-weight: 600;
  font-size: 0.9rem;
}
.nhw-order-meta {
  color: #8a96a8;
  font-size: 0.78rem;
}
.nhw-order-sub {
  color: #8a96a8;
  font-size: 0.8rem;
}
.nhw-order-med {
  color: #2e90d1;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 2px;
}
.nhw-order-mid {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-self: center;
}
.nhw-order-status {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 10px;
  text-transform: none;
}
.nhw-order-status.status-completed {
  color: #2f6b2a;
  background: #dff3d4;
}
.nhw-order-status.status-processing {
  color: #8a6d1f;
  background: #fff3cd;
}
.nhw-order-status.status-negative {
  color: #8a1f1f;
  background: #f8d7da;
}
.nhw-order-brand img {
  width: 60px;
  height: auto;
  opacity: 0.7;
}
.nhw-order-action {
  font-size: 1.6rem;
  color: #2e90d1;
  justify-self: end;
  text-align: right;
}
.nhw-order-perform-btn {
  border: 1px solid #2e90d1;
  background: #ffffff;
  color: #2e90d1;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1px;
  text-transform: none;
  padding: 5px 10px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.nhw-order-perform-btn:hover,
.nhw-order-perform-btn:focus {
  background: #2e90d1;
  color: #ffffff;
  border-color: #2e90d1;
}
.nhw-order-item.is-clickable {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nhw-order-item.is-clickable:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(21, 35, 52, 0.1);
}
.nhw-dashboard-page[data-dashboard-page="visit-detail"] .nhw-card {
  margin-top: 18px;
}
.nhw-dashboard-page[data-dashboard-page="visit-detail"] .nhw-visit-summary-card {
  margin-top: 0;
}
.nhw-detail-header {
  margin-bottom: 18px;
}
.nhw-detail-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.nhw-detail-back {
  border: 0;
  background: transparent;
  color: #5b6678;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
}
.nhw-visit-summary-card {
  padding: 18px;
}
.nhw-visit-checkout {
  max-width: 760px;
  margin: 0 auto;
}
.nhw-visit-checkout .nhw-visit-title {
  text-align: center;
}
.nhw-visit-checkout-header {
  text-align: center;
  margin: 0 auto 22px;
  max-width: 680px;
}
.nhw-visit-checkout-subtitle {
  font-weight: 700;
  margin-bottom: 6px;
  color: #1f2a37;
}
.nhw-visit-checkout-desc {
  color: #6b7280;
  line-height: 1.5;
}
.nhw-visit-checkout-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  padding: 18px 0;
}
.nhw-visit-checkout-row,
.nhw-visit-checkout-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
}
.nhw-visit-checkout-row {
  border-bottom: 1px solid #edf2f7;
}
.nhw-visit-checkout-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nhw-visit-checkout-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--theme-accent);
  color: #ffffff;
  font-weight: 700;
}
.nhw-visit-checkout-title {
  font-weight: 700;
  color: #1f2a37;
}
.nhw-visit-checkout-sub {
  color: #6b7280;
  font-size: 0.9rem;
}
.nhw-visit-checkout-price {
  font-weight: 700;
  color: #1f2a37;
}
.nhw-visit-checkout-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-bottom: 1px solid #edf2f7;
}
.nhw-visit-checkout-item:last-of-type {
  border-bottom: none;
}
.nhw-visit-checkout-check {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 12px;
}
.nhw-visit-checkout-item-title {
  font-weight: 600;
  color: #1f2a37;
}
.nhw-visit-checkout-item-sub {
  color: #6b7280;
  font-size: 0.85rem;
}
.nhw-visit-checkout-item-tag {
  color: #6b7280;
  font-weight: 600;
  font-size: 0.85rem;
}
.nhw-visit-checkout-total {
  border-top: 1px solid #edf2f7;
  margin-top: 4px;
}
.nhw-visit-summary-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf2f7;
}
.nhw-visit-summary-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nhw-visit-summary-title {
  font-weight: 600;
}

.nhw-visit-checkout-payment {
  max-width: 900px;
  margin: 0 auto;
}
.nhw-visit-payment-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.nhw-visit-payment-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.nhw-visit-payment-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2a37;
}
.nhw-visit-payment-subtitle {
  color: #6b7280;
  margin-top: 6px;
  font-weight: 500;
}
.nhw-visit-payment-card {
  width: 260px;
  height: 150px;
  border-radius: 16px;
  background: radial-gradient(circle at 30% 20%, #23395d 0%, #0f172a 65%);
  color: #ffffff;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}
.nhw-visit-payment-card::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 18px;
  width: 32px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f7d36a, #d2a845);
}
.nhw-visit-payment-lock {
  position: absolute;
  left: -18px;
  top: 18px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--theme-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.2);
}
.nhw-visit-payment-action {
  background: var(--theme-button-primary, #2b749c);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 600;
  min-width: 240px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}
.nhw-visit-payment-action:hover,
.nhw-visit-payment-action:focus {
  background: var(--theme-button-primary-hover, #2b749ce6);
}
.nhw-visit-payment-info {
  width: 100%;
  max-width: 520px;
  text-align: left;
  color: #1f2a37;
}
.nhw-visit-payment-info h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.nhw-visit-payment-info-row {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  color: #5b6678;
}
.nhw-visit-payment-info-row span:first-child {
  min-width: 120px;
  font-weight: 600;
}
.nhw-visit-payment-placeholder {
  color: #6b7280;
  font-weight: 600;
}
.nhw-visit-payment-note {
  width: 100%;
  max-width: 620px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f8f2ed;
  border: 1px solid #e2cdbc;
  color: #7a5b43;
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: left;
}
.nhw-visit-type {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}
.nhw-visit-type-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: center;
}
.nhw-visit-type-copy h3 {
  margin: 0 0 12px;
  color: #2d3142;
  font-size: clamp(2rem, 3.3vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.nhw-visit-type-subtitle {
  margin: 0;
  color: #687182;
  font-size: 0.98rem;
  line-height: 1.45;
}
.nhw-visit-type-subtitle strong {
  display: block;
  color: #4b5563;
  font-size: 0.98rem;
}
.nhw-visit-type-visual {
  position: relative;
  min-height: 205px;
  display: grid;
  place-items: center;
}
.nhw-visit-type-device {
  width: 215px;
  height: 124px;
  border-radius: 24px;
  background: linear-gradient(140deg, #38c3b2 0%, #2e9fbc 100%);
  box-shadow: 0 24px 40px rgba(24, 65, 94, 0.2);
  border: 6px solid #1f2937;
  transform: rotate(-33deg);
  position: relative;
}
.nhw-visit-type-device::before {
  content: '';
  position: absolute;
  top: 12px;
  right: 22px;
  width: 54px;
  height: 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
}
.nhw-visit-type-device::after {
  content: '';
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6);
}
.nhw-visit-type-bubble {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #31c0ab;
  color: #ffffff;
  font-size: 1.45rem;
  box-shadow: 0 18px 28px rgba(24, 65, 94, 0.18);
}
.nhw-visit-type-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 16px;
  width: 16px;
  height: 16px;
  background: inherit;
  transform: rotate(45deg);
  border-radius: 4px;
}
.nhw-visit-type-bubble--chat {
  top: 30px;
  left: 42px;
}
.nhw-visit-type-bubble--phone {
  top: -2px;
  right: 58px;
}
.nhw-visit-type-label {
  color: #2d3142;
  font-size: 0.95rem;
  font-weight: 700;
}
.nhw-visit-type-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.nhw-visit-type-card {
  appearance: none;
  width: 100%;
  min-width: 0;
  min-height: 272px;
  border: 1.5px solid #e4ecf3;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(19, 46, 77, 0.06);
  padding: 18px 18px 18px;
  text-align: left;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  cursor: pointer;
  position: relative;
  font: inherit;
  color: inherit;
  white-space: normal;
  align-content: start;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.nhw-visit-type-card:hover,
.nhw-visit-type-card:focus {
  border-color: #58d1c2;
  background: rgba(216, 246, 240, 0.32);
  box-shadow: 0 18px 34px rgba(19, 46, 77, 0.09);
  transform: translateY(-1px);
}
.nhw-visit-type-card.is-active {
  border-color: #30c8b7;
  background: rgba(216, 246, 240, 0.34);
  box-shadow: 0 20px 36px rgba(47, 192, 175, 0.12);
}
.nhw-visit-type-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.nhw-visit-type-card-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 12px;
  background: #d8f6f0;
  color: #1ca999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}
.nhw-visit-type-card-price {
  flex: 0 0 auto;
  color: #111827;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.nhw-visit-type-card-body {
  display: grid;
  gap: 12px;
  align-content: start;
}
.nhw-visit-type-card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nhw-visit-type-card-title {
  color: #2d3142;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
  max-width: 100%;
}
.nhw-visit-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #d8f6f0;
  color: #2fa594;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.nhw-visit-type-card-text {
  color: #6b7280;
  line-height: 1.45;
  font-size: 0.82rem;
}
.nhw-visit-type-card-meta {
  display: grid;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid #edf2f7;
  align-content: end;
}
.nhw-visit-type-card-timeline {
  color: #4b5563;
  font-weight: 700;
  font-size: 0.84rem;
}

/* Hard-scope visit type cards so external theme/button CSS cannot break layout */
.nhw-visit-form[data-visit-step="checkout-visit-type"] .nhw-visit-type-options {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
  align-items: stretch !important;
}
.nhw-visit-form[data-visit-step="checkout-visit-type"] .nhw-visit-type-card {
  display: grid !important;
  grid-template-rows: auto 1fr auto !important;
  align-content: start !important;
  align-items: start !important;
  justify-items: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
  text-align: left !important;
  white-space: normal !important;
  overflow: hidden !important;
  background: #ffffff !important;
  border-color: #dbe7ef !important;
  color: #2d3142 !important;
}
.nhw-visit-form[data-visit-step="checkout-visit-type"] .nhw-visit-type-card:hover,
.nhw-visit-form[data-visit-step="checkout-visit-type"] .nhw-visit-type-card:focus {
  background: rgba(216, 246, 240, 0.22) !important;
  border-color: #63d5c8 !important;
}
.nhw-visit-form[data-visit-step="checkout-visit-type"] .nhw-visit-type-card.is-active {
  background: rgba(216, 246, 240, 0.28) !important;
  border-color: #36c7b6 !important;
}
.nhw-visit-form[data-visit-step="checkout-visit-type"] .nhw-visit-type-card-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
}
.nhw-visit-form[data-visit-step="checkout-visit-type"] .nhw-visit-type-card-body,
.nhw-visit-form[data-visit-step="checkout-visit-type"] .nhw-visit-type-card-meta {
  display: grid !important;
  align-content: start !important;
  justify-items: start !important;
}
.nhw-visit-form[data-visit-step="checkout-visit-type"] .nhw-visit-type-card-title,
.nhw-visit-form[data-visit-step="checkout-visit-type"] .nhw-visit-type-card-text,
.nhw-visit-form[data-visit-step="checkout-visit-type"] .nhw-visit-type-card-timeline {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  text-align: left !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}
.nhw-visit-form[data-visit-step="checkout-visit-type"] .nhw-visit-type-card-title,
.nhw-visit-form[data-visit-step="checkout-visit-type"] .nhw-visit-type-card-price,
.nhw-visit-form[data-visit-step="checkout-visit-type"] .nhw-visit-type-card-timeline {
  color: #2d3142 !important;
}
.nhw-visit-form[data-visit-step="checkout-visit-type"] .nhw-visit-type-card-text {
  color: #5f6a79 !important;
}

.nhw-visit-ready {
  width: 100%;
}
.nhw-visit-ready-intro {
  display: grid;
  gap: 26px;
  width: 100%;
  max-width: 860px;
}
.nhw-visit-ready-avatars {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nhw-visit-ready-avatar {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #ffffff 0%, #eaf2f8 100%);
  border: 2px solid #d4e1eb;
  box-shadow: 0 12px 24px rgba(43, 116, 156, 0.1);
  font-size: 1.45rem;
}
.nhw-visit-ready-card {
  background: #ffffff;
  border: 1px solid #dce6ee;
  border-radius: 22px;
  box-shadow: 0 16px 36px rgba(19, 46, 77, 0.08);
  padding: 28px 28px 24px;
}
.nhw-visit-ready-card-title {
  color: #1f2937;
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.nhw-visit-ready-card-subtitle {
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 16px;
}
.nhw-visit-ready-text {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  border: 1px solid #d3dee8;
  border-radius: 16px;
  background: #ffffff;
  padding: 18px 18px;
  color: #1f2937;
  font-size: 1rem;
  line-height: 1.6;
}
.nhw-visit-ready-text:focus {
  outline: none;
  border-color: #a77e61;
  box-shadow: 0 0 0 4px rgba(167, 126, 97, 0.12);
}
.nhw-visit-ready-text:disabled {
  background: #f8fafc;
  color: #94a3b8;
}
.nhw-visit-ready-option {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid #dce6ee;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(19, 46, 77, 0.06);
  cursor: pointer;
}
.nhw-visit-ready-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.nhw-visit-ready-option-box {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid #2bb6a2;
  background: #ffffff;
  margin-top: 2px;
  position: relative;
  flex: 0 0 auto;
}
.nhw-visit-ready-option input:checked + .nhw-visit-ready-option-box {
  background: #2bb6a2;
  border-color: #2bb6a2;
}
.nhw-visit-ready-option input:checked + .nhw-visit-ready-option-box::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.nhw-visit-ready-option-copy {
  display: grid;
  gap: 6px;
}
.nhw-visit-ready-option-title {
  color: #1f2937;
  font-size: 1.2rem;
  font-weight: 700;
}
.nhw-visit-ready-option-subtitle {
  color: #64748b;
  line-height: 1.65;
}
.nhw-visit-ready-notice {
  padding: 14px 16px;
  border-radius: 14px;
  background: #eef9f4;
  border: 1px solid #b9e7cf;
  color: #0f7a4d;
  font-weight: 600;
  line-height: 1.6;
}
.nhw-visit-ready-notice.is-hidden {
  display: none;
}
.nhw-visit-complete {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  min-height: 560px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 28px;
  padding: 24px 0 10px;
}
.nhw-visit-complete-brand img {
  width: 148px;
  height: auto;
  display: block;
}
.nhw-visit-complete-copy {
  display: grid;
  gap: 18px;
  max-width: 720px;
}
.nhw-visit-complete-copy h3 {
  margin: 0;
  color: #2d3142;
  font-size: clamp(1.8rem, 4.2vw, 3.1rem);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.nhw-visit-complete-copy p {
  margin: 0;
  color: #34384a;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 500;
}
.nhw-visit-complete-copy p:last-of-type {
  color: #40485d;
}
.nhw-visit-complete-copy strong {
  color: #2d3142;
  font-size: 1.2em;
  white-space: nowrap;
}
.nhw-visit-complete-button {
  width: min(520px, 100%);
  border: 0;
  border-radius: 12px;
  padding: 16px 22px;
  background: var(--theme-button-primary, #2b749c);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(43, 116, 156, 0.22);
}
.nhw-visit-complete-button:hover,
.nhw-visit-complete-button:focus {
  background: var(--theme-button-primary-hover, #276989);
}
.nhw-visit-success-card {
  width: min(480px, calc(100vw - 32px));
  text-align: center;
  padding: 34px 30px 30px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fcfb 100%);
  box-shadow: 0 26px 60px rgba(18, 40, 64, 0.18);
}
.nhw-visit-success-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #34d399 0%, #0f9f6e 100%);
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(15, 159, 110, 0.28);
}
.nhw-visit-success-card h3 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 1.7rem;
}
.nhw-visit-success-card p {
  margin: 0;
  color: #5b6678;
  font-size: 1rem;
  line-height: 1.7;
}
.nhw-payment-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  color: #4b5563;
  font-weight: 600;
}
.nhw-payment-field input {
  border: none;
  border-bottom: 1.5px solid #d1d5db;
  padding: 6px 4px 8px;
  font-size: 0.95rem;
}
.nhw-payment-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.nhw-visit-payment-card .nhw-payment-mask {
  position: absolute;
  left: 22px;
  bottom: 20px;
  font-size: 0.8rem;
  letter-spacing: 1.2px;
}
.nhw-visit-payment-card .nhw-payment-exp {
  position: absolute;
  right: 22px;
  bottom: 20px;
  font-size: 0.8rem;
  opacity: 0.85;
}
.nhw-visit-payment-modal-card {
  width: min(620px, calc(100vw - 32px));
  max-height: min(92vh, 760px);
  padding: 28px 28px 24px;
  gap: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  overflow-y: auto;
}
.nhw-visit-payment-modal-card .nhw-visit-modal-header {
  align-items: flex-start;
  gap: 18px;
}
.nhw-visit-payment-modal-card .nhw-visit-modal-header h3 {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.05;
  color: #111827;
}
.nhw-visit-payment-modal-sub {
  margin: -8px 0 2px;
  max-width: 480px;
  color: #6b7280;
  font-size: 0.98rem;
  line-height: 1.55;
}
.nhw-visit-payment-modal-card .nhw-visit-modal-close {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
  flex: 0 0 auto;
}
.nhw-visit-payment-form {
  display: grid;
  gap: 18px;
}
.nhw-visit-payment-modal-card .nhw-payment-field {
  gap: 8px;
  margin: 0;
  color: #111827;
  font-size: 0.95rem;
  font-weight: 700;
}
.nhw-visit-payment-modal-card .nhw-payment-field span {
  display: block;
  color: #374151;
}
.nhw-visit-payment-modal-card .nhw-payment-field input {
  width: 100%;
  min-width: 0;
  border: 1px solid #d7deea;
  border-radius: 14px;
  padding: 14px 16px;
  background: #ffffff;
  font-size: 1rem;
  color: #111827;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.nhw-visit-payment-modal-card .nhw-payment-field input:focus {
  outline: none;
  border-color: #a77e61;
  box-shadow: 0 0 0 4px rgba(167, 126, 97, 0.12);
}
.nhw-visit-payment-modal-card .nhw-payment-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.nhw-visit-payment-error {
  border-radius: 12px;
  background: #fff4f4;
  border: 1px solid #efc7c7;
  color: #b42318;
  padding: 12px 14px;
  font-size: 0.93rem;
  line-height: 1.45;
}
.nhw-visit-payment-error.is-hidden {
  display: none;
}
.nhw-visit-payment-modal-card .nhw-visit-modal-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 4px;
}
.nhw-visit-payment-modal-card .nhw-visit-modal-cancel {
  border: 1px solid #d8c2b1 !important;
  background: #ffffff !important;
  color: #a77e61 !important;
  padding: 14px 18px;
  border-radius: 14px;
}
.nhw-visit-payment-modal-card .nhw-visit-modal-save {
  background: #a77e61 !important;
  color: #ffffff !important;
  border: 0 !important;
  padding: 14px 18px;
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(167, 126, 97, 0.24);
}
.nhw-visit-payment-modal-card .nhw-visit-modal-save:hover,
.nhw-visit-payment-modal-card .nhw-visit-modal-save:focus {
  background: #946a4d !important;
}

@media (max-width: 680px) {
  .nhw-visit-type-top,
  .nhw-visit-type-options {
    grid-template-columns: 1fr;
  }
  .nhw-visit-form[data-visit-step="checkout-visit-type"] .nhw-visit-type-options {
    grid-template-columns: 1fr !important;
  }
  .nhw-visit-type-card {
    min-height: 0;
  }
  .nhw-visit-type-card-price {
    font-size: 1.05rem;
  }
  .nhw-visit-type-visual {
    min-height: 170px;
  }
  .nhw-visit-type-device {
    width: 190px;
    height: 110px;
  }
  .nhw-visit-type-bubble--chat {
    left: 28px;
  }
  .nhw-visit-type-bubble--phone {
    right: 32px;
  }
  .nhw-visit-complete {
    min-height: 440px;
    gap: 22px;
    padding-top: 10px;
  }
  .nhw-visit-complete-brand img {
    width: 132px;
  }
  .nhw-visit-complete-copy {
    gap: 14px;
  }
  .nhw-visit-complete-copy p {
    font-size: 0.95rem;
  }
  .nhw-visit-complete-copy strong {
    font-size: 1.12em;
    white-space: normal;
  }
  .nhw-visit-complete-button {
    width: 100%;
  }
  .nhw-visit-ready-card {
    padding: 22px 18px 18px;
    border-radius: 18px;
  }
  .nhw-visit-ready-option {
    grid-template-columns: auto 1fr;
    padding: 16px;
  }
  .nhw-visit-ready-option-copy {
    grid-column: 2;
  }
  .nhw-visit-ready-option-title {
    font-size: 1.05rem;
  }
  .nhw-visit-success-card {
    padding: 28px 20px 24px;
    border-radius: 20px;
  }
  .nhw-visit-success-card h3 {
    font-size: 1.45rem;
  }
  .nhw-visit-payment-modal-card {
    width: min(100vw - 20px, 560px);
    padding: 22px 18px 18px;
    border-radius: 18px;
  }
  .nhw-visit-payment-modal-card .nhw-visit-modal-header h3 {
    font-size: 1.45rem;
  }
  .nhw-visit-payment-modal-card .nhw-payment-row,
  .nhw-visit-payment-modal-card .nhw-visit-modal-actions {
    grid-template-columns: 1fr;
  }
}
.nhw-visit-summary-sub {
  color: #8a96a8;
  font-size: 0.8rem;
}
.nhw-visit-summary-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  padding-top: 14px;
  align-items: center;
}
.nhw-visit-reason-title {
  font-weight: 600;
  margin-bottom: 6px;
}
.nhw-visit-reason-text {
  color: #6b7687;
}
.nhw-visit-requested {
  text-align: center;
  color: #8a96a8;
  font-size: 0.8rem;
}
.nhw-visit-requested-brand img {
  width: 120px;
  height: auto;
  opacity: 0.75;
  margin-top: 8px;
}
.nhw-card-divider {
  height: 1px;
  background: #edf2f7;
  margin: 14px 0;
}
.nhw-consultation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.nhw-consultation-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nhw-detail-provider {
  margin: 2px 0 0;
  color: #8a96a8;
  font-size: 0.82rem;
}
.nhw-consultation-action {
  text-align: right;
}
.nhw-consultation-action-label {
  font-size: 0.75rem;
  color: #8a96a8;
  margin-bottom: 6px;
}
.nhw-outline-btn {
  border: 1px solid #dbe3ec;
  background: #ffffff;
  border-radius: 10px;
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
  color: #1b2a42;
}
.nhw-consultation-notes h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}
.nhw-detail-notes {
  color: #6b7687;
}
.nhw-medication-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nhw-medication-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e9f3fb;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}
.nhw-medication-list {
  display: grid;
  gap: 6px;
  color: #2e90d1;
  font-weight: 600;
}
.nhw-medication-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nhw-medication-status-title {
  font-weight: 600;
  margin-top: 12px;
}
.nhw-status-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.nhw-status-steps::before {
  content: '';
  position: absolute;
  top: 34px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: #d9e2ef;
}
.nhw-status-step {
  position: relative;
  text-align: center;
  font-size: 0.72rem;
  color: #6b7687;
}
.nhw-status-label {
  display: inline-block;
  background: #e4e9f1;
  color: #506070;
  padding: 4px 10px;
  border-radius: 999px;
}
.nhw-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  margin: 8px auto 0;
}
.nhw-status-step.is-active .nhw-status-label {
  background: #d3e7fb;
  color: #1b2a42;
}
.nhw-status-step.is-active .nhw-status-dot {
  background: #4a8edc;
}
.nhw-invoice-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nhw-invoice-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e9f3fb;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}
.nhw-invoice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.nhw-invoice-col h4 {
  margin: 0 0 10px;
  font-size: 0.95rem;
}
.nhw-address-title {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nhw-address-header-icon {
  color: #2e90d1;
  font-size: 0.95rem;
}
.nhw-address-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #5b6678;
  font-size: 0.85rem;
  margin: 6px 0;
}
.nhw-address-icon {
  color: #2e90d1;
  font-size: 0.9rem;
  line-height: 1.2;
  width: 16px;
  text-align: center;
}
.nhw-invoice-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid #edf2f7;
  font-size: 0.85rem;
  gap: 12px;
}
.nhw-invoice-row:first-of-type {
  border-top: 0;
}
.nhw-invoice-row.is-total {
  font-weight: 600;
}
.nhw-detail-error {
  margin-top: 16px;
  color: #a81f1f;
  font-size: 0.85rem;
}
.nhw-detail-error.is-hidden {
  display: none;
}
.nhw-order-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 0;
}
.nhw-view-all {
  display: block;
  text-align: center;
  margin-top: 14px;
  color: #2e90d1;
  text-decoration: none;
}
.nhw-orders-more {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9a07a;
  background: #fff;
  color: #8d5b3c;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  margin: 12px auto 0;
  min-width: 120px;
}
.nhw-visits-section .nhw-orders-more {
  display: inline-flex !important;
  align-self: center;
  justify-self: center;
  margin: 12px auto 0 !important;
  float: none !important;
}
.nhw-orders-more.is-loading {
  cursor: wait;
}
.nhw-orders-more.is-hidden {
  display: none;
}

.nhw-messages-announcement {
  text-align: center;
  font-size: 0.82rem;
  color: #7b8798;
  margin-bottom: 14px;
}
.nhw-messages-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  align-items: stretch;
  flex: 1;
  min-height: 0;
}
.nhw-messages-sidebar {
  background: #ffffff;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 8px 20px rgba(21, 35, 52, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow: hidden;
  min-width: 0;
}
.nhw-messages-user {
  overflow: hidden;
}
.nhw-messages-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf2f7;
}
.nhw-messages-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e9eef6;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 1.1rem;
}
.nhw-messages-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nhw-messages-name {
  font-weight: 600;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.nhw-messages-id {
  color: #8a96a8;
  font-size: 0.72rem;
  word-break: break-all;
  overflow-wrap: anywhere;
}
.nhw-messages-channels {
  display: grid;
  gap: 10px;
  overflow-y: auto;
  min-height: 0;
  overflow-x: hidden;
  padding-right: 4px;
  min-width: 0;
}
.nhw-message-channel {
  border: 1px solid #edf2f7;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  display: grid;
  grid-template-columns: 36px 1fr;
  grid-template-rows: auto auto;
  gap: 6px 10px;
  align-items: start;
  cursor: pointer;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  min-width: 0;
}
.nhw-messages-sidebar .nhw-message-channel:hover {
  background: #fff8f1 !important;
  border-color: #e7c1a0 !important;
}
.nhw-message-channel-icon {
  grid-row: 1 / span 2;
  align-self: start;
  margin-top: 2px;
}
.nhw-message-channel-title {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  text-align: left;
}
.nhw-message-channel-desc {
  grid-column: 2;
  grid-row: 2;
  text-align: left;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.nhw-message-channel-title,
.nhw-message-channel-desc {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.nhw-messages-sidebar .nhw-message-channel.is-active {
  border-color: #d9a07a !important;
  background: #fff7ef !important;
}
.nhw-messages-sidebar .nhw-message-channel.is-active:hover {
  background: #fff7ef !important;
  border-color: #d9a07a !important;
}
.nhw-messages-sidebar .nhw-message-channel:hover .nhw-message-channel-title,
.nhw-messages-sidebar .nhw-message-channel.is-active .nhw-message-channel-title,
.nhw-messages-sidebar .nhw-message-channel.is-active:hover .nhw-message-channel-title {
  color: #8d5b3c !important;
}
.nhw-messages-sidebar .nhw-message-channel:hover .nhw-message-channel-desc,
.nhw-messages-sidebar .nhw-message-channel.is-active .nhw-message-channel-desc,
.nhw-messages-sidebar .nhw-message-channel.is-active:hover .nhw-message-channel-desc {
  color: #8a96a8 !important;
}
.nhw-message-channel-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eef3f9;
  display: grid;
  place-items: center;
  font-size: 1rem;
}
.nhw-message-channel-title {
  font-weight: 600;
  font-size: 0.85rem;
}
.nhw-message-channel-desc {
  color: #8a96a8;
  font-size: 0.75rem;
}
.nhw-message-channel.is-empty {
  border-style: dashed;
  color: #8a96a8;
  cursor: default;
}
.nhw-messages-main {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(21, 35, 52, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  min-width: 0;
  flex: 1;
}
.nhw-messages-main-header {
  padding: 12px 16px;
  border-bottom: 1px solid #edf2f7;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nhw-messages-main-title {
  font-weight: 600;
  font-size: 0.95rem;
}
.nhw-messages-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid #edf2f7;
  background: #fbfaf6;
}
.nhw-messages-tabs button {
  border: 0;
  background: transparent;
  padding: 10px 12px;
  font-weight: 600;
  color: #7b8798;
  cursor: pointer;
}
.nhw-messages-tabs button.is-active {
  color: #1b2a42;
}
.nhw-messages-thread {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background: #fbfaf6;
  min-height: 0;
}
.nhw-messages-empty {
  color: #8a96a8;
  text-align: center;
  padding: 40px 10px;
}
.nhw-message-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 10px;
}
.nhw-message-system {
  background: #fff6cc;
  color: #6b5a2a;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.8rem;
  margin-bottom: 12px;
}
.nhw-message-row {
  display: flex;
  justify-content: flex-end;
  margin: 8px 0;
}
.nhw-message-bubble {
  background: #4a8edc;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  max-width: 70%;
  overflow: hidden;
}
.nhw-message-bubble img {
  display: block;
  max-width: 220px;
  height: auto;
  border-radius: 10px;
}
.nhw-messages-input {
  border-top: 1px solid #edf2f7;
  padding: 12px;
  padding-bottom: 18px;
  display: flex;
  gap: 10px;
  align-items: center;
  background: #ffffff;
  margin-top: auto;
}
.nhw-messages-attach {
  border: 1px solid #d9e2ef;
  background: #fff;
  color: #8d5b3c;
  border-radius: 10px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1rem;
  flex-shrink: 0;
}
.nhw-messages-attach.is-attached {
  background: #fff4e8;
  border-color: #e5b089;
}
.nhw-messages-file {
  display: none;
}
.nhw-messages-input input {
  flex: 1;
  border: 1px solid #d9e2ef;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.9rem;
  min-width: 0;
}
.nhw-messages-send {
  border: 0;
  background: #2e90d1;
  color: #ffffff;
  border-radius: 10px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .nhw-notification-card {
    grid-template-columns: 1fr;
  }
  .nhw-notification-card-icon {
    width: 40px;
    height: 40px;
  }
  .nhw-notification-card-close {
    justify-self: end;
  }
  .nhw-portal-dashboard {
    grid-template-columns: 1fr;
  }
  .nhw-sidebar {
    position: sticky;
    top: 0;
    z-index: 5;
    flex-direction: row;
    overflow-x: auto;
    align-items: center;
  }
  .nhw-sidebar-nav {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 8px;
  }
  .nhw-dashboard-grid {
    grid-template-columns: 1fr;
  }
  .nhw-provider-group-policies {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
  .nhw-provider-policy-card {
    min-height: 300px;
  }
  .nhw-visit-summary-body {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .nhw-invoice-grid {
    grid-template-columns: 1fr;
  }
  .nhw-status-steps {
    grid-template-columns: 1fr;
  }
  .nhw-status-steps::before {
    display: none;
  }
  .nhw-status-step {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
  }
  .nhw-status-dot {
    margin: 0;
  }
  .nhw-messages-layout {
    grid-template-columns: 1fr;
  }
}
