/**
 * Logicanvas Product Tours — frontend theme hooks (CSS variables).
 */

.lcpt-popover.driver-popover,
.driver-popover.lcpt-popover {
	background: var(--lcpt-bg, #fff);
	color: var(--lcpt-text, #0f172a);
	border-radius: var(--lcpt-radius, 10px);
	box-shadow: var(--lcpt-shadow, 0 10px 28px rgba(15, 23, 42, 0.16));
	max-width: var(--lcpt-popover-width, 320px);
	font-family: var(--lcpt-font, inherit);
}

.lcpt-popover .driver-popover-title {
	font-size: var(--lcpt-title-size, 16px);
	font-weight: 600;
	color: var(--lcpt-text, #0f172a);
}

.lcpt-popover .driver-popover-description {
	font-size: var(--lcpt-body-size, 14px);
	line-height: 1.5;
	color: var(--lcpt-text, #0f172a);
}

.lcpt-popover .driver-popover-next-btn,
.lcpt-popover .driver-popover-done-btn {
	background: var(--lcpt-primary, #2563eb);
	color: #fff;
	border: 1px solid var(--lcpt-primary, #2563eb);
	text-shadow: none;
	border-radius: calc(var(--lcpt-radius, 10px) - 2px);
}

.lcpt-popover .driver-popover-prev-btn,
.lcpt-popover .driver-popover-close-btn {
	color: var(--lcpt-text, #0f172a);
}

.lcpt-popover .driver-popover-progress-text {
	color: var(--lcpt-text, #0f172a);
	opacity: 0.7;
}

.lcpt-start-button {
	cursor: pointer;
}

.lcpt-restart-btn {
	position: fixed !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 0;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
	font-family: inherit;
	font-weight: 600;
	line-height: 1;
	transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.lcpt-restart-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
}

.lcpt-restart-btn:focus {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.lcpt-restart-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.15em;
	line-height: 1;
}

.lcpt-restart-btn.is-small {
	font-size: 12px;
	padding: 8px 12px;
	min-height: 36px;
}

.lcpt-restart-btn.is-medium {
	font-size: 14px;
	padding: 10px 16px;
	min-height: 44px;
}

.lcpt-restart-btn.is-large {
	font-size: 16px;
	padding: 12px 20px;
	min-height: 52px;
}

.lcpt-restart-btn.is-pill {
	border-radius: 999px;
}

.lcpt-restart-btn.is-rounded {
	border-radius: 12px;
}

.lcpt-restart-btn.is-circle {
	border-radius: 999px;
	padding: 0;
	width: 48px;
	min-height: 48px;
	gap: 0;
}

.lcpt-restart-btn.is-circle.is-small {
	width: 40px;
	min-height: 40px;
}

.lcpt-restart-btn.is-circle.is-large {
	width: 56px;
	min-height: 56px;
}

.lcpt-restart-btn.is-circle .lcpt-restart-label,
.lcpt-restart-btn.is-icon-only .lcpt-restart-label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.lcpt-restart-btn.is-icon-only:not(.is-circle) {
	padding-left: 12px;
	padding-right: 12px;
}

/* Hide only while a tour is actively running (not via sticky lcpt-active). */
html.lcpt-tour-running .lcpt-restart-btn {
	opacity: 0 !important;
	pointer-events: none !important;
	visibility: hidden !important;
}

.driver-overlay {
	/* Overlay color controlled via Driver config; keep pointer events default */
}
