/* Product Checkout Upsells. Pas kleuren aan via de CSS-variabelen hieronder (bijv. in je thema). */
.pcu {
	--pcu-accent: #6b3e26;
	--pcu-accent-contrast: #fff;
	--pcu-border: rgba(0, 0, 0, 0.12);
	--pcu-radius: 10px;
	margin: 0 0 24px;
}

.wp-block-woocommerce-cart-items-block .pcu {
	margin-top: 24px;
}

.pcu .wc-block-components-title.pcu__title {
	border: 0;
	border-radius: 0;
	font-size: var(--wp--preset--font-size--medium, 22px);
	font-weight: 500;
	line-height: 1.4;
	margin: 0;
	padding: 0;
	vertical-align: baseline;
	word-break: break-word;
}

.pcu__title + .pcu__list {
	margin-top: 12px;
}

.pcu__list {
	display: grid;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.pcu__item {
	align-items: center;
	border: 1px solid var(--pcu-border);
	border-radius: var(--pcu-radius);
	display: flex;
	gap: 12px;
	margin: 0;
	padding: 10px 12px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pcu__item.is-added {
	border-color: var(--pcu-accent);
	box-shadow: inset 0 0 0 1px var(--pcu-accent);
}

.pcu__img {
	border-radius: 6px;
	flex: none;
	height: 56px;
	object-fit: cover;
	width: 56px;
}

.pcu__img--ph {
	background: var(--pcu-border);
	display: block;
}

.pcu__info {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.pcu__name {
	font-weight: 500;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.pcu__price {
	font-size: 0.875em;
	opacity: 0.85;
}

.pcu__price del {
	opacity: 0.6;
}

.pcu__badge {
	color: var(--pcu-accent);
	font-size: 0.75em;
	font-weight: 600;
}

.pcu button.pcu__btn,
.pcu button.pcu__btn:hover,
.pcu button.pcu__btn:focus,
.pcu button.pcu__btn:active {
	align-items: center;
	background: var(--pcu-accent);
	border: 0;
	border-radius: 999px;
	box-shadow: none;
	color: var(--pcu-accent-contrast);
	cursor: pointer;
	display: inline-flex;
	flex: none;
	font: inherit;
	font-size: 0.875em;
	justify-content: center;
	line-height: 1;
	min-height: 40px;
	min-width: 104px;
	outline: none;
	padding: 0 14px;
	white-space: nowrap;
}

.pcu button.pcu__btn:hover {
	filter: brightness(1.08);
}

/* Toegevoegd: zachte achtergrond in plaats van een rand. */
.pcu .pcu__item.is-added button.pcu__btn {
	background: rgba(0, 0, 0, 0.06);
	color: var(--pcu-accent);
}

.pcu button.pcu__btn:disabled {
	cursor: wait;
	opacity: 0.6;
}

/* Alleen bij toetsenbordnavigatie een focusring (toegankelijkheid). */
.pcu button.pcu__btn:focus-visible {
	outline: 2px solid var(--pcu-accent);
	outline-offset: 2px;
}

.pcu__spinner {
	animation: pcu-spin 0.7s linear infinite;
	border: 2px solid currentColor;
	border-radius: 50%;
	border-right-color: transparent;
	display: inline-block;
	height: 14px;
	width: 14px;
}

@keyframes pcu-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.pcu__spinner {
		animation-duration: 2s;
	}

	.pcu__item {
		transition: none;
	}
}

.pcu__error {
	color: #cc1818;
	font-size: 0.875em;
	margin: 8px 0 0;
}

.pcu__hint {
	font-size: 0.8125em;
	margin: 8px 0 0;
	opacity: 0.7;
}

.pcu__sr {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal;
}

@media (max-width: 480px) {
	.pcu__item {
		gap: 10px;
		padding: 10px;
	}

	.pcu button.pcu__btn {
		min-width: 0;
	}
}
