
/* NoorVista 2.1.146 — Comprehensive UI/UX stabilization */

/* Base spacing/typography consistency */
:root {
  --nv-field-min-height: 48px;
  --nv-radius-field: 16px;
  --nv-soft-border: #dbeafe;
}
body, input, button, textarea, select {
  font-family: inherit;
}
button, a, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
}
input, select, textarea {
  min-height: var(--nv-field-min-height);
}

/* Persian/RTL readable numeric fields */
input[type="tel"], input[inputmode="tel"], input[inputmode="numeric"], .money-input, .amount-input {
  direction: rtl;
  text-align: right;
}

/* Tables: usable on small screens without broken wrapping */
.table-responsive,
.nv-table-responsive,
.card-body:has(table),
.nv-card-body:has(table) {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table th, table td {
  vertical-align: middle;
}
table .actions,
table .action-buttons,
.nv-inline-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

/* Modal: one scroll source, stable footer/header */
.modal-overlay,
.forgot-modal.open,
.nv-public-booking.open {
  overflow: hidden !important;
}
.modal-container,
.modal-content,
.nv-modal,
.forgot-dialog,
.nv-public-booking__panel {
  max-height: min(92vh, 820px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-header,
.modal-footer,
.nv-modal-header,
.nv-modal-footer,
.forgot-actions,
.nv-public-booking__header {
  flex: 0 0 auto;
}
.modal-body,
.nv-modal-body,
.forgot-dialog > .form-group,
.nv-public-booking__body {
  min-height: 0;
}
.modal-body,
.nv-modal-body,
.nv-public-booking__body {
  overflow-y: auto;
  overflow-x: hidden;
}

/* Forms */
.form-grid,
.nv-form-grid,
.settings-grid,
.nv-filter-grid {
  align-items: end;
}
.form-group label,
.nv-form-field span,
label > span {
  line-height: 1.7;
}

/* Hide truly hidden steps/conditional blocks */
[hidden],
.nv-empty-config-hidden,
.social-link[hidden],
.social-link.is-hidden,
.nv-booking-insurance-box[hidden],
.nv-booking-insurance-details[hidden] {
  display: none !important;
}

/* Remove duplicate helper fragments created by older money widgets */
.nv-money-helper {
  display: none !important;
}
.nv-money-helper:last-of-type,
.nv-money-words,
.money-words {
  display: block;
}

/* Appointment filters and date icons */
body[data-appointment-page="slots"] .nv-appt-filter-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(220px, 1fr)) !important;
  gap: 16px 12px !important;
  align-items: end !important;
}
body[data-appointment-page="slots"] .nv-appt-jalali-wrap > i,
body[data-appointment-page="slots"] .nv-date-field > i:not(.nv-date-primary),
body[data-appointment-page="slots"] .nv-date-field > .icon-calendar:not(.nv-date-primary) {
  display: none !important;
}

/* Public booking: compact, understandable flow */
.nv-public-booking__progress {
  gap: 8px !important;
}
.nv-public-booking__progress-item {
  min-height: 40px !important;
  padding: 7px 8px !important;
  white-space: nowrap;
}
.nv-booking-selection-summary {
  position: sticky;
  top: 0;
  z-index: 3;
}

/* Password reset steps */
#forgotPasswordModal [hidden],
#forgotPasswordModal [data-reset-step][hidden] {
  display: none !important;
}

/* Contact/footer address rows */
.nv-address-lines {
  display: grid;
  gap: 7px;
}
.nv-address-line {
  display: block;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  line-height: 2;
}
.nv-address-label {
  font-weight: 950;
  color: #0891b2;
  margin-inline-end: 6px;
}

/* Public mobile header/menu */
@media (max-width: 720px) {
  .nav-actions a[href*="login"],
  .navbar-actions a[href*="login"],
  .header-actions a[href*="login"],
  .mobile-toggle,
  .nav-toggle,
  .menu-toggle {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .chatbot-panel.open,
  body.chatbot-open .chatbot-panel {
    inset: 0 !important;
    width: 100dvw !important;
    height: 100dvh !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 0 !important;
  }
  body[data-appointment-page="slots"] .nv-appt-filter-grid,
  .form-grid,
  .nv-form-grid,
  .settings-grid,
  .nv-filter-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Dashboard role pages: keep topbar and cards readable */
.nv3-page-heading h1,
.nv-card-header h2,
.card-header h2 {
  line-height: 1.55;
}
.nv3-topbar,
.nv-card,
.card {
  min-width: 0;
}
.nv-quick-actions,
.card-actions,
.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}



/* 2.1.147 — patient booking/modal and account-field corrections */
body[data-patient-page="appointments"] #book {
  display: none !important;
}
body[data-patient-page="appointments"] .nv-pa-book-button {
  border: 0;
  cursor: pointer;
}
#patientAccountCreateFields input#username,
#patientAccountCreateFields input#password {
  direction: ltr;
  text-align: left;
}

/* 2.1.148 — patient appointments page must be table-only */
body[data-patient-page="appointments"] .nv-pa-hero,
body[data-patient-page="appointments"] .nv-pa-summary,
body[data-patient-page="appointments"] #book {
  display: none !important;
}
body[data-patient-page="appointments"] .nv-pa-appointments-only {
  display: block !important;
}
body[data-patient-page="appointments"] .nv-pa-appointments-table-only {
  margin-top: 0 !important;
}
body[data-patient-page="appointments"] .nv-pa-list-tools {
  align-items: center !important;
}
body[data-patient-page="appointments"] .nv-pa-book-button {
  min-height: 44px !important;
  padding: 10px 16px !important;
  white-space: nowrap !important;
  border: 0 !important;
  cursor: pointer !important;
}



/* NoorVista 2.1.149 — footer address rows + public topbar restore */
.topbar-info {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
  flex-wrap: wrap !important;
}
.topbar-info > span,
.topbar-info > a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  color: inherit !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  min-height: 28px !important;
}
.topbar-info > span[hidden],
.topbar-info > a[hidden],
.topbar-info .nv-empty-config-hidden {
  display: none !important;
}
.topbar-info .nv-inline-icon {
  flex: 0 0 auto !important;
}

.footer .contact-list .nv-footer-address {
  display: grid !important;
  grid-template-columns: 28px minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: start !important;
}
.footer .contact-list .nv-footer-address + .nv-footer-address {
  margin-top: 6px !important;
}
.footer .contact-list .nv-footer-address .nv-contact-main,
.footer .contact-list .nv-footer-address .nv-address-line {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  line-height: 2.05 !important;
}
.footer .contact-list .nv-address-label {
  display: inline !important;
  color: #22d3ee !important;
  font-weight: 950 !important;
  margin-left: 0 !important;
  margin-inline-end: 0 !important;
}
.footer .contact-list .nv-address-text {
  display: inline !important;
  color: #f8fafc !important;
  font-weight: 850 !important;
}
.footer .contact-list .nv-footer-hours .nv-contact-main,
.footer .contact-list .nv-footer-phone .nv-contact-main {
  display: block !important;
  line-height: 2 !important;
}



/* NoorVista 2.1.150 — patient panel booking + appointments table cleanup */
body[data-panel-role="patient"] .nv-public-booking.is-patient-panel-booking .nv-booking-field:has(#nvBookingFirstName),
body[data-panel-role="patient"] .nv-public-booking.is-patient-panel-booking .nv-booking-field:has(#nvBookingLastName),
body[data-panel-role="patient"] .nv-public-booking.is-patient-panel-booking .nv-booking-field:has(#nvBookingPhone),
body.nv3-role-patient .nv-public-booking.is-patient-panel-booking .nv-booking-field:has(#nvBookingFirstName),
body.nv3-role-patient .nv-public-booking.is-patient-panel-booking .nv-booking-field:has(#nvBookingLastName),
body.nv3-role-patient .nv-public-booking.is-patient-panel-booking .nv-booking-field:has(#nvBookingPhone),
.nv-public-booking.is-patient-panel-booking .nv-patient-identity-hidden {
  display: none !important;
  visibility: hidden !important;
}
.nv-public-booking.is-patient-panel-booking [data-nv-booking-step="6"] .nv-booking-form {
  grid-template-columns: 1fr !important;
}
.nv-public-booking.is-patient-panel-booking [data-nv-booking-step="6"] .nv-booking-review {
  margin-bottom: 16px !important;
}

body[data-patient-page="appointments"] .nv-pa-page.nv-pa-appointments-only {
  width: min(1180px, 100%) !important;
  margin-inline: auto !important;
}
body[data-patient-page="appointments"] .nv-pa-appointments-table-only {
  border-radius: 28px !important;
  overflow: hidden !important;
  border: 1px solid #dbeafe !important;
  background: #fff !important;
  box-shadow: 0 20px 60px rgba(15,23,42,.08) !important;
}
body[data-patient-page="appointments"] .nv-pa-list-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  flex-wrap: wrap !important;
  padding: 22px 24px !important;
  background: linear-gradient(135deg, #f8fcff, #eef9ff) !important;
  border-bottom: 1px solid #e0f2fe !important;
}
body[data-patient-page="appointments"] .nv-pa-card-title h2 {
  margin: 0 !important;
  font-size: 24px !important;
  line-height: 1.6 !important;
}
body[data-patient-page="appointments"] .nv-pa-card-title p {
  margin: 4px 0 0 !important;
  color: #64748b !important;
  font-weight: 750 !important;
}
body[data-patient-page="appointments"] .nv-pa-list-tools {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}
body[data-patient-page="appointments"] .nv-pa-book-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 44px !important;
  padding: 0 18px !important;
  border-radius: 999px !important;
  border: 0 !important;
  background: linear-gradient(135deg, #0891b2, #10b981) !important;
  color: #fff !important;
  font-weight: 950 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  box-shadow: 0 14px 32px rgba(8,145,178,.20) !important;
}
body[data-patient-page="appointments"] .nv-pa-search,
body[data-patient-page="appointments"] #appointmentStatusFilter {
  min-width: 210px !important;
  max-width: 260px !important;
}
body[data-patient-page="appointments"] .nv-pa-list-body {
  padding: 0 !important;
}
body[data-patient-page="appointments"] .nv-tw-table-wrap {
  border-radius: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}
body[data-patient-page="appointments"] .nv-pa-hero,
body[data-patient-page="appointments"] #book,
body[data-patient-page="appointments"] .nv-pa-booking-date-step,
body[data-patient-page="appointments"] .nv-pa-booking-time-step,
body[data-patient-page="appointments"] .nv-pa-book-footer,
body[data-patient-page="appointments"] #appointmentBookingForm {
  display: none !important;
}
@media (max-width: 760px) {
  body[data-patient-page="appointments"] .nv-pa-list-head,
  body[data-patient-page="appointments"] .nv-pa-list-tools {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  body[data-patient-page="appointments"] .nv-pa-search,
  body[data-patient-page="appointments"] #appointmentStatusFilter,
  body[data-patient-page="appointments"] .nv-pa-book-button {
    width: 100% !important;
    max-width: none !important;
  }
}



/* NoorVista 2.1.151 — topbar icons + patient pages polish */
.topbar-info .nv-inline-icon,
.topbar .topbar-info .nv-inline-icon {
  display: inline-block !important;
  width: 17px !important;
  height: 17px !important;
  min-width: 17px !important;
  flex: 0 0 17px !important;
  margin-inline-end: 7px !important;
  background: currentColor !important;
  color: inherit !important;
  opacity: 1 !important;
  visibility: visible !important;
  vertical-align: -3px !important;
  -webkit-mask: var(--nv-icon-svg) center / contain no-repeat !important;
  mask: var(--nv-icon-svg) center / contain no-repeat !important;
}
.topbar-info > span,
.topbar-info > a {
  gap: 6px !important;
  align-items: center !important;
}
.topbar-info > span::before,
.topbar-info > a::before {
  display: none !important;
}

body[data-patient-page="appointments"] .nv-pa-page {
  display: grid !important;
  gap: 24px !important;
}
body[data-patient-page="appointments"] .nv-pa-hero-card {
  overflow: hidden !important;
  border-radius: 30px !important;
  background: linear-gradient(135deg, #0f172a, #0369a1, #0891b2) !important;
  color: #fff !important;
  padding: 28px !important;
  box-shadow: 0 24px 60px rgba(8,145,178,.18) !important;
}
body[data-patient-page="appointments"] .nv-pa-hero-card .nv-pa-kicker {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 7px 12px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.14) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}
body[data-patient-page="appointments"] .nv-pa-hero-card h2 {
  margin: 16px 0 10px !important;
  font-size: clamp(24px, 3vw, 34px) !important;
  line-height: 1.55 !important;
  color: #fff !important;
}
body[data-patient-page="appointments"] .nv-pa-hero-card p {
  max-width: 720px !important;
  line-height: 2 !important;
  color: #e0f2fe !important;
  margin: 0 !important;
}
body[data-patient-page="appointments"] .nv-pa-hero-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  align-items: center !important;
  margin-top: 18px !important;
}
body[data-patient-page="appointments"] .nv-pa-book-button,
.nv-patient-booking-button,
a[href*="appointments.html#book"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 44px !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #06b6d4, #10b981) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 950 !important;
  text-decoration: none !important;
  box-shadow: 0 16px 32px rgba(6,182,212,.22) !important;
  cursor: pointer !important;
}
body[data-patient-page="appointments"] .nv-pa-book-button:hover,
.nv-patient-booking-button:hover,
a[href*="appointments.html#book"]:hover {
  transform: translateY(-1px) !important;
}
body[data-patient-page="appointments"] .nv-pa-appointments-table-only {
  border-radius: 28px !important;
  border: 1px solid #dbeafe !important;
  background: #fff !important;
  box-shadow: 0 20px 45px rgba(15,23,42,.07) !important;
  overflow: hidden !important;
}
body[data-patient-page="appointments"] .nv-pa-list-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  padding: 20px 22px !important;
  background: linear-gradient(180deg, #f8fbff, #effafe) !important;
  border-bottom: 1px solid #dbeafe !important;
}
body[data-patient-page="appointments"] .nv-pa-list-head h2 {
  margin: 0 !important;
  font-size: 22px !important;
}
body[data-patient-page="appointments"] .nv-pa-list-head p {
  margin: 5px 0 0 !important;
  color: #64748b !important;
  font-size: 13px !important;
}
body[data-patient-page="appointments"] .nv-pa-list-tools {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  align-items: center !important;
  justify-content: flex-end !important;
}
body[data-patient-page="appointments"] .nv-pa-search {
  min-width: min(260px, 100%) !important;
}
body[data-patient-page="appointments"] .nv-pa-list-body {
  padding: 18px !important;
}
body[data-patient-page="appointments"] .nv-tw-table-wrap {
  border-radius: 20px !important;
  border: 1px solid #e2e8f0 !important;
  overflow: auto !important;
}
body[data-patient-page="appointments"] .nv-tw-table thead th {
  background: #f8fafc !important;
  color: #075985 !important;
  font-weight: 950 !important;
  white-space: nowrap !important;
}
body[data-patient-page="appointments"] .nv-tw-table td {
  vertical-align: middle !important;
}
@media (max-width: 900px) {
  body[data-patient-page="appointments"] .nv-pa-list-head {
    align-items: stretch !important;
    flex-direction: column !important;
  }
  body[data-patient-page="appointments"] .nv-pa-list-tools {
    justify-content: stretch !important;
  }
  body[data-patient-page="appointments"] .nv-pa-list-tools > * {
    width: 100% !important;
  }
}



/* NoorVista 2.1.152 — simplified final booking step */
.nv-public-booking .nv-booking-review[hidden],
.nv-public-booking .nv-patient-identity-hidden {
  display: none !important;
}
.nv-public-booking .nv-booking-phone-field[hidden],
.nv-public-booking .nv-booking-insurance-box[hidden],
.nv-public-booking .nv-booking-insurance-details[hidden] {
  display: none !important;
}
.nv-public-booking .nv-booking-step[data-nv-booking-step="6"] .nv-booking-form {
  max-width: 620px;
  margin-inline: auto;
}
.nv-public-booking .nv-booking-step[data-nv-booking-step="6"] .nv-booking-field.is-full {
  grid-column: 1 / -1;
}
.nv-public-booking .nv-booking-step[data-nv-booking-step="6"] .nv-booking-actions {
  justify-content: center;
}



/* NoorVista 2.1.153 — stable topbar SVG icons */
.topbar-info > span,
.topbar-info > a,
.topbar .topbar-info > span,
.topbar .topbar-info > a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  white-space: nowrap !important;
  text-decoration: none !important;
}
.topbar-info .nv-topbar-icon-wrap {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  display: inline-grid !important;
  place-items: center !important;
  flex: 0 0 18px !important;
  color: currentColor !important;
}
.topbar-info .nv-topbar-svg {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
  fill: currentColor !important;
  stroke: none !important;
  opacity: .95 !important;
}
.topbar-info .nv-topbar-text {
  display: inline-block !important;
  line-height: 1.8 !important;
}
.topbar-info [data-topbar-item][hidden],
.topbar-info .nv-empty-config-hidden {
  display: none !important;
}



/* NoorVista 2.1.155 — booking UX redesign: amount only in final step */
.nv-public-booking__panel {
  max-height: min(90vh, 760px) !important;
}
.nv-public-booking__header {
  padding-block: 16px 12px !important;
}
.nv-public-booking__progress {
  padding-block: 9px !important;
}
.nv-booking-selection-summary {
  gap: 7px !important;
  padding-block: 8px !important;
  overflow-x: auto !important;
  flex-wrap: nowrap !important;
}
.nv-booking-summary-chip {
  white-space: nowrap !important;
  flex: 0 0 auto !important;
}
.nv-booking-choice__icon:empty {
  display: none !important;
}
.nv-booking-choice p {
  word-break: normal !important;
  overflow-wrap: anywhere !important;
}
/* Price must not appear before the final step */
.nv-booking-choice__meta .nv-booking-pill:has(+ .nv-booking-pill--insurance),
.nv-booking-time em {
  display: none !important;
}
/* NoorVista 3.0.87 — pricing belongs to the final confirmation step (8).
   Do not hide every class containing amount/price; that rule also hid the real
   final pricing rows after the wizard gained separate patient/insurance steps. */
.nv-booking-step:not([data-nv-booking-step="8"]) .nv-final-amount-card,
.nv-booking-step:not([data-nv-booking-step="8"]) .nv-booking-final-amount {
  display: none !important;
}

.nv-booking-final-amount {
  display: block !important;
  max-width: 620px !important;
  margin: 0 auto 18px !important;
}
.nv-final-amount-card {
  border: 1px solid #bae6fd !important;
  border-radius: 22px !important;
  background: linear-gradient(135deg, #f0f9ff, #ffffff) !important;
  padding: 18px 20px !important;
  box-shadow: 0 18px 42px rgba(8, 145, 178, .10) !important;
}
.nv-final-amount-title {
  font-weight: 950 !important;
  color: #075985 !important;
  margin-bottom: 10px !important;
  font-size: 15px !important;
}
.nv-final-amount-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  padding: 8px 0 !important;
  border-top: 1px dashed rgba(125, 211, 252, .55) !important;
}
.nv-final-amount-row:first-of-type {
  border-top: 0 !important;
}
.nv-final-amount-row span {
  color: #64748b !important;
  font-weight: 850 !important;
}
.nv-final-amount-row strong {
  color: #0f172a !important;
  font-weight: 950 !important;
}
.nv-final-amount-row.is-main strong {
  font-size: 19px !important;
  color: #0891b2 !important;
}
.nv-final-amount-row.is-muted strong {
  color: #64748b !important;
  text-decoration: line-through !important;
}
.nv-final-amount-card small {
  display: block !important;
  margin-top: 10px !important;
  color: #64748b !important;
  line-height: 1.9 !important;
}
.nv-booking-final-actions {
  position: sticky !important;
  bottom: 0 !important;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 30%) !important;
  padding-top: 16px !important;
  z-index: 4 !important;
}
.nv-public-booking.is-patient-panel-booking .nv-booking-phone-field {
  display: none !important;
}



/* NoorVista 2.1.158 — booking details step before final confirmation */
.nv-public-booking__progress { grid-template-columns: repeat(7, minmax(92px, 1fr)) !important; }
.nv-public-booking__progress-item { min-width: 92px !important; }
.nv-booking-step[data-nv-booking-step="6"] .nv-booking-form,
.nv-booking-step[data-nv-booking-step="7"] .nv-booking-final-amount {
  max-width: 620px !important;
  margin-inline: auto !important;
}
.nv-booking-step[data-nv-booking-step="6"] .nv-booking-actions,
.nv-booking-step[data-nv-booking-step="7"] .nv-booking-actions { justify-content: center !important; }
.nv-booking-step[data-nv-booking-step="7"] .nv-booking-step__head { margin-bottom: 14px !important; }
.nv-booking-step[data-nv-booking-step="6"] .nv-booking-phone-field,
.nv-booking-step[data-nv-booking-step="6"] .nv-booking-insurance-box,
.nv-booking-step[data-nv-booking-step="6"] .nv-booking-insurance-details {
  background: #fff !important;
  border: 1px solid #dbeafe !important;
  border-radius: 18px !important;
  padding: 14px !important;
}
.nv-public-booking.is-patient-panel-booking .nv-booking-step[data-nv-booking-step="6"] .nv-booking-phone-field {
  display: none !important;
}
@media (max-width: 760px) {
  .nv-public-booking__progress {
    display: flex !important;
    overflow-x: auto !important;
    padding-inline: 12px !important;
  }
}


/* NoorVista 3.0.87 — booking modal responsive repair + final amount visibility */
#nvPublicBooking {
  padding: clamp(8px, 1.3vw, 18px) !important;
  align-items: center !important;
  justify-items: center !important;
  overflow: hidden !important;
}
#nvPublicBooking .nv-public-booking__panel {
  width: min(1000px, calc(100vw - 32px)) !important;
  max-height: min(92dvh, 760px) !important;
  overflow: hidden !important;
}
#nvPublicBooking .nv-public-booking__progress {
  display: grid !important;
  grid-template-columns: repeat(var(--nv-booking-progress-count, 8), minmax(84px, 1fr)) !important;
  gap: 8px !important;
  overflow: visible !important;
}
#nvPublicBooking .nv-public-booking__progress-item {
  min-width: 0 !important;
  height: 50px !important;
  min-height: 50px !important;
  padding: 8px 10px !important;
}
#nvPublicBooking .nv-public-booking__progress-item > span:last-child {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
#nvPublicBooking .nv-booking-selection-summary {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 8px 20px !important;
  gap: 8px !important;
}
#nvPublicBooking .nv-booking-summary-chip {
  min-width: 0 !important;
  max-width: 100% !important;
  flex: 0 1 auto !important;
}
#nvPublicBooking .nv-booking-summary-chip strong {
  max-width: 230px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
#nvPublicBooking .nv-booking-summary-price-card {
  flex: 1 1 360px !important;
  min-width: min(100%, 360px) !important;
  max-width: 100% !important;
}
#nvPublicBooking .nv-public-booking__body {
  overflow-x: hidden !important;
}
#nvPublicBooking .nv-booking-days,
#nvPublicBooking .nv-booking-times {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 168px), 1fr)) !important;
}
#nvPublicBooking .nv-booking-actions {
  justify-content: center !important;
}
#nvPublicBooking .nv-booking-step:not([data-nv-booking-step="8"]) .nv-final-amount-card,
#nvPublicBooking .nv-booking-step:not([data-nv-booking-step="8"]) .nv-booking-final-amount {
  display: none !important;
}
#nvPublicBooking [data-nv-booking-step="8"] .nv-booking-final-amount,
#nvPublicBooking [data-nv-booking-step="8"] .nv-final-amount-card {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
#nvPublicBooking [data-nv-booking-step="8"] .nv-final-amount-title {
  display: block !important;
}
#nvPublicBooking [data-nv-booking-step="8"] .nv-final-amount-row {
  display: flex !important;
}
#nvPublicBooking [data-nv-booking-step="8"] .nv-final-amount-card small {
  display: block !important;
}
#nvPublicBooking .nv-final-amount-row.is-original.is-discounted strong,
#nvPublicBooking .nv-booking-price-line--original.is-discounted strong {
  text-decoration: line-through !important;
  text-decoration-thickness: 2px !important;
  color: #94a3b8 !important;
}
@media (max-width: 920px) {
  #nvPublicBooking .nv-public-booking__panel {
    width: calc(100vw - 20px) !important;
    max-height: calc(100dvh - 20px) !important;
  }
  #nvPublicBooking .nv-public-booking__progress {
    display: flex !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-padding-inline: 12px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }
  #nvPublicBooking .nv-public-booking__progress::-webkit-scrollbar { display: none !important; }
  #nvPublicBooking .nv-public-booking__progress-item {
    flex: 0 0 104px !important;
  }
  #nvPublicBooking .nv-booking-selection-summary {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    overflow: visible !important;
    padding: 8px 12px !important;
  }
  #nvPublicBooking .nv-booking-summary-chip {
    width: 100% !important;
    justify-content: flex-start !important;
  }
  #nvPublicBooking .nv-booking-summary-chip strong {
    max-width: none !important;
  }
  #nvPublicBooking .nv-booking-summary-price-card {
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }
}
@media (max-width: 560px) {
  #nvPublicBooking {
    padding: 0 !important;
  }
  #nvPublicBooking .nv-public-booking__panel {
    width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
  }
  #nvPublicBooking .nv-public-booking__header {
    min-height: 74px !important;
    padding: 22px 12px 10px !important;
    gap: 10px !important;
  }
  #nvPublicBooking .nv-public-booking__header h2 {
    font-size: clamp(.96rem, 4vw, 1.08rem) !important;
    line-height: 1.55 !important;
  }
  #nvPublicBooking .nv-public-booking__close {
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
  }
  #nvPublicBooking .nv-public-booking__progress {
    padding: 8px 10px !important;
    gap: 7px !important;
  }
  #nvPublicBooking .nv-public-booking__progress-item {
    flex-basis: 84px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 6px 8px !important;
    gap: 6px !important;
  }
  #nvPublicBooking .nv-public-booking__progress-item > span:first-child {
    width: 24px !important;
    height: 24px !important;
    flex-basis: 24px !important;
    font-size: .72rem !important;
  }
  #nvPublicBooking .nv-public-booking__progress-item > span:last-child {
    font-size: .68rem !important;
    line-height: 1.25 !important;
  }
  #nvPublicBooking .nv-booking-selection-summary {
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    padding: 7px 10px !important;
  }
  #nvPublicBooking .nv-booking-summary-chip {
    min-height: 30px !important;
    height: auto !important;
    padding: 5px 8px !important;
    border-radius: 11px !important;
    gap: 5px !important;
  }
  #nvPublicBooking .nv-booking-summary-chip em,
  #nvPublicBooking .nv-booking-summary-chip strong {
    font-size: .66rem !important;
  }
  #nvPublicBooking .nv-public-booking__body {
    padding: 12px 10px calc(18px + env(safe-area-inset-bottom, 0px)) !important;
  }
  #nvPublicBooking .nv-booking-step__head {
    gap: 8px !important;
    margin-bottom: 12px !important;
  }
  #nvPublicBooking .nv-booking-step__head h3 {
    font-size: .98rem !important;
  }
  #nvPublicBooking .nv-booking-step__head p {
    font-size: .72rem !important;
  }
  #nvPublicBooking .nv-booking-card-grid,
  #nvPublicBooking .nv-booking-service-grid,
  #nvPublicBooking .nv-booking-center-grid-list {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  #nvPublicBooking .nv-booking-choice,
  #nvPublicBooking .nv-booking-service-choice,
  #nvPublicBooking .nv-booking-center-choice {
    padding: 13px !important;
    min-height: 0 !important;
  }
  #nvPublicBooking .nv-booking-days,
  #nvPublicBooking .nv-booking-times {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)) !important;
    gap: 10px !important;
  }
  #nvPublicBooking .nv-booking-day,
  #nvPublicBooking .nv-booking-time {
    width: 100% !important;
    min-height: 82px !important;
  }
  #nvPublicBooking .nv-insurance-choice-group {
    grid-template-columns: 1fr !important;
  }
  #nvPublicBooking .nv-booking-summary-price-card {
    grid-template-columns: 1fr !important;
  }
}
