/*
Theme Name: 3Designer Site
Theme URI: https://3designer.online
Author: 3Designer
Description: The website of 3Designer, the 3D product designer for WooCommerce. Classic theme, text in ACF fields, the designer's Studio tokens, no third-party requests.
Version: 0.5.3
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
License: Proprietary
Text Domain: three-designer-site
*/

/* Every color, shadow and radius below is a token from theme.json (the designer's --pd-* values).
   Add a color there, never as a literal here (a test fails if you do). */

/* ---------- 1. Base ---------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img,
video {
	max-width: 100%;
	height: auto;
}

a {
	text-underline-offset: 2px;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: var(--wp--custom--focus--width) solid var(--wp--preset--color--accent);
	outline-offset: var(--wp--custom--focus--offset);
}

.tds-wrap {
	width: 100%;
	max-width: calc(var(--wp--style--global--wide-size, 1200px) + 2 * var(--wp--custom--gutter));
	margin-inline: auto;
	padding-inline: var(--wp--custom--gutter);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	border: 0;
	word-wrap: normal !important;
}

.tds-skip {
	position: absolute;
	top: -100px;
	left: 8px;
	z-index: 100;
	padding: 10px 16px;
	border-radius: var(--wp--custom--radius--sm);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	box-shadow: var(--wp--preset--shadow--pop);
	font-weight: 600;
}

.tds-skip:focus {
	top: 8px;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ---------- 2. Buttons and icons ---------- */

.tds-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 20px;
	border: 1px solid transparent;
	border-radius: var(--wp--custom--radius--sm);
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent-ink);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.tds-btn:hover {
	background: var(--wp--preset--color--accent-strong);
	color: var(--wp--preset--color--accent-ink);
}

.tds-btn--secondary {
	border-color: var(--wp--preset--color--line-strong);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
}

.tds-btn--secondary:hover {
	background: var(--wp--preset--color--hover);
	color: var(--wp--preset--color--contrast);
}

.tds-btn--icon {
	width: 46px;
	padding: 0;
}

.tds-btn--on-accent {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--accent-strong);
}

.tds-btn--on-accent:hover {
	background: var(--wp--preset--color--accent-faint);
	color: var(--wp--preset--color--accent-strong);
}

.tds-btn--on-accent-outline {
	border-color: color-mix(in srgb, var(--wp--preset--color--accent-ink) 45%, transparent);
	background: transparent;
	color: var(--wp--preset--color--accent-ink);
}

.tds-btn--on-accent-outline:hover {
	background: color-mix(in srgb, var(--wp--preset--color--accent-ink) 12%, transparent);
	color: var(--wp--preset--color--accent-ink);
}

.tds-icon {
	flex: none;
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ---------- 3. Header ---------- */

.tds-header {
	position: relative;
	z-index: 20;
	border-bottom: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--surface);
}

.tds-header__bar {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: 72px;
}

.tds-brand {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 10px;
	color: var(--wp--preset--color--contrast);
	font-size: 20px;
	font-weight: 780;
	letter-spacing: -0.02em;
	line-height: 1;
	text-decoration: none;
}

.tds-brand:hover {
	color: var(--wp--preset--color--contrast);
}

.tds-brand img {
	display: block;
	width: 36px;
	height: 36px;
}

.tds-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tds-nav__list a {
	color: var(--wp--preset--color--ink-2);
	font-size: 15px;
	font-weight: 550;
	text-decoration: none;
}

.tds-nav__list a:hover,
.tds-nav__list .current-menu-item > a {
	color: var(--wp--preset--color--contrast);
}

.tds-header__cta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
}

.tds-menu {
	display: none;
}

.tds-menu > summary {
	list-style: none;
}

.tds-menu > summary::-webkit-details-marker {
	display: none;
}

.tds-menu[open] > summary {
	background: var(--wp--preset--color--hover);
}

.tds-menu__panel {
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	display: grid;
	gap: 16px;
	padding: 4px var(--wp--custom--gutter) 20px;
	border-bottom: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--surface);
	box-shadow: var(--wp--preset--shadow--pop);
}

.tds-menu__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tds-menu__list a {
	display: flex;
	align-items: center;
	min-height: 52px;
	border-bottom: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--contrast);
	font-size: 17px;
	font-weight: 600;
	text-decoration: none;
}

@media (max-width: 1240px) {
	.tds-header__bar {
		gap: 20px;
	}

	.tds-nav__list {
		gap: 8px 18px;
	}
}

/* Under 1140px the menu (7 links) and "Live demo" move into the menu button: they no longer fit in one row. */
@media (max-width: 1139px) {
	.tds-nav,
	.tds-header__demo {
		display: none;
	}

	.tds-menu {
		display: block;
	}
}

@media (max-width: 781px) {
	.tds-header__bar {
		gap: 10px;
		min-height: 64px;
	}

	.tds-brand {
		font-size: 18px;
	}

	.tds-brand img {
		width: 32px;
		height: 32px;
	}

	.tds-hide-phone {
		display: none !important;
	}
}

/* ---------- 4. Footer and plain pages ---------- */

.tds-footer {
	padding: 56px 0 40px;
	border-top: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--surface);
	font-size: 14px;
}

.tds-footer__cols {
	display: flex;
	flex-wrap: wrap;
	gap: 40px 64px;
}

.tds-footer__about {
	flex: 1 1 240px;
}

.tds-footer__about p {
	max-width: 280px;
	margin: 14px 0 0;
	color: var(--wp--preset--color--muted);
}

.tds-footer .tds-brand {
	font-size: 18px;
}

.tds-footer .tds-brand img {
	width: 32px;
	height: 32px;
}

.tds-footer__col {
	min-width: 130px;
}

.tds-footer__head {
	margin: 0 0 12px;
	color: var(--wp--preset--color--contrast);
	font-size: 13px;
	font-weight: 700;
}

.tds-footer__links {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tds-footer__links a {
	color: var(--wp--preset--color--muted);
	text-decoration: none;
}

.tds-footer__links a:hover {
	color: var(--wp--preset--color--contrast);
}

.tds-footer__legal {
	margin: 40px 0 0;
	padding-top: 24px;
	border-top: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--muted);
	font-size: 13px;
}

.tds-footer__legal a {
	color: var(--wp--preset--color--muted);
}

.tds-footer__legal a:hover {
	color: var(--wp--preset--color--contrast);
}

.tds-main {
	display: block;
}

.tds-page {
	padding-block: var(--wp--preset--spacing--70);
}

.tds-page__title,
.tds-prose {
	max-width: var(--wp--style--global--content-size, 720px);
	margin-inline: auto;
}

.tds-page__title {
	margin-top: 0;
	margin-bottom: 32px;
}

/* WooCommerce's cart, checkout and account blocks need the full width. */
.woocommerce-cart .tds-page__title,
.woocommerce-cart .tds-prose,
.woocommerce-checkout .tds-page__title,
.woocommerce-checkout .tds-prose,
.woocommerce-account .tds-page__title,
.woocommerce-account .tds-prose {
	max-width: none;
}

.tds-shop {
	padding-block: var(--wp--preset--spacing--60);
}

/* ---------- 5. Sections (template-parts/sections/*.php) ---------- */

.tds-section {
	padding-block: var(--wp--preset--spacing--80);
}

/* Two plain sections in a row share one gap instead of stacking two. */
.tds-section:not(.tds-section--band) + .tds-section:not(.tds-section--band) {
	padding-top: 0;
}

.tds-section--band {
	border-block: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--surface);
}

.tds-section h2 {
	margin: 0 0 14px;
}

.tds-section__intro {
	max-width: 680px;
	margin-bottom: 44px;
}

.tds-section__intro > :last-child {
	margin-bottom: 0;
}

.tds-center {
	margin-inline: auto;
	text-align: center;
}

.tds-center .tds-lead {
	margin-inline: auto;
}

.tds-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 40px;
	margin-bottom: 44px;
}

.tds-section__head .tds-section__intro {
	margin-bottom: 0;
}

.tds-eyebrow {
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 6px 12px;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--accent-faint);
	color: var(--wp--preset--color--accent-strong);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
}

.tds-lead {
	max-width: 560px;
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.6;
}

.tds-lead p {
	margin: 0;
}

.tds-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.tds-btn--lg {
	min-height: 52px;
	padding: 0 24px;
	font-size: 16px;
}

.tds-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 650;
	text-decoration: none;
}

.tds-more .tds-icon {
	width: 18px;
	height: 18px;
}

/* Lists with check marks or dashes: the mark is an SVG shape (a mask) painted in a token color. */
.tds-checks,
.tds-dashes {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tds-checks li,
.tds-dashes li {
	position: relative;
	padding-left: 34px;
	line-height: 1.5;
}

.tds-checks li::before,
.tds-dashes li::before {
	content: "";
	position: absolute;
	top: 1px;
	left: 0;
	width: 22px;
	height: 22px;
}

.tds-checks li::before {
	background: var(--wp--preset--color--accent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.tds-dashes li::before {
	background: var(--wp--preset--color--muted);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E") center / contain no-repeat;
}

.tds-checks--inline {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	margin-top: 28px;
	color: var(--wp--preset--color--ink-2);
	font-size: 14px;
	font-weight: 550;
}

.tds-checks--inline li {
	padding-left: 26px;
}

.tds-checks--inline li::before {
	width: 18px;
	height: 18px;
}

/* Hero */

.tds-section--hero {
	padding-block: clamp(48px, 7vw, 72px) clamp(56px, 8vw, 88px);
}

.tds-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	align-items: center;
	gap: 56px;
}

.tds-hero__title {
	margin: 20px 0;
}

.tds-hero__labels {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

/* A second, quieter label beside the eyebrow (e.g. "Shopify app coming soon"). */
.tds-badge {
	margin: 0;
	padding: 5px 12px;
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink-2);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
}

.tds-hero .tds-lead {
	max-width: 520px;
}

.tds-hero .tds-actions {
	margin-top: 32px;
}

.tds-hero__image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--wp--custom--radius--lg);
	box-shadow: var(--wp--preset--shadow--canvas);
}

@media (max-width: 899px) {
	.tds-hero {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}
}

/* The drawing of the designer (template-parts/mock-designer.php) */

.tds-mock {
	margin: 0;
	padding: 14px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--lg);
	background: var(--wp--preset--color--surface);
	box-shadow: var(--wp--preset--shadow--canvas);
}

.tds-mock__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	padding: 2px 2px 12px;
}

.tds-chip {
	padding: 6px 10px;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--hover);
	color: var(--wp--preset--color--muted);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
}

.tds-chip.is-on {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent-ink);
}

.tds-mock__panes {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.tds-mock__stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px 10px 8px;
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--stage);
}

.tds-mock__shirt {
	display: block;
	width: 100%;
	max-width: 300px;
	height: auto;
}

.tds-mock__badge {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 3px 8px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--muted);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
}

.tds-mock__board {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	border-radius: var(--wp--custom--radius--md);
	background-color: var(--wp--preset--color--hover);
	background-image: radial-gradient(var(--wp--preset--color--line-strong) 1px, transparent 1.2px);
	background-size: 16px 16px;
}

/* The print area's canvas (3:4, like the tee's front area) with the very print the 3D shirt wears. */
.tds-mock__canvas {
	position: relative;
	width: 78%;
	aspect-ratio: 3 / 4;
	background: var(--wp--preset--color--surface);
	box-shadow: var(--wp--preset--shadow--canvas);
}

.tds-mock__print {
	display: block;
	width: 100%;
	height: 100%;
}

.tds-mock__guide {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 1px;
	background: var(--wp--preset--color--guide);
}

/* The designer's selection around the print (where render-hero.mjs says the print sits, plus air). */
.tds-mock__sel {
	position: absolute;
	inset: 5% 12.2% 31% 12%;
	border: 1.5px solid var(--wp--preset--color--select);
}

.tds-mock__h {
	position: absolute;
	width: 9px;
	height: 9px;
	border: 1.5px solid var(--wp--preset--color--select);
	border-radius: 50%;
	background: var(--wp--preset--color--surface);
}

.tds-mock__h--tl {
	top: -5px;
	left: -5px;
}

.tds-mock__h--tr {
	top: -5px;
	right: -5px;
}

.tds-mock__h--bl {
	bottom: -5px;
	left: -5px;
}

.tds-mock__h--br {
	right: -5px;
	bottom: -5px;
}

.tds-mock__tools {
	display: flex;
	gap: 4px;
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid var(--wp--preset--color--line);
}

.tds-mock__tool {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 8px 4px;
	border-radius: var(--wp--custom--radius--sm);
	color: var(--wp--preset--color--ink-2);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
}

.tds-mock__tool.is-on {
	background: var(--wp--preset--color--accent-faint);
	color: var(--wp--preset--color--accent-strong);
}

@media (max-width: 781px) {
	.tds-mock {
		padding: 10px;
	}

	.tds-mock__tool {
		font-size: 11px;
	}

	.tds-chip {
		padding: 5px 8px;
		font-size: 11px;
	}
}

/* Comparison */

.tds-compare {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: 20px;
}

.tds-compare__them,
.tds-compare__us {
	padding: 32px;
	border-radius: var(--wp--custom--radius--lg);
	font-size: 16px;
}

.tds-compare__them {
	border: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--ink-2);
}

.tds-compare__us {
	padding: 31px;
	border: 2px solid var(--wp--preset--color--accent);
	background: var(--wp--preset--color--surface);
	box-shadow: var(--wp--preset--shadow--soft);
	font-weight: 550;
}

.tds-label {
	margin: 0 0 20px;
	color: var(--wp--preset--color--muted);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.tds-compare__us .tds-label {
	color: var(--wp--preset--color--accent-strong);
}

/* Features */

.tds-features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: 20px;
}

.tds-card {
	padding: 28px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--lg);
	background: var(--wp--preset--color--surface);
	box-shadow: var(--wp--preset--shadow--soft);
}

.tds-feature h3 {
	margin: 0 0 8px;
}

.tds-feature p {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: 15px;
}

.tds-feature__link {
	margin-top: 14px;
	font-size: 15px;
}

.tds-tile {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-bottom: 18px;
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--accent-faint);
	color: var(--wp--preset--color--accent);
}

/* Video */

.tds-video {
	max-width: 1040px;
	margin-inline: auto;
	padding: 12px;
}

.tds-video__frame {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--md);
	background-color: var(--wp--preset--color--contrast);
	background-image: radial-gradient(color-mix(in srgb, var(--wp--preset--color--surface) 10%, transparent) 1px, transparent 1.2px);
	background-size: 20px 20px;
}

.tds-video__play {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 88px;
	height: 88px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent-ink);
	box-shadow: 0 0 0 10px color-mix(in srgb, var(--wp--preset--color--accent) 25%, transparent);
}

.tds-video__play svg {
	width: 34px;
	height: 34px;
	margin-left: 4px;
	fill: currentColor;
}

.tds-video__soon {
	position: absolute;
	top: 18px;
	right: 20px;
	padding: 6px 12px;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	font-size: 12px;
	font-weight: 700;
}

.tds-video__player {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--contrast);
}

@media (max-width: 781px) {
	.tds-video {
		padding: 8px;
	}

	.tds-video__play {
		width: 64px;
		height: 64px;
	}

	.tds-video__play svg {
		width: 26px;
		height: 26px;
	}

	.tds-video__soon {
		top: 12px;
		right: 12px;
	}
}

/* Steps */

.tds-steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tds-step h3 {
	margin: 0 0 8px;
}

.tds-step p {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: 15px;
}

.tds-step__num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-bottom: 18px;
	border-radius: 50%;
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--surface);
	font-weight: 750;
}

.tds-step:last-child .tds-step__num {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent-ink);
}

/* Plans (inc/plans.php). The switch is two radio buttons: :has() shows the chosen period. */

.tds-plans__switch {
	display: flex;
	width: max-content;
	margin: 0 auto 36px;
	padding: 4px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--surface);
}

.tds-plans__radio {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}

.tds-plans__switch label {
	padding: 8px 18px;
	border-radius: var(--wp--custom--radius--pill);
	color: var(--wp--preset--color--muted);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.tds-plans__radio:checked + label {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--surface);
}

.tds-plans__radio:focus-visible + label {
	outline: var(--wp--custom--focus--width) solid var(--wp--preset--color--accent);
	outline-offset: var(--wp--custom--focus--offset);
}

.tds-plans__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
	gap: 20px;
	max-width: 1040px;
	margin-inline: auto;
}

.tds-plan {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 32px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--lg);
	background: var(--wp--preset--color--surface);
	box-shadow: var(--wp--preset--shadow--soft);
}

.tds-plan.is-featured {
	padding: 31px;
	border: 2px solid var(--wp--preset--color--accent);
}

.tds-plan__name {
	margin: 0;
	font-size: 20px;
}

.tds-plan__summary {
	color: var(--wp--preset--color--muted);
	font-size: 15px;
}

.tds-plan__summary p {
	margin: 0;
}

.tds-plan__offer {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin-top: auto;
}

.tds-plan__price {
	margin: 0;
	color: var(--wp--preset--color--contrast);
	font-size: 44px;
	font-weight: 780;
	letter-spacing: -0.03em;
	line-height: 1.1;
}

.tds-plan__price del {
	color: var(--wp--preset--color--muted);
	font-size: 0.5em;
}

.tds-plan__price ins {
	text-decoration: none;
}

.tds-plan__per {
	color: var(--wp--preset--color--muted);
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0;
}

.tds-plan .tds-btn {
	width: 100%;
}

.tds-plans:has(.tds-plans__radio[value="yearly"]:checked) .tds-plan__offer[data-period="monthly"],
.tds-plans:has(.tds-plans__radio[value="monthly"]:checked) .tds-plan__offer[data-period="yearly"] {
	display: none;
}

/* "From $19.99 a month" above the cards, and the one-line note under them (both from inc/plans.php data). */
.tds-plans-from {
	margin: -16px 0 28px;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--medium);
	text-align: center;
}

.tds-plans-from strong {
	color: var(--wp--preset--color--contrast);
}

.tds-plans-note {
	max-width: 760px;
	margin: 28px auto 0;
	padding: 12px 18px;
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--accent-faint);
	color: var(--wp--preset--color--accent-strong);
	font-size: 15px;
	font-weight: 600;
	text-align: center;
}

.tds-plans-empty {
	max-width: 640px;
	margin: 0 auto;
	padding: 20px 24px;
	border: 1px dashed var(--wp--preset--color--line-strong);
	border-radius: var(--wp--custom--radius--md);
	color: var(--wp--preset--color--muted);
	text-align: center;
}

.tds-note {
	margin: 24px 0 0;
	color: var(--wp--preset--color--muted);
	font-size: 14px;
	text-align: center;
}

/* Announcement band (the founding offer): one highlighted line; delete the section when it ends */

.tds-announcement {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 20px;
	max-width: 1040px;
	margin-inline: auto;
	padding: 20px 24px;
	border: 1px solid var(--wp--preset--color--accent-soft);
	border-radius: var(--wp--custom--radius--lg);
	background: var(--wp--preset--color--accent-faint);
}

.tds-announcement .tds-tile {
	flex: none;
	margin: 0;
	background: var(--wp--preset--color--surface);
}

.tds-announcement__text {
	flex: 1 1 320px;
	margin: 0;
	color: var(--wp--preset--color--ink-2);
	font-size: 16px;
}

.tds-announcement__label {
	margin-right: 6px;
	color: var(--wp--preset--color--accent-strong);
}

/* The checkout's "no refunds, cancel any time" line (inc/checkout.php) */
.tds-checkout-note {
	max-width: 1200px;
	margin: 16px auto 0;
}

.tds-checkout-refunds {
	margin: 8px 0 0;
	color: var(--wp--preset--color--muted);
	font-size: 14px;
}

/* Offer (the one-time shop setup): text and what is included, beside the price and the button */

.tds-offer {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: 32px 48px;
	max-width: 1040px;
	margin-inline: auto;
	padding: clamp(24px, 4vw, 40px);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--lg);
	background: var(--wp--preset--color--surface);
	box-shadow: var(--wp--preset--shadow--soft);
}

.tds-offer__title {
	margin: 16px 0 12px;
}

.tds-offer__items {
	margin-top: 24px;
}

.tds-offer__side {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 16px;
	padding: 28px;
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--accent-faint);
}

.tds-offer__side .tds-tile {
	margin: 0;
	background: var(--wp--preset--color--surface);
}

.tds-offer__price {
	margin: 0;
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 750;
	line-height: 1.25;
}

@media (max-width: 899px) {
	.tds-offer {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* FAQ */

.tds-faq-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: 32px 80px;
}

@media (max-width: 899px) {
	.tds-faq-layout {
		grid-template-columns: minmax(0, 1fr);
	}
}

.tds-faq {
	border-top: 1px solid var(--wp--preset--color--line);
}

.tds-faq details {
	padding: 20px 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.tds-faq summary {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	font-size: 17px;
	font-weight: 650;
	cursor: pointer;
	list-style: none;
}

.tds-faq summary::-webkit-details-marker {
	display: none;
}

.tds-faq summary::after {
	content: "+";
	color: var(--wp--preset--color--muted);
	font-size: 22px;
	font-weight: 500;
	line-height: 1;
}

.tds-faq details[open] summary::after {
	content: "\2212";
}

.tds-faq__answer {
	padding-top: 12px;
	color: var(--wp--preset--color--muted);
	font-size: 15px;
}

.tds-faq__answer p {
	margin: 0 0 10px;
}

.tds-faq__answer > :last-child {
	margin-bottom: 0;
}

/* Call to action */

.tds-section--cta {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--80);
}

.tds-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	padding: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 40px);
	border-radius: var(--wp--custom--radius--lg);
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent-ink);
}

.tds-cta h1,
.tds-cta h2 {
	margin: 0;
	color: var(--wp--preset--color--accent-ink);
}

.tds-cta p {
	max-width: 560px;
	margin: 12px 0 0;
	font-size: var(--wp--preset--font-size--medium);
}

/* Page header: the title of every page that is not the home page */

.tds-section--page-header {
	padding-block: clamp(48px, 7vw, 72px) var(--wp--preset--spacing--60);
}

.tds-section--page-header .tds-section__intro {
	max-width: 760px;
	margin-bottom: 0;
}

.tds-page-header__title {
	margin: 20px 0 16px;
}

/* Checklist */

.tds-checks--grid {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: 16px 32px;
}

/* Contact */

.tds-contact {
	display: flex;
	align-items: flex-start;
	gap: 24px;
	max-width: 760px;
	padding: clamp(24px, 4vw, 40px);
}

.tds-contact .tds-tile {
	flex: none;
	margin: 0;
}

.tds-contact h2 {
	margin-bottom: 8px;
}

.tds-contact__email {
	margin: 20px 0 0;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
	overflow-wrap: anywhere;
}

.tds-contact__note {
	margin-top: 12px;
	color: var(--wp--preset--color--muted);
}

.tds-contact__note p {
	margin: 0;
}

@media (max-width: 600px) {
	.tds-contact {
		flex-direction: column;
	}
}

/* Shown where a setting is still empty, e.g. the contact email. */
.tds-placeholder {
	padding: 1px 6px;
	border-radius: var(--wp--custom--radius--sm);
	background: var(--wp--preset--color--hover);
	color: var(--wp--preset--color--muted);
}

/* Live demo: the plugin's designer in a card */

.tds-demo {
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--lg);
	background: var(--wp--preset--color--surface);
	box-shadow: var(--wp--preset--shadow--soft);
}

.tds-demo-fallback {
	max-width: 760px;
	color: var(--wp--preset--color--muted);
}

.tds-demo-fallback p {
	margin: 0;
}

/* 3D model credits */

.tds-credits {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tds-credit h3 {
	margin: 0 0 8px;
}

.tds-credit p {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: 15px;
}

.tds-credit a {
	overflow-wrap: anywhere;
}

/* Text: long copy at reading width (the SEO brief's "What is 3Designer?" and the like) */

.tds-prose--left {
	margin-inline: 0;
}

.tds-section--text .tds-prose {
	color: var(--wp--preset--color--ink-2);
	font-size: 17px;
	line-height: 1.7;
}

.tds-section--text .tds-prose p {
	margin: 0 0 16px;
}

.tds-section--text .tds-prose ol,
.tds-section--text .tds-prose ul {
	margin: 0 0 16px;
	padding-left: 24px;
}

.tds-section--text .tds-prose li + li {
	margin-top: 8px;
}

.tds-section--text .tds-prose > :last-child {
	margin-bottom: 0;
}

/* Rank Math's breadcrumbs, above an inner page's header (inc/seo.php) */
.tds-breadcrumbs {
	padding-top: 20px;
	color: var(--wp--preset--color--muted);
	font-size: 13px;
}

.tds-breadcrumbs p {
	margin: 0;
}

.tds-breadcrumbs a {
	color: var(--wp--preset--color--muted);
}

.tds-breadcrumbs a:hover {
	color: var(--wp--preset--color--contrast);
}

.tds-breadcrumbs + .tds-section--page-header {
	padding-top: clamp(24px, 4vw, 40px);
}

/* Legal pages start as a draft layout; the note says so until the real text replaces it. */
.tds-draft-note {
	padding: 14px 18px;
	border: 1px solid var(--wp--preset--color--danger);
	border-radius: var(--wp--custom--radius--md);
	background: color-mix(in srgb, var(--wp--preset--color--danger) 6%, var(--wp--preset--color--surface));
	color: var(--wp--preset--color--danger);
	font-weight: 600;
}

.tds-footer__contact {
	margin-top: 10px !important;
}

.tds-footer__contact a {
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
}

/* ---------- 6. WooCommerce: the Studio look over Woo's own templates and blocks (spec section 6) ---------- */

/* Buttons. The plugin styles its own "Design now" button (.td-own) and hides Woo's add-to-cart while
   the designer is on: these rules give neither of them a color or a position back. */
.woocommerce a.button,
.woocommerce button.button:not(.td-own),
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt:not(.td-own),
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt {
	padding: 13px 20px;
	border: 1px solid transparent;
	border-radius: var(--wp--custom--radius--sm);
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent-ink);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.woocommerce a.button:hover,
.woocommerce button.button:not(.td-own):hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:not(.td-own):hover,
.woocommerce input.button.alt:hover,
.woocommerce #respond input#submit.alt:hover {
	background: var(--wp--preset--color--accent-strong);
	color: var(--wp--preset--color--accent-ink);
}

.woocommerce a.button.disabled,
.woocommerce a.button:disabled,
.woocommerce button.button.disabled:not(.td-own),
.woocommerce button.button:disabled:not(.td-own),
.woocommerce input.button:disabled,
.woocommerce a.button.alt.disabled,
.woocommerce button.button.alt.disabled:not(.td-own),
.woocommerce button.button.alt:disabled:not(.td-own) {
	padding: 13px 20px;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent-ink);
	opacity: 0.5;
}

/* Where the page is reached from: the small line above a product or a shop. */
.woocommerce .woocommerce-breadcrumb {
	margin: 0 0 24px;
	color: var(--wp--preset--color--muted);
	font-size: 13px;
}

.woocommerce .woocommerce-breadcrumb a {
	color: var(--wp--preset--color--muted);
}

.woocommerce .woocommerce-breadcrumb a:hover {
	color: var(--wp--preset--color--contrast);
}

/* Messages: "added to your cart", errors and the like. */
.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
	margin: 0 0 24px;
	border: 1px solid var(--wp--preset--color--line);
	border-left: 4px solid var(--wp--preset--color--accent);
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
}

.woocommerce-error {
	border-left-color: var(--wp--preset--color--danger);
}

.woocommerce-info::before,
.woocommerce-message::before {
	color: var(--wp--preset--color--accent);
}

.woocommerce-error::before {
	color: var(--wp--preset--color--danger);
}

/* The shop: a grid of cards instead of Woo's floats. */
.woocommerce ul.products,
.woocommerce-page ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 24px;
	margin: 0 0 32px;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
	display: none;
}

.woocommerce ul.products[class*="columns-"] li.product,
.woocommerce-page ul.products[class*="columns-"] li.product {
	display: flex;
	flex-direction: column;
	float: none;
	width: auto;
	margin: 0;
	padding: 12px 12px 16px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--lg);
	background: var(--wp--preset--color--surface);
	box-shadow: var(--wp--preset--shadow--soft);
}

.woocommerce ul.products li.product a img {
	margin: 0 0 12px;
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--stage);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	padding: 0;
	color: var(--wp--preset--color--contrast);
	font-size: 16px;
	font-weight: 680;
	letter-spacing: 0;
}

.woocommerce ul.products li.product .price {
	color: var(--wp--preset--color--ink-2);
	font-size: 15px;
	font-weight: 600;
}

.woocommerce ul.products li.product .button {
	align-self: flex-start;
	margin-top: auto;
}

.woocommerce .woocommerce-result-count {
	margin: 0 0 24px;
	color: var(--wp--preset--color--muted);
	font-size: 14px;
}

.woocommerce .woocommerce-ordering {
	margin: 0 0 24px;
}

.woocommerce .woocommerce-ordering select {
	min-height: 40px;
	padding: 0 10px;
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: var(--wp--custom--radius--sm);
	background-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: 14px;
}

.woocommerce span.onsale {
	min-width: 0;
	min-height: 0;
	padding: 4px 10px;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent-ink);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
}

.woocommerce ul.products li.product .onsale {
	top: 20px;
	right: 20px;
	margin: 0;
}

.woocommerce nav.woocommerce-pagination ul {
	border: 0;
}

.woocommerce nav.woocommerce-pagination ul li {
	margin: 0 3px;
	border: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	min-width: 40px;
	padding: 11px 8px;
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: var(--wp--custom--radius--sm);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
}

.woocommerce nav.woocommerce-pagination ul li a:focus,
.woocommerce nav.woocommerce-pagination ul li a:hover {
	background: var(--wp--preset--color--hover);
	color: var(--wp--preset--color--contrast);
}

.woocommerce nav.woocommerce-pagination ul li span.current {
	border-color: var(--wp--preset--color--accent);
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent-ink);
}

/* A product page. */
.woocommerce div.product div.images img {
	border-radius: var(--wp--custom--radius--lg);
	background: var(--wp--preset--color--stage);
}

.woocommerce div.product .product_title {
	margin: 0 0 12px;
	font-size: var(--wp--preset--font-size--x-large);
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--wp--preset--color--contrast);
	font-size: 22px;
	font-weight: 680;
}

.woocommerce div.product form.cart {
	margin-bottom: 24px;
}

.woocommerce .quantity .qty {
	min-height: 46px;
	width: 72px;
	margin-right: 8px;
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: var(--wp--custom--radius--sm);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	font: inherit;
}

.woocommerce div.product .product_meta {
	color: var(--wp--preset--color--muted);
	font-size: 14px;
}

.woocommerce div.product .product_meta a {
	color: var(--wp--preset--color--muted);
}

/* Tabs: a plain row with a violet line under the open one, not Woo's folder shapes. */
.woocommerce div.product .woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin: 32px 0 24px;
	padding: 0;
	border-bottom: 1px solid var(--wp--preset--color--line-strong);
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
	display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li,
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
	margin: 0 0 -1px;
	padding: 0;
	border: 0;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	background: transparent;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
	border-bottom-color: var(--wp--preset--color--accent);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	padding: 10px 0;
	color: var(--wp--preset--color--muted);
	font-weight: 600;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover,
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
	color: var(--wp--preset--color--contrast);
}

.woocommerce div.product .woocommerce-tabs .panel h2 {
	font-size: var(--wp--preset--font-size--large);
}

.woocommerce .star-rating,
.woocommerce p.stars a {
	color: var(--wp--preset--color--accent);
}

/* Forms: account, review, addresses. */
.woocommerce form .form-row label {
	color: var(--wp--preset--color--ink-2);
	font-size: 14px;
	font-weight: 600;
}

.woocommerce form .form-row .input-text,
.woocommerce form .form-row select,
.woocommerce #review_form #respond textarea,
.woocommerce #review_form #respond input[type="text"],
.woocommerce #review_form #respond input[type="email"] {
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: var(--wp--custom--radius--sm);
	background-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	font-size: 16px;
}

.woocommerce form .form-row .input-text:focus,
.woocommerce form .form-row select:focus,
.woocommerce #review_form #respond textarea:focus,
.woocommerce #review_form #respond input:focus {
	border-color: var(--wp--preset--color--accent);
}

.woocommerce #review_form #respond label {
	display: block;
	margin-bottom: 6px;
	color: var(--wp--preset--color--ink-2);
	font-size: 14px;
	font-weight: 600;
}

.woocommerce #review_form #respond .comment-form-cookies-consent label {
	display: inline;
	font-weight: 400;
}

.woocommerce #review_form #respond input[type="text"],
.woocommerce #review_form #respond input[type="email"] {
	width: 100%;
	max-width: 440px;
}

.woocommerce #reviews #comment {
	height: 120px;
}

.woocommerce form.login,
.woocommerce form.register,
.woocommerce form.lost_reset_password {
	margin: 0 0 24px;
	padding: 24px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--lg);
	background: var(--wp--preset--color--surface);
	box-shadow: var(--wp--preset--shadow--soft);
}

/* Tables: orders, downloads, the order confirmation. */
.woocommerce table.shop_table {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--md);
	border-collapse: separate;
	background: var(--wp--preset--color--surface);
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td,
.woocommerce table.shop_table tbody th,
.woocommerce table.shop_table tfoot td,
.woocommerce table.shop_table tfoot th {
	padding: 12px 14px;
	border-color: var(--wp--preset--color--line);
}

.woocommerce table.shop_table a:not(.button) {
	color: var(--wp--preset--color--accent);
}

/* My Account: a menu card beside the page, stacked on phones by Woo's own small-screen CSS. */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
	margin: 0;
	padding: 8px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--lg);
	background: var(--wp--preset--color--surface);
	list-style: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 10px 12px;
	border-radius: var(--wp--custom--radius--sm);
	color: var(--wp--preset--color--ink-2);
	font-weight: 600;
	text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
	background: var(--wp--preset--color--hover);
	color: var(--wp--preset--color--contrast);
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
	background: var(--wp--preset--color--accent-faint);
	color: var(--wp--preset--color--accent-strong);
}

.woocommerce-account .woocommerce-MyAccount-content > :first-child {
	margin-top: 0;
}

.woocommerce-account .woocommerce-Addresses h2 {
	font-size: var(--wp--preset--font-size--large);
}

/* Logged out, My Account is one login form: narrow, unless registration adds a second column. */
.woocommerce-account:not(.logged-in) .tds-page__title,
.woocommerce-account:not(.logged-in) .tds-prose {
	max-width: 460px;
}

.woocommerce-account:not(.logged-in) .tds-page:has(.col2-set) .tds-page__title,
.woocommerce-account:not(.logged-in) .tds-prose:has(.col2-set) {
	max-width: none;
}

/* The order confirmation (Woo's classic page inside the Checkout block). */
.woocommerce .woocommerce-thankyou-order-received {
	margin: 0 0 20px;
	color: var(--wp--preset--color--contrast);
	font-size: 18px;
	font-weight: 600;
}

.woocommerce ul.order_details {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 32px;
	margin: 0 0 32px;
	padding: 18px 20px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--lg);
	background: var(--wp--preset--color--surface);
	list-style: none;
}

.woocommerce ul.order_details::before,
.woocommerce ul.order_details::after {
	display: none;
}

.woocommerce ul.order_details li {
	float: none;
	margin: 0;
	padding: 0;
	border: 0;
	color: var(--wp--preset--color--muted);
	font-size: 13px;
	text-transform: none;
}

.woocommerce ul.order_details li strong {
	color: var(--wp--preset--color--contrast);
	font-size: 15px;
}

.woocommerce .woocommerce-order-details__title,
.woocommerce .woocommerce-column__title {
	font-size: var(--wp--preset--font-size--large);
}

.woocommerce .woocommerce-customer-details address {
	padding: 16px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--surface);
}

/* The Cart and Checkout blocks: their buttons take theme.json's button colors; the totals become a card. */
.wc-block-cart .wc-block-components-sidebar,
.wc-block-checkout .wc-block-components-sidebar {
	padding: 20px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--lg);
	background: var(--wp--preset--color--surface);
	box-shadow: var(--wp--preset--shadow--soft);
}

.tds-prose .wc-block-checkout .wp-block-woocommerce-checkout-order-summary-block,
.tds-prose .wc-block-checkout .checkout-order-summary-block-fill {
	border: 0;
}

.tds-prose .wc-block-components-button:not(.is-link) {
	min-height: 46px;
	border-radius: var(--wp--custom--radius--sm);
	font-weight: 600;
	text-decoration: none;
}

.tds-prose .wc-block-components-text-input input[type],
.tds-prose .wc-block-components-form .wc-block-components-text-input input[type],
.tds-prose .wc-block-components-textarea,
.tds-prose .wc-blocks-components-select__select {
	border-color: var(--wp--preset--color--line-strong);
	border-radius: var(--wp--custom--radius--sm);
	background-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
}

.tds-prose .wc-block-components-text-input input[type]:focus,
.tds-prose .wc-block-components-form .wc-block-components-text-input input[type]:focus,
.tds-prose .wc-block-components-textarea:focus,
.tds-prose .wc-blocks-components-select__select:focus {
	border-color: var(--wp--preset--color--accent);
	box-shadow: 0 0 0 1px var(--wp--preset--color--accent);
}

.tds-prose .wc-block-components-radio-control--highlight-checked [class*="--checked-option-highlighted"] {
	box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--accent);
}

@media (max-width: 781px) {
	.woocommerce .woocommerce-error .button,
	.woocommerce .woocommerce-info .button,
	.woocommerce .woocommerce-message .button {
		display: block;
		float: none;
		width: fit-content;
		margin: 10px 0;
	}

	.woocommerce ul.products,
	.woocommerce-page ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.woocommerce ul.products[class*="columns-"] li.product,
	.woocommerce-page ul.products[class*="columns-"] li.product {
		padding: 8px 8px 12px;
	}

	.woocommerce ul.products li.product .button {
		padding: 11px 12px;
		font-size: 14px;
	}

	.wc-block-cart .wc-block-components-sidebar,
	.wc-block-checkout .wc-block-components-sidebar {
		padding: 16px;
	}
}

/* ---------- 7. Blog, search, 404 ---------- */

.tds-listing {
	padding-block: var(--wp--preset--spacing--70);
}

.tds-listing__head {
	max-width: 680px;
	margin-bottom: 44px;
}

.tds-listing__head > :last-child {
	margin-bottom: 0;
}

.tds-posts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 24px;
}

.tds-post-card {
	display: flex;
	flex-direction: column;
	padding: 0;
	overflow: hidden;
}

.tds-post-card__image {
	display: block;
	background: var(--wp--preset--color--stage);
}

.tds-post-card__image img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.tds-post-card__body {
	padding: 20px 22px 22px;
}

.tds-post-card__title {
	margin: 0 0 8px;
	font-size: 19px;
	font-weight: 680;
	line-height: 1.3;
	letter-spacing: 0;
}

.tds-post-card__title a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.tds-post-card__title a:hover {
	color: var(--wp--preset--color--accent);
}

.tds-post-card__text {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: 15px;
}

.tds-post-meta {
	margin: 0 0 10px;
	color: var(--wp--preset--color--muted);
	font-size: 13px;
}

.tds-post-meta a {
	color: var(--wp--preset--color--accent);
	font-weight: 600;
	text-decoration: none;
}

.tds-empty {
	max-width: 680px;
	padding: 28px;
	text-align: left;
}

.tds-empty p {
	margin: 0 0 18px;
	color: var(--wp--preset--color--ink-2);
}

.tds-empty__links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* WordPress's page numbers under a listing. */
.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 32px;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: var(--wp--custom--radius--sm);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.pagination a.page-numbers:hover {
	background: var(--wp--preset--color--hover);
}

.pagination .page-numbers.current {
	border-color: var(--wp--preset--color--accent);
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent-ink);
}

.pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
}

/* One article: 720px wide, the reading text shared with the docs. */
.tds-article {
	padding-block: var(--wp--preset--spacing--70);
}

.tds-article__head,
.tds-article__image,
.tds-article .tds-pager {
	max-width: var(--wp--style--global--content-size, 720px);
	margin-inline: auto;
}

.tds-article__head {
	margin-bottom: 32px;
}

.tds-article__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-large);
}

.tds-article__image {
	margin-bottom: 32px;
}

.tds-article__image img {
	display: block;
	width: 100%;
	border-radius: var(--wp--custom--radius--lg);
}

.tds-prose--reading {
	color: var(--wp--preset--color--ink-2);
	font-size: 17px;
	line-height: 1.7;
}

.tds-prose--reading p,
.tds-prose--reading ul,
.tds-prose--reading ol,
.tds-prose--reading blockquote,
.tds-prose--reading figure {
	margin: 0 0 18px;
}

.tds-prose--reading ul,
.tds-prose--reading ol {
	padding-left: 24px;
}

.tds-prose--reading li + li {
	margin-top: 8px;
}

.tds-prose--reading h2 {
	margin: 40px 0 14px;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.25;
	letter-spacing: -0.015em;
}

.tds-prose--reading h3 {
	margin: 28px 0 10px;
}

.tds-prose--reading > :first-child {
	margin-top: 0;
}

.tds-prose--reading strong,
.tds-prose--reading b {
	color: var(--wp--preset--color--contrast);
	font-weight: 650;
}

.tds-prose--reading img {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--md);
}

.tds-prose--reading blockquote {
	padding-left: 18px;
	border-left: 3px solid var(--wp--preset--color--accent-soft);
	color: var(--wp--preset--color--muted);
}

.tds-prose--reading code {
	padding: 2px 6px;
	border-radius: 6px;
	background: var(--wp--preset--color--hover);
	font-size: 0.9em;
}

/* Previous and next: under an article and a docs page. */
.tds-pager {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 40px;
}

.tds-pager a {
	display: block;
	padding: 14px 16px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
}

.tds-pager a:hover {
	border-color: var(--wp--preset--color--accent);
}

.tds-pager span {
	display: block;
	margin-bottom: 2px;
	color: var(--wp--preset--color--muted);
	font-size: 13px;
	font-weight: 500;
}

.tds-pager__next {
	grid-column: 2;
	text-align: right;
}

/* The search form. */
.tds-search {
	display: flex;
	gap: 8px;
	max-width: 520px;
	margin-top: 24px;
}

.tds-search__field {
	flex: 1;
	min-width: 0;
	min-height: 46px;
	padding: 0 14px;
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: var(--wp--custom--radius--sm);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	font: inherit;
}

.tds-notfound {
	padding-block: var(--wp--preset--spacing--80);
}

.tds-notfound__links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
}

/* ---------- 8. Docs ---------- */

.tds-docs {
	display: grid;
	grid-template-columns: 260px minmax(0, 720px);
	gap: 56px;
	align-items: start;
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--80);
}

.tds-docs__side {
	position: sticky;
	top: 24px;
}

.tds-docs__list {
	display: grid;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tds-docs__list a {
	display: block;
	padding: 8px 12px;
	border-radius: var(--wp--custom--radius--sm);
	color: var(--wp--preset--color--ink-2);
	font-size: 14px;
	font-weight: 550;
	line-height: 1.35;
	text-decoration: none;
}

.tds-docs__list a:hover {
	background: var(--wp--preset--color--hover);
	color: var(--wp--preset--color--contrast);
}

.tds-docs__list a[aria-current="page"] {
	background: var(--wp--preset--color--accent-faint);
	color: var(--wp--preset--color--accent-strong);
}

.tds-docs__menu {
	display: none;
	margin-bottom: 24px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--surface);
}

.tds-docs__menu summary {
	padding: 12px 14px;
	font-weight: 600;
	cursor: pointer;
}

.tds-docs__menu nav {
	padding: 0 6px 8px;
}

.tds-docs__title {
	margin: 0 0 24px;
	font-size: var(--wp--preset--font-size--x-large);
}

.tds-docs .tds-prose {
	margin-inline: 0;
}

.tds-docs__help {
	margin: 32px 0 0;
	color: var(--wp--preset--color--muted);
	font-size: 15px;
}

@media (max-width: 900px) {
	.tds-docs {
		display: block;
	}

	.tds-docs__side {
		display: none;
	}

	.tds-docs__menu {
		display: block;
	}
}

@media (max-width: 781px) {
	.tds-pager {
		grid-template-columns: minmax(0, 1fr);
	}

	.tds-pager__next {
		grid-column: auto;
	}

	.tds-posts {
		grid-template-columns: minmax(0, 1fr);
	}
}
