/* Action Affiliate
 * Zelfde opbouw en maten als de "Lees ook"-strook, in Action-kleuren.
 * Dubbele selectors (.adl.adl) zodat JNews-contentstijlen het blok niet overschrijven. */

/* Lege plek: geen ruimte, maar wel "zichtbaar" voor de IntersectionObserver (display:none zou nooit in beeld komen). */
.adl-slot { display: block; margin: 0; padding: 0; }
.adl-slot:empty { height: 0; }

.adl.adl {
	--adl-ink: #14161B;
	--adl-muted: #6B7080;
	--adl-line: #E8E8EC;
	box-sizing: border-box;
	display: block;
	margin: 24px 0;
	padding: 12px 16px 0;
	background: #fff;
	border: 1px solid var(--adl-line);
	border-left: 5px solid var(--adl-blue, #00158A);
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(20, 22, 27, .04);
	clear: both;
	font-family: inherit;
	line-height: 1.3;
	text-align: left;
}

.adl.adl * { box-sizing: border-box; }

/* Kopregel: "Deals van de week" links, "Alleen online verkrijgbaar" rechts */
.adl.adl .adl__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin: 0 0 2px;
}

.adl.adl .adl__title { font-size: 13px; font-weight: 600; color: var(--adl-blue, #00158A); }
.adl.adl .adl__online { font-size: 12px; font-weight: 500; color: #4A5AA8; white-space: nowrap; }

/* Regel per product; de hele regel is klikbaar */
.adl.adl .adl__row {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 0;
	border-top: 1px solid var(--adl-line);
}

.adl.adl .adl__head + .adl__row { border-top: 0; }

/* Productfoto als achtergrond (geen img), zodat in-image advertenties er niets overheen leggen */
.adl.adl .adl__img {
	flex: 0 0 88px;
	width: 88px;
	height: 60px;
	border-radius: 6px;
	border: 1px solid var(--adl-line);
	background: #fff center / contain no-repeat;
}

.adl.adl .adl__body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.adl.adl a.adl__name,
.adl.adl a.adl__name:visited {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0;
	color: var(--adl-blue, #00158A) !important;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.32;
	text-decoration: none;
	border: 0;
	box-shadow: none;
	background: none;
}

.adl.adl a.adl__name::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
}

.adl.adl a.adl__name:focus-visible { outline: 0; }
.adl.adl a.adl__name:focus-visible::after { outline: 2px solid var(--adl-blue, #00158A); outline-offset: 2px; border-radius: 6px; }
.adl.adl .adl__row:hover a.adl__name { text-decoration: underline; }

.adl.adl .adl__meta { display: flex; align-items: center; gap: 8px; }

.adl.adl .adl__deal {
	display: inline-block;
	background: var(--adl-orange, #FF8204);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	padding: 4px 6px;
	border-radius: 4px;
}

.adl.adl .adl__price {
	color: var(--adl-orange, #FF8204);
	font-size: 18px;
	font-weight: 800;
	line-height: 1;
	white-space: nowrap;
}

.adl.adl .adl__price sup { font-size: .56em; vertical-align: .62em; margin-left: 1px; line-height: 0; position: static; top: auto; }

.adl.adl .adl__go {
	flex: none;
	display: inline-flex;
	color: var(--adl-orange, #FF8204);
	transition: transform .2s ease;
}

.adl.adl .adl__go svg { width: 18px; height: 18px; }
.adl.adl .adl__row:hover .adl__go { transform: translateX(3px); }

/* Onderregel: "Advertentie" + logo */
.adl.adl .adl__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 7px 0 8px;
	border-top: 1px solid var(--adl-line);
	font-size: 11.5px;
	color: var(--adl-muted);
}

.adl.adl .adl__logo { display: block; height: 16px; width: auto; max-width: 90px; margin: 0; border: 0; box-shadow: none; }
.adl.adl .adl__brand { font-weight: 700; color: var(--adl-blue, #00158A); }

@media (max-width: 600px) {
	.adl.adl { padding: 10px 12px 0; }
	.adl.adl .adl__title { font-size: 12px; }
	.adl.adl .adl__online { font-size: 11px; }
	.adl.adl .adl__row { gap: 12px; padding: 9px 0; }
	.adl.adl .adl__img { flex: 0 0 72px; width: 72px; height: 54px; }
	.adl.adl a.adl__name,
	.adl.adl a.adl__name:visited { font-size: 15px; }
	.adl.adl .adl__price { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.adl.adl .adl__go { transition: none; }
}

/* Donkere modus van JNews */
.jnews-dark-mode .adl.adl { --adl-ink: #F2F3F5; --adl-muted: #A9AEB9; --adl-line: #2C2F36; background: #1B1D22; box-shadow: none; }
.jnews-dark-mode .adl.adl a.adl__name { color: #C9D1FF !important; }
.jnews-dark-mode .adl.adl .adl__title, .jnews-dark-mode .adl.adl .adl__online, .jnews-dark-mode .adl.adl .adl__brand { color: #C9D1FF; }
