/*
 * Bestseller-Beiträge (ab 1.5.0).
 *
 * Marke „Bestseller“ in der Übersicht, Produktbild und Faktentabelle im
 * Einzelbeitrag. Farben lassen sich im Theme über diese Variablen anpassen:
 *   --amzly-bestseller-bg, --amzly-bestseller-fg, --amzly-bestseller-label
 */

/* Marke an der Karte: erstes Element, im Fluss, überlagert also nichts. */
.amzly-bestseller-card::before {
	content: var(--amzly-bestseller-label, "Bestseller");
	display: block;
	width: -moz-fit-content;
	width: fit-content;
	max-width: 100%;
	margin: 0 0 0.6em;
	padding: 0.2em 0.75em;
	border-radius: 999px;
	background: var(--amzly-bestseller-bg, #b45309);
	color: var(--amzly-bestseller-fg, #ffffff);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

/* Dieselbe Marke als Element — für Karten ohne post_class (AAI-Landingpage-Karte). */
.amzly-bestseller-badge {
	display: block;
	width: -moz-fit-content;
	width: fit-content;
	max-width: 100%;
	margin: 0 0 0.6em;
	padding: 0.2em 0.75em;
	border-radius: 999px;
	background: var(--amzly-bestseller-bg, #b45309);
	color: var(--amzly-bestseller-fg, #ffffff);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

/* Produktbild im Einzelbeitrag. */
.amzly-product-image {
	margin: 0 0 1.25em;
	text-align: center;
}

.amzly-product-image a {
	display: inline-block;
}

.amzly-product-image img {
	display: block;
	max-width: min(100%, 500px);
	height: auto;
	margin: 0 auto;
}

/* Tabelle links, großer Amazon-Knopf rechts; auf schmalen Anzeigen untereinander. */
.amzly-product-box {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.5em;
	margin: 1em 0;
}

.amzly-product-box .amzly-product-facts {
	flex: 1 1 320px;
	width: auto;
	margin: 0;
}

.amzly-product-cta {
	flex: 0 0 auto;
	margin-left: auto;
}

.amzly-product-box .amzly-product-cta .amzly-badge__amazon.amzly-badge__amazon {
	gap: 10px;
	padding: 16px 32px;
	border-radius: 12px;
	font-size: 1.15rem;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}

.amzly-product-box .amzly-product-cta .amzly-badge__cart {
	width: 22px;
	height: 22px;
}

@media (max-width: 640px) {
	.amzly-product-cta {
		flex: 1 1 100%;
		margin-left: 0;
	}

	.amzly-product-box .amzly-product-cta .amzly-badge__amazon.amzly-badge__amazon {
		display: flex;
		justify-content: center;
	}
}

/* Faktentabelle. */
.amzly-product-facts {
	width: 100%;
	margin: 1em 0;
	border-collapse: collapse;
}

.amzly-product-facts th,
.amzly-product-facts td {
	padding: 0.55em 0.75em;
	border-bottom: 1px solid rgba(127, 127, 127, 0.25);
	text-align: left;
	vertical-align: top;
}

.amzly-product-facts th {
	width: 38%;
	font-weight: 600;
}

.amzly-product-notice {
	margin: 0.5em 0 0;
	opacity: 0.8;
}

/* „Mehr lesen...“ in der Vergleichstabelle: Text ohne Warenkorb-Symbol. */
.amzly-badge__more .amzly-badge__amazon-text {
	white-space: nowrap;
}
