/* Colours and radius come from WooCommerce → Settings → Products → Product extras. */
.yuna-extras {
	--ype-bg: #FAFAFA;
	--ype-border: #EBEBEB;
	--ype-radius: 0px;
	/* Cards share a row while each can be 150px+; leftovers wrap and widen to fill. */
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 24px 0;
	font-size: 14px;
	line-height: 1.4;
	color: #545454;
}

.yuna-extras__card {
	flex: 1 1 150px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	padding: 18px 20px;
	background: var(--ype-bg);
	border: 1px solid var(--ype-border);
	border-radius: var(--ype-radius);
}

/* Four cards: two by two. */
.yuna-extras--grid .yuna-extras__card {
	flex-basis: calc(50% - 6px);
}

.yuna-extras__icon--g {
	stroke: none;
	width: 24px;
	height: 24px;
}

.yuna-extras__rating .yuna-rating__stars svg {
	width: 14px;
	height: 14px;
}

.yuna-extras[hidden],
.yuna-extras__card[hidden] {
	display: none;
}

.yuna-extras__icon {
	width: 26px;
	height: 26px;
	margin-bottom: 8px;
	fill: none;
	stroke: #000;
	stroke-width: 1.3;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.yuna-extras__label {
	font-size: 13px;
}

.yuna-extras__value {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	color: #000;
	font-size: 16px;
	font-weight: 500;
}

.yuna-extras__value strong,
strong.yuna-extras__value {
	font-weight: 500;
}

.yuna-extras__amount:empty {
	display: none;
}

.yuna-extras__klarna-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 4px;
	background: #FFB3C7;
	color: #000;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
}

a.yuna-extras__card,
a.yuna-extras__card:hover {
	color: inherit;
	text-decoration: none;
}

/* Same gentle lift as the footer trust bar. */
a.yuna-extras__card .yuna-extras__icon {
	transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

a.yuna-extras__card:hover .yuna-extras__icon {
	transform: translateY(-3px) rotate(-6deg);
}

@media (prefers-reduced-motion: reduce) {
	a.yuna-extras__card .yuna-extras__icon {
		transition: none;
	}
}

a.yuna-extras__card .yuna-extras__value {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
