/* AMZ Cards v1.1 — inherits host theme font and text color; per-site tokens set inline.
   Tokens: --amzc-accent, --amzc-accent-contrast, --amzc-soft, --amzc-radius.
   Designed for light-background themes; adjust tokens per site if a dark theme is used. */

.amzc-card,
.amzc-table {
	font-family: inherit;
	color: inherit;
	margin: 1.8em 0;
}

/* ---- Product card ---- */

.amzc-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 14px;
	max-width: 680px;
	margin-left: auto;
	margin-right: auto;
	padding: 26px 28px;
	background: var(--amzc-soft, #fdf3e7);
	border-top: 4px solid var(--amzc-accent, #e47911);
	border-radius: var(--amzc-radius, 10px);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.amzc-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.09);
}

.amzc-media {
	flex: 0 0 auto;
}

.amzc-media img {
	display: block;
	width: 140px;
	height: 140px;
	object-fit: contain;
	background: #ffffff;
	padding: 10px;
	border-radius: calc(var(--amzc-radius, 10px) * 0.7);
	border: 1px solid rgba(0, 0, 0, 0.06);
	box-sizing: content-box;
}

.amzc-body {
	flex: 1 1 auto;
	min-width: 0;
}

.amzc-card .amzc-body {
	flex: none;
	width: 100%;
}

/* ---- Badge ---- */

.amzc-badge {
	display: inline-block;
	margin: 0 0 8px;
	padding: 4px 12px;
	font-size: 0.72em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--amzc-accent, #e47911);
	background: #ffffff;
	border: 1px solid var(--amzc-accent, #e47911);
	border-radius: 999px;
}

/* ---- Title and description ---- */

.amzc-title {
	margin: 0 0 14px;
	font-size: 1.12em;
	font-weight: 700;
	line-height: 1.3;
}

.amzc-title a {
	color: inherit;
	text-decoration: none;
}

.amzc-title a:hover {
	color: var(--amzc-accent, #e47911);
}

.amzc-desc {
	margin: 6px 0 0;
	font-size: 0.9em;
	line-height: 1.5;
	opacity: 0.72;
}

/* ---- CTA button ---- */

.amzc-btn {
	display: inline-block;
	padding: 10px 22px;
	font-size: 0.92em;
	font-weight: 600;
	line-height: 1.2;
	color: var(--amzc-accent-contrast, #ffffff);
	background: var(--amzc-accent, #e47911);
	border-radius: calc(var(--amzc-radius, 10px) * 0.7);
	text-decoration: none;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
	transition: filter 0.15s ease;
}

.amzc-btn::after {
	content: "\2197";
	display: inline-block;
	margin-left: 8px;
	font-size: 0.9em;
	transition: transform 0.15s ease;
}

/* !important: theme a:visited rules (higher specificity) turned the label
   invisible after click — this state must always keep the button contrast. */
.amzc-btn:visited {
	color: var(--amzc-accent-contrast, #ffffff) !important;
}

.amzc-btn:hover {
	filter: brightness(0.88);
	color: var(--amzc-accent-contrast, #ffffff);
}

.amzc-btn:hover::after {
	transform: translate(2px, -2px);
}

.amzc-btn:focus-visible {
	outline: 2px solid var(--amzc-accent, #e47911);
	outline-offset: 2px;
}

/* ---- Comparison table ---- */

.amzc-table-title {
	margin: 0 0 16px;
	font-size: 1.18em;
	font-weight: 700;
	line-height: 1.3;
}

.amzc-table-title::after {
	content: "";
	display: block;
	width: 46px;
	height: 3px;
	margin-top: 8px;
	background: var(--amzc-accent, #e47911);
	border-radius: 2px;
}

.amzc-rows {
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: var(--amzc-radius, 10px);
	overflow: hidden;
}

.amzc-row {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 18px 22px;
	transition: background-color 0.15s ease;
}

.amzc-row + .amzc-row {
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.amzc-row:hover {
	background: rgba(0, 0, 0, 0.02);
}

.amzc-row--hl,
.amzc-row--hl:hover {
	background: var(--amzc-soft, #fdf3e7);
}

.amzc-row--hl .amzc-badge {
	color: var(--amzc-accent-contrast, #ffffff);
	background: var(--amzc-accent, #e47911);
	border-color: var(--amzc-accent, #e47911);
}

.amzc-flags {
	margin: 0 0 12px;
	font-size: 0.8em;
	font-weight: 500;
	opacity: 0.75;
}

.amzc-row-main .amzc-flags {
	margin: 6px 0 0;
}

.amzc-row-media {
	flex: 0 0 auto;
}

.amzc-row-media img {
	display: block;
	width: 76px;
	height: 76px;
	object-fit: contain;
	background: #ffffff;
	padding: 6px;
	border-radius: 8px;
	border: 1px solid rgba(0, 0, 0, 0.06);
	box-sizing: content-box;
}

.amzc-row-main {
	flex: 1 1 auto;
	min-width: 0;
}

.amzc-row-main .amzc-title {
	margin: 0;
	font-size: 1em;
}

.amzc-row-main .amzc-badge {
	margin-bottom: 6px;
}

.amzc-row-cta {
	flex: 0 0 auto;
}

.amzc-row-cta .amzc-btn {
	padding: 9px 18px;
	font-size: 0.88em;
	white-space: nowrap;
}

/* ---- Mobile ---- */

@media (max-width: 640px) {
	.amzc-card {
		gap: 12px;
		padding: 20px;
	}

	.amzc-card .amzc-btn {
		display: block;
		text-align: center;
		padding: 13px 22px;
	}

	.amzc-media img {
		width: 120px;
		height: 120px;
	}

	.amzc-row {
		flex-wrap: wrap;
		gap: 12px;
	}

	.amzc-row-main {
		flex: 1 1 55%;
	}

	.amzc-row-cta {
		flex: 1 1 100%;
	}

	.amzc-row-cta .amzc-btn {
		display: block;
		text-align: center;
	}
}
