/* DESCRIPTION: Canonical checkbox styling for Nemtly Booking.
   DESCRIPTION: Import this partial in every CSS entry that renders visible checkboxes. */

input[type="checkbox"] {
	color: #252525;
	accent-color: #252525;
	cursor: pointer;
}

/* DESCRIPTION: Setup wizard styles — Junto-inspired cream surface, near-black ink,
   single saturated accent. All color/shadow values resolve from tailwind.config.js
   via theme() so a single config edit propagates everywhere. */

.nemtly-wizard-page {
	position: fixed;
	inset: 0;
	background: #FFFFFF;
	display: flex;
	z-index: 9999;
	color: #0F0F10;
	-webkit-font-smoothing: antialiased;

}

/* ---------- Left column (content) ---------- */

.nemtly-wizard-left {
	flex: 0 0 52%;
	max-width: 52%;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
}

.nemtly-wizard-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 24px 56px 0;
}

.nemtly-wizard-brand {
	font-weight: 700;
	font-size: 16px;
	letter-spacing: -0.01em;
	color: #0F0F10;
}

.nemtly-wizard-progress-wrap {
	padding: 20px 56px 0;
}

.nemtly-wizard-progress {
	height: 4px;
	background: #E7E5DF;
	border-radius: 9999px;
	overflow: hidden;
}

.nemtly-wizard-progress-fill {
	height: 100%;
	background: #252525;
	transition: width 240ms ease;
	border-radius: 9999px;
}

.nemtly-wizard-content {
	flex: 1 1 auto;
	padding: 36px 56px 24px;
	max-width: 560px;
	width: 100%;
	box-sizing: border-box;
}

/* ---------- Right column (decorative panel) ---------- */

.nemtly-wizard-right {
	flex: 0 0 48%;
	max-width: 48%;
	position: relative;
	overflow: hidden;
}

@media (max-width: 960px) {

	.nemtly-wizard-page {
		flex-direction: column;
	}

	.nemtly-wizard-left,
	.nemtly-wizard-right {
		flex: 1 1 auto;
		max-width: 100%;
	}

	.nemtly-wizard-right {
		min-height: 240px;
		max-height: 280px;
	}

	.nemtly-wizard-topbar,
	.nemtly-wizard-progress-wrap,
	.nemtly-wizard-content {
		padding-right: 28px;
		padding-left: 28px;
	}
}

.nemtly-wizard-headline {
	margin: 0 0 8px;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: #0F0F10;
}

.nemtly-wizard-lede {
	margin: 0 0 28px;
	font-size: 15px;
	line-height: 1.55;
	color: #5B5B62;
}

/* ---------- Footer ---------- */

.nemtly-wizard-footer {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 12px;
	padding: 20px 56px 32px;
	border-top: 1px solid #E7E5DF;
	margin-top: 24px;
}

@media (max-width: 960px) {

	.nemtly-wizard-footer {
		padding-right: 28px;
		padding-left: 28px;
	}
}

.nemtly-wizard-footer-left {
	justify-self: start;
}

.nemtly-wizard-footer-center {
	justify-self: center;
}

.nemtly-wizard-footer-right {
	justify-self: end;
}

.nemtly-wizard-btn {
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	border-radius: 0.375rem;
	padding: 10px 18px;
	border: 1px solid transparent;
	transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.nemtly-wizard-btn:focus-visible {
	outline: 2px solid #252525;
	outline-offset: 2px;
}

.nemtly-wizard-btn[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
}

.nemtly-wizard-btn--primary {
	background: #252525;
	color: #fff;
}

.nemtly-wizard-btn--primary:hover:not([disabled]) {
	background: #121212;
}

.nemtly-wizard-btn--secondary {
	background: transparent;
	color: #0F0F10;
	border-color: #D6D4CD;
}

.nemtly-wizard-btn--secondary:hover:not([disabled]) {
	background: #F8F6F1;
}

.nemtly-wizard-btn--link {
	background: transparent;
	color: #5B5B62;
	padding: 10px 4px;
}

.nemtly-wizard-btn--link:hover:not([disabled]) {
	color: #0F0F10;
}

/* Topbar "Skip setup" escape hatch — tertiary weight beside the brand. */
.nemtly-wizard-skip-setup {
	font-weight: 500;
	font-size: 13px;
}

/* ---------- Choice cards (business type, payments) ---------- */

.nemtly-wizard-grid {
	display: grid;
	gap: 14px;
}

.nemtly-wizard-grid--2 {
	grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 540px) {

	.nemtly-wizard-grid--2 {
		grid-template-columns: 1fr;
	}
}

.nemtly-wizard-choice {
	font: inherit;
	text-align: right;
	background: #FFFFFF;
	border: 1px solid #D6D4CD;
	border-radius: 0.375rem;
	padding: 18px 20px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 4px;
	transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.nemtly-wizard-choice:hover {
	border-color: #5B5B62;
}

.nemtly-wizard-choice.is-active {
	border-color: #252525;
	background: #ECEAE4;
	box-shadow: 0 0 0 1px #252525 inset;
}

.nemtly-wizard-choice__title {
	font-size: 15px;
	font-weight: 600;
	color: #0F0F10;
}

.nemtly-wizard-choice__desc {
	font-size: 13px;
	color: #5B5B62;
	line-height: 1.45;
}

/* ---------- Form fields ---------- */

.nemtly-wizard-field {
	margin-bottom: 18px;
}

.nemtly-wizard-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #0F0F10;
	margin-bottom: 6px;
}

.nemtly-wizard-field input[type="text"],
.nemtly-wizard-field input[type="password"],
.nemtly-wizard-field select,
.nemtly-wizard-time {
	width: 100%;
	font: inherit;
	font-size: 14px;
	padding: 10px 12px;
	border: 1px solid #D6D4CD;
	border-radius: 0.375rem;
	background: #FFFFFF;
	color: #0F0F10;
	box-sizing: border-box;
}

.nemtly-wizard-field input:focus,
.nemtly-wizard-field select:focus,
.nemtly-wizard-time:focus {
	outline: none;
	border-color: #252525;
	box-shadow: 0 0 0 3px #ECEAE4;
}

.nemtly-wizard-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

@media (max-width: 540px) {

	.nemtly-wizard-field-row {
		grid-template-columns: 1fr;
	}
}

.nemtly-wizard-substep {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px dashed #D6D4CD;
}

.nemtly-wizard-hint {
	font-size: 13px;
	color: #5B5B62;
	margin: 4px 0 0;
}

.nemtly-wizard-hint a {
	color: #252525;
	text-decoration: none;
}

.nemtly-wizard-hint a:hover {
	text-decoration: underline;
}

.nemtly-wizard-fineprint {
	margin-top: 24px;
	font-size: 12px;
	color: #9A9AA3;
}

/* ---------- Work hours rows ---------- */

.nemtly-wizard-days {
	display: flex;
	flex-direction: column;
	border: 1px solid #E7E5DF;
	border-radius: 0.375rem;
	overflow: hidden;
	width: -moz-fit-content;
	width: fit-content;
}

.nemtly-wizard-day {
	display: flex;
	align-items: flex-start;
	padding: 12px 16px;
	border-bottom: 1px solid #E7E5DF;
	background: #FFFFFF;
	gap: 16px;
}

.nemtly-wizard-day:last-child {
	border-bottom: 0;
}

.nemtly-wizard-day.is-off {
	background: #F8F6F1;
}

.nemtly-wizard-day__toggle-col {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	padding-top: 6px;
	min-width: 120px;
}

.nemtly-wizard-day__toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	-webkit-user-select: none;
	   -moz-user-select: none;
	        user-select: none;
}


.nemtly-wizard-day__label {
	font-size: 14px;
	font-weight: 500;
	color: #0F0F10;
}

.nemtly-wizard-day__blocks {
	flex: 1;
}

.nemtly-wizard-day__times-stack {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.nemtly-wizard-day__times {
	display: flex;
	align-items: center;
	gap: 8px;
}

.nemtly-wizard-time {
	width: auto;
	min-width: 100px;
	padding: 6px 10px;
	font-size: 13px;
}

.nemtly-wizard-day__dash {
	color: #9A9AA3;
}

.nemtly-wizard-day__closed {
	font-size: 13px;
	color: #9A9AA3;
	font-style: italic;
	padding-top: 6px;
	margin: 0;
}

.nemtly-wizard-day__icon-btn {
	background: transparent;
	border: 0;
	cursor: pointer;
	padding: 2px;
	transition: color 0.15s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.25rem;
	height: 1.25rem;
	flex-shrink: 0;
}

.nemtly-wizard-day__icon-btn svg {
	width: 1rem;
	height: 1rem;
	display: block;
}

.nemtly-wizard-day__icon-btn--remove {
	color: #D6D4CD;
}

.nemtly-wizard-day__icon-btn--remove:hover {
	color: #B3261E;
}

.nemtly-wizard-day__icon-btn--add {
	color: #a3a3a3;
}

.nemtly-wizard-day__icon-btn--add:hover {
	color: #16794B;
}

/* ---------- Notification toggles ---------- */

.nemtly-wizard-toggles {
	display: flex;
	flex-direction: column;
	gap: 0;
	border: 1px solid #E7E5DF;
	border-radius: 0.375rem;
	overflow: hidden;
}

.nemtly-wizard-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 18px;
	border-bottom: 1px solid #E7E5DF;
	background: #FFFFFF;
	cursor: pointer;
	gap: 16px;
}

.nemtly-wizard-toggle:last-child {
	border-bottom: 0;
}

.nemtly-wizard-toggle__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.nemtly-wizard-toggle__title {
	font-size: 14px;
	font-weight: 600;
	color: #0F0F10;
}

.nemtly-wizard-toggle__desc {
	font-size: 13px;
	color: #5B5B62;
	line-height: 1.4;
}

.nemtly-wizard-switch {
	flex: 0 0 auto;
	width: 40px;
	height: 22px;
	background: #D6D4CD;
	border-radius: 9999px;
	position: relative;
	transition: background 160ms ease;
	cursor: pointer;
	display: inline-block;
}

.nemtly-wizard-switch.is-on {
	background: #252525;
}

.nemtly-wizard-switch:focus-visible {
	outline: 2px solid #252525;
	outline-offset: 2px;
}

.nemtly-wizard-switch__thumb {
	position: absolute;
	top: 2px;
	right: 2px;
	width: 18px;
	height: 18px;
	background: #fff;
	border-radius: 9999px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
	transition: transform 160ms ease;
}

.nemtly-wizard-switch.is-on .nemtly-wizard-switch__thumb {
	transform: translateX(-18px);
}

/* Stacked toggle — holds a row plus an expandable disclosure below it. */
.nemtly-wizard-toggle--stack {
	flex-direction: column;
	align-items: stretch;
	cursor: default;
}

.nemtly-wizard-toggle__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.nemtly-wizard-link {
	-webkit-appearance: none;
	   -moz-appearance: none;
	        appearance: none;
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	font: inherit;
	color: #252525;
	text-decoration: underline;
	cursor: pointer;
}

.nemtly-wizard-link:hover {
	color: #121212;
}

.nemtly-wizard-link:focus-visible {
	outline: 2px solid #252525;
	outline-offset: 2px;
}

.nemtly-wizard-collected {
	list-style: disc;
	margin: 10px 0 0;
	padding-right: 18px;
	-moz-columns: 2;
	     columns: 2;
	font-size: 12px;
	color: #9A9AA3;
}

.nemtly-wizard-collected li {
	margin: 0 0 2px;
}

/* ---------- Welcome bullets ---------- */

.nemtly-wizard-bullets {
	list-style: none;
	padding: 0;
	margin: 24px 0 0;
}

.nemtly-wizard-bullets li {
	position: relative;
	padding-right: 26px;
	margin-bottom: 12px;
	font-size: 14px;
	color: #5B5B62;
	line-height: 1.55;
}

.nemtly-wizard-bullets li::before {
	content: "✓";
	position: absolute;
	right: 0;
	top: 0;
	color: #16794B;
	font-weight: 700;
}

/* ---------- Finalizing checklist ---------- */

.nemtly-wizard-checklist {
	list-style: none;
	padding: 0;
	margin: 8px 0 0;
}

.nemtly-wizard-checklist__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	font-size: 14px;
	color: #5B5B62;
	transition: color 200ms ease;
}

.nemtly-wizard-checklist__item.is-done {
	color: #0F0F10;
}

.nemtly-wizard-checklist__icon {
	width: 22px;
	height: 22px;
	border-radius: 9999px;
	background: #E7E5DF;
	color: #9A9AA3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	transition: background 200ms ease, color 200ms ease;
}

.nemtly-wizard-checklist__item.is-done .nemtly-wizard-checklist__icon {
	background: #16794B;
	color: #fff;
}

/* ---------- Done tiles ---------- */

.nemtly-wizard-done-tiles {
	display: grid;
	gap: 12px;
	margin-top: 8px;
}

.nemtly-wizard-tile {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 18px 20px;
	border: 1px solid #D6D4CD;
	border-radius: 0.375rem;
	background: #FFFFFF;
	text-decoration: none;
	color: #0F0F10;
	transition: border-color 160ms ease, background 160ms ease;
}

.nemtly-wizard-tile:hover {
	border-color: #5B5B62;
}

.nemtly-wizard-tile--primary {
	background: #252525;
	border-color: #252525;
	color: #fff;
}

.nemtly-wizard-tile--primary:hover {
	background: #121212;
	border-color: #121212;
}

.nemtly-wizard-tile__title {
	font-size: 15px;
	font-weight: 600;
}

.nemtly-wizard-tile__desc {
	font-size: 13px;
	opacity: 0.85;
}

/* ---------- Welcome layout ---------- */

.nemtly-wizard-welcome,
.nemtly-wizard-step,
.nemtly-wizard-finalizing,
.nemtly-wizard-done {
	display: flex;
	flex-direction: column;
}

/* DESCRIPTION: Shared styles for the EventHero component (.nb-event-hero*).
   DESCRIPTION: Imported by both the frontend booking-form bundle and the admin
   DESCRIPTION: events-app bundle so the admin preview renders identically to production. */

/* ============================================================
   EventHero — scoped to .nb-event-hero
   ------------------------------------------------------------
   Base palette vars are declared here (mirroring .nb-app in
   booking-form.css) so the hero renders correctly standalone
   in the admin preview. Inside .nb-app the parent's values
   cascade through; the identical fallbacks here are a no-op
   in the frontend but essential in admin.

   Per-event styling overrides set --nb-* vars inline on the
   wrapper element. Derived vars (--nb-text-secondary etc.)
   re-derive automatically via color-mix() referencing the
   overridden base vars.
   ============================================================ */

.nb-event-hero {
	/* Base palette — host theme first, tailwind token fallback. */
	--nb-accent: var(--wp--preset--color--accent, var(--wp--preset--color--primary, #252525));
	--nb-accent-strong: color-mix(in srgb, var(--nb-accent) 70%, #000);
	--nb-on-accent: #fff;
	--nb-surface: var(--wp--preset--color--base, #FFFFFF);
	--nb-ink: var(--wp--preset--color--contrast, #0F0F10);

	/* Derived neutral scale — mirrors .nb-app so the hero is self-contained. */
	--nb-text: var(--nb-ink);
	--nb-text-secondary: color-mix(in srgb, var(--nb-ink) 62%, var(--nb-surface));
	--nb-text-tertiary: color-mix(in srgb, var(--nb-ink) 42%, var(--nb-surface));
	--nb-border-subtle: color-mix(in srgb, var(--nb-ink) 9%, var(--nb-surface));

	/* Element-specific color tokens. Each defaults to the current look, so the
	   hero is unchanged when no per-event override is set; inline overrides set
	   by getEventStyleVars() win via the cascade (inline > stylesheet). */
	--nb-title-text: var(--nb-on-accent);
	--nb-pill-text: var(--nb-on-accent);
	--nb-pill-bg: color-mix(in srgb, #fff 22%, transparent);
	--nb-price-text: var(--nb-ink);
	--nb-button-bg: var(--nb-accent);
	--nb-button-text: var(--nb-on-accent);

	max-width: 48.75rem; /* 780px */
	margin-inline: auto;
	background: var(--nb-surface);
	border: 1px solid var(--nb-border-subtle);
	border-radius: var(--nb-radius, 1rem);
	box-shadow: var(--nb-shadow, 0 1px 2px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.04));
	overflow: hidden;
}

.nb-event-hero__top {
	background: linear-gradient(-160deg, var(--nb-accent) 0%, var(--nb-accent-strong) 100%);
	padding: calc(2rem * var(--nb-spacing-mult, 1)) calc(2rem * var(--nb-spacing-mult, 1));
	color: var(--nb-title-text);
}

/* When the event has a featured image, it becomes the header background and the
   accent "Header background" color is not shown. A neutral dark scrim layers over
   the image only so the title (in --nb-on-accent) stays legible — no accent tint.
   --nb-banner is set inline by EventHero. */
.nb-event-hero__top--has-banner {
	background:
		linear-gradient(-160deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.45) 100%),
		var(--nb-banner) center/cover no-repeat;
}

.nb-event-hero__tag {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: var(--nb-pill-bg);
	color: var(--nb-pill-text);
	border-radius: 9999px;
	padding: 0.25rem 0.75rem;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin-bottom: calc(1rem * var(--nb-spacing-mult, 1));
}

.nb-event-hero__title {
	font-size: var(--nb-heading-size, 2rem);
	font-weight: var(--nb-heading-weight, 700);
	letter-spacing: -0.025em;
	line-height: 1.15;
	margin: 0 0 calc(0.75rem * var(--nb-spacing-mult, 1));
	/* Explicit color so WP admin h2 rules can't clobber the inherited value. */
	color: var(--nb-title-text);
}

.nb-event-hero__sub {
	font-size: 0.9375rem;
	opacity: 0.9;
	line-height: 1.5;
	max-width: 30rem;
}

.nb-event-hero__body {
	padding: calc(1.5rem * var(--nb-spacing-mult, 1)) calc(2rem * var(--nb-spacing-mult, 1));
}

.nb-event-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: calc(1.25rem * var(--nb-spacing-mult, 1)) calc(1.5rem * var(--nb-spacing-mult, 1));
	margin-bottom: calc(1.25rem * var(--nb-spacing-mult, 1));
}

.nb-event-hero__meta-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: var(--nb-text-secondary);
}

.nb-event-hero__meta-icon {
	width: 1.25rem;
	display: inline-flex;
	justify-content: center;
	color: var(--nb-text-tertiary);
	flex-shrink: 0;
}

.nb-event-hero__desc {
	font-size: 0.9375rem;
	color: var(--nb-text-secondary);
	line-height: 1.7;
	margin-bottom: calc(1.5rem * var(--nb-spacing-mult, 1));
}

.nb-event-hero__cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	padding-top: calc(1.25rem * var(--nb-spacing-mult, 1));
	border-top: 1px solid var(--nb-border-subtle);
}

.nb-event-hero__price {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--nb-price-text);
	letter-spacing: -0.02em;
}

.nb-event-hero__price-note {
	font-size: 0.75rem;
	color: var(--nb-price-text);
	font-weight: 400;
}

/* Hero-scoped button: uses the split --nb-button-bg / --nb-button-text tokens so
   the button can be styled independently from the header band. Defaults preserve
   the accent look; hover/active darken the chosen button background. */
.nb-event-hero .nemtly-button-primary {
	background: var(--nb-button-bg);
	border-color: var(--nb-button-bg);
	color: var(--nb-button-text);
	border-radius: var(--nb-button-radius, 0.375rem);
}

.nb-event-hero .nemtly-button-primary:hover:not(:disabled) {
	background: color-mix(in srgb, var(--nb-button-bg) 86%, #000);
	border-color: color-mix(in srgb, var(--nb-button-bg) 86%, #000);
}

.nb-event-hero .nemtly-button-primary:active:not(:disabled) {
	background: color-mix(in srgb, var(--nb-button-bg) 72%, #000);
	border-color: color-mix(in srgb, var(--nb-button-bg) 72%, #000);
}

/* ── Responsive (container-based, matches the widget approach) ── */
@container (max-width: 28rem) {
	.nb-event-hero__top,
	.nb-event-hero__body {
		padding: calc(1.5rem * var(--nb-spacing-mult, 1)) calc(1.25rem * var(--nb-spacing-mult, 1));
	}
}

