/* Booking surfaces. Keep layouts responsive to the space provided by the WordPress theme. */
.natura-widget {
  --nr-line: #e2e8ef;
  --nr-muted: #536275;
  max-width: 880px;
  container-type: inline-size;
}
.natura-widget .nr-shell {
  border: 1px solid var(--nr-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 32px #1a244d0d;
}
.natura-widget .nr-brand {
  gap: 12px;
  padding: 20px clamp(16px, 4cqi, 32px);
  background: linear-gradient(115deg, #f8fafc, #f1f6fa);
  color: var(--nr-ink);
}
.natura-widget .nr-brand > div { min-width: 0; }
.natura-widget .nr-business-logo { max-width: 78px; height: 34px; margin: 0; }
.natura-widget .nr-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  overflow-wrap: anywhere;
}
.natura-widget .nr-brand-mark { color: var(--nr-action-ink); font-size: 17px; }
.natura-widget .nr-brand:has(.nr-business-logo) .nr-brand-mark { display: none; }
.natura-widget .nr-brand h2 {
  margin: 10px 0 4px;
  font-size: clamp(20px, 4cqi, 29px);
  font-weight: 600;
}
.natura-widget .nr-brand p { color: var(--nr-muted); }
.natura-widget .nr-shell[data-booking-step]:not([data-booking-step="0"]) .nr-brand :is(h2, p) { display: none; }
.natura-widget .nr-main { padding: clamp(14px, 4cqi, 32px); }
.natura-widget .nr-progress-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
}
.natura-widget .nr-progress-heading > span:last-child {
  flex-shrink: 0;
  color: var(--nr-muted);
  font-size: 12px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.natura-widget .nr-progress {
  display: flex;
  gap: 5px;
  margin: 0 0 24px !important;
}
.natura-widget .nr-progress li {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 4px;
  border-radius: 8px;
  background: #e5ebf1;
}
.natura-widget .nr-progress li.is-done { background: #a4b2c6; }
.natura-widget .nr-progress li.is-current { background: var(--nr-action-ink, #1a244d); }
.natura-widget .nr-progress li > .nr-step-name {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  background: transparent;
}
.natura-widget .nr-body h2 {
  font-size: clamp(20px, 3.7cqi, 28px);
  font-weight: 600;
  letter-spacing: -.025em;
}
.natura-widget .nr-body h3 { font-weight: 600; }
.natura-widget .nr-body > p { color: var(--nr-muted); }
.natura-widget .nr-grid { gap: 10px; }
.natura-widget .nr-body > .nr-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
}
.natura-widget .nr-choice {
  min-width: 0;
  min-height: 0;
  padding: 13px 32px 13px 14px;
  border: 1px solid var(--nr-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  overflow-wrap: anywhere;
}
.natura-widget .nr-choice[aria-pressed="true"],
.natura-widget .nr-slot[aria-pressed="true"] {
  border-color: var(--nr-action-ink, #1a244d);
  background: #f2f6fb;
  box-shadow: none;
}
.natura-widget .nr-choice-title { font-size: 15px; font-weight: 600; }
.natura-widget .nr-choice-icon { width: 27px; height: 27px; }
.natura-widget .nr-choice .nr-choice-price {
  margin-top: 3px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}
.natura-widget .nr-extra-group {
  padding: 13px;
  border: 1px solid var(--nr-line);
  border-radius: 12px;
  background: #f8fafc;
}
.natura-widget .nr-extra-group .nr-choice { padding: 9px 10px; min-height: 44px; }
.natura-widget .nr-extras-total, .natura-widget .nr-total { background: #f1f5f9; }
.natura-widget .nr-total strong { font-size: 20px; font-weight: 600; }
.natura-widget .nr-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.natura-widget .nr-footer-selection {
  margin-inline-end: auto;
  font-size: 13px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.natura-widget .nr-footer .nr-back:disabled { display: none; }
.natura-widget .nr-next { border-radius: 9px; font-weight: 600; box-shadow: none; }
.natura-widget .nr-plan-secondary { margin-top: 12px; }
.natura-widget .nr-plan-secondary button {
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: var(--nr-action-ink);
  box-shadow: none;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@container (max-width: 520px) {
  .natura-widget .nr-availability-layout { grid-template-columns: minmax(0, 1fr); }
  .natura-widget .nr-footer-selection { flex-basis: 100%; }
  .natura-widget .nr-footer .nr-next { margin-inline-start: auto; }
}
.natura-widget .nr-body { animation: none; }

.natura-widget .nr-payment-choice,
.natura-widget .nr-order {
  padding: 16px;
  border: 1px solid var(--nr-line);
  border-radius: 12px;
  background: #f6f7f9;
}
.natura-widget .nr-payment-choice h3,
.natura-widget .nr-order h3 { margin: 0 0 12px; }
.natura-widget .nr-order { margin: 16px 0; }
.natura-widget .nr-order dl { margin: 0; }
.natura-widget .nr-order dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding-block: 5px;
}
.natura-widget .nr-order dt { overflow-wrap: anywhere; }
.natura-widget .nr-order dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.natura-widget .nr-order dl > .nr-order-total {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--nr-line);
  font-weight: 600;
}
.natura-widget .nr-order .nr-note { margin: 10px 0 0; }
.natura-widget [data-booking-step="3"] label,
.natura-widget [data-booking-step="3"] .bz-help-label-line { line-height: 24px; }
.natura-widget [data-booking-step="3"] label .bz-help-trigger {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  max-width: 22px !important;
  flex-basis: 22px !important;
  font-size: 11px !important;
}

.natura-widget [data-coupon-status] {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.45;
}
.natura-widget [data-coupon-status][data-tone="error"] { color: #9c3029; }
.natura-widget [data-coupon-status][data-tone="success"] { color: #246042; }

/* Compact catalog cards and layouts sized to the space provided by the host theme. */
.natura-widget .nr-body > .nr-service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.natura-widget .nr-service-grid .nr-service-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17px;
  grid-template-rows: 1fr auto;
  align-items: start;
  gap: 7px 10px;
  padding: 14px;
  min-height: 78px;
  text-align: start;
  color: var(--nr-ink);
}
.natura-widget .nr-service-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.natura-widget .nr-service-meta {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  flex-wrap: wrap;
  color: var(--nr-muted);
  font-size: 12px;
  line-height: 1.35;
}
.natura-widget .nr-service-meta strong {
  color: var(--nr-action-ink, var(--nr-ink));
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.natura-widget .nr-service-check {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1px solid #b8c4d0;
  border-radius: 50%;
  color: var(--nr-on-primary, #fff);
  font-size: 11px;
  line-height: 1;
}
.natura-widget .nr-service-card[aria-pressed="true"] .nr-service-check {
  background: var(--nr-action-bg, #1a244d);
  border-color: var(--nr-action-bg, #1a244d);
}
.natura-widget .nr-service-card:focus-visible { outline: 2px solid var(--nr-action-ink, #1a244d); outline-offset: 2px; }

@container (max-width: 540px) {
  .natura-widget .nr-brand { gap: 9px; padding: 11px 13px; }
  .natura-widget .nr-business-logo { max-width: 54px; height: 28px; }
  .natura-widget .nr-brand .nr-kicker { font-size: 12px; }
  .natura-widget .nr-brand h2 { font-size: 16px; line-height: 1.25; margin: 4px 0 0; }
  .natura-widget .nr-brand p { font-size: 12px; margin-top: 3px; line-height: 1.35; }
  .natura-widget .nr-main { padding: 13px; }
  .natura-widget .nr-progress { margin-bottom: 15px !important; }
  .natura-widget .nr-body h2 { font-size: 17px; line-height: 1.3; }
  .natura-widget .nr-body h3 { font-size: 15px; }
  .natura-widget .nr-body > p { margin-bottom: 11px; font-size: 12px; }
  .natura-widget .nr-body h2 .bz-help-trigger {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    max-width: 22px !important;
    font-size: 11px !important;
  }
  .natura-widget .nr-body > .nr-service-grid { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .natura-widget .nr-service-grid .nr-service-card { padding: 9px 10px; min-height: 52px; row-gap: 4px; }
  .natura-widget .nr-service-name { font-size: 12px; }
  .natura-widget .nr-plan-secondary { margin-top: 7px; }
  .natura-widget .nr-plan-secondary button { font-size: 12px; }
  .natura-widget .nr-footer { margin-top: 10px; padding-top: 10px; }
}

/* Give narrow, centered WordPress content columns room on phone screens. */
@media (max-width: 540px) {
  .natura-widget {
    width: calc(100vw - 20px);
    max-width: none;
    margin-inline: calc((100% - 100vw) / 2 + 10px);
  }
}

/* Shared state colors remain readable regardless of the theme's button palette. */
.natura-widget {
  --nr-choice-surface: #f0f4f8;
  --nr-choice-border: #74859a;
  --nr-selected-surface: #dbeafe;
  --nr-selected-ink: #12365e;
  --nr-focus: #1757a4;
}
.natura-widget .nr-main { background: #fff; }
.natura-widget .nr-brand { background: #e8eef5; }
.natura-widget :is(.nr-choice,.nr-slot) {
  background: var(--nr-choice-surface);
  border-color: var(--nr-choice-border);
  color: #182e46;
  min-height: 44px;
}
.natura-widget :is(.nr-choice,.nr-slot):hover:not(:disabled):not([aria-pressed="true"]) {
  background: #e5edf6;
  border-color: #415c7c;
}
.natura-widget :is(.nr-choice,.nr-slot)[aria-pressed="true"] {
  background: var(--nr-selected-surface);
  border-color: var(--nr-selected-ink);
  color: var(--nr-selected-ink);
  box-shadow: inset 0 0 0 1px var(--nr-selected-ink);
}
.natura-widget .nr-service-check { border-color: #526b85; background: #fff; }
.natura-widget .nr-service-card[aria-pressed="true"] .nr-service-check {
  background: var(--nr-selected-ink);
  border-color: var(--nr-selected-ink);
  color: #fff;
}
.natura-widget .nr-service-name { font-size: 15px; }
.natura-widget .nr-service-meta { font-size: 13px; color: #40546c; }
.natura-widget .nr-slot { position: relative; padding-inline: 22px; }
.natura-widget .nr-slot[aria-pressed="true"]::after {
  content: '✓';
  position: absolute;
  inset-inline-end: 7px;
  top: 7px;
  font-weight: 700;
}
.natura-widget .nr-extra-group .nr-choice[aria-pressed="true"] {
  background: var(--nr-selected-surface);
  border-color: var(--nr-selected-ink);
  box-shadow: inset 0 0 0 1px var(--nr-selected-ink);
}
.natura-widget .nr-extra-group,
.natura-widget .nr-order,
.natura-widget .nr-payment-choice,
.natura-widget .nr-mobile-review {
  background: #eef3f8;
  border-color: #a4b4c6;
}
.natura-widget .nr-order dl > .nr-order-total {
  background: #e0ebf8;
  border-color: #a4b4c6;
  padding-inline: 8px;
}
.natura-widget :is(input:not([type="hidden"]), select, textarea) { border-color: #74859a; }
.natura-widget .cf-dates .cf-date-day.has-space:not(.selected) {
  background: #e8f0fa;
  border-color: #74859a;
  color: #12365e !important;
}
.natura-widget .cf-dates .cf-date-day.selected {
  background: #12365e;
  border-color: #12365e;
  color: #fff !important;
  font-weight: 750;
}
.natura-widget .cf-dates .cf-date-day:disabled {
  background: #eef0f2;
  color: #5b6774 !important;
  border-color: transparent;
  opacity: 1;
}
.natura-widget .nr-next:disabled {
  background: #e1e7ee !important;
  color: #45566b !important;
  border-color: #a4b4c6;
  opacity: 1;
  cursor: not-allowed;
}
.natura-widget :is(button, a, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--nr-focus) !important;
  outline-offset: 2px;
}
.natura-widget .nr-slots :focus-visible { outline-offset: -4px; }

@container (max-width: 540px) {
  .natura-widget .nr-service-name { font-size: 14px; }
  .natura-widget .nr-body > p { font-size: 13px; }
  .natura-widget .nr-service-meta strong { font-size: 14px; }
}
@media (forced-colors: active) {
  .natura-widget :is(.nr-choice,.nr-slot,.cf-date-day)[aria-pressed="true"] {
    border: 2px solid Highlight !important;
  }
  .natura-widget :is(button, a, input, select, textarea, summary):focus-visible {
    outline-color: Highlight !important;
  }
}

.natura-widget [data-slots-heading] {
  scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + 18px);
}
@media (max-width: 680px) {
  .natura-widget .nr-availability-layout .nr-slots { gap: 6px; }
  .natura-widget .nr-slots .nr-slot {
    gap: 2px;
    min-height: 44px;
    padding: 6px 14px;
    justify-content: center;
    line-height: 1.25;
  }
  .natura-widget .nr-slots .nr-slot strong { font-size: 15px; }
  .natura-widget .nr-slots .nr-slot span { font-size: 12px; line-height: 1.2; }
}

/* Keep the calendar filter native when a theme hides selects for custom controls. */
.natura-widget .nr-filters select[data-field="staff"] {
  appearance: auto !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: static !important;
  clip: auto !important;
  clip-path: none !important;
  width: 100% !important;
  height: auto !important;
  min-height: 44px !important;
  padding: 8px 12px !important;
  border: 1px solid #74859a !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #182e46 !important;
}

/* Give the business mark a predictable surface, including wide logo artwork. */
.natura-widget .nr-brand {
  background: #edf3f9;
  border-bottom-color: #cbd8e6;
}
.natura-widget .nr-brand .nr-business-logo {
  display: block;
  width: 112px;
  max-width: none;
  height: 60px;
  padding: 7px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #cbd8e6;
  border-radius: 12px;
}
.natura-widget [data-booking-step="0"] .nr-brand {
  gap: 18px;
  padding-block: 20px;
}
.natura-widget [data-booking-step="0"] .nr-brand .nr-business-logo {
  width: 146px;
  height: 86px;
}
.natura-widget .nr-brand .nr-kicker {
  font-size: 14px;
  line-height: 1.35;
}
.natura-widget .nr-brand h2 { margin-top: 5px; }
.natura-widget .nr-brand p { margin-bottom: 0; }

@container (max-width: 540px) {
  .natura-widget .nr-brand .nr-business-logo {
    width: 90px;
    height: 46px;
    padding: 4px;
    border-radius: 9px;
  }
  .natura-widget [data-booking-step="0"] .nr-brand { gap: 6px 12px; padding: 12px 14px; }
  .natura-widget [data-booking-step="0"] .nr-brand:has(.nr-business-logo) {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }
  .natura-widget [data-booking-step="0"] .nr-brand:has(.nr-business-logo) > div { display: contents; }
  .natura-widget [data-booking-step="0"] .nr-brand .nr-business-logo { width: 112px; height: 56px; }
  .natura-widget [data-booking-step="0"] .nr-brand :is(h2, p) { grid-column: 1 / -1; margin: 0; }
  .natura-widget .nr-brand .nr-kicker { font-size: 13px; }
  .natura-widget .nr-brand h2 { font-size: 18px; line-height: 1.2; }
  .natura-widget .nr-brand p { font-size: 13px; }
}

@keyframes westcode-booking-enter {
  from { opacity: .55; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .natura-widget [data-booking-intro] .nr-brand,
  .natura-widget [data-step-enter] .nr-progress-heading,
  .natura-widget [data-step-enter] .nr-body > *,
  .natura-widget [data-payment-enter] {
    animation: westcode-booking-enter 480ms cubic-bezier(.22,.61,.36,1) both;
  }
  .natura-widget [data-step-enter] .nr-body > :nth-child(2) { animation-delay: 60ms; }
  .natura-widget [data-step-enter] .nr-body > :nth-child(3) { animation-delay: 115ms; }
  .natura-widget [data-step-enter] .nr-service-card:nth-child(-n+6),
  .natura-widget [data-times-enter] .nr-slot:nth-child(-n+6) {
    animation: westcode-booking-enter 420ms cubic-bezier(.22,.61,.36,1) both;
  }
  .natura-widget :is(.nr-service-grid,.nr-slots) > :nth-child(2) { animation-delay: 45ms; }
  .natura-widget :is(.nr-service-grid,.nr-slots) > :nth-child(3) { animation-delay: 90ms; }
  .natura-widget :is(.nr-service-grid,.nr-slots) > :nth-child(4) { animation-delay: 135ms; }
  .natura-widget :is(.nr-service-grid,.nr-slots) > :nth-child(n+5) { animation-delay: 180ms; }
  .natura-widget :is(.nr-choice,.nr-slot,.nr-next,.nr-back,.cf-date-day) {
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  }
  .natura-widget :is(.nr-choice,.nr-slot,.nr-next,.nr-back,.cf-date-day):focus-visible { animation: none; }
}
