/* Awin Partner Manager – voorkant. Kleuren volgen het thema via currentColor/inherit. */
.apm-widget {
	width: var(--apm-width, 260px);
	max-width: 100%;
	box-sizing: border-box;
	margin-inline: auto;
}
.apm-widget *,
.apm-widget *::before,
.apm-widget *::after { box-sizing: border-box; }

.apm-widget .apm-title {
	margin: 0 0 .6em;
	font-weight: 700;
	font-size: 1rem;
}

.apm-items {
	display: flex;
	flex-direction: column;
	gap: 12px;
	transition: opacity .3s ease;
}
.apm-items.apm-fade { opacity: 0; }

.apm-layout-row .apm-items {
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
}
.apm-layout-row .apm-item { flex: 1 1 160px; max-width: 260px; }

.apm-layout-grid .apm-items {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.apm-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px;
	border: 1px solid rgba(0, 0, 0, .08);
	border-radius: 10px;
	background: #fff;
	color: inherit;
	text-decoration: none;
	transition: box-shadow .2s ease, transform .2s ease;
}
.apm-item:hover,
.apm-item:focus-visible {
	box-shadow: 0 4px 14px rgba(0, 0, 0, .1);
	transform: translateY(-1px);
	text-decoration: none;
}

.apm-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: var(--apm-logo-h, 80px);
}
.apm-logo img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.apm-name {
	font-size: .9rem;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	overflow-wrap: anywhere;
}

.apm-disclosure {
	display: block;
	margin-top: 6px;
	font-size: .7rem;
	opacity: .6;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: .05em;
}

.apm-empty {
	padding: 10px;
	border: 1px dashed #c3c4c7;
	font-size: .85rem;
}

/* ---------- Partnerpagina ---------- */
.apm-directory { margin: 1.5em 0; }
.apm-directory [hidden] { display: none !important; }

.apm-dir-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	margin-bottom: 1.25em;
}
.apm-dir-label {
	flex-basis: 100%;
	font-weight: 600;
}
.apm-dir-search {
	flex: 1 1 260px;
	max-width: 480px;
	padding: .65em .9em;
	font: inherit;
	border: 1px solid rgba(0, 0, 0, .2);
	border-radius: 8px;
	background: #fff;
}
.apm-dir-search:focus { outline: 2px solid currentColor; outline-offset: 1px; }
.apm-dir-count { font-size: .9rem; opacity: .7; }

.apm-dir-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(145px, 100%), 1fr));
	gap: 14px;
}
.apm-display-name .apm-dir-list { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.apm-dir-item {
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}
.apm-dir-item::before { content: none; }
.apm-dir-item .apm-item { flex: 1 1 auto; --apm-logo-h: 64px; }
.apm-dir-desc {
	display: block;
	margin: -2px 0 0;
	font-size: .82rem;
	line-height: 1.4;
	opacity: .8;
	text-align: center;
}
.apm-dir-empty,
.apm-dir-none { margin: 1em 0; font-style: italic; }
.apm-dir-note {
	margin-top: 1.5em;
	font-size: .8rem;
	opacity: .65;
}

@media (prefers-reduced-motion: reduce) {
	.apm-items, .apm-item { transition: none; }
	.apm-item:hover { transform: none; }
}
