/* RRM Product Display Extensions - baseline styles.
   Intended as a functional starting point; restyle via your theme to match
   your brand. */

.rrm-pd-filter-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 16px;
	margin-bottom: 24px;
	padding: 12px 16px;
	background: #f7f7f7;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
}

.rrm-pd-filter {
	display: flex;
	flex-direction: column;
	font-size: 13px;
	color: #444;
}

.rrm-pd-filter span {
	margin-bottom: 4px;
	font-weight: 600;
}

.rrm-pd-filter select,
.rrm-pd-filter input[type="number"] {
	padding: 6px 8px;
	border: 1px solid #ccc;
	border-radius: 3px;
}

.rrm-pd-filter--price {
	flex-direction: row;
	align-items: center;
	gap: 6px;
}

.rrm-pd-filter--price span {
	margin-bottom: 0;
	margin-right: 4px;
}

.rrm-pd-filter--price input {
	width: 80px;
}

.rrm-pd-filter--promo {
	flex-direction: row;
	align-items: center;
	gap: 6px;
}

.rrm-pd-filter--promo span {
	margin-bottom: 0;
	font-weight: normal;
}

.rrm-pd-filter-submit {
	padding: 8px 18px;
	border: none;
	border-radius: 3px;
	background: #333;
	color: #fff;
	cursor: pointer;
	font-size: 13px;
}

.rrm-pd-filter-submit:hover {
	background: #111;
}

.rrm-pd-filter-clear {
	font-size: 12px;
	color: #999;
	text-decoration: underline;
	align-self: center;
}

/* --- Active Promotions cards --- */

.rrm-pd-promo-cards {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 20px;
}

.rrm-pd-promo-card {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 10px 16px;
	background: #fff5f5;
	border: 1px solid #d9534f;
	border-radius: 6px;
	text-decoration: none;
	transition: background 0.15s ease, box-shadow 0.15s ease;
}

.rrm-pd-promo-card:hover {
	background: #ffe6e5;
	box-shadow: 0 2px 6px rgba(217, 83, 79, 0.2);
}

.rrm-pd-promo-card--active {
	background: #d9534f;
	border-color: #c9302c;
}

.rrm-pd-promo-card--active .rrm-pd-promo-card-title,
.rrm-pd-promo-card--active .rrm-pd-promo-card-deal {
	color: #fff;
}

.rrm-pd-promo-card-title {
	font-weight: 700;
	font-size: 13px;
	color: #b52b27;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.rrm-pd-promo-card-deal {
	font-size: 12px;
	color: #444;
}

.rrm-pd-promo-card--clear {
	justify-content: center;
	align-items: center;
	background: #f2f2f2;
	border: 1px dashed #bbb;
	color: #666;
	font-size: 12px;
}

.rrm-pd-promo-card--clear:hover {
	background: #e8e8e8;
	box-shadow: none;
}

/* --- Badges --- */

.rrm-pd-badge {
	display: inline-block;
	padding: 3px 8px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	border-radius: 3px;
	color: #fff;
	background: #d9534f; /* generic promo - red */
}

.rrm-pd-badge--specific {
	background: #c9902a; /* concrete deal - amber, distinguishes from generic */
	text-transform: none;
	letter-spacing: normal;
}

.rrm-pd-badge--loop {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 5;
}

.rrm-pd-badge--single {
	display: block;
	margin-bottom: 10px;
}
