.ttm-market-bar {
	background: #eee9df;
	border-bottom: 1px solid rgba(17, 17, 17, 0.2);
	color: #111;
	font-family: inherit;
	font-size: 13px;
	line-height: 1.35;
	position: relative;
	width: 100%;
	z-index: 30;
}

.ttm-market-bar__inner {
	align-items: center;
	display: flex;
	gap: 14px;
	justify-content: center;
	margin: 0 auto;
	max-width: 1440px;
	min-height: 44px;
	padding: 7px 24px;
}

.ttm-market-bar__preview {
	background: #111;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.09em;
	padding: 4px 7px;
	text-transform: uppercase;
}

.ttm-market-bar__message {
	margin: 0;
}

.ttm-market-bar__form {
	align-items: center;
	display: flex;
	gap: 7px;
	margin: 0;
}

.ttm-market-bar__form label {
	align-self: center;
	display: block;
	line-height: 1.35;
	margin: 0;
	padding: 0;
	position: static;
	transform: none;
}

.ttm-market-bar select {
	background: #fff;
	border: 1px solid #111;
	border-radius: 0;
	color: #111;
	font: inherit;
	min-height: 32px;
	padding: 4px 30px 4px 9px;
}

.ttm-market-bar__submit {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.ttm-market-bar__error {
	background: #fff2f2;
	border-top: 1px solid #b32d2e;
	color: #7b1717;
	margin: 0;
	padding: 7px 20px;
	text-align: center;
}

/* Market features: personalisation is currently available in the UK only. */
body.ttm-without-personalised #tt-home-v19 .tt-home-v19__collection[href*="/personalised/"],
body.ttm-without-personalised #tt-home-v19 .tt-home-v19__personalised {
	display: none !important;
}

body.ttm-without-personalised #tt-home-v19 .tt-home-v19__collection-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.ttm-without-personalised #tt-home-v19 .tt-home-v19__collection[href*="/sketchbook/"] {
	border-right: 0;
}

@media (max-width: 960px) {
	body.ttm-without-personalised #tt-home-v19 .tt-home-v19__collection-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.ttm-without-personalised #tt-home-v19 .tt-home-v19__collection[href*="/sketchbook/"] {
		border-top: 1px solid var(--tt-v19-border, #111);
		grid-column: 1 / -1;
	}
}

/* Private homepage preview: dynamic WooCommerce hero and featured products. */
#tt-home-v19 .tt-home-v19__hero-media > .wp-block-woocommerce-product-collection,
#tt-home-v19 .tt-home-v19__hero-media .wc-block-product-template,
#tt-home-v19 .tt-home-v19__hero-media .wc-block-product-template > li,
#tt-home-v19 .tt-home-v19__hero-media .wc-block-components-product-image,
#tt-home-v19 .tt-home-v19__hero-media .wc-block-components-product-image > a {
	height: 100%;
	margin: 0 !important;
	padding: 0 !important;
	width: 100%;
}

#tt-home-v19 .tt-home-v19__hero-media > .wp-block-woocommerce-product-collection {
	position: absolute;
	inset: 0;
}

#tt-home-v19 .tt-home-v19__hero-media {
	aspect-ratio: 1 / 1;
	height: auto !important;
	min-height: 0 !important;
	position: relative;
}

#tt-home-v19 .ttm-home-hero-product,
#tt-home-v19 .ttm-home-hero-product > a {
	display: block;
	height: 100%;
	width: 100%;
}

#tt-home-v19 .ttm-home-hero-product {
	position: absolute;
	inset: 0;
}

#tt-home-v19 .ttm-home-hero-product img {
	display: block;
	height: 100% !important;
	max-width: none;
	object-fit: contain;
	width: 100% !important;
}

#tt-home-v19 .tt-home-v19__hero-media .wc-block-product-template {
	display: block !important;
	list-style: none;
}

#tt-home-v19 .tt-home-v19__hero-media .wc-block-components-product-image img {
	display: block;
	height: 100% !important;
	max-width: none;
	object-fit: contain;
	width: 100% !important;
}

#tt-home-v19 .tt-home-v19__featured-products .wc-block-product-template {
	display: grid !important;
	gap: 16px !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	list-style: none;
	margin: 0 !important;
	padding: 0 !important;
}

#tt-home-v19 .ttm-home-featured-list {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

#tt-home-v19 .ttm-home-featured-card {
	background: var(--tt-v19-paper, #f2eee4);
	border: 1px solid var(--tt-v19-border, #111);
	display: flex;
	flex-direction: column;
	min-width: 0;
}

#tt-home-v19 .ttm-home-featured-card__image {
	aspect-ratio: 1 / 1;
	background: #fff;
	border-bottom: 1px solid var(--tt-v19-border, #111);
	display: block;
}

#tt-home-v19 .ttm-home-featured-card__image img {
	display: block;
	height: 100% !important;
	object-fit: contain;
	width: 100% !important;
}

#tt-home-v19 .ttm-home-featured-card h3 {
	color: var(--tt-v19-ink, #111);
	font-size: clamp(0.98rem, 1.2vw, 1.15rem);
	font-weight: 500;
	letter-spacing: normal;
	line-height: 1.25;
	margin: 0;
	padding: 12px 12px 7px;
	text-align: left;
}

#tt-home-v19 .ttm-home-featured-card h3 a:hover {
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

#tt-home-v19 .ttm-home-featured-card__meta {
	align-items: flex-end;
	color: rgba(17, 17, 17, 0.65);
	display: flex;
	font-size: 0.77rem;
	gap: 0.75rem;
	justify-content: space-between;
	line-height: 1.25;
	margin-top: auto;
	padding: 0 12px 12px;
}

#tt-home-v19 .ttm-home-featured-card__meta > :last-child {
	margin-left: auto;
	text-align: right;
}

#tt-home-v19 .tt-home-v19__featured-products .wc-block-product-template > li {
	background: var(--tt-v19-paper, #f2eee4);
	border: 1px solid var(--tt-v19-border, #111);
	display: flex;
	flex-direction: column;
	min-width: 0;
}

#tt-home-v19 .tt-home-v19__featured-products .wc-block-product-template > li > :first-child {
	margin-bottom: 0 !important;
}

#tt-home-v19 .tt-home-v19__featured-products .wc-block-components-product-image {
	background: #fff;
	border-bottom: 1px solid var(--tt-v19-border, #111);
	margin: 0 !important;
}

#tt-home-v19 .tt-home-v19__featured-products .wc-block-components-product-image img {
	display: block;
	height: 100% !important;
	object-fit: contain;
	width: 100% !important;
}

body:has(#tt-home-v19) #tt-home-v19 .tt-home-v19__featured-products .wp-block-post-title {
	color: var(--tt-v19-ink, #111);
	display: block !important;
	font-size: clamp(0.98rem, 1.2vw, 1.15rem) !important;
	font-weight: 500;
	letter-spacing: normal;
	line-height: 1.25;
	margin: 0 !important;
	padding: 12px 12px 7px;
	text-align: left !important;
}

#tt-home-v19 .tt-home-v19__featured-products .wp-block-post-title a:hover {
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

#tt-home-v19 .tt-home-v19__featured-products .tt-home-v19__product-meta {
	align-items: flex-end;
	color: rgba(17, 17, 17, 0.65);
	display: flex;
	font-size: 0.77rem;
	gap: 0.75rem;
	justify-content: space-between;
	line-height: 1.25;
	margin: auto 0 0 !important;
	padding: 0 12px 12px;
}

#tt-home-v19 .tt-home-v19__featured-products .tt-home-v19__product-meta > * {
	font-size: inherit;
	margin: 0 !important;
	padding: 0;
}

#tt-home-v19 .tt-home-v19__featured-products .tt-home-v19__product-meta > :last-child {
	margin-left: auto !important;
	text-align: right !important;
}

#tt-home-v19 .tt-home-v19__featured-products .wp-block-post-terms {
	font-size: 0 !important;
}

#tt-home-v19 .tt-home-v19__featured-products .wp-block-post-terms a {
	display: none;
}

#tt-home-v19 .tt-home-v19__featured-products .wp-block-post-terms a:nth-child(1 of a:not([href*="/t-shirts/"])) {
	display: inline;
	font-size: 0.77rem;
}

#tt-home-v19 .tt-home-v19__featured-products li:has(.wp-block-post-title a[href*="wrong-font"]) .wp-block-post-terms a {
	display: none;
}

#tt-home-v19 .tt-home-v19__featured-products li:has(.wp-block-post-title a[href*="wrong-font"]) .wp-block-post-terms a[href*="/wordplay/"] {
	display: inline;
	font-size: 0.77rem;
}

@media (max-width: 900px) {
	#tt-home-v19 .tt-home-v19__featured-products .wc-block-product-template,
	#tt-home-v19 .ttm-home-featured-list {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 720px) {
	.ttm-market-bar__inner {
		align-items: stretch;
		flex-direction: column;
		gap: 6px;
		padding: 9px 16px 11px;
		text-align: center;
	}

	.ttm-market-bar__preview {
		align-self: center;
	}

	.ttm-market-bar__form {
		flex-wrap: wrap;
		justify-content: center;
	}
}

