/**
 * Yoga Elements: Thank You page.
 *
 * Every colour, font and corner reads the active theme's own variables first. The Glare theme publishes
 * --theme-color-*, --theme-font-* and --theme-var-rad, so the page matches it automatically. Other themes
 * fall through to the neutral fallbacks after each comma.
 */

.sty-page,
.sty-popup {
	--sty-c-text: var(--sty-text, var(--theme-color-text, inherit));
	--sty-c-heading: var(--sty-heading, var(--theme-color-text_dark, inherit));
	--sty-c-accent: var(--sty-accent, var(--theme-color-text_link, #15803d));
	--sty-c-accent-text: var(--sty-accent-text, var(--theme-color-inverse_text, #fff));
	--sty-c-accent-hover: var(--theme-color-text_hover, var(--sty-c-accent));
	--sty-c-bg: var(--sty-bg, var(--theme-color-alter_bg_color, transparent));
	--sty-c-border: var(--sty-border, var(--theme-color-bd_color, rgba(128, 128, 128, 0.3)));
	--sty-c-muted: var(--theme-color-text_light, rgba(128, 128, 128, 0.9));
	--sty-r: var(--theme-var-rad, 6px);
	--sty-gap: 24px;
	--sty-pad: 28px;

	box-sizing: border-box;
	color: var(--sty-c-text);
	line-height: 1.6;
}

.sty-page {
	width: 100%;
	max-width: min(100%, var(--sty-max, 760px));
	margin: 0 auto;
}

.sty-page *,
.sty-page *::before,
.sty-page *::after,
.sty-popup *,
.sty-popup *::before,
.sty-popup *::after {
	box-sizing: inherit;
}

.sty-align-left.sty-page {
	margin-left: 0;
}

.sty-gap-compact { --sty-gap: 14px; --sty-pad: 18px; }
.sty-gap-spacious { --sty-gap: 36px; --sty-pad: 40px; }

.sty-corners-square { --sty-r: 0px; }
.sty-corners-soft { --sty-r: 8px; }
.sty-corners-rounded { --sty-r: 20px; }

/* Hide the theme sidebar on our pages (see "Hide the theme sidebar" in Page Design). */
body.sty-fullwidth .sidebar.widget_area,
body.sty-fullwidth #secondary {
	display: none !important;
}

/* Belt and braces: even if the theme keeps its sidebar classes, the content column must not float or keep the sidebar's gap. */
body.sty-fullwidth [class*="content_wrap"] > .content {
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
	margin-right: auto !important;
	margin-left: auto !important;
	padding-right: 0 !important;
	padding-left: 0 !important;
}

/* Typography: reuse the theme's heading and button fonts when it exposes them. */
.sty-page__title,
.sty-block__heading,
.sty-block__title,
.sty-notice__title {
	margin: 0 0 0.4em;
	color: var(--sty-c-heading);
	font-family: var(--theme-font-h3_font-family, inherit);
	font-weight: var(--theme-font-h3_font-weight, 700);
	text-transform: var(--theme-font-h3_text-transform, none);
	letter-spacing: var(--theme-font-h3_letter-spacing, normal);
	line-height: 1.15;
}

.sty-page__title,
.sty-block__heading,
.sty-notice__title {
	font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem);
}

.sty-block__title {
	font-size: 1.4rem;
}

.sty-page__head {
	margin-bottom: var(--sty-gap);
	text-align: center;
}

.sty-align-left .sty-page__head {
	text-align: left;
}

.sty-page__subtitle,
.sty-p {
	margin: 0 0 1em;
	font-size: 1.05rem;
}

.sty-muted {
	color: var(--sty-c-muted);
}

/* Blocks */
.sty-blocks {
	display: flex;
	flex-direction: column;
	gap: var(--sty-gap);
}

.sty-block {
	text-align: center;
}

.sty-block.sty-align-left {
	text-align: left;
}

.sty-layout-card .sty-block,
.sty-notice {
	padding: var(--sty-pad);
	background: var(--sty-c-bg);
	border: 1px solid var(--sty-c-border);
	border-radius: var(--sty-r);
}

.sty-notice {
	text-align: center;
}

.sty-block > :last-child,
.sty-notice > :last-child {
	margin-bottom: 0;
}

/* Animated checkmark */
.sty-check {
	display: inline-block;
	width: 76px;
	height: 76px;
	margin-bottom: 14px;
	color: var(--sty-icon-color, var(--sty-c-accent));
}

.sty-check svg {
	display: block;
	width: 100%;
	height: 100%;
	stroke: currentColor;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.sty-anim .sty-check--anim .sty-check__circle {
	stroke-dasharray: 151;
	stroke-dashoffset: 151;
	animation: sty-draw 0.6s ease-out 0.1s forwards;
}

.sty-anim .sty-check--anim .sty-check__tick {
	stroke-dasharray: 40;
	stroke-dashoffset: 40;
	animation: sty-draw 0.35s ease-out 0.6s forwards;
}

@keyframes sty-draw {
	to {
		stroke-dashoffset: 0;
	}
}

/* Order number / amount line */
.sty-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 18px;
	margin: 1em 0 0;
	color: var(--sty-c-muted);
	font-size: 0.95rem;
}

.sty-align-left .sty-meta {
	justify-content: flex-start;
}

/* Buttons: copy the theme's button typography. */
.sty-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin: 0.4em 0 1em;
}

.sty-align-left .sty-actions {
	justify-content: flex-start;
}

.sty-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6em;
	min-height: 48px;
	padding: 0.8em 1.6em;
	border: 0;
	border-radius: var(--sty-r);
	background: var(--sty-btn-bg, var(--sty-c-accent));
	color: var(--sty-btn-text, var(--sty-c-accent-text));
	font-family: var(--theme-font-button_font-family, inherit);
	font-size: var(--theme-font-button_font-size, 0.95rem);
	font-weight: var(--theme-font-button_font-weight, 600);
	letter-spacing: var(--theme-font-button_letter-spacing, normal);
	text-transform: var(--theme-font-button_text-transform, none);
	text-decoration: none;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.sty-btn:hover,
.sty-btn:focus-visible {
	background: var(--sty-btn-hover, var(--sty-c-accent-hover));
	color: var(--sty-btn-hover-text, var(--sty-btn-text, var(--sty-c-accent-text)));
	text-decoration: none;
}

.sty-btn:focus-visible,
.sty-textlink:focus-visible {
	outline: 3px solid var(--sty-btn-bg, var(--sty-c-accent));
	outline-offset: 3px;
}

.sty-btn__icon {
	flex: none;
	width: 1.3em;
	height: 1.3em;
}

.sty-btn--small {
	min-height: 40px;
	padding: 0.5em 1.1em;
}

.sty-textlink {
	color: var(--sty-c-accent);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.sty-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
	white-space: nowrap;
}

/* Icons */
.sty-icon {
	display: inline-block;
	width: 1em;
	height: 1em;
	vertical-align: -0.125em;
}

.sty-block__icon {
	display: inline-block;
	margin-bottom: 8px;
	color: var(--sty-c-accent);
	font-size: 2rem;
}

/* Icon and information columns: stacked on mobile, N columns from tablet up. */
.sty-info {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--sty-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 640px) {
	.sty-info {
		grid-template-columns: repeat(var(--sty-cols, 3), minmax(0, 1fr));
	}
}

.sty-info__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.sty-align-left .sty-info__item {
	align-items: flex-start;
}

.sty-info__icon {
	color: var(--sty-icon-color, var(--sty-c-accent));
	font-size: var(--sty-icon-size, 32px);
	line-height: 1;
}

.sty-info__title {
	color: var(--sty-c-heading);
	font-size: 1.1rem;
}

.sty-info__text {
	font-size: 0.95rem;
}

/* Rich text */
.sty-richtext {
	text-align: left;
}

.sty-richtext--bordered {
	padding: 16px 18px;
	border: 1px solid var(--sty-c-border);
	border-radius: var(--sty-r);
}

.sty-richtext > :first-child { margin-top: 0; }
.sty-richtext > :last-child { margin-bottom: 0; }

/* Order summary */
.sty-dl {
	margin: 0;
	text-align: left;
}

.sty-dl__row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 16px;
	padding: 10px 0;
	border-bottom: 1px solid var(--sty-c-border);
}

.sty-dl__row:last-child {
	border-bottom: 0;
}

.sty-dl dt { color: var(--sty-c-muted); }
.sty-dl dd { margin: 0; color: var(--sty-c-heading); font-weight: 600; }

/* Products and downloads */
.sty-products,
.sty-downloads {
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: left;
}

.sty-products__item,
.sty-downloads__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--sty-c-border);
}

.sty-products__item:last-child,
.sty-downloads__item:last-child {
	border-bottom: 0;
}

.sty-products__img {
	flex: none;
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: var(--sty-r);
}

.sty-products__name,
.sty-downloads__name {
	flex: 1 1 auto;
	min-width: 0;
	overflow-wrap: anywhere;
	color: var(--sty-c-heading);
	font-weight: 600;
}

.sty-products__qty,
.sty-products__price {
	flex: none;
}

.sty-downloads__item {
	flex-wrap: wrap;
}

/* Images */
.sty-figure {
	margin: 0;
}

.sty-img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto 12px;
	border-radius: var(--sty-r);
}

.sty-caption {
	color: var(--sty-c-muted);
	font-size: 0.9rem;
}

/* Notices for pending, cancelled and unknown orders: deliberately neutral, never a success look. */
.sty-notice__icon {
	display: inline-block;
	margin-bottom: 10px;
	color: var(--sty-c-muted);
	font-size: 2.4rem;
	line-height: 1;
}

.sty-spinner {
	display: inline-block;
	width: 2.2rem;
	height: 2.2rem;
	border: 3px solid var(--sty-c-border);
	border-top-color: var(--sty-c-accent);
	border-radius: 50%;
	animation: sty-spin 0.9s linear infinite;
}

.sty-spinner--stopped {
	animation: none;
}

@keyframes sty-spin {
	to {
		transform: rotate(360deg);
	}
}

.sty-preview-banner {
	margin: 0 0 var(--sty-gap, 24px);
	padding: 10px 14px;
	border-left: 4px solid var(--theme-color-text_link, #2271b1);
	background: rgba(128, 128, 128, 0.1);
	font-size: 0.9rem;
}

/* Respect reduced-motion settings: no drawing, spinning or sliding. */
@media (prefers-reduced-motion: reduce) {
	.sty-page *,
	.sty-page *::before,
	.sty-page *::after {
		animation-duration: 0.001ms !important;
		animation-delay: 0s !important;
		animation-iteration-count: 1 !important;
		transition: none !important;
	}

	.sty-check--anim .sty-check__circle,
	.sty-check--anim .sty-check__tick {
		stroke-dashoffset: 0 !important;
	}
}

/* YouTube video: used by the content block and by the Elementor widget (which sits outside .sty-page). */
.sty-video {
	box-sizing: border-box;
	width: 100%;
	max-width: 760px;
	margin: 0 auto;
	color: var(--theme-color-text, inherit);
	text-align: center;
}

.sty-video__title {
	margin: 0 0 0.4em;
	color: var(--sty-c-heading, var(--theme-color-text_dark, inherit));
	font-family: var(--theme-font-h3_font-family, inherit);
	font-weight: var(--theme-font-h3_font-weight, 700);
	text-transform: var(--theme-font-h3_text-transform, none);
	letter-spacing: var(--theme-font-h3_letter-spacing, normal);
	line-height: 1.15;
}

.sty-video__text {
	margin: 0 0 1em;
}

/* Several videos or Shorts side by side. The column count comes from the Elementor control (--sty-vcols);
   with fewer videos than columns they stay centred. */
.sty-videos {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--sty-vgap, 20px);
}

.sty-videos__item {
	flex: 0 1 calc((100% - (var(--sty-vcols, 2) - 1) * var(--sty-vgap, 20px)) / var(--sty-vcols, 2));
	min-width: 0;
}

.sty-video__item-title {
	margin: 8px 0 0;
	color: var(--sty-c-heading, var(--theme-color-text_dark, inherit));
	font-weight: 600;
}

.sty-video__frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--sty-r, var(--theme-var-rad, 6px));
	background: #000;
}

.sty-aspect-4-3 { aspect-ratio: 4 / 3; }
.sty-aspect-1-1 { aspect-ratio: 1 / 1; }
.sty-aspect-9-16 { aspect-ratio: 9 / 16; max-width: 420px; margin-right: auto; margin-left: auto; }
/* A single video from the builder block fills its block; videos inside .sty-videos fill their column. */
.sty-aspect-21-9 { aspect-ratio: 21 / 9; }

.sty-video__frame iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.sty-video__note {
	margin: 8px 0 0;
	color: var(--theme-color-text_light, #777);
	font-size: 0.85rem;
}

/* Thank-you popup (printed in the footer, outside .sty-page). */
.sty-popup[hidden] {
	display: none;
}

.sty-popup {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, 0.6);
	overflow-y: auto;
}

.sty-popup__box {
	position: relative;
	width: 100%;
	max-width: 440px;
	max-height: 100%;
	overflow-y: auto;
	padding: 36px 28px 28px;
	border-radius: var(--sty-r);
	background: var(--theme-color-bg_color, #fff);
	color: var(--sty-c-text);
	text-align: center;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.sty-anim .sty-popup__box,
.sty-popup.sty-anim .sty-popup__box {
	animation: sty-pop 0.3s ease-out;
}

@keyframes sty-pop {
	from { opacity: 0; transform: translateY(16px) scale(0.97); }
	to { opacity: 1; transform: none; }
}

.sty-popup__close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--sty-c-muted);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.sty-popup__close:hover,
.sty-popup__close:focus-visible {
	background: transparent;
	color: var(--sty-c-heading);
}

.sty-popup__title {
	margin: 0 0 0.4em;
	color: var(--sty-c-heading);
	font-family: var(--theme-font-h3_font-family, inherit);
	font-weight: var(--theme-font-h3_font-weight, 700);
	text-transform: var(--theme-font-h3_text-transform, none);
	line-height: 1.15;
}

.sty-popup__text {
	margin: 0 0 1.2em;
}

.sty-popup .sty-btn {
	width: 100%;
}

html.sty-popup-open {
	overflow: hidden;
}

/* Workshop details: a text-only list of facts (Elementor widget). Matches the theme's colours, fonts and corners. */
.sty-workshop {
	--sty-c-accent: var(--sty-w-accent, var(--theme-color-text_link, #15803d));
	box-sizing: border-box;
	width: 100%;
	max-width: 760px;
	margin: 0 auto;
	color: var(--theme-color-text, inherit);
}

.sty-workshop *,
.sty-workshop *::before,
.sty-workshop *::after {
	box-sizing: inherit;
}

.sty-workshop__title {
	margin: 0 0 0.6em;
	color: var(--theme-color-text_dark, inherit);
	font-family: var(--theme-font-h3_font-family, inherit);
	font-weight: var(--theme-font-h3_font-weight, 700);
	text-transform: var(--theme-font-h3_text-transform, none);
	letter-spacing: var(--theme-font-h3_letter-spacing, normal);
	line-height: 1.15;
	text-align: center;
}

.sty-workshop__divider {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0 0 22px;
}

.sty-workshop__divider::before,
.sty-workshop__divider::after {
	content: "";
	width: 56px;
	height: 1px;
	background: var(--sty-c-accent);
	opacity: 0.4;
}

.sty-workshop__divider i {
	width: 8px;
	height: 8px;
	background: var(--theme-color-text_hover, var(--sty-c-accent));
	transform: rotate(45deg);
}

/* One card per fact. Phones: one column, as in the design. Wider screens: two columns. */
.sty-workshop__list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 768px) {
	.sty-workshop__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}
}

.sty-workshop__item {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0;
	padding: 16px 20px;
	border-bottom: 4px solid var(--sty-c-accent);
	border-radius: var(--theme-var-rad, 14px);
	background: var(--theme-color-bg_color, #fff);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.sty-workshop__icon {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--theme-color-alter_bg_color, rgba(128, 128, 128, 0.12));
	color: var(--sty-c-accent);
	font-size: 24px;
}

.sty-workshop__icon .sty-icon {
	width: 1em;
	height: 1em;
}

.sty-workshop__label {
	display: block;
	color: var(--theme-color-text_dark, inherit);
	font-weight: 700;
	line-height: 1.3;
}

.sty-workshop__value {
	display: block;
	line-height: 1.4;
}
