/* =========================================================
   threadslabin - THANK YOU  +  ORDER RECEIVED
   Body classes:
     custom-page-thank-you        (custom page)
     woocommerce-order-received   (WooCommerce endpoint)
     custom-woo-order-received    (theme class, if present)
   ========================================================= */

/* =========================================================
   0. TOKENS - shared by both pages
   ========================================================= */

body.custom-page-thank-you,
body.custom-woo-order-received,
body.woocommerce-order-received {
	--ty-accent: var(--madder, #a8402f);
	--ty-accent-dark: #8c3526;
	--ty-accent-soft: #faf1ef;

	--ty-ink: var(--ink, #1a1d1a);
	--ty-ink-hover: #000;
	--ty-text: var(--ink-soft, #5d625c);
	--ty-muted: #8a8f89;

	--ty-good: #2f6b3a;
	--ty-good-soft: #e7f1e8;

	--ty-border: rgba(26, 29, 26, 0.10);
	--ty-border-soft: rgba(26, 29, 26, 0.07);

	--ty-shadow: 0 26px 70px rgba(26, 29, 26, 0.08);
	--ty-shadow-sm: 0 10px 26px rgba(26, 29, 26, 0.06);
	--ty-radius: 24px;
	--ty-radius-sm: 14px;

	--ty-page-bg: #ffffff;

	/* space above the content */
	--ty-gap: clamp(2.5rem, 6vw, 5rem);
	/* space below it - identical, so the footer never gets an odd band */
	--ty-gap-bottom: var(--ty-gap);
}

/* =========================================================
   1. PAGE SHELL  (both pages)

   The background lives on <body> and every wrapper is transparent,
   so no leftover coloured strip can show above the footer.
   ========================================================= */

body.custom-page-thank-you,
body.custom-woo-order-received,
body.woocommerce-order-received {
	background:
		radial-gradient(circle at 6% 8%, rgba(168, 64, 47, 0.045), transparent 32%),
		radial-gradient(circle at 96% 12%, rgba(47, 107, 58, 0.04), transparent 30%),
		var(--ty-page-bg) !important;
	background-attachment: fixed !important;
}

body.custom-page-thank-you #page,
body.custom-page-thank-you .site,
body.custom-page-thank-you .site-content,
body.custom-page-thank-you .content-area,
body.custom-page-thank-you .site-main,
body.custom-page-thank-you article.page,
body.custom-woo-order-received #page,
body.custom-woo-order-received .site,
body.custom-woo-order-received .site-content,
body.custom-woo-order-received .content-area,
body.custom-woo-order-received .site-main,
body.woocommerce-order-received #page,
body.woocommerce-order-received .site,
body.woocommerce-order-received .site-content,
body.woocommerce-order-received .content-area,
body.woocommerce-order-received .site-main,
body.woocommerce-order-received article,
body.woocommerce-order-received .woocommerce {
	background: transparent !important;
}

/* no stray decorative strips between the content and the footer */
body.custom-page-thank-you .site-content::after,
body.custom-page-thank-you .site-content::before,
body.custom-page-thank-you .site-main::after,
body.custom-woo-order-received .site-content::after,
body.custom-woo-order-received .site-content::before,
body.custom-woo-order-received .site-main::after,
body.woocommerce-order-received .site-content::after,
body.woocommerce-order-received .site-content::before,
body.woocommerce-order-received .site-main::after {
	content: none !important;
}

body.custom-page-thank-you .site-content,
body.custom-page-thank-you .content-area,
body.custom-woo-order-received .site-content,
body.custom-woo-order-received .content-area,
body.woocommerce-order-received .site-content,
body.woocommerce-order-received .content-area {
	margin: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	min-height: 0 !important;
}

body.custom-page-thank-you .site-content > *:last-child,
body.custom-page-thank-you .content-area > *:last-child,
body.custom-page-thank-you .site-main > *:last-child,
body.custom-woo-order-received .site-content > *:last-child,
body.custom-woo-order-received .content-area > *:last-child,
body.custom-woo-order-received .site-main > *:last-child,
body.woocommerce-order-received .site-content > *:last-child,
body.woocommerce-order-received .content-area > *:last-child,
body.woocommerce-order-received .site-main > *:last-child {
	margin-bottom: 0 !important;
}

/* the footer itself must not add a top gap or a divider band */
body.custom-page-thank-you .site-footer,
body.custom-page-thank-you footer.site-footer,
body.custom-page-thank-you #colophon,
body.custom-page-thank-you .footer,
body.custom-page-thank-you .site-footer-top,
body.custom-woo-order-received .site-footer,
body.custom-woo-order-received footer.site-footer,
body.custom-woo-order-received #colophon,
body.custom-woo-order-received .footer,
body.custom-woo-order-received .site-footer-top,
body.woocommerce-order-received .site-footer,
body.woocommerce-order-received footer.site-footer,
body.woocommerce-order-received #colophon,
body.woocommerce-order-received .footer,
body.woocommerce-order-received .site-footer-top {
	margin-top: 0 !important;
}

body.custom-page-thank-you .site-footer::before,
body.custom-page-thank-you #colophon::before,
body.custom-woo-order-received .site-footer::before,
body.custom-woo-order-received #colophon::before,
body.woocommerce-order-received .site-footer::before,
body.woocommerce-order-received #colophon::before {
	content: none !important;
}

/* =========================================================
   2. CUSTOM THANK YOU PAGE  (custom-page-thank-you)
   ========================================================= */

body.custom-page-thank-you .site-main {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0 !important;
	margin: 0 !important;
	padding: var(--ty-gap) 0 var(--ty-gap-bottom) !important;
}

body.custom-page-thank-you article.page,
body.custom-page-thank-you .site-main .wrap,
body.custom-page-thank-you .site-main .wrap-narrow {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

body.custom-page-thank-you .site-main .wrap,
body.custom-page-thank-you .site-main .wrap-narrow {
	width: min(100% - 2.5rem, 760px);
	max-width: none;
}

body.custom-page-thank-you .page-header,
body.custom-page-thank-you .entry-header,
body.custom-page-thank-you .entry-footer { display: none; }

/* ---------- the card ---------- */

body.custom-page-thank-you .entry-content,
body.custom-page-thank-you article.page .entry-content {
	position: relative;
	max-width: none !important;
	margin: 0 !important;
	padding: clamp(2.75rem, 5vw, 3.75rem) clamp(1.5rem, 4vw, 3.25rem) clamp(2.5rem, 4.5vw, 3.25rem);
	background:
		radial-gradient(circle 150px at 100% 100%, rgba(47, 107, 58, 0.06) 0 150px, transparent 151px),
		#fff !important;
	border: 1px solid var(--ty-border);
	border-radius: var(--ty-radius);
	box-shadow: var(--ty-shadow);
	text-align: center;
	overflow: hidden;
	isolation: isolate;
	animation: ty-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.custom-page-thank-you .entry-content > *:last-child { margin-bottom: 0 !important; }

body.custom-page-thank-you .entry-content::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	height: 5px;
	background: linear-gradient(90deg, var(--ty-accent), var(--ty-good));
	z-index: 2;
}

body.custom-page-thank-you .entry-content::before {
	content: "";
	display: block;
	width: 92px;
	height: 92px;
	margin: 0 auto clamp(1.5rem, 3vw, 2rem);
	border-radius: 50%;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='32' r='29' fill='none' stroke='%232f6b3a' stroke-width='2.5'/%3E%3Cpath d='M20 33.5l8.5 8.5L45 23.5' fill='none' stroke='%23a8402f' stroke-width='4.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 64px no-repeat,
		linear-gradient(180deg, #f7f6f3, #f2f4f1);
	box-shadow: 0 10px 26px rgba(26, 29, 26, 0.07);
	animation: ty-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.12s both;
}

@keyframes ty-rise {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: none; }
}

@keyframes ty-pop {
	from { opacity: 0; transform: scale(0.7); }
	to   { opacity: 1; transform: none; }
}

/* ---------- the words ---------- */

body.custom-page-thank-you .entry-content h5 {
	display: inline-block;
	margin: 0 0 1.25rem;
	padding: 0.62em 1.35em;
	background: var(--ty-good-soft);
	border-radius: 999px;
	color: var(--ty-good);
	font-family: var(--display, system-ui, sans-serif);
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	line-height: 1;
}

body.custom-page-thank-you .entry-content h1 {
	margin: 0 0 1.15rem;
	color: var(--ty-ink);
	font-family: var(--display, system-ui, sans-serif);
	font-size: clamp(2.4rem, 5.4vw, 3.5rem);
	font-weight: 700;
	line-height: 1.04;
	letter-spacing: -0.035em;
}

body.custom-page-thank-you .entry-content h6 {
	max-width: 42ch;
	margin: 0 auto 0.85rem;
	color: var(--ty-ink);
	font-family: var(--display, var(--body, system-ui, sans-serif));
	font-size: clamp(1.02rem, 1.9vw, 1.2rem);
	font-weight: 700;
	line-height: 1.5;
}

body.custom-page-thank-you .entry-content p {
	max-width: 52ch;
	margin: 0 auto clamp(1.75rem, 3.5vw, 2.25rem);
	padding: 0;
	background: none;
	border: 0;
	color: var(--ty-muted);
	font-size: 0.95rem;
	line-height: 1.6;
	text-align: center;
}

body.custom-page-thank-you .entry-content p:empty { display: none; }

/* ---------- the buttons ---------- */

body.custom-page-thank-you .entry-content .wp-block-buttons {
	display: inline-flex !important;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center !important;
	gap: 0.85rem;
	margin: 0 0.42rem !important;
	vertical-align: middle;
}

body.custom-page-thank-you .entry-content .wp-block-columns {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.85rem;
	margin: 0 !important;
}

body.custom-page-thank-you .entry-content .wp-block-column {
	flex: 0 0 auto !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.custom-page-thank-you .entry-content .wp-block-button {
	display: inline-block;
	margin: 0;
}

body.custom-page-thank-you .entry-content .wp-block-button__link,
body.custom-page-thank-you .entry-content .wp-block-button a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	min-height: 52px;
	padding: 0.9em 1.7em;
	background: var(--ty-accent) !important;
	border: 1px solid var(--ty-accent) !important;
	border-radius: 11px !important;
	color: #fff !important;
	font-family: var(--display, system-ui, sans-serif);
	font-size: 0.96rem;
	font-weight: 700;
	text-decoration: none !important;
	box-shadow: 0 12px 26px rgba(168, 64, 47, 0.20);
	transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

body.custom-page-thank-you .entry-content .wp-block-button__link::after {
	content: "";
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 0.2s ease;
}

body.custom-page-thank-you .entry-content .wp-block-button__link:hover,
body.custom-page-thank-you .entry-content .wp-block-button a:hover {
	background: var(--ty-accent-dark) !important;
	border-color: var(--ty-accent-dark) !important;
	transform: translateY(-2px);
	box-shadow: 0 16px 32px rgba(140, 53, 38, 0.24);
}

body.custom-page-thank-you .entry-content .wp-block-button__link:hover::after { transform: translateX(3px); }

/* second button = solid black */
body.custom-page-thank-you .entry-content .wp-block-buttons .wp-block-button:last-child:not(:first-child) .wp-block-button__link,
body.custom-page-thank-you .entry-content .wp-block-buttons:last-of-type:not(:first-of-type) .wp-block-button__link,
body.custom-page-thank-you .entry-content .wp-block-columns .wp-block-column:last-child:not(:first-child) .wp-block-button__link {
	background: var(--ty-ink) !important;
	border-color: var(--ty-ink) !important;
	color: #fff !important;
	box-shadow: 0 12px 26px rgba(26, 29, 26, 0.18);
}

body.custom-page-thank-you .entry-content .wp-block-buttons .wp-block-button:last-child:not(:first-child) .wp-block-button__link:hover,
body.custom-page-thank-you .entry-content .wp-block-buttons:last-of-type:not(:first-of-type) .wp-block-button__link:hover,
body.custom-page-thank-you .entry-content .wp-block-columns .wp-block-column:last-child:not(:first-child) .wp-block-button__link:hover {
	background: var(--ty-ink-hover) !important;
	border-color: var(--ty-ink-hover) !important;
	box-shadow: 0 16px 32px rgba(0, 0, 0, 0.26);
}

body.custom-page-thank-you .entry-content .wp-block-buttons .wp-block-button:last-child:not(:first-child) .wp-block-button__link::after,
body.custom-page-thank-you .entry-content .wp-block-buttons:last-of-type:not(:first-of-type) .wp-block-button__link::after,
body.custom-page-thank-you .entry-content .wp-block-columns .wp-block-column:last-child:not(:first-child) .wp-block-button__link::after {
	content: none;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
	body.custom-page-thank-you .entry-content {
		background:
			radial-gradient(circle 110px at 100% 100%, rgba(47, 107, 58, 0.06) 0 110px, transparent 111px),
			#fff !important;
	}
}

@media (max-width: 700px) {
	body.custom-page-thank-you,
	body.custom-woo-order-received,
	body.woocommerce-order-received {
		background-attachment: scroll !important;
		--ty-gap: clamp(2rem, 7vw, 3rem);
	}

	body.custom-page-thank-you .entry-content::before {
		width: 80px;
		height: 80px;
		background-size: 56px;
	}

	body.custom-page-thank-you .entry-content h1 { font-size: 2.4rem; }
	body.custom-page-thank-you .entry-content h6 { font-size: 1.02rem; max-width: 34ch; }
	body.custom-page-thank-you .entry-content p  { font-size: 0.92rem; }

	body.custom-page-thank-you .entry-content .wp-block-button__link,
	body.custom-page-thank-you .entry-content .wp-block-button a {
		padding: 0.85em 1.35em;
		font-size: 0.92rem;
	}
}

@media (max-width: 520px) {
	body.custom-page-thank-you,
	body.custom-woo-order-received,
	body.woocommerce-order-received { --ty-gap: 1.75rem; }

	body.custom-page-thank-you .site-main .wrap,
	body.custom-page-thank-you .site-main .wrap-narrow { width: calc(100% - 1.5rem); }

	body.custom-page-thank-you .entry-content {
		padding: 2.25rem 1.15rem 2rem;
		border-radius: 18px;
	}

	body.custom-page-thank-you .entry-content::before {
		width: 72px;
		height: 72px;
		background-size: 50px;
		margin-bottom: 1.25rem;
	}

	body.custom-page-thank-you .entry-content h1 { font-size: 2.05rem; }

	body.custom-page-thank-you .entry-content .wp-block-buttons {
		display: flex !important;
		flex-direction: column;
		width: 100%;
		gap: 0.65rem;
		margin: 0 0 0.65rem !important;
	}

	body.custom-page-thank-you .entry-content .wp-block-buttons:last-of-type { margin-bottom: 0 !important; }

	body.custom-page-thank-you .entry-content .wp-block-columns { flex-direction: column; gap: 0.65rem; }
	body.custom-page-thank-you .entry-content .wp-block-column  { width: 100% !important; }

	body.custom-page-thank-you .entry-content .wp-block-button { display: block; width: 100%; }

	body.custom-page-thank-you .entry-content .wp-block-button__link,
	body.custom-page-thank-you .entry-content .wp-block-button a {
		width: 100%;
		min-width: 0;
	}
}

/* =========================================================
   3. WOOCOMMERCE ORDER RECEIVED
   ========================================================= */

body.custom-woo-order-received .site-main,
body.woocommerce-order-received .site-main {
	min-height: 0 !important;
	margin: 0 !important;
	padding: var(--ty-gap) 0 var(--ty-gap-bottom) !important;
}

body.custom-woo-order-received .site-main .wrap,
body.custom-woo-order-received .site-main .wrap-narrow,
body.woocommerce-order-received .site-main .wrap,
body.woocommerce-order-received .site-main .wrap-narrow {
	width: min(100% - 2.5rem, 860px);
	max-width: none;
}

body.custom-woo-order-received .entry-content,
body.custom-woo-order-received .entry-content > *,
body.woocommerce-order-received .entry-content,
body.woocommerce-order-received .entry-content > * {
	max-width: none !important;
}

/* ---------- THE PAGE TITLE: visible again, as the h1 ---------- */

body.custom-woo-order-received .page-header,
body.woocommerce-order-received .page-header {
	display: block !important;
	margin: 0 0 clamp(1.5rem, 3.5vw, 2.25rem) !important;
	padding: 0 !important;
	background: none !important;
	border: 0 !important;
	text-align: center;
}

body.custom-woo-order-received .entry-title,
body.custom-woo-order-received .page-header h1,
body.custom-woo-order-received .woocommerce-products-header__title,
body.woocommerce-order-received .entry-title,
body.woocommerce-order-received .page-header h1,
body.woocommerce-order-received .woocommerce-products-header__title {
	display: block !important;
	margin: 0 auto clamp(1.5rem, 3.5vw, 2.25rem) !important;
	color: var(--ty-ink);
	font-family: var(--display, system-ui, sans-serif);
	font-size: clamp(2.4rem, 5.4vw, 3.5rem);
	font-weight: 700;
	line-height: 1.04;
	letter-spacing: -0.035em;
	text-align: center;
}

/* the header block already carries the bottom gap */
body.custom-woo-order-received .page-header .entry-title,
body.woocommerce-order-received .page-header .entry-title { margin-bottom: 0 !important; }

/* ---------- the hero card ---------- */

body.custom-woo-order-received .woocommerce-order .woocommerce-thankyou-order-received,
body.woocommerce-order-received .woocommerce-order .woocommerce-thankyou-order-received {
	position: relative;
	display: block;
	max-width: none;
	margin: 0 0 1.75rem;
	padding: clamp(2.25rem, 5vw, 3.25rem) clamp(1.75rem, 4.5vw, 3rem) clamp(2rem, 4vw, 2.75rem);
	background:
		radial-gradient(circle 150px at 100% 100%, rgba(47, 107, 58, 0.06) 0 150px, transparent 151px),
		#fff;
	border: 1px solid var(--ty-border);
	border-radius: var(--ty-radius);
	box-shadow: var(--ty-shadow);
	color: var(--ty-ink);
	text-align: center;
	overflow: hidden;
	isolation: isolate;
	animation: ty-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.custom-woo-order-received .woocommerce-thankyou-order-received::after,
body.woocommerce-order-received .woocommerce-thankyou-order-received::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	height: 5px;
	background: linear-gradient(90deg, var(--ty-accent), var(--ty-good));
	z-index: 2;
}

body.custom-woo-order-received .woocommerce-thankyou-order-received::before,
body.woocommerce-order-received .woocommerce-thankyou-order-received::before {
	content: "";
	display: block;
	width: 92px;
	height: 92px;
	margin: 0 auto 1.5rem;
	border-radius: 50%;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='32' r='29' fill='none' stroke='%232f6b3a' stroke-width='2.5'/%3E%3Cpath d='M20 33.5l8.5 8.5L45 23.5' fill='none' stroke='%23a8402f' stroke-width='4.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 64px no-repeat,
		linear-gradient(180deg, #f7f6f3, #f2f4f1);
	box-shadow: 0 10px 26px rgba(26, 29, 26, 0.07);
	animation: ty-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.12s both;
}

.woocommerce-order .tl-ty-pill {
	display: inline-block;
	margin: 0 0 1.1rem;
	padding: 0.62em 1.35em;
	background: var(--ty-good-soft);
	border-radius: 999px;
	color: var(--ty-good);
	font-family: var(--display, system-ui, sans-serif);
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	line-height: 1;
}

/* the greeting sits under the page h1, so it reads as the lead line */
.woocommerce-order .tl-thanks-title {
	display: block;
	max-width: 42ch;
	margin: 0 auto 0.6rem;
	color: var(--ty-ink);
	font-family: var(--display, var(--body, system-ui, sans-serif));
	font-size: clamp(1.05rem, 2vw, 1.25rem);
	font-weight: 700;
	line-height: 1.5;
}

.woocommerce-order .tl-thanks-sub {
	display: block;
	max-width: 52ch;
	margin: 0 auto;
	color: var(--ty-muted);
	font-size: 0.95rem;
	font-weight: 400;
	line-height: 1.6;
}

/* ---------- summary row: one small card per fact ---------- */

.woocommerce-order ul.woocommerce-order-overview {
	display: flex !important;
	flex-wrap: wrap;
	gap: 0.85rem;
	width: 100%;
	margin: 0 0 1.75rem !important;
	padding: 0 !important;
	border: 0 !important;
	list-style: none;
	text-align: left;
}

/* WooCommerce sometimes prints an empty item (e.g. hidden email) - drop it */
.woocommerce-order ul.woocommerce-order-overview li:empty { display: none !important; }

.woocommerce-order ul.woocommerce-order-overview li {
	display: flex !important;
	flex: 1 1 170px;
	flex-direction: column;
	gap: 0.35rem;
	width: auto !important;
	min-width: 0;
	margin: 0 !important;
	padding: 1.1rem 1.25rem !important;
	float: none !important;
	background: #fff;
	border: 1px solid var(--ty-border) !important;
	border-radius: var(--ty-radius-sm);
	box-shadow: var(--ty-shadow-sm);
	font-family: var(--display, system-ui, sans-serif);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1.35;
	text-transform: uppercase;
	color: var(--ty-muted);
	word-break: break-word;
}

.woocommerce-order ul.woocommerce-order-overview li strong {
	order: 2;
	font-size: 1.02rem;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
	color: var(--ty-ink);
}

.woocommerce-order ul.woocommerce-order-overview li .amount { color: var(--ty-accent); }

/* stray paragraphs WooCommerce prints between the blocks
   (e.g. "Pay with cash upon delivery.") - same box, same alignment */
.woocommerce-order > p:not(.woocommerce-thankyou-order-received),
.woocommerce-order > .woocommerce-order-downloads__title + p {
	max-width: none;
	margin: 0 0 1.5rem;
	padding: 1rem clamp(1.5rem, 4vw, 2.5rem);
	background: #fff;
	border: 1px solid var(--ty-border);
	border-radius: var(--ty-radius-sm);
	box-shadow: var(--ty-shadow-sm);
	color: var(--ty-text);
	font-size: 0.95rem;
	line-height: 1.6;
	text-align: left;
}

/* ---------- order details + addresses ---------- */

.woocommerce-order .woocommerce-order-details,
.woocommerce-order .woocommerce-customer-details,
.woocommerce-order .woocommerce-order-downloads {
	max-width: none;
	margin: 0 0 1.5rem;
	padding: clamp(1.5rem, 3.5vw, 2.25rem) clamp(1.5rem, 4vw, 2.5rem);
	background: #fff;
	border: 1px solid var(--ty-border);
	border-radius: var(--ty-radius);
	box-shadow: var(--ty-shadow-sm);
	text-align: left;
}

.woocommerce-order .woocommerce-order-details__title,
.woocommerce-order .woocommerce-column__title,
.woocommerce-order .woocommerce-customer-details h2 {
	margin: 0 0 1.1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--ty-border);
	font-family: var(--display, system-ui, sans-serif);
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--ty-ink);
}

.woocommerce-order table.woocommerce-table--order-details {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	font-size: 0.95rem;
	table-layout: auto;
}

/* breathing room on both sides of every cell, and no full-bleed grey bands */
.woocommerce-order table.woocommerce-table--order-details th,
.woocommerce-order table.woocommerce-table--order-details td {
	padding: 0.9rem 0.85rem;
	background: transparent !important;
	border: 0;
	border-bottom: 1px solid var(--ty-border-soft);
	text-align: left;
	vertical-align: top;
}

.woocommerce-order table.woocommerce-table--order-details th:first-child,
.woocommerce-order table.woocommerce-table--order-details td:first-child { padding-left: 0.25rem; }

.woocommerce-order table.woocommerce-table--order-details th:last-child,
.woocommerce-order table.woocommerce-table--order-details td:last-child {
	padding-right: 0.25rem;
	text-align: right;
	white-space: nowrap;
}

.woocommerce-order table.woocommerce-table--order-details thead th {
	font-family: var(--display, system-ui, sans-serif);
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ty-muted);
}

.woocommerce-order table.woocommerce-table--order-details .product-name a {
	color: var(--ty-ink);
	font-family: var(--display, system-ui, sans-serif);
	font-weight: 700;
	text-decoration: none;
}

.woocommerce-order table.woocommerce-table--order-details .product-name a:hover { color: var(--ty-accent); }

.woocommerce-order table.woocommerce-table--order-details .wc-item-meta,
.woocommerce-order table.woocommerce-table--order-details .variation {
	margin: 0.35rem 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.84rem;
	color: var(--ty-muted);
}

.woocommerce-order table.woocommerce-table--order-details .wc-item-meta li { margin: 0; }
.woocommerce-order table.woocommerce-table--order-details .wc-item-meta p { display: inline; margin: 0; }

.woocommerce-order table.woocommerce-table--order-details tfoot th {
	font-family: var(--display, system-ui, sans-serif);
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--ty-ink);
	text-transform: none;
	letter-spacing: 0;
}

.woocommerce-order table.woocommerce-table--order-details tfoot tr:last-child th,
.woocommerce-order table.woocommerce-table--order-details tfoot tr:last-child td {
	padding-top: 1rem;
	border-bottom: 0;
	border-top: 1px solid var(--ty-border);
	font-size: 1.1rem;
	font-weight: 700;
}

.woocommerce-order table.woocommerce-table--order-details tfoot tr:last-child td { color: var(--ty-accent); }

/* addresses */
.woocommerce-order .woocommerce-customer-details .woocommerce-columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.25rem;
}

.woocommerce-order .woocommerce-customer-details address {
	padding: 0;
	border: 0;
	font-style: normal;
	color: var(--ty-text);
	line-height: 1.75;
}

.woocommerce-order .woocommerce-customer-details .woocommerce-customer-details--phone,
.woocommerce-order .woocommerce-customer-details .woocommerce-customer-details--email {
	display: flex;
	align-items: center;
	gap: 0.5em;
	margin: 0.55rem 0 0 0 !important;
	padding: 0 !important;
	text-indent: 0 !important;
	color: var(--ty-ink);
	word-break: break-word;
}

.woocommerce-order .woocommerce-customer-details .woocommerce-customer-details--phone::before,
.woocommerce-order .woocommerce-customer-details .woocommerce-customer-details--email::before {
	position: static !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	bottom: auto !important;
	transform: none !important;
	flex: 0 0 auto;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1;
}

/* ---------- responsive ---------- */

@media (max-width: 600px) {
	body.custom-woo-order-received .woocommerce-order .woocommerce-thankyou-order-received,
	body.woocommerce-order-received .woocommerce-order .woocommerce-thankyou-order-received {
		padding: 2.25rem 1.25rem 2rem;
		border-radius: 18px;
	}

	body.custom-woo-order-received .woocommerce-thankyou-order-received::before,
	body.woocommerce-order-received .woocommerce-thankyou-order-received::before {
		width: 78px;
		height: 78px;
		background-size: 54px;
	}

	body.custom-woo-order-received .entry-title,
	body.woocommerce-order-received .entry-title { font-size: 2.2rem; }

	.woocommerce-order ul.woocommerce-order-overview li { flex: 1 1 100%; }

	.woocommerce-order .woocommerce-order-details,
	.woocommerce-order .woocommerce-customer-details,
	.woocommerce-order .woocommerce-order-downloads {
		padding: 1.35rem 1.15rem;
		border-radius: 18px;
	}

	.woocommerce-order > p:not(.woocommerce-thankyou-order-received) {
		padding: 0.9rem 1.15rem;
		border-radius: 14px;
	}

	.woocommerce-order table.woocommerce-table--order-details { font-size: 0.9rem; }

	.woocommerce-order table.woocommerce-table--order-details th,
	.woocommerce-order table.woocommerce-table--order-details td { padding: 0.75rem 0.5rem; }
}

@media (max-width: 420px) {
	body.custom-woo-order-received .site-main .wrap,
	body.custom-woo-order-received .site-main .wrap-narrow,
	body.woocommerce-order-received .site-main .wrap,
	body.woocommerce-order-received .site-main .wrap-narrow {
		width: calc(100% - 1.5rem);
	}
}

/* =========================================================
   4. MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
	body.custom-page-thank-you .entry-content,
	body.custom-page-thank-you .entry-content::before,
	body.custom-woo-order-received .woocommerce-thankyou-order-received,
	body.custom-woo-order-received .woocommerce-thankyou-order-received::before,
	body.woocommerce-order-received .woocommerce-thankyou-order-received,
	body.woocommerce-order-received .woocommerce-thankyou-order-received::before {
		animation: none !important;
	}

	body.custom-page-thank-you .entry-content .wp-block-button__link,
	body.custom-page-thank-you .entry-content .wp-block-button__link::after {
		transition: none !important;
	}
}