.wp-tunnustused {
	color: inherit;
	--wpt-badge-height: 144px;
	--wpt-open-badge-height: 144px;
}

.wp-tunnustused *,
.wp-tunnustused *::before,
.wp-tunnustused *::after {
	box-sizing: border-box;
}

.wp-tunnustused .wpt-groups {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 24px;
	align-items: start;
	position: relative;
}

.wp-tunnustused .wpt-group {
	flex: 1 1 210px;
	position: relative;
	z-index: 0;
	min-width: 0;
	max-width: 100%;
	padding: 0;
}

.wp-tunnustused .wpt-group__heading,
.wp-tunnustused .wpt-group__trigger {
	display: flex;
	width: 100%;
	min-height: 38px;
	justify-content: space-between;
	gap: 12px;
	align-items: center;
	border: 0;
	border-bottom: 1px solid currentColor;
	padding: 0 0 10px;
	color: inherit;
	background: transparent;
	font: inherit;
	font-weight: 600;
	text-align: left;
}

.wp-tunnustused .wpt-group__trigger {
	cursor: pointer;
}

.wp-tunnustused .wpt-group__trigger:focus-visible {
	border-radius: 2px;
	outline: 3px solid currentColor;
	outline-offset: 3px;
}

/* Keep textless stacks keyboard accessible without an empty heading bar. */
.wp-tunnustused .wpt-group__trigger--hidden:not(:focus-visible) {
	position: absolute;
	width: 1px;
	height: 1px;
	min-height: 0;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.wp-tunnustused .wpt-group__trigger--hidden:focus-visible {
	position: absolute;
	inset: 0 0 auto;
	transform: translateY(-100%);
	background-color: var(--theme-background-color, Canvas);
	z-index: 3;
}

.wp-tunnustused .wpt-group__count {
	flex: none;
	color: color-mix(in srgb, currentColor 65%, transparent);
	font-size: 0.82em;
	font-weight: 400;
	white-space: nowrap;
}

.wp-tunnustused .wpt-badges {
	position: relative;
	display: flex;
	width: 100%;
	height: 184px;
	margin-top: 16px;
	justify-content: center;
	align-items: center;
	padding: 0 12px;
	border-radius: 8px;
	transition: width 0.55s cubic-bezier(.2,.75,.2,1), margin-left 0.55s cubic-bezier(.2,.75,.2,1), background-color 0.2s ease, box-shadow 0.2s ease;
}

.wp-tunnustused .wpt-badge {
	position: absolute;
	top: 10px;
	left: 50%;
	width: auto;
	height: var(--wpt-badge-height);
	max-width: calc(100% - 24px);
	margin: 0;
	background: #fff;
	filter: drop-shadow(0 3px 4px rgb(0 0 0 / 12%));
	transform: translate(var(--wpt-offset-x), var(--wpt-offset-y));
	transition: transform 0.55s cubic-bezier(.2,.75,.2,1), left 0.55s cubic-bezier(.2,.75,.2,1), filter 0.55s ease;
	will-change: left, transform;
	translate: -50% 0;
}

.wp-tunnustused .wpt-badge__image {
	display: block;
	width: auto;
	height: 100%;
	max-width: 100%;
	object-fit: contain;
}

.wp-tunnustused .wpt-group__footer {
	text-align: center;
	margin-top: 12px;
	font-size: 0.82em;
	color: color-mix(in srgb, currentColor 65%, transparent);
	overflow-wrap: anywhere;
}

.wp-tunnustused .wpt-group.is-open {
	z-index: 2;
}

.wp-tunnustused .wpt-group.is-open .wpt-badges {
	width: var(--wpt-panel-width, 100%);
	margin-left: var(--wpt-panel-shift, 0px);
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: thin;
	background-color: var(--theme-background-color, Canvas);
	box-shadow: none;
}

.wp-tunnustused .wpt-group.is-open .wpt-badge {
	position: absolute;
	left: var(--wpt-open-start, 12px);
	width: var(--wpt-badge-width, auto);
	height: var(--wpt-open-badge-height);
	max-width: none;
	filter: none;
	transform: translate(var(--wpt-open-x), 0);
}

@media (max-width: 600px) {
	.wp-tunnustused {
		--wpt-badge-height: 116px;
	}

	.wp-tunnustused .wpt-groups {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}

	.wp-tunnustused .wpt-badges {
		height: 168px;
		margin-top: 14px;
	}

	.wp-tunnustused .wpt-badge {
		top: 8px;
	}

	.wp-tunnustused .wpt-group.is-open .wpt-badge {
		top: 0;
	}
}

.wp-tunnustused .wpt-group--rounded .wpt-badge {
	aspect-ratio: 1 / 1;
	border-radius: 50%;
}

.wp-tunnustused .wpt-group--rounded .wpt-badge .wpt-badge__image {
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	object-fit: cover;
}

.wp-tunnustused .wpt-group--original .wpt-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	aspect-ratio: var(--wpt-image-ratio, auto);
}

.wp-tunnustused .wpt-group--original .wpt-badge .wpt-badge__image {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	aspect-ratio: var(--wpt-image-ratio, auto);
	object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
	.wp-tunnustused .wpt-group,
	.wp-tunnustused .wpt-badges,
	.wp-tunnustused .wpt-badge {
		transition: none;
	}
}
