/* Bol.com Affiliate Trefwoorden - inschuifpaneel
   Desktop: van rechts. Mobiel: bottom-sheet van onderen omhoog. */

/* Opvallende tekst-links (niet de pill-link). */
.bolaff-link:not(.bolaff-pill__link) {
	color: #0a5bd3 !important;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: rgba( 10, 91, 211, 0.4 );
	text-decoration-thickness: 2px;
	text-underline-offset: 2px;
}

.bolaff-link {
	cursor: pointer;
}

.bolaff-link:not(.bolaff-pill__link):hover {
	text-decoration-color: #0a5bd3;
}

.bolaff-link:not(.bolaff-pill__link)::after {
	content: "";
	display: inline-block;
	width: 0.82em;
	height: 0.82em;
	margin-left: 0.28em;
	vertical-align: -0.1em;
	background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%230a5bd3'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M6%202%203%206v14a2%202%200%200%200%202%202h14a2%202%200%200%200%202-2V6l-3-4z'/%3E%3Cpath%20d='M3%206h18'/%3E%3Cpath%20d='M16%2010a4%204%200%200%201-8%200'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

.bolaff-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.45);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease;
	z-index: 2147483646;
}

.bolaff-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.bolaff-panel {
	position: fixed;
	top: 0;
	right: 0;
	height: 100%;
	width: 380px;
	max-width: 92vw;
	background: #ffffff;
	box-shadow: -8px 0 30px rgba(0, 0, 0, 0.18);
	transform: translateX(100%);
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
	z-index: 2147483647;
	display: flex;
	flex-direction: column;
	font-family: inherit;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.bolaff-panel.is-open {
	transform: translateX(0);
}

/* Tijdens sleep-gebaar geen transitie (volgt de vinger direct). */
.bolaff-panel.is-dragging {
	transition: none;
}

/* Sleep-greepje: alleen op mobiel zichtbaar. */
.bolaff-panel__handle {
	display: none;
	flex: 0 0 auto;
	width: 44px;
	height: 5px;
	margin: 10px auto 4px;
	border-radius: 999px;
	background: #cbd5e1;
}

.bolaff-panel__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: #0f172a;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
	z-index: 3;
}

.bolaff-panel__close:hover {
	background: #ffffff;
}

.bolaff-panel__media {
	width: 100%;
	aspect-ratio: 4 / 3;
	background: #f1f5f9;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.bolaff-panel__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.bolaff-panel__media--empty {
	aspect-ratio: auto;
	min-height: 8px;
}

.bolaff-panel__body {
	padding: 20px 22px 24px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	flex: 1;
}

.bolaff-panel__label {
	display: inline-block;
	align-self: flex-start;
	font-size: 11px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #64748b;
	background: #f1f5f9;
	padding: 3px 8px;
	border-radius: 4px;
}

.bolaff-panel__title {
	margin: 0;
	font-size: 18px;
	line-height: 1.35;
	font-weight: 700;
	color: #0f172a;
}

.bolaff-panel__cta,
.bolaff-panel__cta:link,
.bolaff-panel__cta:visited,
.bolaff-panel__cta:hover,
.bolaff-panel__cta:focus,
.bolaff-panel__cta:active {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #0a5bd3;
	color: #ffffff !important;
	text-decoration: none !important;
	font-weight: 600;
	font-size: 15px;
	padding: 13px 18px;
	border-radius: 8px;
	transition: background 0.15s ease;
}

.bolaff-panel__cta svg {
	stroke: #ffffff;
}

.bolaff-panel__cta:hover {
	background: #084bb0;
}

.bolaff-panel__cta:focus {
	outline: 3px solid rgba(10, 91, 211, 0.4);
	outline-offset: 2px;
}

.bolaff-panel__cta svg {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
}

/* --- Mobiel: bottom-sheet --- */
@media (max-width: 600px) {
	.bolaff-panel {
		top: auto;
		bottom: 0;
		left: 0;
		right: 0;
		width: 100%;
		max-width: 100%;
		height: auto;
		max-height: 88vh;
		border-radius: 18px 18px 0 0;
		box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.18);
		transform: translateY(100%);
	}

	.bolaff-panel.is-open {
		transform: translateY(0);
	}

	.bolaff-panel__handle {
		display: block;
	}

	.bolaff-panel__media {
		aspect-ratio: 16 / 10;
	}
}

/* --- Zwevende "pill" (uitgelicht product) --- */
.bolaff-pill {
	position: fixed;
	left: 20px;
	bottom: 24px;
	z-index: 2147483640;
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: min(420px, 90vw);
	padding: 9px 16px 9px 10px;
	background: #f2c4a8;
	color: #3a2a20;
	border-radius: 999px;
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
	font-family: inherit;
	transform: translateY(140%);
	opacity: 0;
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.bolaff-pill.is-visible {
	transform: translateY(0);
	opacity: 1;
}

.bolaff-pill__close {
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
	color: #3a2a20;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bolaff-pill__close:hover {
	background: rgba(255, 255, 255, 0.85);
}

.bolaff-pill__link {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #3a2a20;
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
	min-width: 0;
}

.bolaff-pill__link:hover {
	color: #3a2a20;
	text-decoration: none;
}

.bolaff-pill__icon {
	flex: 0 0 auto;
	display: inline-flex;
	color: #5a4636;
}

.bolaff-pill__text {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Mobiel: onderaan en iets lager, over de volle breedte. */
@media (max-width: 600px) {
	.bolaff-pill {
		left: 12px;
		right: 12px;
		bottom: 14px;
		max-width: none;
	}

	.bolaff-pill__text {
		white-space: normal;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bolaff-overlay,
	.bolaff-panel,
	.bolaff-pill {
		transition: none;
	}
}
