.handik-booking-app {
	width: 100%;
	max-width: 100%;
	overflow-x: clip;
	font-size: calc(16px * var(--handik-font-scale, 1));
	color: var(--handik-text, #0f172a);
	font-family: var(--handik-font-family, inherit);
}

.handik-booking-app__shell {
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	padding: 0;
	display: flex;
	flex-direction: column;
	min-height: auto;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	position: relative;
	overflow-x: clip;
}

.handik-booking-app__screen {
	width: 100%;
	max-width: 100%;
	display: flex;
	flex-direction: column;
	min-height: 0;
	background: transparent;
	border-radius: 0;
	padding: 0;
	border: 0;
	position: relative;
	overflow-x: clip;
	overflow-y: visible;
}

.handik-booking-app__screen.is-wide {
	padding: 0;
}

.handik-booking-app__screen-header {
	position: relative;
}

.handik-booking-app__screen-header h2 {
	margin: 0 0 18px;
	font-size: clamp(1.45rem, 4.8vw, 1.95rem);
	line-height: 1.1;
	text-align: center;
}

.handik-booking-app__loading {
	padding: 40px 24px;
	text-align: center;
	display: grid;
	gap: 8px;
	justify-items: center;
	color: #334155;
}

.handik-booking-app__loading strong {
	font-size: 1.05rem;
}

.handik-booking-app__loading h5,
.handik-booking-app__loading-overlay h5,
.handik-chatkit-bridge__loading h5 {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
}

.handik-booking-app__loading-subtitle {
	max-width: 320px;
	font-size: 0.95rem;
	color: var(--handik-muted-text, #64748b);
	opacity: 0;
	animation: handik-loading-subtitle 0.4s ease forwards;
	animation-delay: 2.4s;
}

.sp {
	width: 32px;
	height: 32px;
	clear: both;
	margin: 20px auto;
}

.sp-loadbar {
	width: 50px;
	height: 18px;
	border: 1px solid #1a1a1c;
	border-radius: 4px;
	background: linear-gradient(-60deg, transparent 0%, transparent 50%, #000 50%, #000 75%, transparent 75%, transparent);
	background-size: 20px 30px;
	background-position: 0px 0px;
	animation: handik-loadbar 0.8s infinite linear;
}

.handik-loading-visual--roller {
	width: 154px;
	height: 72px;
}

.handik-roller-track {
	position: absolute;
	left: 20px;
	right: 20px;
	top: 18px;
	height: 18px;
	border-radius: 999px;
	background: linear-gradient(90deg, rgba(15, 118, 110, 0.14), rgba(15, 118, 110, 0.32), rgba(15, 118, 110, 0.14));
}

.handik-roller-head,
.handik-roller-arm,
.handik-roller-handle {
	position: absolute;
	display: block;
	background: currentColor;
	color: var(--handik-accent, #0f766e);
}

.handik-roller-head {
	top: 8px;
	left: 18px;
	width: 54px;
	height: 24px;
	border-radius: 999px;
	animation: handik-roller-slide 1.6s ease-in-out infinite;
}

.handik-roller-arm {
	top: 30px;
	left: 62px;
	width: 12px;
	height: 18px;
	border-radius: 6px;
	transform: rotate(18deg);
	transform-origin: top center;
	animation: handik-roller-arm 1.6s ease-in-out infinite;
}

.handik-roller-handle {
	top: 44px;
	left: 58px;
	width: 10px;
	height: 22px;
	border-radius: 999px;
	background: #92400e;
	transform: rotate(18deg);
	transform-origin: top center;
	animation: handik-roller-arm 1.6s ease-in-out infinite;
}

.handik-loading-visual--assistant {
	width: 148px;
	height: 84px;
}

.handik-bot-head {
	position: absolute;
	top: 0;
	left: 38px;
	width: 72px;
	height: 52px;
	border-radius: 18px;
	background: linear-gradient(180deg, #e2e8f0, #cbd5e1);
	box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.handik-bot-head::before,
.handik-bot-head::after {
	content: '';
	position: absolute;
	top: 18px;
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: var(--handik-accent, #0f766e);
	animation: handik-bot-blink 1.8s ease-in-out infinite;
}

.handik-bot-head::before {
	left: 18px;
}

.handik-bot-head::after {
	right: 18px;
}

.handik-bot-antenna {
	position: absolute;
	top: -12px;
	left: 70px;
	width: 8px;
	height: 16px;
	border-radius: 999px;
	background: #94a3b8;
}

.handik-bot-antenna::after {
	content: '';
	position: absolute;
	top: -6px;
	left: -2px;
	width: 12px;
	height: 12px;
	border-radius: 999px;
	background: var(--handik-accent, #0f766e);
	animation: handik-pulse 1.6s ease-in-out infinite;
}

.handik-battery {
	position: absolute;
	left: 28px;
	right: 28px;
	bottom: 0;
	height: 24px;
	padding: 4px;
	border-radius: 999px;
	background: #e2e8f0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 4px;
}

.handik-battery::after {
	content: '';
	position: absolute;
	right: -8px;
	top: 7px;
	width: 6px;
	height: 10px;
	border-radius: 3px;
	background: #94a3b8;
}

.handik-battery-cell {
	border-radius: 999px;
	background: rgba(15, 118, 110, 0.14);
	animation: handik-charge 1.4s ease-in-out infinite;
}

.handik-battery-cell:nth-child(2) {
	animation-delay: 0.2s;
}

.handik-battery-cell:nth-child(3) {
	animation-delay: 0.4s;
}

.handik-booking-app__alert {
	margin-bottom: 14px;
	padding: 12px 14px;
	border-radius: 14px;
	background: #ecfeff;
	color: #155e75;
}

.handik-booking-app__alert.is-error {
	background: #fef2f2;
	color: #b91c1c;
}

.handik-progress-dots {
	/* Sprint 9 fix: was `repeat(6, ...)` but `applicableSteps()` returns 7 ids
	 * (task_selection / photos / contact_details / otp_verify / address_details
	 * / assistant / booking) — so the 7th dot wrapped to a second row. Switched
	 * to `auto-fit + 1fr` over the actual `<li>` count: every step gets an
	 * equal slice of the row, the bar always fits one line, and adding /
	 * removing a step in the future doesn't require touching this rule. */
	display: grid;
	grid-template-columns: repeat( var(--handik-progress-step-count, 7), minmax(0, 1fr) );
	gap: 6px;
	margin: 0;
	padding: 0;
	width: 100%;
	list-style: none;
	align-items: center;
}

.handik-progress-dots li {
	height: 4px;
	border-radius: 999px;
	background: var(--handik-progress-track, #dbe3ea);
}

.handik-progress-dots li.is-done {
	background: var(--handik-accent, #0f766e);
}

.handik-choice-grid,
.handik-grid-2,
.handik-grid-3,
.handik-footer-actions,
.handik-inline-actions,
	.handik-photo-list,
	.handik-assistant-layout {
	display: grid;
	gap: 14px;
}

.handik-choice-grid {
	grid-template-columns: repeat(2, minmax(180px, 260px));
	justify-content: center;
	align-items: start;
}

.handik-choice-grid--task-paths {
	grid-template-columns: repeat(3, minmax(180px, 260px));
}

.handik-choice-wrap {
	position: relative;
	display: grid;
	gap: 10px;
}

.handik-choice,
.handik-task {
	appearance: none;
	border: 1px solid var(--handik-border, #dbe3ea);
	background: #fff;
	color: var(--handik-text, #0f172a);
	padding: 12px 14px;
	border-radius: calc(var(--handik-radius, 18px) - 4px);
	text-align: center;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.handik-choice {
	display: grid;
	gap: 6px;
	justify-items: center;
}

.handik-choice--large {
	min-height: 86px;
	align-content: center;
	padding: 12px 14px;
}

.handik-choice__title {
	font-size: 1rem;
}

.handik-choice__hint {
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--handik-muted-text, #64748b);
}

.handik-choice__price {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 2px;
	padding: 3px 9px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--handik-accent, #283618) 10%, #ffffff);
	color: var(--handik-accent, #283618);
	font-size: 0.78rem;
	font-weight: 700;
}

.handik-choice:hover,
.handik-task:hover {
	border-color: color-mix(in srgb, var(--handik-accent, #0f766e) 50%, #dbe3ea);
	background: color-mix(in srgb, var(--handik-accent, #0f766e) 4%, #ffffff);
	transform: translateY(-1px);
}

.handik-task.is-selected,
.handik-choice.is-selected {
	border-color: var(--handik-accent, #0f766e);
	background: color-mix(in srgb, var(--handik-accent, #0f766e) 10%, #ffffff);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--handik-accent, #0f766e) 18%, transparent);
}

.handik-task-groups,
.handik-task-group {
	display: grid;
	gap: var(--handik-task-group-gap, 10px);
}

.handik-task-group h3,
.handik-sidebar h3 {
	margin: 0;
	font-size: 0.95rem;
	text-align: left;
}

.handik-task-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.handik-task {
	flex: 0 0 auto;
	padding: 10px 12px;
	font-size: 0.84rem;
	line-height: 1.2;
	text-align: center;
}

.handik-grid-3 {
	grid-template-columns: repeat(3, 1fr);
}

.handik-grid-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.handik-field {
	display: grid;
	gap: var(--handik-field-gap, 8px);
	padding-bottom: var(--handik-field-padding-bottom, 0);
	font-weight: 600;
}

.handik-field input,
.handik-field select,
.handik-field textarea {
	width: 100%;
	padding: 12px 14px;
	border-radius: 14px;
	border: 1px solid var(--handik-border, #dbe3ea);
	font: inherit;
	font-size: 16px;
	background: #fff;
}

.handik-field__help {
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--handik-muted-text, #64748b);
}

.handik-field textarea {
	min-height: 120px;
	resize: vertical;
}

.handik-check {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
}

.handik-btn {
	appearance: none;
	border: 1px solid var(--handik-footer-button-border, var(--e-global-color-d50b40a));
	cursor: pointer;
	padding: 12px 16px;
	border-radius: 1rem;
	font: inherit;
	font-weight: 700;
	/* 2.1.27.0 (A3): eliminate the legacy 300ms tap-delay browsers
	 * still impose to detect double-tap-to-zoom. The form is sized
	 * to viewport on phones (no zoom needed) so the delay is pure
	 * latency. Combined with the rAF-deferred re-render in the
	 * field blur handler, this closes the "Continue sometimes
	 * doesn't fire on first tap" race the owner reported. */
	touch-action: manipulation;
}

.handik-btn__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.handik-btn__icon svg {
	display: block;
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.handik-btn__label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.handik-btn.is-primary {
	background: var(--handik-footer-button-active-bg, #1a1a1c);
	color: var(--handik-footer-button-active-text, #f9f9f9);
}

.handik-btn.is-pending {
	background: var(--handik-footer-button-inactive-bg, #f9f9f9);
	color: var(--handik-footer-button-inactive-text, #1a1a1c);
	box-shadow: none;
}

.handik-btn.is-secondary {
	background: var(--handik-footer-button-inactive-bg, #f9f9f9);
	color: var(--handik-footer-button-inactive-text, #1a1a1c);
}

.handik-btn.is-text {
	background: transparent;
	color: var(--handik-muted-text, #64748b);
	padding: 4px 2px;
	border-radius: 0;
	font-weight: 600;
}

.handik-btn.is-disabled {
	opacity: 0.6;
}

.handik-footer-actions {
	grid-template-columns: 112px minmax(0, 1fr);
	justify-content: center;
	align-items: center;
	gap: 12px;
	margin: 0 auto;
	max-width: 980px;
	width: 100%;
}

.handik-inline-actions {
	grid-template-columns: max-content;
	margin-bottom: 8px;
}

.handik-photo-list {
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.handik-photo-list.is-empty {
	grid-template-columns: 1fr;
}

.handik-photo-list__type {
	text-transform: capitalize;
	font-size: 0.76rem;
	color: var(--handik-muted-text, #64748b);
}

.handik-photo-input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.handik-photo-dropzone {
	appearance: none;
	width: 100%;
	display: grid;
	gap: 6px;
	justify-items: center;
	padding: 16px;
	border: 1px dashed var(--handik-border, #dbe3ea);
	border-radius: 16px;
	background: #f8fafc;
	color: var(--handik-text, #0f172a);
	cursor: pointer;
}

.handik-photo-dropzone span {
	font-size: 0.88rem;
	color: var(--handik-muted-text, #64748b);
}

.handik-photo-dropzone__icon {
	display: inline-flex;
	width: 42px;
	height: 42px;
	border-radius: 999px;
	background: rgba(15, 118, 110, 0.12);
	position: relative;
}

.handik-photo-dropzone__icon::before,
.handik-photo-dropzone__icon::after {
	content: '';
	position: absolute;
	background: var(--handik-accent, #0f766e);
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}

.handik-photo-dropzone__icon::before {
	width: 18px;
	height: 2px;
}

.handik-photo-dropzone__icon::after {
	width: 2px;
	height: 18px;
}

.handik-inline-spinner {
	width: 18px;
	height: 18px;
	border-radius: 999px;
	border: 2px solid rgba(15, 118, 110, 0.18);
	border-top-color: var(--handik-accent, #0f766e);
	animation: handik-spin 0.9s linear infinite;
}

.handik-photo-list span,
.handik-admin-card-like,
.handik-sidebar {
	background: #f8fafc;
	border: 1px solid var(--handik-border, #dbe3ea);
	border-radius: 14px;
	padding: 12px 14px;
}

.handik-assistant-layout {
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
}

.handik-assistant-panel {
	position: relative;
	display: grid;
	gap: 14px;
}

.handik-booking-app__intro {
	margin: 0 0 18px;
	text-align: center;
	color: #475569;
}

.handik-booking-app__assistant-host {
	position: relative;
	min-height: 460px;
	border: 1px solid var(--handik-border, #dbe3ea);
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
	min-width: 0;
	width: 100%;
	max-width: 100%;
}

.handik-assistant-fallback-message { display: none !important; }

/* 2.1.29.0 — assistant per-turn status block.
 *
 * Single, prominent banner that sits over the chat host while the
 * assistant is "thinking". Replaces the old small "Thinking…" pill
 * AND the 30s stuck banner — one block, copy rotates on a timeline,
 * 50s stage adds a Plan-B link. See ASSISTANT_STATUS_STAGES + the
 * startAssistantStatusBlock method in booking-app.js. */
.handik-assistant-status {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 14px;
	z-index: 5;
	margin: 0 auto;
	max-width: 560px;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	background: #fff;
	border: 1px solid var(--handik-border, #dbe3ea);
	border-left: 4px solid var(--handik-accent, #283618);
	border-radius: 14px;
	box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
	color: var(--handik-text, #0f172a);
	font-size: 14px;
	line-height: 1.45;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.2s ease;
	pointer-events: none;
	animation: handik-status-pulse 2.4s ease-in-out infinite;
}

.handik-assistant-status.is-visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.handik-assistant-status__dots {
	display: inline-flex;
	gap: 5px;
	align-items: center;
	padding-top: 7px;
	flex-shrink: 0;
}

.handik-assistant-status__dots span {
	width: 7px;
	height: 7px;
	border-radius: 999px;
	background: var(--handik-accent, #283618);
	animation: handik-typing-dot 0.9s ease-in-out infinite;
}

.handik-assistant-status__dots span:nth-child(2) {
	animation-delay: 0.12s;
}

.handik-assistant-status__dots span:nth-child(3) {
	animation-delay: 0.24s;
}

.handik-assistant-status__content {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.handik-assistant-status__text {
	margin: 0;
	font-weight: 500;
	color: var(--handik-text, #0f172a);
}

.handik-assistant-status__link {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	justify-content: center;
	padding: 10px 16px;
	min-height: 44px;
	border-radius: 999px;
	background: var(--handik-accent, #283618);
	color: #fff;
	font-weight: 600;
	font-size: 13px;
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.handik-assistant-status__link:hover,
.handik-assistant-status__link:focus-visible {
	background: #1c2710;
	outline: none;
}

@keyframes handik-typing-dot {
	0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
	40% { transform: translateY(-4px); opacity: 1; }
}

@keyframes handik-status-pulse {
	0%, 100% { box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14); }
	50%      { box-shadow: 0 22px 46px rgba(15, 23, 42, 0.22); }
}

@media (max-width: 540px) {
	.handik-assistant-status {
		left: 8px;
		right: 8px;
		bottom: 10px;
		padding: 12px 14px;
		font-size: 13.5px;
	}
	.handik-assistant-status__link {
		width: 100%;
		align-self: stretch;
	}
}

/* Issue 5 — Plan B "assistant stuck" banner. */
.handik-assistant-stuck-banner {
	margin: 14px 0 0;
	padding: 14px 16px;
	border: 1px solid #fbbf24;
	background: #fffbeb;
	color: #78350f;
	border-radius: 14px;
	box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.handik-assistant-stuck-banner.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.handik-assistant-stuck-banner strong {
	display: block;
	margin-bottom: 4px;
	font-size: 15px;
	color: #78350f;
}

.handik-assistant-stuck-banner p {
	margin: 0 0 10px;
	font-size: 14px;
	line-height: 1.45;
	color: #92400e;
}

.handik-assistant-stuck-banner .handik-btn {
	background: #b45309;
	color: #fff;
	border: 0;
	padding: 10px 16px;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	display: inline-flex;
	min-height: 44px;
	align-items: center;
}
.handik-assistant-stuck-banner .handik-btn:hover,
.handik-assistant-stuck-banner .handik-btn:focus-visible {
	background: #92400e;
	outline: none;
}

/* Issue 3 — assistant overlay visibility toggle without DOM injection.
 *
 * IMPORTANT: a generic .handik-booking-app__loading-overlay rule lives
 * later in this file (~line 1099) with `display: grid`. CSS cascade gives
 * later rules priority at equal specificity, so we MUST stack two class
 * selectors to win specificity. Otherwise the assistant overlay is always
 * visible and the user sees infinite loading.
 */
.handik-booking-app__loading-overlay.handik-booking-app__loading-overlay--assistant {
	display: none;
}
.handik-booking-app__screen-body.is-assistant-preparing
	.handik-booking-app__loading-overlay.handik-booking-app__loading-overlay--assistant {
	display: grid;
}

/* Respect users who turn off motion. */
@media (prefers-reduced-motion: reduce) {
	.handik-assistant-status__dots span {
		animation: none;
		opacity: 0.7;
	}
	.handik-assistant-status,
	.handik-assistant-stuck-banner {
		animation: none;
		transition: none;
	}
	.handik-task:active {
		transform: none;
	}
}

.handik-chatkit-bridge__loading {
	min-height: 520px;
	display: grid;
	gap: 8px;
	place-items: center;
	color: #475569;
	font-weight: 600;
}

openai-chatkit::part(header),
openai-chatkit::part(thread-header),
openai-chatkit::part(conversation-header),
openai-chatkit::part(thread-history-button),
openai-chatkit::part(history-button) {
	display: none !important;
}

openai-chatkit {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.handik-footer-wrap {
	position: static;
	z-index: 40;
	display: grid;
	gap: 8px;
	margin-top: auto;
	padding: 12px 0 0;
	background: transparent;
	border-top: 0;
	box-shadow: none;
	backdrop-filter: none;
}

.handik-sidebar ul {
	padding-left: 18px;
	margin-bottom: 18px;
}

.handik-booking-app__booking-status {
	margin: 10px 0 16px;
	padding: 14px 16px;
	border-radius: 16px;
	border: 1px solid rgba(15, 118, 110, 0.14);
	background: linear-gradient(180deg, rgba(236, 253, 245, 0.92), rgba(240, 249, 255, 0.95));
	display: grid;
	gap: 6px;
}

.handik-booking-app__booking-status strong {
	font-size: 0.96rem;
}

.handik-booking-app__booking-status-text {
	color: var(--handik-muted-text, #64748b);
	font-size: 0.92rem;
	line-height: 1.5;
}

.handik-booking-app__booking-status.is-error {
	border-color: rgba(220, 38, 38, 0.16);
	background: linear-gradient(180deg, rgba(254, 242, 242, 0.95), rgba(255, 255, 255, 0.98));
}

.handik-booking-app__booking-status.is-error .handik-booking-app__booking-status-text {
	color: #b91c1c;
}

.handik-booking-app__booking-status.is-success {
	border-color: rgba(22, 163, 74, 0.2);
	background: linear-gradient(180deg, rgba(240, 253, 244, 0.98), rgba(255, 255, 255, 0.98));
}

.handik-booking-app__booking-embed,
.handik-booking-app__booking-frame-wrap {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	border: 1px solid var(--handik-border, #dbe3ea);
	border-radius: 16px;
	overflow-x: clip;
	overflow-y: hidden;
	background: #fff;
	min-height: 720px;
}

.handik-booking-app__booking-embed > *,
.handik-booking-app__booking-frame-wrap > * {
	max-width: 100% !important;
}

.handik-booking-app__booking-embed iframe {
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	min-height: 720px;
	border: 0;
}

.handik-booking-app__booking-frame {
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	min-height: 720px;
	border: 0;
	background: #fff;
}

.handik-booking-app__booking-direct {
	display: flex;
	justify-content: center;
	margin: 12px 0 0;
}

.handik-booking-app__booking-direct .handik-btn {
	width: min(100%, 420px);
	text-align: center;
}

.handik-booking-app__notifications {
	position: fixed;
	right: 18px;
	bottom: 18px;
	top: auto;
	z-index: 2147483000;
	display: grid;
	gap: 10px;
	pointer-events: none;
	width: min(340px, calc(100vw - 24px));
}

.handik-toast {
	min-width: 0;
	max-width: 100%;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 13px 14px 15px;
	border-radius: 18px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(13, 18, 24, 0.96);
	box-shadow: 0 24px 40px rgba(0, 0, 0, 0.34);
	backdrop-filter: blur(10px);
	pointer-events: auto;
	position: relative;
	overflow: hidden;
	opacity: 0;
	transform: translateY(10px) scale(0.98);
	transition: opacity 0.34s cubic-bezier(0.22, 1, 0.36, 1), transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.handik-toast.is-visible {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.handik-toast.is-closing {
	opacity: 0;
	transform: translateY(10px) scale(0.97);
}

.handik-toast::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 4px;
	background: currentColor;
	transform-origin: left center;
	animation: handik-toast-progress var(--handik-toast-duration, 3200ms) linear forwards;
	transform: scaleX(var(--handik-toast-progress-start, 1));
	opacity: 0.72;
}

.handik-toast.is-paused::after {
	animation-play-state: paused;
}

.handik-toast--warning {
	background: linear-gradient(180deg, rgba(67, 56, 15, 0.98), rgba(56, 48, 13, 0.96));
	border-color: rgba(234, 179, 8, 0.34);
	color: #fde047;
}

.handik-toast--error {
	background: linear-gradient(180deg, rgba(69, 26, 28, 0.98), rgba(56, 24, 26, 0.96));
	border-color: rgba(248, 113, 113, 0.32);
	color: #f87171;
}

.handik-toast--info {
	background: linear-gradient(180deg, rgba(17, 37, 52, 0.98), rgba(16, 32, 45, 0.96));
	border-color: rgba(56, 189, 248, 0.3);
	color: #38bdf8;
}

.handik-toast__icon {
	width: 36px;
	height: 36px;
	flex: 0 0 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.12);
	font-size: 1.2rem;
	line-height: 1;
}

.handik-toast__body {
	display: grid;
	gap: 4px;
}

.handik-toast__body strong {
	font-size: 0.98rem;
	line-height: 1.15;
}

.handik-toast__body span {
	font-size: 0.88rem;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.82);
}

.handik-toast__content {
	display: grid;
	gap: 9px;
	flex: 1 1 auto;
	min-width: 0;
}

.handik-toast__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.handik-toast__pill {
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	padding: 0 10px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	background: rgba(255, 255, 255, 0.04);
	color: rgba(255, 255, 255, 0.92);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.handik-toast__pill--rate {
	border-color: rgba(132, 204, 22, 0.55);
	color: #bef264;
	background: rgba(132, 204, 22, 0.08);
}

.handik-toast__close {
	appearance: none;
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	opacity: 0.68;
	padding: 2px;
	margin-top: 2px;
}

.handik-footer-actions__continue {
	position: relative;
	display: grid;
}

.handik-global-progress,
.handik-footer-progress {
	max-width: 980px;
	width: 100%;
	margin: 0 auto;
}

.handik-global-progress {
	padding: 8px 0 0;
}

.handik-booking-app__shell--task_selection.handik-booking-app__shell--task-overview {
	min-height: clamp(520px, calc(100dvh - 110px), 680px);
}

.handik-booking-app__shell--task_selection.handik-booking-app__shell--task-overview .handik-booking-app__screen-body {
	padding-bottom: 6px;
}

.handik-booking-app__shell--task_selection.handik-booking-app__shell--task-overview .handik-global-progress {
	margin-top: auto;
	padding-top: 12px;
}

.handik-booking-app__screen-body {
	width: 100%;
	max-width: 100%;
	overflow-x: clip;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

.handik-booking-app__screen--assistant .handik-booking-app__screen-body {
	display: grid;
	gap: 14px;
}

.handik-booking-app__loading-overlay {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: rgba(255, 255, 255, 0.9);
	z-index: 5;
}

.handik-footer-actions.is-single {
	grid-template-columns: minmax(220px, 320px);
	justify-content: center;
}

.handik-footer-actions.is-docked {
	position: static;
	margin-top: auto;
}

.handik-booking-app__screen--task_selection .handik-footer-actions.is-docked {
	margin-bottom: 12px;
}

.handik-app-disclaimer {
	padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px));
	text-align: center;
	font-size: 0.88rem;
	color: var(--handik-muted-text, #475569);
}

.handik-app-disclaimer p {
	margin: 0 0 4px;
	line-height: 1.4;
}

.handik-app-disclaimer p:last-child {
	margin-bottom: 0;
}

.handik-app-disclaimer.is-success p:first-child {
	color: var(--handik-text, #0f172a);
	font-weight: 500;
}

.handik-app-disclaimer__sep {
	color: var(--handik-border, #cbd5e1);
	margin: 0 4px;
}

.handik-text-link {
	color: currentColor;
	text-decoration: underline;
	text-underline-offset: 2px;
	font-weight: 500;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

.handik-text-link:hover {
	text-decoration-thickness: 2px;
}

.handik-text-link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
	border-radius: 4px;
}

.handik-modal-backdrop {
	position: fixed;
	inset: 0;
	z-index: 80;
	display: grid;
	place-items: center;
	padding: 18px;
	background: rgba(15, 23, 42, 0.38);
}

.handik-modal {
	width: min(420px, 100%);
	display: grid;
	gap: 12px;
	padding: 18px;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 24px 70px rgba(15, 23, 42, 0.25);
}

.handik-modal h3,
.handik-modal p {
	margin: 0;
}

.handik-modal__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

@media (max-width: 900px) {
	.handik-assistant-layout,
	.handik-grid-3,
	.handik-grid-2 {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.handik-booking-app__shell,
	.handik-booking-app__screen {
		padding: 0;
	}

	.handik-footer-actions {
		grid-template-columns: 72px minmax(0, 1fr);
	}

	.handik-btn {
		width: 100%;
	}

	/* UX pass v2.1.8.9: bigger tap targets on mobile so tasks are easy to
	   thumb-press, with active-state feedback so the user sees what they hit. */
	.handik-task {
		padding: 12px 14px;
		font-size: 0.92rem;
		min-height: 44px;
	}

	.handik-task:active {
		transform: scale(0.98);
	}

	.handik-choice {
		font-size: 0.95rem;
		padding: 14px;
		min-height: 60px;
	}

	.handik-choice-grid {
		grid-template-columns: 1fr;
	}

	.handik-footer-wrap {
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
	}

	.handik-btn.is-back {
		padding-left: 0;
		padding-right: 0;
	}

	.handik-btn.is-back .handik-btn__label {
		display: none;
	}

	.handik-btn.is-back .handik-btn__icon {
		display: inline-flex;
		font-size: 1.1rem;
	}

	.handik-booking-app__assistant-host,
	.handik-chatkit-bridge__loading {
		min-height: 360px;
	}

	.handik-booking-app__screen--assistant {
		min-height: calc(100dvh - 70px);
	}

	.handik-booking-app__screen--assistant .handik-booking-app__screen-header h2 {
		margin-bottom: 14px;
	}

	.handik-booking-app__screen--assistant .handik-booking-app__intro {
		margin-bottom: 0;
	}

	.handik-booking-app__screen--assistant .handik-booking-app__screen-body,
	.handik-booking-app__screen--assistant .handik-assistant-layout,
	.handik-booking-app__screen--assistant .handik-assistant-panel {
		min-height: 0;
	}

	.handik-booking-app__screen--assistant .handik-booking-app__screen-body {
		padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	}

	.handik-booking-app__screen--assistant .handik-booking-app__assistant-host,
	.handik-booking-app__screen--assistant .handik-chatkit-bridge__loading {
		height: calc(100dvh - 320px - env(safe-area-inset-bottom, 0px));
		max-height: calc(100dvh - 320px - env(safe-area-inset-bottom, 0px));
		min-height: min(360px, calc(100dvh - 320px - env(safe-area-inset-bottom, 0px)));
	}

	.handik-booking-app__screen--assistant openai-chatkit {
		height: 100%;
		min-height: 100% !important;
		max-height: 100%;
	}

	.handik-booking-app__booking-frame {
		min-height: 640px;
	}

	.handik-booking-app__booking-embed,
	.handik-booking-app__booking-embed iframe {
		min-height: 640px;
	}

	.handik-booking-app__notifications {
		left: 12px;
		right: 12px;
		top: 12px;
		bottom: auto;
		width: auto;
	}

	.handik-toast {
		min-width: 0;
		max-width: none;
		padding: 14px 14px 16px;
		border-radius: 18px;
		transform: translateY(-10px) scale(0.98);
	}

	.handik-toast.is-closing {
		transform: translateY(-10px) scale(0.97);
	}

	.handik-toast__icon {
		width: 38px;
		height: 38px;
		flex-basis: 38px;
		font-size: 1.35rem;
	}

	.handik-toast__body strong {
		font-size: 1.02rem;
	}

	.handik-toast__body span {
		font-size: 0.9rem;
	}
}

@media (min-width: 641px) {
	.handik-btn.is-back .handik-btn__icon {
		display: none;
	}
}

@keyframes handik-spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

@keyframes handik-flip {
	0%,
	100% {
		transform: perspective(160px) rotateX(0deg) rotateY(0deg);
	}
	50% {
		transform: perspective(160px) rotateX(180deg) rotateY(180deg);
	}
}

@keyframes handik-loadbar {
	from {
		background-position: 0px 0px;
	}
	to {
		background-position: -20px 0px;
	}
}

@keyframes handik-toast-in {
	from {
		transform: translateY(8px) scale(0.98);
		opacity: 0;
	}
	to {
		transform: translateY(0) scale(1);
		opacity: 1;
	}
}

@keyframes handik-toast-progress {
	from {
		transform: scaleX(var(--handik-toast-progress-start, 1));
	}
	to {
		transform: scaleX(0);
	}
}

@keyframes handik-roller-slide {
	0%,
	100% {
		transform: translateX(0);
	}
	50% {
		transform: translateX(82px);
	}
}

@keyframes handik-roller-arm {
	0%,
	100% {
		transform: translateX(0) rotate(18deg);
	}
	50% {
		transform: translateX(82px) rotate(-18deg);
	}
}

@keyframes handik-charge {
	0%,
	100% {
		background: rgba(15, 118, 110, 0.14);
		transform: scaleY(0.82);
	}
	50% {
		background: var(--handik-accent, #0f766e);
		transform: scaleY(1);
	}
}

@keyframes handik-pulse {
	0%,
	100% {
		transform: scale(0.92);
		opacity: 0.7;
	}
	50% {
		transform: scale(1.08);
		opacity: 1;
	}
}

@keyframes handik-bot-blink {
	0%,
	42%,
	100% {
		transform: scaleY(1);
	}
	46%,
	50% {
		transform: scaleY(0.2);
	}
}

@keyframes handik-loading-subtitle {
	from {
		opacity: 0;
		transform: translateY(4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes handik-selected-sheet-bounce {
	0% { transform: translateY(0) scale(1); }
	25% { transform: translateY(-10px) scale(1.012); }
	55% { transform: translateY(4px) scale(0.996); }
	78% { transform: translateY(-3px) scale(1.004); }
	100% { transform: translateY(0) scale(1); }
}

@keyframes handik-selected-sheet-slide-up {
	from {
		opacity: 0;
		transform: translateY(110%);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.handik-task-groups {
	padding-bottom: 32px;
}

.handik-choice:hover,
.handik-task:hover {
	border-color: color-mix(in srgb, var(--handik-accent, #0f766e) 34%, #dbe3ea);
	background: color-mix(in srgb, var(--handik-accent, #0f766e) 2%, #ffffff);
}

.handik-field.is-invalid input,
.handik-field.is-invalid select {
	border-color: #fca5a5;
	box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.14);
}

/* Sprint 10 fix: rate-limited OTP gets amber (warning), not red (error)
 * — the input wasn't wrong, the backend just temporarily refused another
 * attempt. Different signal so the customer knows to wait, not retype. */
.handik-field.is-invalid.is-rate-limited input {
	border-color: #fcd34d;
	box-shadow: 0 0 0 1px rgba(202, 138, 4, 0.18);
}
.handik-field.is-invalid.is-rate-limited .handik-field__error {
	color: #92400e;
}

.handik-selected-sheet {
	/* Sprint 7: pinned to viewport bottom on desktop too (was 80px above the
	 * bottom edge to clear a docked footer that's actually static on desktop —
	 * the gap just looked like dead space). The centering used to be
	 * `left: 50%` + `transform: translateX(-50%)`, which silently breaks when
	 * a parent (Elementor section, theme wrapper) has `transform` /
	 * `will-change: transform` / `filter` — that parent becomes the containing
	 * block for `position: fixed`, `50%` resolves against an offset rect, and
	 * the sheet ends up off-screen to the right (owner-reported on desktop).
	 * `left:0; right:0; margin-inline:auto` survives that: the element
	 * centers within whatever containing block we end up in, and the width
	 * cap keeps it readable. The `is-bouncing` keyframes that apply
	 * `transform` still win during animation because keyframe transforms
	 * override the static base. */
	position: fixed;
	left: 0;
	right: 0;
	margin-inline: auto;
	bottom: env(safe-area-inset-bottom, 0px);
	transform: none;
	z-index: 50;
	width: min(calc(100% - 24px), 980px);
	margin-top: 0;
	margin-bottom: 0;
	background: rgba(255, 255, 255, 0.98);
	border: 1px solid var(--handik-border, #dbe3ea);
	border-radius: 18px 18px 0 0;
	box-shadow: 0 -12px 36px rgba(15, 23, 42, 0.16);
	overflow: hidden;
	backdrop-filter: blur(12px);
}

/* Reserve space at the bottom of the task-selection step so the fixed
 * sheet doesn't visually cover the last items in the list. Desktop value
 * trimmed from 168px to 96px now that the sheet is flush with the bottom
 * (was 80px above it). Mobile rule below keeps its own padding. */
.handik-booking-app__screen--task_selection .handik-task-groups {
	padding-bottom: 96px;
}

.handik-selected-sheet.is-bouncing {
	animation:
		handik-selected-sheet-slide-up 0.3s cubic-bezier(0.2, 0.9, 0.2, 1) both,
		handik-selected-sheet-bounce 0.72s cubic-bezier(0.2, 0.9, 0.22, 1.15) 0.4s;
}

.handik-selected-sheet.is-attention:not(.is-open) {
	animation: handik-selected-sheet-bounce 0.9s cubic-bezier(0.2, 0.9, 0.22, 1.15) 1.5s 3;
}

.handik-selected-sheet__toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 16px;
	background: transparent;
	border: 0;
	font: inherit;
	font-weight: 700;
	color: var(--handik-text, #0f172a);
	cursor: pointer;
}

.handik-selected-sheet__body {
	display: none;
	padding: 0 12px 12px;
	max-height: min(280px, 42vh);
	overflow: auto;
}

.handik-selected-sheet.is-open .handik-selected-sheet__body {
	display: grid;
	gap: 8px;
}

.handik-selected-sheet__item {
	display: grid;
	gap: 4px;
	padding: 10px 12px;
	border-radius: 14px;
	background: #f8fafc;
	border: 1px solid var(--handik-border, #dbe3ea);
}

.handik-selected-sheet__item-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.handik-selected-sheet__item p {
	margin: 0;
	font-size: 0.84rem;
	line-height: 1.45;
	color: #475569;
}

.handik-selected-sheet__rate {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(15, 118, 110, 0.12);
	color: var(--handik-accent, #0f766e);
	font-size: 0.8rem;
	font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
	.handik-selected-sheet.is-attention:not(.is-open),
	.handik-selected-sheet.is-bouncing {
		animation: none;
	}
}

@media (max-width: 767px) {
	.handik-booking-app__screen--task_selection .handik-task-groups {
		padding-bottom: calc(118px + env(safe-area-inset-bottom, 0px));
	}

	.handik-selected-sheet {
		position: fixed;
		left: 10px;
		right: 10px;
		bottom: env(safe-area-inset-bottom, 0px);
		width: auto;
		margin: 0;
		border-radius: 16px 16px 0 0;
	}

	.handik-selected-sheet.is-open .handik-selected-sheet__body {
		max-height: min(52vh, 360px);
	}
}

/* --- Photo list: per-item delete button -------------------------------- */
.handik-photo-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}
.handik-photo-list__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 10px;
	background: rgba(15, 23, 42, 0.04);
	border: 1px solid var(--handik-border, #dbe3ea);
	border-radius: 10px;
	font-size: 0.9rem;
}
.handik-photo-list__name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	flex: 1 1 auto;
}
.handik-photo-list__remove {
	/* Sprint 10 fix: bumped from 28×28 to 44×44 to clear the WCAG 2.5.5 /
	 * Apple-HIG minimum tap target. The visible glyph is the same size —
	 * we just expanded the hit-box around it so a thumb can land it. */
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	min-width: 44px;
	border: none;
	background: transparent;
	color: var(--handik-muted-text, #64748b);
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	border-radius: 50%;
	transition: background 0.15s ease, color 0.15s ease;
}
.handik-photo-list__remove:hover,
.handik-photo-list__remove:focus-visible {
	background: rgba(220, 38, 38, 0.12);
	color: #b91c1c;
	outline: none;
}

/* --- Inline field error -------------------------------------------------- */
.handik-field__error {
	display: block;
	margin-top: 4px;
	color: #b91c1c;
	font-size: 0.85rem;
	line-height: 1.3;
}
.handik-field__help--empty {
	color: var(--handik-muted-text, #64748b);
	font-style: italic;
}

.handik-saved-address-loading {
	display: grid;
	gap: 8px;
	padding: 12px;
	border: 1px solid var(--handik-border, #dbe3ea);
	border-radius: 14px;
	background: #f8fafc;
	color: var(--handik-muted-text, #64748b);
	font-size: 0.9rem;
}

.handik-saved-address-loading__bar {
	width: 100%;
	height: 12px;
	border-radius: 999px;
	background: linear-gradient(90deg, #e2e8f0 0%, #f8fafc 45%, #e2e8f0 90%);
	background-size: 200% 100%;
	animation: handik-skeleton-shimmer 1.1s ease-in-out infinite;
}

.handik-saved-address-loading__bar.is-short {
	width: 64%;
}

/* --- Toast retry button ------------------------------------------------- */
.handik-toast__action {
	margin-top: 6px;
	background: transparent;
	border: 1px solid currentColor;
	color: inherit;
	border-radius: 999px;
	padding: 4px 12px;
	font-size: 0.85rem;
	cursor: pointer;
	align-self: flex-start;
}
.handik-toast__action:hover,
.handik-toast__action:focus-visible {
	background: rgba(15, 23, 42, 0.08);
	outline: none;
}

/* --- Skeleton loaders --------------------------------------------------- */
.handik-skeleton {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 20px;
}
.handik-skeleton__bar {
	height: 14px;
	border-radius: 6px;
	background: linear-gradient(
		90deg,
		rgba(15, 23, 42, 0.06) 0%,
		rgba(15, 23, 42, 0.12) 50%,
		rgba(15, 23, 42, 0.06) 100%
	);
	background-size: 200% 100%;
	animation: handik-skeleton-shimmer 1.4s linear infinite;
}
.handik-skeleton__bar--short {
	width: 60%;
}
.handik-skeleton__bar--header {
	height: 22px;
	width: 40%;
	margin-bottom: 8px;
}
.handik-skeleton__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}
.handik-skeleton__cell {
	aspect-ratio: 1 / 1;
	border-radius: 10px;
	background: linear-gradient(
		90deg,
		rgba(15, 23, 42, 0.06) 0%,
		rgba(15, 23, 42, 0.12) 50%,
		rgba(15, 23, 42, 0.06) 100%
	);
	background-size: 200% 100%;
	animation: handik-skeleton-shimmer 1.4s linear infinite;
}
.handik-skeleton--calendar {
	min-height: 360px;
}
.handik-skeleton--assistant {
	min-height: 260px;
}
@keyframes handik-skeleton-shimmer {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

/* --- Cal.com slow-load fallback ----------------------------------------- */
.handik-booking-app__booking-fallback {
	margin: 0 0 12px;
	padding: 14px 16px;
	border: 1px solid var(--handik-border, #dbe3ea);
	border-radius: 12px;
	background: #fffbeb;
	color: #92400e;
	font-size: 0.92rem;
}
.handik-booking-app__booking-fallback p {
	margin: 0 0 6px;
}
.handik-booking-app__booking-fallback .handik-btn {
	margin-top: 6px;
}

/* --- Reduced-motion: respect user preference ---------------------------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
	.handik-skeleton__bar,
	.handik-skeleton__cell {
		animation: none;
		background: rgba(15, 23, 42, 0.08);
	}
}
