/*
 * Little Thank You Page — default look (cream / pale green / dark green).
 * Every rule is scoped to .laty, so nothing leaks into the Astra theme.
 * Elementor style controls override these defaults.
 */

.laty {
	--laty-ink: #0e3b1d;
	--laty-pale: #dcebcd;
	--laty-line: #86b783;
	--laty-cream: #fdf8ee;
	--laty-surface: #fffcf5;
	--laty-accent: #f7941d;
	--laty-accent-hover: #ea8409;
	--laty-divider: rgba(14, 59, 29, 0.2);
	--laty-divider-w: 1px;

	box-sizing: border-box;
	background-color: var(--laty-cream);
	color: var(--laty-ink);
	padding: clamp(20px, 4vw, 44px) clamp(14px, 3vw, 32px);
	line-height: 1.45;
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
}

.laty *,
.laty *::before,
.laty *::after {
	box-sizing: border-box;
}

.laty .laty__inner {
	max-width: 980px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

/* Reset theme list / heading / address defaults inside the widget only. */
.laty ul,
.laty li,
.laty h1,
.laty h2,
.laty h3,
.laty p,
.laty address {
	margin: 0;
	padding: 0;
	list-style: none;
	font-style: normal;
	border: 0;
	background: none;
}

.laty h1,
.laty h2,
.laty h3 {
	color: inherit;
	line-height: 1.15;
}

.laty a {
	color: inherit;
}

.laty .laty-svg,
.laty .laty-icon svg,
.laty .laty-step__icon svg,
.laty .laty-btn__icon svg {
	width: 1em;
	height: 1em;
	display: block;
}

.laty svg:not(.laty-svg) {
	fill: currentColor;
}

/* ---------- Header ---------- */

.laty .laty-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 6px;
}

.laty .laty-icon {
	width: 58px;
	height: 58px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	font-size: 36px;
	color: var(--laty-ink);
	background-color: var(--laty-pale);
	border: 2px solid var(--laty-line);
	border-radius: 50%;
}

.laty .laty-title {
	font-size: clamp(1.9rem, 4.8vw, 3rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.01em;
	color: var(--laty-ink);
	overflow-wrap: anywhere;
}

.laty .laty-sub {
	font-size: 1.08rem;
}

.laty .laty-meta {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 18px;
	margin-top: 8px;
	padding: 7px 22px;
	background-color: var(--laty-pale);
	border-radius: 10px;
	font-size: 0.98rem;
}

.laty .laty-meta__sep {
	width: 1px;
	height: 1.2em;
	background-color: var(--laty-ink);
	opacity: 0.75;
}

.laty .laty-meta strong {
	font-weight: 700;
}

.laty .laty-status--wait .laty-status__value {
	color: #8a5a00;
}

.laty .laty-status--bad .laty-status__value {
	color: #a4262c;
}

.laty .laty-notice {
	text-align: center;
	padding: 10px 16px;
	background-color: #fff1d6;
	border: 1px solid #f0c36d;
	border-radius: 10px;
}

.laty .laty-notice__link {
	font-weight: 700;
	text-decoration: underline;
	margin-left: 6px;
}

.laty .laty-editor-note {
	font-size: 12px;
	text-align: center;
	padding: 6px 10px;
	border: 1px dashed var(--laty-line);
	border-radius: 8px;
	opacity: 0.85;
}

/* ---------- Two-column summary ---------- */

.laty .laty-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 18px;
	align-items: start;
}

.laty .laty-grid--single {
	grid-template-columns: minmax(0, 1fr) !important;
}

.laty .laty-card {
	min-width: 0;
	border-radius: 14px;
}

.laty .laty-card__title {
	font-size: clamp(1.35rem, 2.6vw, 1.75rem);
	font-weight: 800;
}

/* Your order */

.laty .laty-ordercard {
	background-color: var(--laty-surface);
	border: 1.5px solid var(--laty-line);
	overflow: hidden;
}

.laty .laty-ordercard__title {
	padding: 9px 18px;
	background-color: var(--laty-pale);
}

.laty .laty-ordercard__body {
	padding: 6px 18px 14px;
}

.laty .laty-item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 12px 0;
	border-bottom: var(--laty-divider-w) solid var(--laty-divider);
}

.laty .laty-item__img {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	max-width: none;
	object-fit: contain;
	border-radius: 8px;
}

.laty .laty-item__info {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.laty .laty-item__name {
	font-size: 1.06rem;
	font-weight: 700;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.laty .laty-item__qty {
	white-space: nowrap;
}

.laty .laty-item__meta,
.laty .laty-item__unit {
	font-size: 0.9rem;
	overflow-wrap: anywhere;
}

.laty .laty-item__unit {
	opacity: 0.8;
}

.laty .laty-item__price {
	flex: none;
	margin-left: auto;
	padding-left: 8px;
	font-weight: 700;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.laty .laty-totals {
	margin-top: 8px;
}

.laty .laty-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding: 2px 12px;
	font-size: 0.95rem;
}

.laty .laty-row__value {
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.laty .laty-row--included {
	font-size: 0.85rem;
	opacity: 0.8;
}

.laty .laty-row--total {
	margin-top: 6px;
	padding: 7px 12px;
	background-color: var(--laty-pale);
	border-radius: 8px;
	font-size: 1.3rem;
	font-weight: 800;
	align-items: center;
}

/* What happens next */

.laty .laty-next {
	background-color: var(--laty-pale);
	padding: 16px 20px 8px;
}

.laty .laty-next__title {
	margin-bottom: 4px;
}

.laty .laty-step {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 16px 0;
}

.laty .laty-step + .laty-step {
	border-top: 1px solid var(--laty-divider);
}

.laty .laty-step__icon {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 56px;
	color: var(--laty-ink);
	border-radius: 12px;
}

.laty .laty-step__text {
	flex: 1 1 auto;
	min-width: 0;
}

.laty .laty-step__title {
	font-size: 1.08rem;
	font-weight: 700;
	line-height: 1.25;
	margin-bottom: 2px;
}

.laty .laty-step__desc {
	font-size: 0.95rem;
}

/* ---------- Addresses ---------- */

.laty .laty-addresses {
	--laty-addr-gap: 56px;
	--laty-addr-divider: var(--laty-ink);
	--laty-addr-divider-w: 1px;

	background-color: var(--laty-surface);
	border: 1.5px solid var(--laty-line);
	border-radius: 14px;
	padding: 12px 24px 14px;
}

.laty .laty-addresses__grid {
	display: flex;
	flex-wrap: wrap;
	gap: var(--laty-addr-gap);
	overflow: hidden; /* clips the divider lines of the first column / first row */
}

.laty .laty-address {
	position: relative;
	flex: 1 1 40%;
	min-width: 0;
}

/* Divider lines sit in the middle of the gap: vertical between columns, horizontal when stacked. */
.laty .laty-address::before,
.laty .laty-address::after {
	content: "";
	position: absolute;
	background-color: var(--laty-addr-divider);
}

.laty .laty-address::before {
	top: 0;
	bottom: 0;
	left: calc(var(--laty-addr-gap) / -2);
	width: var(--laty-addr-divider-w);
}

.laty .laty-address::after {
	left: 0;
	right: 0;
	top: calc(var(--laty-addr-gap) / -2);
	height: var(--laty-addr-divider-w);
	opacity: 0.35;
}

.laty .laty-address__title {
	font-size: 1.08rem;
	font-weight: 700;
	margin-bottom: 2px;
}

.laty .laty-address__body {
	font-size: 0.92rem;
	line-height: 1.45;
}

.laty .laty-address__line {
	display: block;
	overflow-wrap: anywhere;
}

.laty .laty-payment {
	margin-top: 4px;
	font-size: 0.92rem;
}

.laty .laty-payment__label {
	font-weight: 700;
}

/* ---------- Support ---------- */

.laty .laty-support {
	display: flex;
	flex-direction: column;
	gap: 2px;
	text-align: center;
}

.laty .laty-support__title {
	font-size: clamp(1.25rem, 2.4vw, 1.55rem);
	font-weight: 800;
}

.laty .laty-support__link {
	display: block;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.laty .laty-support__link:hover,
.laty .laty-support__link:focus-visible {
	text-decoration: underline;
}

/* ---------- Buttons ---------- */

.laty .laty-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: -6px;
}

.laty .laty-actions__row {
	display: flex;
	justify-content: center;
}

.laty .laty-btn {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	max-width: 100%;
	border: 0 solid transparent;
	text-decoration: none;
	cursor: pointer;
	line-height: 1.2;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.laty .laty-btn--icon-before {
	flex-direction: row-reverse;
}

.laty .laty-btn__icon {
	display: inline-flex;
	font-size: 1.15em;
	line-height: 1;
}

.laty .laty-btn--continue {
	min-height: 48px;
	padding: 11px 34px;
	background-color: var(--laty-accent);
	color: var(--laty-ink);
	border-radius: 999px;
	font-size: 1.15rem;
	font-weight: 800;
	box-shadow: 0 3px 0 rgba(14, 59, 29, 0.12);
}

.laty .laty-btn--continue:hover,
.laty .laty-btn--continue:focus-visible {
	background-color: var(--laty-accent-hover);
	color: var(--laty-ink);
}

.laty .laty-btn--pdf {
	min-height: 36px;
	padding: 6px 10px;
	background-color: transparent;
	color: var(--laty-ink);
	border-radius: 8px;
	font-size: 0.9rem;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.laty .laty-btn--pdf:hover,
.laty .laty-btn--pdf:focus-visible {
	background-color: var(--laty-pale);
}

.laty .laty-btn:focus-visible {
	outline: 2px solid var(--laty-ink);
	outline-offset: 3px;
}

.laty .laty-btn.is-loading {
	opacity: 0.6;
	cursor: progress;
}

/* Shine: a soft light band. It never receives clicks; script.js moves it left → right. */
.laty .laty-shine {
	--laty-shine-color: #ffffff;
	--laty-shine-width: 70px;
	--laty-shine-angle: -22deg;
	--laty-shine-core: 20%;

	position: absolute;
	z-index: 1;
	top: -25%;
	bottom: -25%;
	left: calc(var(--laty-shine-width) * -1 - 60px);
	width: var(--laty-shine-width);
	pointer-events: none;
	opacity: 0.55;
	transform: skewX(var(--laty-shine-angle));
	background: linear-gradient(
		90deg,
		transparent 0%,
		var(--laty-shine-color) calc(50% - var(--laty-shine-core) / 2),
		var(--laty-shine-color) calc(50% + var(--laty-shine-core) / 2),
		transparent 100%
	);
	will-change: transform;
}

/* WooCommerce gateway instructions / tracking output printed after the template. */
.laty-wc-hooks:empty {
	display: none;
}

.laty-wc-hooks {
	max-width: 980px;
	margin: 16px auto 0;
}

/* ---------- Tablet ---------- */

@media (max-width: 1024px) {
	.laty .laty-grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.laty .laty-step__icon {
		flex-basis: 52px;
		width: 52px;
		height: 52px;
		font-size: 44px;
	}

	.laty .laty-step {
		gap: 14px;
	}

	.laty .laty-addresses {
		--laty-addr-gap: 40px;
	}
}

/* ---------- Mobile: single column ---------- */

@media (max-width: 767px) {
	.laty .laty-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.laty .laty-address {
		flex-basis: 100%;
	}

	.laty .laty-addresses {
		--laty-addr-gap: 26px;
		padding: 12px 16px 14px;
	}

	.laty .laty-ordercard__title {
		padding: 9px 14px;
	}

	.laty .laty-ordercard__body {
		padding: 4px 14px 12px;
	}

	.laty .laty-item {
		gap: 12px;
	}

	.laty .laty-item__img {
		flex-basis: 56px;
		width: 56px;
		height: 56px;
	}

	.laty .laty-next {
		padding: 14px 16px 6px;
	}

	.laty .laty-meta {
		padding: 8px 14px;
	}

	.laty .laty-meta__sep {
		display: none;
	}

	.laty .laty-btn--continue {
		width: 100%;
		max-width: 360px;
	}

	.laty .laty-btn--pdf {
		min-height: 44px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.laty .laty-btn {
		transition: none;
	}

	.laty .laty-shine {
		display: none;
	}
}

@media print {
	.laty .laty-actions,
	.laty .laty-editor-note {
		display: none;
	}
}