.hbk-booking {
	--hbk-bg: #f6f7f8;
	--hbk-card: #ffffff;
	--hbk-border: #d0d5de;
	--hbk-border-strong: #bcc3cf;
	--hbk-border-unified: 1.5px solid var(--hbk-border-strong);
	--hbk-accent-faded-border: rgba(68, 29, 33, 0.22);
	--hbk-text: #0F0F0F;
	--hbk-muted: #6f7a89;
	--hbk-accent: #441D21;
	--hbk-accent-dark: #0F0F0F;
	--hbk-danger: #b42318;
	--hbk-radius: 8px;
	color: var(--hbk-text);
	font-family: "Ubuntu", "Segoe UI", sans-serif;
	max-width: 920px;
	margin: 0 auto;
}

.hbk-card {
	background: linear-gradient(
		180deg,
		rgba(255, 255, 255, 0.99) 0%,
		rgba(68, 29, 33, 0.035) 58%,
		rgba(15, 15, 15, 0.025) 100%
	);
	border: 1.5px solid var(--hbk-border-strong);
	border-radius: var(--hbk-radius);
	padding: 28px;
	box-shadow: none;
}

.hbk-progress {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 18px;
}

.hbk-progress-step {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px;
	border-radius: 8px;
	border: var(--hbk-border-unified);
	background: #f7f8fa;
	color: var(--hbk-muted);
}

.hbk-progress-step span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 999px;
	background: #dfe3e8;
	font-weight: 700;
	font-size: 13px;
}

.hbk-progress-step small {
	font-weight: 500;
	font-size: 13px;
}

.hbk-progress-step.is-active,
.hbk-progress-step.is-done {
	border-color: rgba(68, 29, 33, 0.28);
	background: rgba(68, 29, 33, 0.08);
	color: var(--hbk-accent-dark);
}

.hbk-progress-step.is-active span,
.hbk-progress-step.is-done span {
	background: var(--hbk-accent);
	color: #fff;
}

.hbk-step h3 {
	margin: 6px 0 14px;
	font-size: 24px;
	font-weight: 700;
	font-family: "Ubuntu", "Segoe UI", sans-serif !important;
}

.hbk-alert {
	border: var(--hbk-border-unified);
	padding: 10px 12px;
	border-radius: 6px;
	margin-bottom: 14px;
	font-size: 14px;
}

.hbk-alert--error {
	border-color: rgba(180, 35, 24, 0.3);
	background: #fef3f2;
	color: var(--hbk-danger);
}

.hbk-alert--info {
	border-color: rgba(68, 29, 33, 0.25);
	background: rgba(68, 29, 33, 0.08);
	color: var(--hbk-accent-dark);
}

.hbk-services {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 8px;
}

.hbk-service-card {
	border: 1.5px solid var(--hbk-accent-faded-border);
	background: #fff;
	border-radius: 6px;
	padding: 10px;
	padding-right: 30px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	text-align: left;
	cursor: pointer;
	transition: all 0.2s ease;
	font: inherit;
	color: var(--hbk-text);
	position: relative;
}

.hbk-service-card strong {
	display: block;
	font-size: 14px;
	line-height: 1.3;
	margin-bottom: 0;
}

.hbk-service-card span,
.hbk-service-card small {
	display: block;
	color: var(--hbk-muted);
	font-size: 12px;
	line-height: 1.3;
}

.hbk-service-card .hbk-service-duration {
	margin-top: auto;
}

.hbk-service-card:hover,
.hbk-service-card.is-selected {
	border-color: rgba(68, 29, 33, 0.75);
	box-shadow: none;
}

.hbk-service-card.is-selected::after {
	content: "";
	position: absolute;
	top: 7px;
	right: 7px;
	width: 18px;
	height: 18px;
	border-radius: 5px;
	background: var(--hbk-accent);
	border: 1px solid var(--hbk-accent-dark);
}

.hbk-service-card.is-selected::before {
	content: "";
	position: absolute;
	top: 11px;
	right: 11px;
	width: 10px;
	height: 10px;
	background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 fill=%27none%27%3E%3Cpath d=%27M3.5 8.5l2.5 2.5 6-6%27 stroke=%27white%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E");
	z-index: 1;
}

.hbk-datetime-layout {
	display: grid;
	grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
	gap: 12px;
	align-items: stretch;
}

.hbk-calendar-pane,
.hbk-times-pane {
	border: var(--hbk-border-unified);
	border-radius: 6px;
	background: #fff;
	padding: 10px;
	height: 100%;
}

.hbk-calendar-pane {
	display: flex;
	flex-direction: column;
}

.hbk-times-pane {
	position: relative;
	display: flex;
	flex-direction: column;
}

.hbk-calendar-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	margin-bottom: 8px;
}

.hbk-calendar-head strong {
	font-size: 14px;
	font-weight: 600;
}

.hbk-cal-nav {
	width: 28px;
	height: 28px;
	border: var(--hbk-border-unified);
	border-radius: 6px;
	background: #fff;
	color: var(--hbk-text);
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.hbk-cal-nav:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.hbk-calendar-weekdays,
.hbk-calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 4px;
}

.hbk-calendar-weekdays {
	margin-bottom: 4px;
}

.hbk-calendar-weekdays span {
	text-align: center;
	font-size: 11px;
	font-weight: 600;
	color: var(--hbk-muted);
}

.hbk-cal-day-empty {
	display: block;
	height: 34px;
}

.hbk-cal-day {
	height: 34px;
	border: 1px solid var(--hbk-border);
	border-radius: 6px;
	background: #fff;
	color: var(--hbk-text);
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}

.hbk-cal-day:hover:not(:disabled) {
	border-color: rgba(68, 29, 33, 0.45);
	background: rgba(68, 29, 33, 0.08);
}

.hbk-cal-day.is-today {
	border-color: rgba(68, 29, 33, 0.65);
}

.hbk-cal-day.is-selected {
	background: var(--hbk-accent);
	border-color: var(--hbk-accent);
	color: #fff;
}

.hbk-cal-day:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.hbk-cal-day.is-unavailable {
	opacity: 0.3;
}

.hbk-calendar-grid.is-loading .hbk-cal-day {
	pointer-events: none;
	opacity: 0.55;
}

.hbk-selected-date {
	margin: 0 0 8px;
	font-size: 13px;
	color: var(--hbk-muted);
	display: none;
}

.hbk-times {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
	gap: 6px;
	min-height: 44px;
	flex: 1 1 auto;
	align-content: flex-start;
}

.hbk-times-pane .hbk-times {
	min-height: 120px;
}

.hbk-times-empty {
	grid-column: 1 / -1;
	min-height: 120px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: var(--hbk-muted);
	font-size: 14px;
	padding: 8px;
}

.hbk-times.is-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	align-content: center;
}

.hbk-times.is-empty .hbk-times-empty {
	min-height: 0;
}

.hbk-times-loader {
	position: absolute;
	inset: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.hbk-times-loader[hidden] {
	display: none !important;
}

.hbk-times[hidden] {
	display: none !important;
}

.hbk-spinner {
	width: 22px;
	height: 22px;
	border: 1.5px solid var(--hbk-border);
	border-top-color: var(--hbk-accent);
	border-radius: 50%;
	animation: hbk-spin 0.8s linear infinite;
}

@keyframes hbk-spin {
	to {
		transform: rotate(360deg);
	}
}

.hbk-time-btn {
	border: var(--hbk-border-unified);
	background: #fff;
	border-radius: 6px;
	padding: 8px 12px;
	width: 100%;
	text-align: center;
	font: inherit;
	font-size: 14px;
	line-height: 1.25;
	white-space: nowrap;
	cursor: pointer;
	transition: all 0.2s ease;
}

.hbk-time-btn:hover,
.hbk-time-btn.is-selected {
	border-color: rgba(68, 29, 33, 0.45);
	background: rgba(68, 29, 33, 0.1);
	color: var(--hbk-accent-dark);
}

.hbk-time-btn.is-unavailable {
	opacity: 0.45;
	cursor: not-allowed;
	background: #f5f6f7;
	color: var(--hbk-muted);
}

.hbk-time-btn.is-unavailable:hover {
	border-color: var(--hbk-border-strong);
	background: #f5f6f7;
	color: var(--hbk-muted);
}

.hbk-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.hbk-form-grid p,
.hbk-step p {
	margin: 0 0 12px;
}

.hbk-step label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.hbk-step input[type="text"],
.hbk-step input[type="email"],
.hbk-step input[type="tel"],
.hbk-step textarea {
	width: 100%;
	padding: 10px 12px;
	border: var(--hbk-border-unified);
	border-radius: 6px;
	background: #fff;
	font: inherit;
	color: var(--hbk-text);
}

.hbk-consent label {
	font-weight: 400;
	line-height: 1.45;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 10px 12px;
	border: var(--hbk-border-unified);
	border-left: 3px solid var(--hbk-accent);
	border-radius: 6px;
	background: #fafbfc;
}

.hbk-consent input[type="checkbox"] {
	width: 16px;
	height: 16px;
	margin: 2px 0 0;
	flex: 0 0 16px;
	transform: none;
	accent-color: var(--hbk-accent);
}

.hbk-consent a {
	color: var(--hbk-accent-dark);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.hbk-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-top: 16px;
}

[data-step-panel="1"] .hbk-actions,
[data-step-panel="2"] .hbk-actions {
	justify-content: flex-end;
}

[data-step-panel="2"] .hbk-actions [data-hbk-back] {
	margin-right: auto;
}

.hbk-btn {
	padding: 11px 18px;
	border-radius: 6px;
	border: 1px solid transparent;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.hbk-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.hbk-btn-primary {
	background: var(--hbk-accent);
	color: #fff;
}

.hbk-btn-primary:hover:not(:disabled) {
	background: var(--hbk-accent-dark);
}

.hbk-btn-secondary {
	background: #fff;
	border: var(--hbk-border-unified);
	color: var(--hbk-text);
}

[data-step-panel="1"] .hbk-actions [data-hbk-next],
[data-step-panel="2"] .hbk-actions [data-hbk-next] {
	padding: 8px 14px;
	font-size: 13px;
	line-height: 1.2;
	min-height: 34px;
}

[data-step-panel="2"] .hbk-actions [data-hbk-back],
[data-step-panel="3"] .hbk-actions [data-hbk-back],
[data-step-panel="3"] .hbk-actions [data-hbk-submit] {
	padding: 8px 14px;
	font-size: 13px;
	line-height: 1.2;
	min-height: 34px;
}

[data-step-panel="3"] .hbk-form-grid {
	gap: 8px 10px;
}

[data-step-panel="3"] .hbk-form-grid p,
[data-step-panel="3"] > form > p {
	margin-bottom: 8px;
}

[data-step-panel="3"] label {
	margin-bottom: 4px;
	font-size: 13px;
}

[data-step-panel="3"] input[type="text"],
[data-step-panel="3"] input[type="email"],
[data-step-panel="3"] input[type="tel"],
[data-step-panel="3"] textarea {
	padding: 8px 10px;
	font-size: 14px;
}

[data-step-panel="3"] textarea {
	min-height: 88px;
}

[data-step-panel="3"] .hbk-consent {
	margin-top: 2px;
}

[data-step-panel="3"] .hbk-consent label {
	margin-bottom: 0;
}

[data-step-panel="3"] .hbk-actions {
	margin-top: 10px;
}

.hbk-success {
	padding: 16px;
	border-radius: 6px;
	border: var(--hbk-border-unified);
	background: rgba(68, 29, 33, 0.08);
	color: var(--hbk-accent-dark);
}

.hbk-success h3 {
	margin-top: 0;
}

@media (max-width: 700px) {
	.hbk-card {
		padding: 18px;
	}

	.hbk-progress {
		grid-template-columns: 1fr;
	}

	.hbk-form-grid {
		grid-template-columns: 1fr;
	}

	.hbk-datetime-layout {
		grid-template-columns: 1fr;
	}

	.hbk-times-pane .hbk-times {
		min-height: 44px;
	}

	.hbk-times {
		grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
	}

	.hbk-actions {
		flex-direction: column;
	}

	.hbk-btn {
		width: 100%;
	}

	[data-step-panel="1"] .hbk-actions,
	[data-step-panel="2"] .hbk-actions {
		align-items: flex-end;
	}

	[data-step-panel="1"] .hbk-actions [data-hbk-next],
	[data-step-panel="2"] .hbk-actions [data-hbk-next] {
		width: auto;
		min-width: 130px;
	}

	[data-step-panel="3"] .hbk-actions [data-hbk-back],
	[data-step-panel="3"] .hbk-actions [data-hbk-submit] {
		width: auto;
		min-width: 130px;
	}
}

/* -------------------------------------------------------------------------
   Morvan-style skin: product page (toggle + panel) and standalone shortcode
   (e.g. Book an Appointment). Toggle/panel rules only apply when those nodes exist.
   ------------------------------------------------------------------------- */

.hbk-booking--product-page {
	--hbk-radius: 0;
	--hbk-border: #1a1a1a;
	--hbk-border-strong: #111111;
	--hbk-border-unified: 1px solid var(--hbk-border-strong);
	--hbk-accent-faded-border: rgba(17, 17, 17, 0.22);
	--hbk-text: #111111;
	--hbk-muted: #666666;
	--hbk-accent: #111111;
	--hbk-accent-dark: #000000;
	max-width: none;
	margin: 0;
	font-family: inherit;
	font-weight: 400;
}

.hbk-booking--product-page.hbk-booking--standalone {
	max-width: 920px;
	margin-left: auto;
	margin-right: auto;
}

/* Match WooCommerce / Morvan add-to-cart button; keep narrow, not full-width */
.hbk-booking--product-page .hbk-btn-appointment-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45em;
	width: auto;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0;
	vertical-align: middle;
}

.hbk-booking--product-page .hbk-booking-panel {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hbk-booking--product-page .hbk-booking-panel.is-open {
	grid-template-rows: 1fr;
	margin-top: 16px;
}

.hbk-booking--product-page .hbk-booking-panel-inner {
	min-height: 0;
	overflow: hidden;
}

.hbk-booking--product-page .hbk-card {
	border-radius: 0;
	background: #ffffff;
	border-color: #111111;
	box-shadow: none;
	padding: 24px;
}

.hbk-booking--product-page .hbk-progress--two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hbk-booking--product-page .hbk-progress-step {
	border-radius: 0;
	font-weight: 400;
}

.hbk-booking--product-page .hbk-progress-step span {
	border-radius: 0;
	font-weight: 500;
}

.hbk-booking--product-page .hbk-progress-step small {
	font-weight: 400;
}

.hbk-booking--product-page .hbk-step h3 {
	font-weight: 400;
	font-size: 1.25rem;
	letter-spacing: 0.02em;
	font-family: inherit !important;
}

.hbk-booking--product-page .hbk-alert {
	border-radius: 0;
}

.hbk-booking--product-page .hbk-calendar-pane,
.hbk-booking--product-page .hbk-times-pane {
	border-radius: 0;
}

.hbk-booking--product-page .hbk-cal-nav {
	border-radius: 0;
}

.hbk-booking--product-page .hbk-cal-day {
	border-radius: 0;
	font-weight: 500;
}

.hbk-booking--product-page .hbk-time-btn {
	border-radius: 0;
	font-weight: 400;
}

.hbk-booking--product-page .hbk-selected-date {
	display: block;
	font-weight: 400;
}

.hbk-booking--product-page .hbk-step label {
	font-weight: 400;
}

.hbk-booking--product-page .hbk-step input[type="text"],
.hbk-booking--product-page .hbk-step input[type="email"],
.hbk-booking--product-page .hbk-step input[type="tel"],
.hbk-booking--product-page .hbk-step textarea {
	border-radius: 0;
	font-weight: 400;
}

.hbk-booking--product-page .hbk-consent label {
	border-radius: 0;
	font-weight: 400;
}

.hbk-booking--product-page .hbk-btn {
	border-radius: 0;
	font-weight: 400;
}

.hbk-booking--product-page .hbk-btn-primary {
	background: #111111;
	border-color: #111111;
	color: #ffffff;
}

.hbk-booking--product-page .hbk-btn-primary:hover:not(:disabled) {
	background: #000000;
	border-color: #000000;
}

.hbk-booking--product-page .hbk-btn-secondary {
	border-color: #111111;
	font-weight: 400;
}

.hbk-booking--product-page .hbk-success {
	border-radius: 0;
	font-weight: 400;
}

.hbk-booking--product-page .hbk-success h3 {
	font-weight: 400;
}

.hbk-booking--product-page .hbk-progress-step.is-active,
.hbk-booking--product-page .hbk-progress-step.is-done {
	border-color: #111111;
	background: rgba(0, 0, 0, 0.05);
	color: #111111;
}

.hbk-booking--product-page .hbk-progress-step.is-active span,
.hbk-booking--product-page .hbk-progress-step.is-done span {
	background: #111111;
	color: #ffffff;
}

.hbk-booking--product-page .hbk-cal-day:hover:not(:disabled) {
	border-color: rgba(0, 0, 0, 0.35);
	background: rgba(0, 0, 0, 0.06);
}

.hbk-booking--product-page .hbk-cal-day.is-today {
	border-color: rgba(0, 0, 0, 0.55);
}

.hbk-booking--product-page .hbk-time-btn:hover,
.hbk-booking--product-page .hbk-time-btn.is-selected {
	border-color: #111111;
	background: rgba(0, 0, 0, 0.08);
	color: #111111;
}

.hbk-booking--product-page .hbk-service-card {
	border-radius: 0;
	font-weight: 400;
}

.hbk-booking--product-page .hbk-service-card strong {
	font-weight: 500;
}

.hbk-booking--product-page .hbk-service-card:hover,
.hbk-booking--product-page .hbk-service-card.is-selected {
	border-color: rgba(0, 0, 0, 0.5);
	box-shadow: none;
}

.hbk-booking--product-page .hbk-service-card.is-selected::after {
	border-radius: 0;
	border-color: #111111;
}

.hbk-booking--product-page .hbk-cal-day.is-selected {
	background: #111111;
	border-color: #111111;
	color: #ffffff;
}

.hbk-booking--product-page .hbk-success {
	background: rgba(0, 0, 0, 0.05);
	color: #111111;
}

.hbk-booking--product-page .hbk-alert--info {
	border-color: rgba(17, 17, 17, 0.22);
	background: rgba(0, 0, 0, 0.04);
	color: #111111;
}

.hbk-booking--product-page .hbk-calendar-head strong {
	font-weight: 500;
}

@media (max-width: 700px) {
	.hbk-booking--product-page .hbk-progress--two {
		grid-template-columns: 1fr;
	}
}
