/*
Theme Name: Aff Picks
Author: Aff Picks Contributors
Description: An accessible, content-first block theme for editorial affiliate sites.
Requires at least: 7.0
Requires PHP: 7.4
Version: 1.5.1
License: GNU General Public License v2 or later
Text Domain: aff-picks
*/

:root {
	font-family: var(--wp--preset--font-family--inter);
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--wp--preset--font-family--inter);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

:where(h1, h2, h3, h4, h5, h6) {
	font-family: var(--wp--preset--font-family--figtree);
}

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

.wp-block-post-featured-image img,
.aff-card__image img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--text);
	outline-offset: 3px;
	box-shadow: 0 0 0 2px var(--wp--preset--color--surface);
}

.skip-link {
	position: fixed;
	top: 0;
	left: 50%;
	z-index: 100000;
	padding: var(--wp--preset--spacing--xs, 0.75rem) var(--wp--preset--spacing--sm, 1rem);
	color: var(--wp--preset--color--on-primary);
	background: var(--wp--preset--color--primary);
	font-weight: 700;
	transform: translate(-50%, -150%);
}

.skip-link:focus,
.skip-link:focus-visible {
	transform: translate(-50%, var(--wp--preset--spacing--2-xs, 0.5rem));
}

.aff-reference-header {
	position: sticky;
	top: 0;
	z-index: 50;
	height: 64px;
	background: color-mix(in srgb, var(--wp--preset--color--surface) 95%, transparent);
	border-bottom: 1px solid var(--wp--preset--color--border);
	backdrop-filter: blur(12px);
}

.aff-reference-header__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	gap: var(--wp--preset--spacing--sm, 1rem);
	height: 64px;
	margin: 0 auto;
}

.aff-site-identity {
	min-width: 0;
}

.aff-reference-header .wp-block-site-title {
	margin: 0;
	min-width: 0;
	color: var(--wp--preset--color--primary);
	font-family: var(--wp--preset--font-family--figtree);
	font-size: 1.5rem;
	font-weight: 900;
	letter-spacing: -0.025em;
	line-height: 1;
}

.aff-reference-header .wp-block-site-title a {
	display: block;
	overflow: hidden;
	color: var(--wp--preset--color--primary);
	text-decoration: none;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.aff-primary-navigation {
	min-width: 0;
}

.aff-primary-navigation .wp-block-navigation-item__content {
	min-height: 44px;
	padding: 0.625rem 0.75rem;
	color: var(--wp--preset--color--text-muted);
	border-radius: 0.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
}

.aff-primary-navigation .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--text);
	background: var(--wp--preset--color--surface-tint);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.aff-primary-navigation .wp-block-navigation-item__content:focus-visible {
	color: var(--wp--preset--color--text);
	background: var(--wp--preset--color--surface-tint);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.aff-header-newsletter-label {
	display: inline-flex;
	min-width: 0;
	max-width: clamp(8rem, 24vw, 20rem);
	min-height: 44px;
	align-items: center;
	justify-self: end;
	overflow: hidden;
	padding: 0.5rem 0.75rem;
	color: var(--wp--preset--color--on-primary);
	background: var(--wp--preset--color--primary);
	border: 1px solid var(--wp--preset--color--primary);
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.aff-header-newsletter-label > * {
	min-width: 0;
	max-width: 100%;
	margin: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.aff-reference-footer {
	padding-block: 2.5rem;
	color: var(--wp--preset--color--text-muted);
	background: var(--wp--preset--color--surface);
	border-top: 1px solid var(--wp--preset--color--border);
}

.aff-reference-footer__inner {
	gap: var(--wp--preset--spacing--lg, 2rem);
}

.aff-footer-identity {
	gap: 0.25rem;
}

.aff-footer-actions {
	gap: var(--wp--preset--spacing--sm, 1rem);
	align-items: center;
}

.aff-footer-identity .wp-block-site-title,
.aff-footer-identity .wp-block-site-tagline {
	margin: 0;
}

.aff-footer-identity .wp-block-site-title {
	font-family: var(--wp--preset--font-family--figtree);
	font-weight: 700;
}

.aff-footer-identity .wp-block-site-title a,
.aff-footer-navigation .wp-block-navigation-item__content {
	color: var(--wp--preset--color--text);
	text-decoration: none;
}

.aff-footer-navigation .wp-block-navigation-item__content {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	font-size: 0.875rem;
}

.aff-footer-navigation .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--text);
	background: var(--wp--preset--color--surface-tint);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.aff-footer-navigation .wp-block-navigation-item__content:focus-visible {
	color: var(--wp--preset--color--text);
	background: var(--wp--preset--color--surface-tint);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.aff-footer-newsletter-label {
	min-height: 44px;
	align-items: center;
	color: var(--wp--preset--color--text-muted);
	font-size: 0.875rem;
}

.aff-footer-newsletter-label > * {
	margin: 0;
}

.aff-footer-disclosure {
	margin-top: var(--wp--preset--spacing--md, 1.5rem);
	font-size: 0.75rem;
	line-height: 1.5;
}

.aff-static-page__content {
	width: 100%;
	max-width: 832px;
	margin-inline: auto;
	font-family: var(--wp--preset--font-family--inter);
	line-height: 1.75;
}

.aff-static-page :where(h1, h2, h3, h4, h5, h6) {
	font-family: var(--wp--preset--font-family--figtree);
	font-weight: 700;
	letter-spacing: -0.02em;
}

.aff-static-page h1 {
	font-weight: 900;
}

.aff-static-page :where(h2, h3) {
	margin-top: var(--wp--preset--spacing--xl, 3rem);
	padding-bottom: var(--wp--preset--spacing--2-xs, 0.5rem);
	border-bottom: 1px solid var(--wp--preset--color--accent);
}

.aff-article-shell {
	width: 100%;
	max-width: 832px;
	margin-inline: auto;
	font-size: 1rem;
	line-height: 1.75;
}

.aff-single > .aff-production-article {
	width: 100%;
	max-width: 832px;
	margin-right: auto !important;
	margin-left: auto !important;
}

.aff-article-breadcrumb,
.aff-article-meta {
	gap: 0.75rem;
	color: var(--wp--preset--color--text-muted);
	font-size: 0.875rem;
	line-height: 1.25rem;
}

.aff-article-breadcrumb {
	margin: 0 0 2rem;
}

.aff-article-meta {
	margin: 0 0 1rem;
	align-items: center;
}

.aff-article-breadcrumb p,
.aff-article-meta p {
	margin: 0;
}

.aff-article-breadcrumb a,
.aff-article-tags a,
.aff-related-posts a {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	color: var(--wp--preset--color--text);
	overflow-wrap: anywhere;
}

.aff-article-breadcrumb a {
	min-height: 1.25rem;
	color: var(--wp--preset--color--text-muted);
	text-decoration: none;
}

.aff-production-article > .wp-block-post-featured-image {
	margin: 0 0 2rem;
}

.aff-production-article > .wp-block-post-featured-image img {
	display: block;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 1rem;
	background: var(--wp--preset--color--surface-muted);
}

.aff-article-meta__site {
	margin: 0;
	padding: 0.25rem 0.625rem;
	border-radius: 999px;
	background: var(--wp--preset--color--surface-tint);
	font-family: var(--wp--preset--font-family--inter);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1rem;
}

.aff-article-meta__site a {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.aff-production-article > .wp-block-post-title {
	margin: 0;
	font-size: 2.25rem;
	font-weight: 900;
	letter-spacing: -0.025em;
	line-height: 1.25;
}

.aff-article__deck {
	margin: 1rem 0 0;
	color: var(--wp--preset--color--text-muted);
	font-size: 1.125rem;
	line-height: 1.625;
}

.aff-article__deck .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.aff-article-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 1rem 0 0;
	font-size: 0;
}

.aff-article-tags a {
	min-height: 1.5rem;
	padding: 0.25rem 0.625rem;
	border-radius: 999px;
	color: var(--wp--preset--color--text-muted);
	background: var(--wp--preset--color--surface-muted);
	font-size: 0.75rem;
	line-height: 1rem;
	text-decoration: none;
}

.aff-article-tags a::before {
	content: "#";
}

.aff-article-content {
	width: 100%;
	max-width: 832px;
	margin-inline: auto;
	line-height: 1.75;
	overflow-wrap: anywhere;
}

.aff-article-content :where(h2, h3) {
	margin-top: var(--wp--preset--spacing--xl, 3rem);
	padding-bottom: var(--wp--preset--spacing--2-xs, 0.5rem);
	border-bottom: 1px solid var(--wp--preset--color--accent);
}

.aff-article-disclosure,
.aff-callout {
	width: 100%;
	overflow-wrap: anywhere;
	padding: var(--wp--preset--spacing--sm, 1rem);
	color: var(--wp--preset--color--text-muted);
	background: var(--wp--preset--color--surface-muted);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0.75rem;
	font-size: 0.875rem;
	line-height: 1.25rem;
}

.aff-production-article > .aff-article-disclosure {
	margin: 2.5rem 0;
}

.aff-product-grid,
.aff-comparison-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	align-items: stretch;
	margin: 2rem 0 2.5rem;
}

.aff-product-grid--editorial {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.aff-product-card {
	position: relative;
	display: flex;
	width: 100%;
	max-width: none;
	min-width: 0;
	flex-direction: column;
	gap: 0.75rem;
	overflow: hidden;
	padding: 1rem;
	background: var(--wp--preset--color--surface);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--primary) 28%, var(--wp--preset--color--surface));
	border-radius: 1rem;
	box-shadow: 0 0.5rem 1.5rem color-mix(in srgb, var(--wp--preset--color--primary) 8%, transparent);
}

.aff-product-grid > .aff-product-card:first-child {
	border-width: 2px;
	border-color: var(--wp--preset--color--primary);
}

.aff-product-card__badge {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 1;
	margin: 0;
	padding: 0.35rem 0.65rem;
	border-radius: 999px;
	color: var(--wp--preset--color--on-primary);
	background: var(--wp--preset--color--primary-dark);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1;
	text-transform: uppercase;
}

.aff-product-card__price {
	margin: 0;
	color: var(--wp--preset--color--primary-dark);
	font-size: 0.9rem;
	font-weight: 700;
}

.aff-product-card__title {
	margin: 0;
	color: var(--wp--preset--color--text);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.normalized-product-commerce {
	display: flex;
	min-height: 3rem;
	flex-direction: column;
	gap: 0.45rem;
	margin: 0;
}

.normalized-product-price-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.42rem;
	align-items: center;
	min-width: 0;
}

.normalized-product-current-price {
	color: var(--wp--preset--color--primary-dark);
	font-size: 1rem;
	font-weight: 900;
	line-height: 1;
}

.normalized-product-list-price {
	color: var(--wp--preset--color--text-muted);
	font-size: 0.75rem;
	line-height: 1;
	text-decoration: line-through;
}

.normalized-product-saving {
	padding: 0.2rem 0.42rem;
	color: var(--wp--preset--color--primary-dark);
	background: var(--wp--preset--color--surface-tint);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--primary) 24%, var(--wp--preset--color--surface));
	border-radius: 999px;
	font-size: 0.625rem;
	font-weight: 800;
	line-height: 1;
}

.normalized-product-meta {
	display: flex;
	align-items: center;
}

.normalized-product-status {
	display: inline-flex;
	gap: 0.35rem;
	align-items: center;
	font-size: 0.64rem;
	font-weight: 850;
	line-height: 1;
}

.normalized-product-status i {
	width: 0.42rem;
	height: 0.42rem;
	background: currentcolor;
	border-radius: 50%;
}

.normalized-product-status.is-in-stock {
	color: var(--wp--preset--color--success);
}

.normalized-product-status.is-limited-stock,
.normalized-product-status.is-unknown-stock {
	color: var(--wp--preset--color--warning);
}

.normalized-product-status.is-out-of-stock {
	color: var(--wp--preset--color--text-muted);
}

.normalized-product-price-fallback {
	color: var(--wp--preset--color--text-muted);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.35;
}

.aff-product-price-disclaimer {
	margin: -1.5rem 0 2.5rem;
	color: var(--wp--preset--color--text-muted);
	font-size: 0.875rem;
	font-style: italic;
	line-height: 1.5;
}

.aff-product-card .wp-block-image,
.aff-product-card .wp-block-image img {
	width: 100%;
}

.aff-product-card .wp-block-image {
	display: grid;
	min-height: 13rem;
	margin: -1rem -1rem 0;
	width: calc(100% + 2rem);
	place-items: center;
	padding: 1rem;
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--primary) 18%, var(--wp--preset--color--surface));
	background: linear-gradient(145deg, var(--wp--preset--color--surface), var(--wp--preset--color--surface-tint));
}

.aff-product-card .wp-block-image img {
	max-width: 11rem;
	height: 11rem;
	aspect-ratio: 1;
	object-fit: contain;
}

.aff-product-card :where(p, .wp-block-buttons) {
	margin: 0;
}

.aff-product-card > p {
	color: var(--wp--preset--color--text-muted);
	font-size: 0.875rem;
	line-height: 1.6;
}

.aff-product-card .wp-block-buttons {
	margin-top: auto;
}

.aff-product-card .wp-block-button__link {
	display: inline-flex;
	width: 100%;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	border-radius: 0.75rem;
	overflow-wrap: anywhere;
}

.normalized-comparison-card-grid {
	display: grid;
	gap: 1.25rem;
	margin: 2rem 0 2.75rem;
}

.normalized-comparison-card {
	display: grid;
	min-width: 0;
	gap: 1rem;
	overflow: hidden;
	padding: 1.15rem;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 1.15rem;
	box-shadow: 0 0.625rem 1.875rem color-mix(in srgb, var(--wp--preset--color--text) 8%, transparent);
}

.normalized-comparison-card-kicker {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 0.7rem;
	color: var(--wp--preset--color--primary-dark);
	border-bottom: 1px solid var(--wp--preset--color--border);
	font-size: 0.68rem;
	font-weight: 850;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.normalized-comparison-card-kicker span:first-child {
	color: var(--wp--preset--color--accent);
	font-size: 1rem;
	letter-spacing: 0;
}

.normalized-comparison-card-product {
	display: grid;
	grid-template-columns: 5.5rem minmax(0, 1fr);
	gap: 1rem;
	align-items: center;
	min-width: 0;
}

.normalized-comparison-card-image {
	display: block;
	width: 5.5rem;
	max-width: 5.5rem;
	height: 5rem;
	max-height: 5rem;
	margin: 0;
	background: var(--wp--preset--color--surface-muted);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0.8rem;
	object-fit: contain;
}

.normalized-comparison-card-product h3 {
	margin: 0;
	color: var(--wp--preset--color--text);
	font-size: 1rem;
	font-weight: 850;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.normalized-comparison-card-commerce {
	display: grid;
	gap: 0.48rem;
	margin-top: 0.7rem;
}

.normalized-comparison-card-price-row,
.normalized-comparison-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.48rem;
	align-items: center;
}

.normalized-comparison-card-current-price {
	color: var(--wp--preset--color--primary-dark);
	font-size: 1.18rem;
	font-weight: 900;
	line-height: 1;
}

.normalized-comparison-card-list-price {
	color: var(--wp--preset--color--text-muted);
	font-size: 0.78rem;
	text-decoration: line-through;
}

.normalized-comparison-card-saving,
.normalized-comparison-card-status {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	padding: 0.28rem 0.58rem;
	border-radius: 999px;
	font-size: 0.68rem;
	font-weight: 850;
	line-height: 1;
}

.normalized-comparison-card-saving {
	color: var(--wp--preset--color--primary-dark);
	background: var(--wp--preset--color--surface-tint);
}

.normalized-comparison-card-status {
	color: var(--wp--preset--color--text-muted);
	background: var(--wp--preset--color--surface-muted);
}

.normalized-comparison-card-status i {
	width: 0.42rem;
	height: 0.42rem;
	margin-right: 0.36rem;
	background: currentcolor;
	border-radius: 50%;
}

.normalized-comparison-card-status.is-in-stock {
	color: var(--wp--preset--color--success);
}

.normalized-comparison-card-status.is-limited-stock,
.normalized-comparison-card-status.is-unknown-stock {
	color: var(--wp--preset--color--warning);
}

.normalized-comparison-card-editorial {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.8rem;
}

.normalized-comparison-card-editorial section {
	min-width: 0;
	padding: 0.9rem;
	border-radius: 0.85rem;
}

.normalized-comparison-card-win {
	background: var(--wp--preset--color--surface-tint);
}

.normalized-comparison-card-loss {
	background: var(--wp--preset--color--surface-muted);
}

.normalized-comparison-card-editorial span {
	display: block;
	margin-bottom: 0.35rem;
	color: var(--wp--preset--color--primary-dark);
	font-size: 0.68rem;
	font-weight: 850;
	letter-spacing: 0.055em;
	text-transform: uppercase;
}

.normalized-comparison-card-editorial p {
	margin: 0;
	color: var(--wp--preset--color--text-muted);
	font-size: 0.84rem;
	line-height: 1.55;
	overflow-wrap: anywhere;
}

.normalized-comparison-card-cta,
.normalized-standalone-cta {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	padding: 0.72rem 1rem;
	color: var(--wp--preset--color--on-primary);
	background: var(--wp--preset--color--primary);
	border-radius: 0.7rem;
	font-size: 0.84rem;
	font-weight: 850;
	line-height: 1.2;
	text-decoration: none;
}

.normalized-comparison-card-cta {
	width: min(100%, 12.5rem);
	justify-self: end;
}

.normalized-comparison-card-cta:hover,
.normalized-standalone-cta:hover {
	color: var(--wp--preset--color--on-primary);
	background: var(--wp--preset--color--primary-hover);
}

.normalized-comparison-card-source {
	margin: -1.7rem 0 2.75rem;
	color: var(--wp--preset--color--text-muted);
	font-size: 0.72rem;
	line-height: 1.45;
}

.normalized-comparison-card-price-fallback {
	color: var(--wp--preset--color--text-muted);
	font-size: 0.78rem;
	font-weight: 700;
}

.normalized-standalone-product {
	display: flex;
	width: min(100%, 24rem);
	min-width: 0;
	flex-direction: column;
	gap: 0.8rem;
	margin: 1.25rem auto 2rem;
	padding: 1rem;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 1rem;
	box-shadow: 0 0.4375rem 1.375rem color-mix(in srgb, var(--wp--preset--color--text) 6%, transparent);
}

.normalized-standalone-image {
	display: block;
	width: 100%;
	max-width: 20rem;
	height: 17rem;
	max-height: 17rem;
	margin: 0 auto;
	object-fit: contain;
}

.normalized-standalone-cta {
	width: 100%;
}

.aff-production-feedback {
	margin-top: 4rem;
}

.aff-production-feedback .aff-feedback-band {
	padding: 2rem !important;
	color: var(--wp--preset--color--text) !important;
	background: var(--wp--preset--color--surface-tint) !important;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 1rem;
}

.aff-production-feedback .aff-feedback-band__inner {
	justify-content: center;
	gap: 1rem;
	text-align: center;
}

.aff-production-feedback .aff-feedback-band__copy {
	max-width: 100%;
}

.aff-production-feedback .aff-feedback-band__action .aff-config-link {
	color: var(--wp--preset--color--on-primary);
	background: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	border-radius: 0.5rem;
}

.aff-standalone-product-card {
	display: grid;
	grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
	gap: var(--wp--preset--spacing--lg, 2rem);
	max-width: 100%;
	overflow: hidden;
	padding: var(--wp--preset--spacing--md, 1.5rem);
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 1rem;
}

.wp-block-table {
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.wp-block-table table {
	min-width: 40rem;
	border-collapse: collapse;
}

.wp-block-table :where(th, td) {
	padding: var(--wp--preset--spacing--xs, 0.75rem);
	border: 1px solid var(--wp--preset--color--border);
	text-align: start;
}

.aff-managed-comparison-card-grid {
	display: grid;
	width: 100%;
	max-width: 832px;
	min-width: 0;
	gap: 1rem;
	margin: 2rem auto 2.5rem;
}

.aff-managed-comparison-card {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.75fr) repeat(2, minmax(0, 1fr));
	min-width: 0;
	gap: 1rem;
	align-items: start;
	overflow: hidden;
	padding: 1rem;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 1rem;
	box-shadow: 0 0.5rem 1.5rem color-mix(in srgb, var(--wp--preset--color--text) 7%, transparent);
}

.aff-managed-comparison-card > * {
	min-width: 0;
}

.aff-managed-comparison-card-product,
.aff-managed-comparison-card-price,
.aff-managed-comparison-card-reason {
	overflow-wrap: anywhere;
}

.aff-managed-comparison-card-product::before,
.aff-managed-comparison-card-price::before,
.aff-managed-comparison-card-reason > span {
	display: block;
	margin-bottom: 0.4rem;
	color: var(--wp--preset--color--text-muted);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.3;
	text-transform: uppercase;
}

.aff-managed-comparison-card-product::before,
.aff-managed-comparison-card-price::before {
	content: attr(data-label);
}

.aff-managed-comparison-card-product h3,
.aff-managed-comparison-card-reason div {
	margin: 0;
}

.aff-managed-comparison-card-product h3 {
	font-size: 1rem;
	line-height: 1.35;
}

.aff-managed-comparison-card-product img,
.aff-editorial-product-callout img,
.aff-plain-product img {
	display: block;
	width: 100%;
	height: 10rem;
	object-fit: contain;
}

.aff-managed-comparison-card-product img {
	margin-bottom: 0.65rem;
	background: var(--wp--preset--color--surface-muted);
	border-radius: 0.65rem;
}

.aff-managed-comparison-card-price {
	color: var(--wp--preset--color--text);
	font-weight: 700;
}

.aff-managed-comparison-card-price .normalized-comparison-card-commerce {
	margin-top: 0;
}

.aff-managed-comparison-card-reason {
	color: var(--wp--preset--color--text-muted);
	font-size: 0.875rem;
	line-height: 1.55;
}

.aff-managed-comparison-card-cta,
.aff-editorial-product-callout .wp-block-button__link,
.aff-plain-product .wp-block-button__link {
	display: inline-flex;
	width: min(100%, 14rem);
	min-height: 44px;
	align-items: center;
	justify-content: center;
	padding: 0.7rem 1rem;
	color: var(--wp--preset--color--on-primary);
	background: var(--wp--preset--color--primary);
	border-radius: 0.7rem;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.aff-managed-comparison-card-cta {
	grid-column: 1 / -1;
	justify-self: end;
}

.aff-managed-comparison-card-cta:hover,
.aff-editorial-product-callout .wp-block-button__link:hover,
.aff-plain-product .wp-block-button__link:hover {
	color: var(--wp--preset--color--on-primary);
	background: var(--wp--preset--color--primary-hover);
}

.aff-managed-comparison-card-cta:focus-visible,
.aff-editorial-product-callout .wp-block-button__link:focus-visible,
.aff-plain-product .wp-block-button__link:focus-visible {
	outline: 3px solid var(--wp--preset--color--text);
	outline-offset: 3px;
	box-shadow: 0 0 0 2px var(--wp--preset--color--surface);
}

.aff-managed-data-table {
	width: 100%;
	max-width: 100%;
	margin: 1.5rem 0;
	overflow-x: auto;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0.875rem;
	box-shadow: 0 8px 24px color-mix(in srgb, var(--wp--preset--color--text) 6%, transparent);
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-inline: contain;
}

.aff-managed-data-table:focus-visible {
	outline: 3px solid var(--wp--preset--color--text);
	outline-offset: 3px;
}

.aff-managed-data-table table {
	width: 100%;
	min-width: 40rem;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	table-layout: fixed;
	background: var(--wp--preset--color--surface);
}

.aff-managed-data-table th,
.aff-managed-data-table td {
	padding: 0.875rem 1rem;
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
	text-align: left;
	vertical-align: top;
	font-size: 0.875rem;
	line-height: 1.5;
}

.aff-managed-data-table thead {
	border-bottom: 0;
}

.aff-managed-data-table th {
	color: var(--wp--preset--color--text);
	background: var(--wp--preset--color--surface-tint);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.aff-managed-data-table tbody tr:last-child td {
	border-bottom: 0;
}

.aff-editorial-product-callout {
	display: grid;
	grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
	gap: 1.25rem;
	align-items: center;
	min-width: 0;
	overflow: hidden;
	padding: 1.25rem;
	background: var(--wp--preset--color--surface-tint);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 1rem;
}

.aff-editorial-product-callout .wp-block-image {
	grid-row: 1 / span 4;
	margin: 0;
}

.aff-editorial-product-callout :where(h3, p, .wp-block-buttons),
.aff-plain-product :where(h2, h3, h4, p, .wp-block-image, .wp-block-buttons) {
	min-width: 0;
	margin: 0;
}

.aff-editorial-product-callout .wp-block-buttons,
.aff-plain-product .wp-block-buttons {
	width: 100%;
}

.aff-plain-product {
	display: flex;
	width: min(100%, 340px);
	min-width: 0;
	flex-direction: column;
	gap: 1rem;
	margin: 2rem auto;
	overflow: hidden;
	padding: 1rem;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 1rem;
}

.aff-plain-product img {
	height: 17rem;
}

.aff-editorial-product-callout .wp-block-button__link,
.aff-plain-product .wp-block-button__link {
	width: 100%;
}

/* Established Guide-family product treatment used by the reference sites. */
.normalized-guide-product {
	display: flex;
	width: min(100%, 24rem);
	min-width: 0;
	flex-direction: column;
	gap: 0.75rem;
	margin: 1.25rem auto 2rem;
	overflow: hidden;
	padding: 1rem;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 1rem;
	box-shadow: 0 0.5rem 1.5rem color-mix(in srgb, var(--wp--preset--color--text) 7%, transparent);
}

.normalized-guide-product .wp-block-image {
	display: grid;
	width: 100%;
	margin: 0;
	place-items: center;
}

.normalized-guide-product img {
	display: block;
	width: 100%;
	max-width: 21rem;
	height: 18rem;
	margin: 0 auto;
	object-fit: contain;
}

.normalized-guide-product .wp-block-shortcode,
.normalized-guide-product .wp-block-buttons {
	width: 100%;
	margin: 0;
}

.normalized-guide-product .wp-block-button {
	width: 100%;
}

.normalized-guide-product .normalized-product-commerce {
	min-height: 0;
	margin: 0;
}

.normalized-guide-product .wp-block-button__link {
	display: inline-flex;
	width: 100%;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	padding: 0.7rem 1rem;
	color: var(--wp--preset--color--on-primary);
	background: var(--wp--preset--color--primary);
	border-radius: 0.7rem;
	font-size: 0.82rem;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
}

.normalized-guide-product .wp-block-button__link:hover {
	color: var(--wp--preset--color--on-primary);
	background: var(--wp--preset--color--primary-hover);
}

.normalized-guide-product .wp-block-button__link:focus-visible {
	outline: 3px solid var(--wp--preset--color--text);
	outline-offset: 3px;
}

/* Established How-to-family editorial product treatment. */
.normalized-howto-product-callout {
	display: grid;
	grid-template-columns: minmax(12rem, 34%) minmax(0, 1fr);
	gap: 1rem;
	min-width: 0;
	margin: 1.25rem 0 2rem;
	overflow: hidden;
	padding: 0.9rem;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 1rem;
	box-shadow: 0 0.5rem 1.5rem color-mix(in srgb, var(--wp--preset--color--text) 7%, transparent);
}

.normalized-howto-product-media {
	position: relative;
	display: grid;
	min-width: 0;
	min-height: 15rem;
	place-items: center;
	padding: 1rem;
	background: var(--wp--preset--color--surface-tint);
	border-radius: 0.8rem;
}

.normalized-howto-product-media .wp-block-image {
	width: 100%;
	margin: 0;
}

.normalized-howto-product-media img {
	display: block;
	width: 100%;
	max-width: 14rem;
	height: 14rem;
	margin: 0 auto;
	object-fit: contain;
}

.normalized-howto-product-badge {
	position: absolute;
	top: 0.65rem;
	left: 0.65rem;
	z-index: 1;
	margin: 0 !important;
	padding: 0.3rem 0.55rem;
	color: var(--wp--preset--color--on-primary) !important;
	background: var(--wp--preset--color--primary-dark);
	border-radius: 999px;
	font-size: 0.65rem;
	font-weight: 850;
	line-height: 1;
}

.normalized-howto-product-content {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 0.55rem;
}

.normalized-howto-product-content :where(p, .wp-block-shortcode, .wp-block-buttons) {
	margin: 0;
}

.normalized-howto-product-title {
	color: var(--wp--preset--color--text) !important;
	font-size: 0.92rem;
	font-weight: 800;
	line-height: 1.35;
}

.normalized-howto-product-summary {
	color: var(--wp--preset--color--text-muted) !important;
	font-size: 0.82rem;
	line-height: 1.5;
}

.normalized-howto-product-content .wp-block-buttons,
.normalized-howto-product-content .wp-block-button {
	width: min(100%, 15rem);
}

.normalized-howto-product-content .wp-block-button__link {
	display: inline-flex;
	width: 100%;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	padding: 0.65rem 0.9rem;
	color: var(--wp--preset--color--on-primary);
	background: var(--wp--preset--color--primary);
	border-radius: 0.65rem;
	font-size: 0.82rem;
	font-weight: 850;
	line-height: 1.2;
	text-decoration: none;
}

.normalized-howto-product-content .wp-block-button__link:hover {
	color: var(--wp--preset--color--on-primary);
	background: var(--wp--preset--color--primary-hover);
}

@media (max-width: 767px) {
	.normalized-howto-product-callout {
		grid-template-columns: minmax(0, 1fr);
	}

	.normalized-howto-product-media {
		min-height: 13rem;
	}

	.normalized-howto-product-media img {
		height: 12rem;
	}

	.normalized-howto-product-content .wp-block-buttons,
	.normalized-howto-product-content .wp-block-button {
		width: 100%;
	}
}

/* Established Explain-family editorial callout used by the reference sites. */
.normalized-data-table-wrap {
	margin: 1.5rem 0;
	overflow-x: auto;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0.875rem;
	box-shadow: 0 8px 24px color-mix(in srgb, var(--wp--preset--color--text) 6%, transparent);
	-webkit-overflow-scrolling: touch;
}

.normalized-data-table-wrap:focus-visible {
	outline: 3px solid var(--wp--preset--color--primary);
	outline-offset: 3px;
}

.normalized-data-table-wrap table {
	width: 100%;
	min-width: 40rem;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	table-layout: fixed;
	background: var(--wp--preset--color--surface);
}

.normalized-data-table-wrap th,
.normalized-data-table-wrap td {
	padding: 0.875rem 1rem;
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
	text-align: left;
	vertical-align: top;
	font-size: 0.875rem;
	line-height: 1.5;
}

.normalized-data-table-wrap thead {
	border-bottom: 0;
}

.normalized-data-table-wrap th {
	color: var(--wp--preset--color--text);
	background: var(--wp--preset--color--surface-tint);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.normalized-data-table-wrap tbody tr:last-child td {
	border-bottom: 0;
}

.normalized-editorial-product-callout {
	display: grid;
	grid-template-columns: minmax(12rem, 34%) minmax(0, 1fr);
	gap: 1.25rem;
	min-width: 0;
	margin: 1.5rem 0 2rem;
	overflow: hidden;
	padding: 1.1rem;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 1rem;
	box-shadow: 0 8px 24px color-mix(in srgb, var(--wp--preset--color--text) 7%, transparent);
}

.normalized-editorial-product-callout-featured {
	border: 2px solid var(--wp--preset--color--primary);
}

.normalized-editorial-product-media {
	display: grid;
	position: relative;
	min-width: 0;
	place-items: center;
	padding: 1rem;
	background: var(--wp--preset--color--surface-tint);
	border-radius: 0.8rem;
}

.normalized-editorial-product-badge {
	position: absolute;
	top: 0.65rem;
	left: 0.65rem;
	padding: 0.3rem 0.55rem;
	color: var(--wp--preset--color--on-primary);
	background: var(--wp--preset--color--primary-dark);
	border-radius: 999px;
	font-size: 0.65rem;
	font-weight: 850;
}

.normalized-editorial-product-image {
	display: block !important;
	width: 100% !important;
	max-width: 14rem !important;
	height: 14rem !important;
	max-height: 14rem !important;
	margin: 0 auto !important;
	object-fit: contain !important;
}

.normalized-editorial-product-content {
	display: flex;
	min-width: 0;
	flex-direction: column;
}

.normalized-editorial-product-content h3 {
	margin: 0.2rem 0 0.65rem;
	color: var(--wp--preset--color--text);
	font-size: 1.08rem;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.normalized-editorial-product-content p,
.normalized-editorial-product-content li {
	overflow-wrap: anywhere;
}

.normalized-editorial-product-kicker {
	margin: 0 !important;
	color: var(--wp--preset--color--primary) !important;
	font-size: 0.72rem;
	font-weight: 850;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.normalized-editorial-product-price {
	margin: 0.5rem 0 !important;
	color: var(--wp--preset--color--primary-dark) !important;
	font-weight: 850;
}

.normalized-editorial-product-cta {
	display: inline-flex !important;
	width: min(100%, 15rem);
	min-height: 44px;
	align-items: center;
	justify-content: center;
	margin-top: auto;
	padding: 0.65rem 0.9rem;
	color: var(--wp--preset--color--on-primary) !important;
	background: var(--wp--preset--color--primary);
	border-radius: 0.65rem;
	font-size: 0.82rem;
	font-weight: 850;
	line-height: 1.2;
	text-decoration: none !important;
}

.normalized-editorial-product-cta:hover {
	color: var(--wp--preset--color--on-primary) !important;
	background: var(--wp--preset--color--primary-hover);
}

.normalized-editorial-product-cta:focus-visible {
	outline: 3px solid var(--wp--preset--color--text);
	outline-offset: 3px;
}

.normalized-editorial-product-disclaimer {
	margin: 1rem 0 2rem !important;
	padding: 0.8rem 1rem;
	color: var(--wp--preset--color--text-muted) !important;
	background: var(--wp--preset--color--surface-muted);
	border-radius: 0.75rem;
	font-size: 0.78rem;
}

.aff-related-posts__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--md, 1.5rem);
}

.aff-related-posts__card {
	min-width: 0;
	padding: var(--wp--preset--spacing--sm, 1rem);
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 1rem;
}

.aff-related-posts__image img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.aff-related-posts__date,
.aff-related-posts__excerpt,
.aff-related-posts__tags {
	color: var(--wp--preset--color--text-muted);
}

.aff-related-posts__title a,
.aff-related-posts__tags a {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
}

@media (max-width: 900px) {
	.aff-product-grid,
	.aff-comparison-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.aff-related-posts__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.aff-primary-navigation {
		display: none;
	}

	.aff-reference-header__inner {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.aff-reference-footer__inner,
	.aff-footer-actions,
	.aff-footer-navigation .wp-block-navigation__container {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (max-width: 640px) {
	body {
		padding-right: 1rem !important;
		padding-left: 1rem !important;
	}

	.aff-single {
		width: 100%;
		max-width: none;
		margin-right: 0 !important;
		margin-left: 0 !important;
		padding-right: 0;
		padding-left: 0;
	}

	.aff-reference-header {
		width: calc(100% + 2rem);
		margin-left: -1rem;
	}

	.aff-header-newsletter-label {
		display: none !important;
	}

	.aff-reference-header__inner {
		display: flex;
		justify-content: flex-start;
		padding-right: 1rem !important;
		padding-left: 1rem !important;
	}

	.aff-product-grid,
	.aff-comparison-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.normalized-comparison-card-editorial {
		grid-template-columns: minmax(0, 1fr);
	}

	.normalized-comparison-card-product {
		grid-template-columns: 4.5rem minmax(0, 1fr);
	}

	.normalized-comparison-card-image {
		width: 4.5rem;
		max-width: 4.5rem;
		height: 4.5rem;
		max-height: 4.5rem;
	}

	.normalized-comparison-card-cta {
		width: 100%;
		justify-self: stretch;
	}

	.normalized-standalone-image {
		height: 14rem;
		max-height: 14rem;
	}

	.aff-production-article > .wp-block-post-title {
		font-size: 1.875rem;
	}

	.aff-product-card .wp-block-image {
		min-height: 14rem;
	}

	.aff-product-card .wp-block-image img {
		max-width: 12rem;
		height: 12rem;
	}
}

@media (max-width: 480px) {
	.aff-related-posts__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

.aff-reference-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, var(--wp--preset--color--surface-tint), var(--wp--preset--color--accent-soft));
}

.aff-reference-hero__inner {
	text-align: center;
}

.aff-reference-hero .wp-block-site-tagline {
	max-width: 832px;
	margin: 0 auto;
	font-family: var(--wp--preset--font-family--figtree);
	font-weight: 900;
	letter-spacing: -0.04em;
	line-height: 1.05;
}

.aff-reference-hero__emphasis,
.aff-reference-hero__description {
	min-width: 0;
	max-width: 720px;
	margin-inline: auto;
	overflow-wrap: anywhere;
}

.aff-reference-hero__emphasis {
	color: var(--wp--preset--color--primary);
	font-family: var(--wp--preset--font-family--figtree);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 700;
}

.aff-reference-hero__description {
	color: var(--wp--preset--color--text-muted);
	font-size: var(--wp--preset--font-size--large);
}

.aff-reference-hero__emphasis .aff-config-copy,
.aff-reference-hero__description .aff-config-copy {
	display: block;
}

.aff-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: var(--wp--preset--spacing--sm, 1rem);
	height: 100%;
	overflow: hidden;
	padding: var(--wp--preset--spacing--md, 1.5rem);
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 1rem;
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.aff-card:hover,
.aff-card:focus-within {
	border-color: var(--wp--preset--color--accent);
	box-shadow: 0 0.75rem 2rem color-mix(in srgb, var(--wp--preset--color--text) 10%, transparent);
	transform: translateY(-0.125rem);
}

.aff-card > :first-child {
	margin-block-start: 0;
}

.aff-card > :last-child {
	margin-block-end: 0;
}

.aff-card__image {
	margin: calc(-1 * var(--wp--preset--spacing--md, 1.5rem));
	margin-bottom: var(--wp--preset--spacing--2-xs, 0.5rem);
}

.aff-card__date {
	margin: 0;
	color: var(--wp--preset--color--text-muted);
	font-size: var(--wp--preset--font-size--small);
}

.aff-card__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--figtree);
	font-weight: 700;
	line-height: 1.2;
}

.aff-card__title a {
	display: inline-flex;
	min-height: 44px;
	max-width: 100%;
	align-items: center;
	padding: 0.25rem 0;
	color: var(--wp--preset--color--text);
	background: var(--wp--preset--color--surface);
	text-decoration: none;
	overflow-wrap: anywhere;
}

.aff-card__title a:hover {
	color: var(--wp--preset--color--text);
	background: var(--wp--preset--color--surface);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.aff-card__title a:focus-visible {
	color: var(--wp--preset--color--text);
	background: var(--wp--preset--color--surface);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.aff-card__excerpt {
	margin: 0;
	color: var(--wp--preset--color--text-muted);
}

.aff-card__excerpt .wp-block-post-excerpt__excerpt {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.aff-card__excerpt .wp-block-post-excerpt__more-link {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	padding: 0.25rem 0;
	color: var(--wp--preset--color--text);
	background: var(--wp--preset--color--surface);
	overflow-wrap: anywhere;
}

.aff-card__tags {
	margin-top: auto;
	color: var(--wp--preset--color--text-muted);
	font-size: var(--wp--preset--font-size--small);
}

.aff-card__tags a {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	padding: 0.25rem;
	color: var(--wp--preset--color--text-muted);
	background: var(--wp--preset--color--surface);
	overflow-wrap: anywhere;
}

.aff-query .wp-block-query-pagination a {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	padding: 0.5rem;
	overflow-wrap: anywhere;
}

.aff-grid,
.aff-top-picks-grid,
.aff-review-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wp--preset--spacing--lg, 2rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.aff-top-picks-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.aff-feedback-band {
	color: var(--wp--preset--color--on-primary);
}

.aff-feedback-band.has-primary-background-color {
	color: var(--wp--preset--color--on-primary) !important;
}

.aff-feedback-band .aff-config-copy {
	color: inherit;
}

.aff-production-feedback .aff-feedback-band.has-primary-background-color {
	color: var(--wp--preset--color--text) !important;
}

.aff-feedback-band__inner {
	gap: var(--wp--preset--spacing--lg, 2rem);
}

.aff-feedback-band__copy {
	min-width: 0;
	max-width: 720px;
	overflow-wrap: anywhere;
}

.aff-feedback-band__action,
.aff-config-copy,
.aff-config-link {
	min-width: 0;
	overflow-wrap: anywhere;
}

.aff-feedback-band__copy .wp-block-shortcode:first-of-type {
	font-family: var(--wp--preset--font-family--figtree);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 700;
	line-height: 1.2;
}

.aff-feedback-band .aff-config-copy {
	display: block;
}

.aff-feedback-band__action .aff-config-link {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.25rem;
	color: var(--wp--preset--color--on-primary);
	background: var(--wp--preset--color--primary-dark);
	border: 1px solid var(--wp--preset--color--on-primary);
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none;
}

.aff-feedback-band__action .aff-config-link:hover {
	color: var(--wp--preset--color--on-primary);
	background: var(--wp--preset--color--primary);
}

.aff-feedback-band__action .aff-config-link:focus-visible {
	color: var(--wp--preset--color--on-primary);
	background: var(--wp--preset--color--primary);
}

@media (max-width: 767px) {
	.aff-product-card {
		max-width: 100%;
	}

	.aff-standalone-product-card {
		grid-template-columns: minmax(0, 1fr);
	}

	.aff-top-picks-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.aff-reference-hero .wp-block-site-tagline {
		font-size: 2.25rem;
	}

	.aff-feedback-band__inner {
		align-items: flex-start;
		flex-direction: column;
	}
}

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

@media (min-width: 1280px) {
	.aff-review-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

@media (max-width: 767px) {
	.normalized-editorial-product-callout {
		grid-template-columns: minmax(0, 1fr);
	}

	.normalized-editorial-product-image {
		height: 12rem !important;
		max-height: 12rem !important;
	}

	.normalized-editorial-product-cta {
		width: 100%;
	}

	.aff-editorial-product-callout {
		grid-template-columns: minmax(0, 1fr);
	}

	.aff-editorial-product-callout .wp-block-image {
		grid-row: auto;
	}
}

@media (max-width: 640px) {
	.aff-managed-comparison-card {
		grid-template-columns: minmax(0, 1fr);
	}

	.aff-managed-comparison-card-cta {
		grid-column: auto;
		width: 100%;
		justify-self: stretch;
	}

	.aff-managed-data-table {
		overflow: visible;
	}

	.aff-managed-data-table table,
	.aff-managed-data-table tbody {
		display: block;
		width: 100%;
		min-width: 0;
	}

	.aff-managed-data-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.aff-managed-data-table tr {
		display: grid;
		width: 100%;
		min-width: 0;
		margin-bottom: 1rem;
		overflow: hidden;
		background: var(--wp--preset--color--surface);
		border: 1px solid var(--wp--preset--color--border);
		border-radius: 0.875rem;
		box-shadow: 0 0.35rem 1.1rem color-mix(in srgb, var(--wp--preset--color--text) 5%, transparent);
	}

	.aff-managed-data-table td {
		display: grid;
		grid-template-columns: minmax(7rem, 0.8fr) minmax(0, 1.2fr);
		gap: 0.75rem;
		min-width: 0;
		border-width: 0 0 1px;
		overflow-wrap: anywhere;
	}

	.aff-managed-data-table td:last-child {
		border-bottom: 0;
	}

	.aff-managed-data-table td::before {
		content: attr(data-label);
		color: var(--wp--preset--color--primary);
		font-size: 0.65rem;
		font-weight: 850;
		letter-spacing: 0.045em;
		text-transform: uppercase;
	}
}

@media print {
	.aff-managed-comparison-card,
	.aff-editorial-product-callout,
	.aff-plain-product,
	.aff-managed-data-table tr {
		box-shadow: none;
		break-inside: avoid;
	}

	.aff-managed-comparison-card-cta,
	.aff-editorial-product-callout .wp-block-button__link,
	.aff-plain-product .wp-block-button__link {
		display: none;
	}
}

@media (forced-colors: active) {
	.aff-managed-comparison-card,
	.aff-editorial-product-callout,
	.aff-plain-product,
	.aff-managed-data-table tr {
		border-color: CanvasText;
	}

	.aff-managed-comparison-card-cta,
	.aff-editorial-product-callout .wp-block-button__link,
	.aff-plain-product .wp-block-button__link {
		border: 1px solid ButtonText;
		forced-color-adjust: auto;
	}
}
