:root {
	--pna-sv-red: #d62a2a;
	--pna-sv-green: #1f6b1a;
	--pna-sv-muted: #8a8a8a;
	--pna-sv-badge-bg: #ffd84d;
	--pna-sv-badge-text: #5a4300;
}

/* Price block */
.pna-sv {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	line-height: 1.3;
}

.pna-sv__was {
	font-size: 0.8em;
	color: var(--pna-sv-muted);
	font-weight: 400;
}

.pna-sv__was del,
.pna-sv__was del .amount {
	color: var(--pna-sv-muted);
	text-decoration: line-through;
	opacity: 1;
}

.pna-sv__now,
.pna-sv__now ins,
.pna-sv__now .amount {
	color: var(--pna-sv-red);
	font-weight: 700;
	text-decoration: none;
	background: none;
}

.pna-sv__now {
	font-size: 1.05em;
}

.pna-sv__save {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 2px;
	font-size: 0.85em;
	font-weight: 700;
	color: var(--pna-sv-green);
}

.pna-sv__save .amount {
	color: inherit;
}

.pna-sv__icon {
	display: inline-block;
	width: 12px;
	height: 12px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7.5' cy='7.5' r='1.5'/%3E%3Cpath d='M3 6v5.17a2 2 0 0 0 .59 1.42l7.71 7.71a2.41 2.41 0 0 0 3.4 0l5.6-5.6a2.41 2.41 0 0 0 0-3.4l-7.71-7.71A2 2 0 0 0 11.17 3H6a3 3 0 0 0-3 3z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7.5' cy='7.5' r='1.5'/%3E%3Cpath d='M3 6v5.17a2 2 0 0 0 .59 1.42l7.71 7.71a2.41 2.41 0 0 0 3.4 0l5.6-5.6a2.41 2.41 0 0 0 0-3.4l-7.71-7.71A2 2 0 0 0 11.17 3H6a3 3 0 0 0-3 3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Badge — overrides the theme's round "Sale!" flash */
span.onsale.pna-sv-badge,
.woocommerce span.onsale.pna-sv-badge,
.woocommerce ul.products li.product .onsale.pna-sv-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	right: auto;
	z-index: 5;
	min-width: 0;
	min-height: 0;
	width: auto;
	height: auto;
	margin: 0;
	padding: 3px 7px;
	border-radius: 4px;
	background: var(--pna-sv-badge-bg);
	color: var(--pna-sv-badge-text);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.4;
	text-transform: none;
}

/* Custom cards need a positioned parent for the badge */
.pna-sv-card-media {
	position: relative;
}
