/*
 * MALF Tour 1.2.0
 * Built by Futuregram Studio
 *
 * Colours, overlay opacity and z-index come from the settings page (see malf_tour_enqueue).
 * The values below are fallbacks.
 */

:root {
	--malf-tour-z: 999999;
	--malf-tour-overlay-rgb: 0, 0, 0;
	--malf-tour-overlay-opacity: 0.62;
	--malf-tour-popover-bg: #FFFFFF;
	--malf-tour-popover-text: #23403B;
	--malf-tour-btn-bg: #D1E05F;
	--malf-tour-btn-text: #23403B;
	--malf-tour-btn-hover: #C3D44A;
	--malf-tour-link-text: #23403B;
}

.malf-tour-spot {
	position: fixed;
	z-index: var(--malf-tour-z);
	border-radius: 10px;
	box-shadow: 0 0 0 9999px rgba(var(--malf-tour-overlay-rgb), var(--malf-tour-overlay-opacity));
	pointer-events: none;
	transition: top .25s ease, left .25s ease, width .25s ease, height .25s ease;
}

.malf-tour-block {
	position: fixed;
	inset: 0;
	z-index: calc(var(--malf-tour-z) - 1);
	background: transparent;
}

.malf-tour-pop {
	position: fixed;
	z-index: calc(var(--malf-tour-z) + 1);
	box-sizing: border-box;
	width: 360px;
	max-width: calc(100vw - 24px);
	padding: 20px 24px 18px;
	background: var(--malf-tour-popover-bg);
	color: var(--malf-tour-popover-text);
	border-radius: 6px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.45;
	text-align: left;
}

.malf-tour-pop *,
.malf-tour-pop *::before,
.malf-tour-pop *::after {
	box-sizing: border-box;
	font-family: inherit;
}

.malf-tour-pop:focus { outline: none; }

.malf-tour-title {
	margin: 0 0 6px;
	padding: 0;
	font-family: inherit;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.25;
	color: inherit;
	/* Theme scripts animate headings in; keep the title visible regardless. */
	opacity: 1;
	visibility: visible;
	transform: none;
	animation: none;
	transition: none;
}

.malf-tour-body {
	margin: 0 0 18px;
	padding: 0;
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

.malf-tour-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.malf-tour-right {
	display: flex;
	align-items: center;
	gap: 8px;
}

.malf-tour-pop button,
.malf-tour-replay {
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	border: 0;
	border-radius: 999px;
	box-shadow: none;
	text-transform: none;
	letter-spacing: normal;
}

.malf-tour-pop button {
	background: transparent;
	color: var(--malf-tour-link-text);
	padding: 8px 14px;
}

.malf-tour-pop button:hover { text-decoration: underline; }

.malf-tour-pop button:focus-visible,
.malf-tour-replay:focus-visible {
	outline: 2px solid var(--malf-tour-btn-text);
	outline-offset: 2px;
}

.malf-tour-pop .malf-tour-next,
.malf-tour-replay {
	background: var(--malf-tour-btn-bg);
	color: var(--malf-tour-btn-text);
	padding: 10px 22px;
	text-decoration: none;
}

.malf-tour-pop .malf-tour-next:hover,
.malf-tour-replay:hover {
	background: var(--malf-tour-btn-hover);
	text-decoration: none;
}

.malf-tour-arrow {
	position: absolute;
	width: 0;
	height: 0;
	border-left: 10px solid transparent;
	border-right: 10px solid transparent;
}
.malf-tour-pop[data-side="bottom"] .malf-tour-arrow {
	top: -9px;
	border-bottom: 10px solid var(--malf-tour-popover-bg);
}
.malf-tour-pop[data-side="top"] .malf-tour-arrow {
	bottom: -9px;
	border-top: 10px solid var(--malf-tour-popover-bg);
}
.malf-tour-pop[data-side="center"] .malf-tour-arrow { display: none; }

/* Welcome prompt */
.malf-tour-dim {
	position: fixed;
	inset: 0;
	z-index: calc(var(--malf-tour-z) - 1);
	background: rgba(var(--malf-tour-overlay-rgb), var(--malf-tour-overlay-opacity));
}

.malf-tour-welcome {
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 440px;
	padding: 28px 28px 24px;
	border-radius: 10px;
}

.malf-tour-welcome .malf-tour-title {
	font-size: 22px;
	margin-bottom: 10px;
}

.malf-tour-welcome .malf-tour-body { margin-bottom: 24px; }

.malf-tour-welcome-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	flex-wrap: wrap;
}

.malf-tour-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
	.malf-tour-spot { transition: none; }
}
