/**
 * Compact V-Story wizard promo CTA (archive + gallery + single-bottom).
 * Buttons prefer Kadence `.button` tokens; solid fallbacks keep contrast if theme vars are absent.
 */

.veltiara-vstory-wizard-cta {
	--veltiara-wizard-cta-btn-bg: var(--global-palette-btn-bg, #1a1a1a);
	--veltiara-wizard-cta-btn-fg: var(--global-palette-btn, #ffffff);
	--veltiara-wizard-cta-btn-bg-hover: var(--global-palette-btn-bg-hover, #2e2e2e);
	--veltiara-wizard-cta-btn-fg-hover: var(--global-palette-btn-hover, #ffffff);
	margin: 0 0 1.5rem;
	padding: 1rem 1.125rem;
	border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
	border-radius: 10px;
	background: color-mix(in srgb, currentColor 4%, transparent);
}

.veltiara-vstory-wizard-cta__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.85rem 1.25rem;
}

.veltiara-vstory-wizard-cta__copy {
	flex: 1 1 16rem;
	min-width: 0;
}

.veltiara-vstory-wizard-cta__title {
	margin: 0 0 0.35rem;
	font-weight: 600;
	line-height: 1.35;
	font-size: 1.05rem;
}

.veltiara-vstory-wizard-cta__body {
	margin: 0;
	line-height: 1.5;
	opacity: 0.85;
	font-size: 0.95rem;
}

.veltiara-vstory-wizard-cta__actions {
	margin: 0;
	flex: 0 0 auto;
}

/* Prefer theme primary button look; keep high-contrast fallbacks. */
.veltiara-vstory-wizard-cta__button,
a.veltiara-vstory-wizard-cta__button.button {
	display: inline-block;
	padding: 0.65rem 1.1rem;
	border: 0;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	line-height: 1.25;
	box-shadow: none;
	color: var(--veltiara-wizard-cta-btn-fg);
	background: var(--veltiara-wizard-cta-btn-bg);
	transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}

.veltiara-vstory-wizard-cta__button:visited,
a.veltiara-vstory-wizard-cta__button.button:visited {
	color: var(--veltiara-wizard-cta-btn-fg);
	background: var(--veltiara-wizard-cta-btn-bg);
}

.veltiara-vstory-wizard-cta__button:hover,
.veltiara-vstory-wizard-cta__button:focus,
a.veltiara-vstory-wizard-cta__button.button:hover,
a.veltiara-vstory-wizard-cta__button.button:focus {
	opacity: 1;
	transform: translateY(-1px);
	color: var(--veltiara-wizard-cta-btn-fg-hover);
	background: var(--veltiara-wizard-cta-btn-bg-hover);
}

/* Single V-Story slug page — align with shell content column, quieter panel chrome. */
.veltiara-vstory-wrap .veltiara-vstory-wizard-cta--single-bottom,
.veltiara-vstory-wizard-cta--single-bottom {
	box-sizing: border-box;
	width: 100%;
	max-width: 48rem; /* matches .veltiara-vstory --vstory-max */
	margin: 0.5rem auto 0;
	padding: 1.25rem 1.25rem 3rem;
	border: 0;
	border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
	border-radius: 0;
	background: transparent;
}

.veltiara-vstory-wizard-cta--single-bottom .veltiara-vstory-wizard-cta__title {
	font-size: 1rem;
	font-weight: 600;
}

.veltiara-vstory-wizard-cta--single-bottom .veltiara-vstory-wizard-cta__body {
	font-size: 0.9rem;
	opacity: 0.8;
}

@media (max-width: 640px) {
	.veltiara-vstory-wizard-cta__inner {
		flex-direction: column;
		align-items: stretch;
	}

	.veltiara-vstory-wizard-cta__button,
	a.veltiara-vstory-wizard-cta__button.button {
		display: block;
		width: 100%;
		text-align: center;
	}
}
