/* Sovedyret Affiliate Feed Manager — Price Comparison Styles */

.safm-compare {
	margin: 1.5em 0;
}

/* Table template */
.safm-compare__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.safm-compare__table thead th {
	background: #f8f9fa;
	padding: 10px 12px;
	text-align: left;
	font-weight: 600;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .03em;
	color: #555;
	border-bottom: 2px solid #dee2e6;
}

.safm-compare__table tbody tr {
	border-bottom: 1px solid #eee;
}

.safm-compare__table tbody tr:hover {
	background: #f8f9fa;
}

.safm-compare__table td {
	padding: 10px 12px;
	vertical-align: middle;
}

.safm-compare__merchant {
	font-weight: 500;
}

.safm-compare__network {
	display: block;
	font-size: 11px;
	color: #888;
}

.safm-compare__price {
	font-weight: 700;
	font-size: 16px;
	white-space: nowrap;
}

.safm-compare__currency {
	font-weight: 400;
	font-size: 12px;
	color: #888;
}

.safm-compare__instock {
	color: #28a745;
	font-size: 12px;
	font-weight: 500;
}

.safm-compare__outofstock {
	color: #dc3545;
	font-size: 12px;
	font-weight: 500;
}

.safm-compare__row--outofstock {
	opacity: 0.6;
}

.safm-compare__btn {
	display: inline-block;
	padding: 6px 16px;
	background: #0073aa;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
	transition: background .2s;
}

.safm-compare__btn:hover {
	background: #005a87;
	color: #fff;
}

/* First row highlight (cheapest) */
.safm-compare__table tbody tr:first-child {
	background: #f0f7f0;
}

.safm-compare__table tbody tr:first-child .safm-compare__price {
	color: #28a745;
}

/* List template */
.safm-compare__list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.safm-compare__list li {
	padding: 8px 0;
	border-bottom: 1px solid #eee;
}

.safm-compare__list li:last-child {
	border-bottom: none;
}

.safm-compare__list a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	text-decoration: none;
	color: inherit;
}

.safm-compare__list a:hover {
	color: #0073aa;
}

.safm-compare__item--outofstock {
	opacity: 0.6;
}

/* Compact template */
.safm-compare--compact {
	font-size: 13px;
	color: #555;
}

.safm-compare__summary {
	font-weight: 500;
}

/* Loading placeholder */
.safm-compare-placeholder {
	min-height: 60px;
	background: #f8f9fa;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #888;
	font-size: 13px;
}

.safm-compare-placeholder::after {
	content: "Henter prissammenligning\2026";
}

/* Responsive */
@media (max-width: 600px) {
	.safm-compare__table thead {
		display: none;
	}

	.safm-compare__table,
	.safm-compare__table tbody,
	.safm-compare__table tr,
	.safm-compare__table td {
		display: block;
	}

	.safm-compare__table tr {
		padding: 12px 0;
		border-bottom: 1px solid #eee;
	}

	.safm-compare__table td {
		padding: 2px 0;
		border: none;
	}

	.safm-compare__action {
		margin-top: 8px;
	}
}
