/**
 * FPS Product Pricing — offer list styles
 * Matches the existing dark-theme design tokens from product-grid.css.
 */

/* ── Container ── */
.fps-product-pricing {
	font-family: inherit;
	margin: 12px 0;
}

.fps-product-pricing__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* ── Individual offer row ── */
.fps-product-pricing__item {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #2c2c2c;
	border: 1px solid #444;
	border-radius: 6px;
	padding: 8px 12px;
	transition: border-color 0.15s ease;
}

.fps-product-pricing__item:hover {
	border-color: #007cba;
}

/* ── Merchant name ── */
.fps-product-pricing__merchant {
	flex: 1 1 auto;
	font-size: 13px;
	font-weight: 600;
	color: #e8e8e8;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ── Price ── */
.fps-product-pricing__price {
	flex: 0 0 auto;
	font-size: 15px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: #e8e8e8;
	white-space: nowrap;
}

/* ── Stock badge ── */
.fps-product-pricing__stock {
	flex: 0 0 auto;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 2px 6px;
	border-radius: 3px;
}

.fps-product-pricing__stock--in {
	background: rgba(63, 185, 80, 0.15);
	color: #3fb950;
}

.fps-product-pricing__stock--out {
	background: rgba(248, 81, 73, 0.15);
	color: #f85149;
}

.fps-product-pricing__stock--unknown {
	background: rgba(154, 154, 154, 0.15);
	color: #9a9a9a;
}

/* ── Buy button ── */
.fps-product-pricing__buy {
	flex: 0 0 auto;
	display: inline-block;
	padding: 5px 12px;
	background: #007cba;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	border-radius: 4px;
	white-space: nowrap;
	transition: background 0.15s ease;
}

.fps-product-pricing__buy:hover,
.fps-product-pricing__buy:focus {
	background: #005a87;
	color: #fff;
	text-decoration: none;
}

/* Screen-reader only helper */
.fps-product-pricing__buy .fps-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

/* ── "No offers" notice ── */
.fps-product-pricing__none {
	font-size: 13px;
	color: #9a9a9a;
	margin: 8px 0;
}

/* ── More offers toggle ── */
.fps-product-pricing__more-toggle {
	background: none;
	border: none;
	padding: 0;
	margin-top: 4px;
	font-size: 12px;
	color: #007cba;
	cursor: pointer;
	text-decoration: underline;
}

.fps-product-pricing__more-toggle:hover {
	color: #005a87;
}

/* ── Inline use inside ProductGrid cards ── */
.fps-product-grid__card .fps-product-pricing {
	margin: 8px 0 0;
	padding: 0 16px 14px;
}

.fps-product-grid__card .fps-product-pricing__item {
	padding: 6px 8px;
	background: #333;
}

/* ── Responsive ── */
@media (max-width: 480px) {
	.fps-product-pricing__stock {
		display: none;
	}

	.fps-product-pricing__item {
		flex-wrap: wrap;
	}
}
