/* Woodmart Cross-Sells Enhancer – nur Produktseite */


.wdx-product-cross-sells {
	margin-top: 18px;
	padding: 16px;
	border: 1px solid var(--wdx-cross-sells-border, #dddddd);
	border-radius: 6px;
	background: var(--wdx-cross-sells-bg, #f7f7f7);
}

.wdx-product-cross-sells .wdx-cross-sells__title {
	margin: 0 0 11px;
	font-size: 15px;
	line-height: 1.3;
	font-weight: 700;
	color: inherit;
}

.wdx-product-cross-sells .wdx-cross-sells__list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.wdx-cross-sell-item--product {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) 34px;
	align-items: center;
	gap: 10px;
	padding: 7px;
	border: 1px solid #e5e5e5;
	border-radius: 7px;
	background: #fff;
	transition: border-color .18s ease, box-shadow .18s ease;
}

.wdx-cross-sell-item--product:hover {
	border-color: #cfcfcf;
	box-shadow: 0 2px 9px rgba(0, 0, 0, 0.05);
}

.wdx-cross-sell-item--product .wdx-cross-sell-item__image {
	display: block;
	width: 56px;
	height: 56px;
	border-radius: 5px;
	overflow: hidden;
	background: #f7f7f7;
}

.wdx-cross-sell-item--product .wdx-cross-sell-item__image img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: contain;
}

.wdx-cross-sell-item--product .wdx-cross-sell-item__content {
	min-width: 0;
}

.wdx-cross-sell-item--product .wdx-cross-sell-item__name {
	display: block;
	margin: 0 0 3px;
	font-size: 12.5px;
	line-height: 1.3;
	font-weight: 600;
	color: inherit;
	text-decoration: none;
}

.wdx-cross-sell-item--product .wdx-cross-sell-item__name:hover {
	opacity: .78;
}

.wdx-cross-sell-item--product .wdx-cross-sell-item__price {
	font-size: 12px;
	line-height: 1.25;
	font-weight: 700;
}

.wdx-cross-sell-item--product .wdx-cross-sell-item__price del {
	opacity: .55;
	font-weight: 400;
}

.wdx-cross-sell-item--product .wdx-cross-sell-item__price ins {
	text-decoration: none;
}

.wdx-cross-sell-item--product .wdx-cross-sell-item__action {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.wdx-cross-sell-item--product .wdx-cross-sell-item__button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 32px !important;
	min-width: 32px !important;
	height: 32px !important;
	min-height: 32px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--wd-primary-color, #58b83f) !important;
	color: #fff !important;
	font-size: 21px !important;
	line-height: 1 !important;
	font-weight: 500 !important;
	text-decoration: none !important;
	box-shadow: none !important;
}

.wdx-cross-sell-item--product .wdx-cross-sell-item__button:hover {
	filter: brightness(.9);
	color: #fff !important;
}

.wdx-cross-sell-item--product .wdx-cross-sell-item__button.loading {
	opacity: .6;
	pointer-events: none;
}

.wdx-cross-sell-item--product .wdx-cross-sell-item__button.added {
	font-size: 0 !important;
}

.wdx-cross-sell-item--product .wdx-cross-sell-item__button.added::after {
	content: "✓";
	font-size: 15px;
	font-weight: 700;
}

.wdx-cross-sell-item--product .wdx-cross-sell-item__button + .added_to_cart {
	display: none !important;
}

@media (max-width: 480px) {
	.wdx-cross-sell-item--product {
		grid-template-columns: 48px minmax(0, 1fr) 32px;
		gap: 8px;
	}

	.wdx-cross-sell-item--product .wdx-cross-sell-item__image {
		width: 48px;
		height: 48px;
	}

	.wdx-cross-sell-item--product .wdx-cross-sell-item__name {
		font-size: 12px;
	}

	.wdx-cross-sell-item--product .wdx-cross-sell-item__button {
		width: 30px !important;
		min-width: 30px !important;
		height: 30px !important;
		min-height: 30px !important;
	}
}
