:root {
	--pae-ink: #18332c;
	--pae-muted: #52625d;
	--pae-surface: #f4f8f5;
	--pae-border: #c9d8d0;
	--pae-accent: #d95f4b;
	--pae-accent-dark: #a83e2f;
	--pae-radius: 16px;
}

.pae-disclosure {
	margin: 1.5rem 0;
	padding: 0.9rem 1rem;
	border-left: 4px solid var(--pae-accent);
	background: var(--pae-surface);
	color: var(--pae-ink);
	font-size: 0.875rem;
	line-height: 1.55;
}

.pae-product-card {
	margin: clamp(1.75rem, 5vw, 3.5rem) 0;
	padding: clamp(1.25rem, 4vw, 2rem);
	border: 1px solid var(--pae-border);
	border-radius: var(--pae-radius);
	background: #fbfdfc;
	color: var(--pae-ink);
	box-shadow: 0 18px 50px rgba(24, 51, 44, 0.08);
}

.pae-product-card__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1.5rem;
}

.pae-product-card__label {
	margin: 0 0 0.45rem;
	color: var(--pae-accent-dark);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.pae-product-card__title {
	margin: 0;
	font-size: clamp(1.45rem, 3vw, 2rem);
	line-height: 1.12;
}

.pae-product-card__status {
	flex: none;
	padding: 0.42rem 0.72rem;
	border-radius: 999px;
	background: #e1eee7;
	color: #1f5b43;
	font-size: 0.78rem;
	font-weight: 750;
}

.pae-product-card__status--unavailable,
.pae-product-card__status--removed,
.pae-product-card__status--api_error {
	background: #f7e4e1;
	color: #8d3026;
}

.pae-product-card__for {
	margin: 1.25rem 0 0;
	color: var(--pae-muted);
}

.pae-product-card__reasons h4,
.pae-product-card__balance h4 {
	margin-bottom: 0.6rem;
	font-size: 1rem;
}

.pae-product-card ul {
	margin: 0;
	padding-left: 1.15rem;
}

.pae-product-card li + li {
	margin-top: 0.45rem;
}

.pae-product-card__reasons {
	margin-top: 1.4rem;
}

.pae-product-card__balance {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
	margin-top: 1.5rem;
}

.pae-product-card__balance > div {
	padding: 1rem;
	border-radius: 12px;
	background: var(--pae-surface);
}

.pae-product-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--pae-border);
}

.pae-product-card__disclosure,
.pae-comparison__note {
	max-width: 36rem;
	margin: 0;
	color: var(--pae-muted);
	font-size: 0.78rem;
	line-height: 1.45;
}

.pae-amazon-cta,
.pae-comparison a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.75rem 1.1rem;
	border: 2px solid var(--pae-accent-dark);
	border-radius: 999px;
	background: var(--pae-accent);
	color: #fffaf8 !important;
	font-weight: 800;
	line-height: 1;
	text-decoration: none !important;
	white-space: nowrap;
	transition: transform 180ms ease, background-color 180ms ease;
}

.pae-amazon-cta:hover,
.pae-amazon-cta:focus-visible,
.pae-comparison a:hover,
.pae-comparison a:focus-visible {
	background: var(--pae-accent-dark);
	color: #fffaf8 !important;
}

.pae-amazon-cta:focus-visible,
.pae-comparison a:focus-visible {
	outline: 3px solid #18332c;
	outline-offset: 3px;
}

.pae-amazon-cta:active,
.pae-comparison a:active {
	transform: translateY(1px);
}

.pae-product-card__unavailable {
	margin: 0;
	color: #8d3026;
	font-weight: 700;
}

.pae-comparison {
	margin: clamp(2rem, 6vw, 4rem) 0;
}

.pae-comparison h2 {
	margin-bottom: 1rem;
}

.pae-comparison__scroll {
	overflow-x: auto;
	border: 1px solid var(--pae-border);
	border-radius: var(--pae-radius);
	background: #fbfdfc;
}

.pae-comparison__scroll:focus-visible {
	outline: 3px solid var(--pae-accent);
	outline-offset: 3px;
}

.pae-comparison table {
	width: 100%;
	min-width: 720px;
	border-collapse: collapse;
}

.pae-comparison th,
.pae-comparison td {
	padding: 1rem;
	border-bottom: 1px solid var(--pae-border);
	text-align: left;
	vertical-align: middle;
}

.pae-comparison th {
	background: var(--pae-surface);
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.pae-comparison td:first-child span {
	display: block;
	margin-top: 0.25rem;
	color: var(--pae-muted);
	font-size: 0.82rem;
}

.pae-comparison__note {
	margin-top: 0.8rem;
}

.pae-site-disclosure {
	padding: 0.65rem 1rem;
	background: #18332c;
	color: #f4f8f5;
	font-size: 0.75rem;
	line-height: 1.45;
}

.pae-site-disclosure__inner {
	width: min(100%, 1180px);
	margin: 0 auto;
}

.pae-editor-preview {
	padding: 1rem;
	border: 1px solid #c9d8d0;
	border-radius: 12px;
	background: #f4f8f5;
}

@media (max-width: 767px) {
	.pae-product-card__header,
	.pae-product-card__footer {
		align-items: stretch;
		flex-direction: column;
	}

	.pae-product-card__status {
		align-self: flex-start;
	}

	.pae-product-card__balance {
		grid-template-columns: 1fr;
	}

	.pae-amazon-cta {
		width: 100%;
	}

	.pae-comparison__scroll {
		overflow: visible;
		border: 0;
		background: transparent;
	}

	.pae-comparison table,
	.pae-comparison tbody,
	.pae-comparison tr,
	.pae-comparison td {
		display: block;
		width: 100%;
		min-width: 0;
	}

	.pae-comparison thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	.pae-comparison tr {
		margin-bottom: 1rem;
		padding: 0.5rem 1rem;
		border: 1px solid var(--pae-border);
		border-radius: var(--pae-radius);
		background: #fbfdfc;
	}

	.pae-comparison td {
		display: grid;
		grid-template-columns: minmax(6.5rem, 36%) 1fr;
		gap: 0.75rem;
		padding: 0.75rem 0;
		border-bottom: 1px solid var(--pae-border);
	}

	.pae-comparison td:last-child {
		border-bottom: 0;
	}

	.pae-comparison td::before {
		content: attr(data-label);
		color: var(--pae-muted);
		font-size: 0.78rem;
		font-weight: 800;
		letter-spacing: 0.04em;
		text-transform: uppercase;
	}
}

@media (prefers-color-scheme: dark) {
	:root {
		--pae-ink: #e7f0eb;
		--pae-muted: #b4c4bc;
		--pae-surface: #1e332d;
		--pae-border: #3b554d;
		--pae-accent: #ed7b67;
		--pae-accent-dark: #cf5f4b;
	}

	.pae-product-card,
	.pae-comparison__scroll,
	.pae-comparison tr {
		background: #152821;
	}

	.pae-product-card__status {
		background: #244b3a;
		color: #bce8cf;
	}

	.pae-product-card__status--unavailable,
	.pae-product-card__status--removed,
	.pae-product-card__status--api_error {
		background: #552f2b;
		color: #ffd1c9;
	}

	.pae-amazon-cta:focus-visible,
	.pae-comparison a:focus-visible {
		outline-color: #e7f0eb;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pae-amazon-cta,
	.pae-comparison a {
		transition: none;
	}
}

