/* Odznaky se kreslí do rohu karty produktu a v rohu se řadí pod sebe. */
.product {
	position: relative;
}

.epxb-corner {
	position: absolute;
	z-index: 20;
	display: flex;
	flex-direction: column;
	gap: 6px;
	pointer-events: none;
}
.epxb-top-left     { top: 10px;    left: 10px;  align-items: flex-start; }
.epxb-top-right    { top: 10px;    right: 10px; align-items: flex-end; }
.epxb-bottom-left  { bottom: 10px; left: 10px;  align-items: flex-start; }
.epxb-bottom-right { bottom: 10px; right: 10px; align-items: flex-end; }

.epxb-badge {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	background: var(--epxb-bg, #000);
	color: var(--epxb-fg, #fff);
	pointer-events: auto;
	line-height: 1.4;
	white-space: nowrap;
}

/* Tvary */
.epxb-rectangle { border-radius: 0; }
.epxb-rounded   { border-radius: 15px; }
.epxb-circle    { border-radius: 50%; }

/* Textový odznak */
.epxb-type-text.epxb-small  { padding: 3px 8px;  font-size: 12px; }
.epxb-type-text.epxb-medium { padding: 5px 10px; font-size: 14px; }
.epxb-type-text.epxb-large  { padding: 7px 12px; font-size: 18px; }

.epxb-type-text.epxb-circle {
	padding: 0;
	text-align: center;
	font-weight: 600;
	line-height: 1.2;
	white-space: normal;
	overflow: hidden;
}
.epxb-type-text.epxb-circle.epxb-small  { width: 56px;  height: 56px;  font-size: 11px; }
.epxb-type-text.epxb-circle.epxb-medium { width: 80px;  height: 80px;  font-size: 14px; }
.epxb-type-text.epxb-circle.epxb-large  { width: 100px; height: 100px; font-size: 18px; }

/* Ikona: kruh, který se při najetí myší, zaměření nebo dotyku rozbalí do pilulky s popiskem (směrem do karty). */
.epxb-type-icon {
	--epxb-s: 42px;
	--epxb-i: calc(var(--epxb-s) * 0.56);
	--epxb-pad: calc((var(--epxb-s) - var(--epxb-i)) / 2);
	justify-content: flex-start;
	height: var(--epxb-s);
	min-width: var(--epxb-s);
	padding: 0 0 0 var(--epxb-pad);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
	cursor: default;
	outline-offset: 2px;
	transition: border-radius 0.2s ease;
}
.epxb-type-icon.epxb-small { --epxb-s: 32px; }
.epxb-type-icon.epxb-large { --epxb-s: 54px; }
.epxb-type-icon.epxb-circle { border-radius: 999px; }
.epxb-icon { flex: none; width: var(--epxb-i); height: var(--epxb-i); display: block; }

.epxb-top-right .epxb-type-icon,
.epxb-bottom-right .epxb-type-icon {
	flex-direction: row-reverse;
	padding: 0 var(--epxb-pad) 0 0;
}

.epxb-label {
	max-width: 0;
	margin: 0;
	overflow: hidden;
	opacity: 0;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	transition: max-width 0.25s ease, margin 0.25s ease, opacity 0.2s ease;
}
.epxb-type-icon:hover .epxb-label,
.epxb-type-icon:focus .epxb-label {
	max-width: 260px;
	margin: 0 14px 0 8px;
	opacity: 1;
}
.epxb-top-right .epxb-type-icon:hover .epxb-label,
.epxb-bottom-right .epxb-type-icon:hover .epxb-label,
.epxb-top-right .epxb-type-icon:focus .epxb-label,
.epxb-bottom-right .epxb-type-icon:focus .epxb-label { margin: 0 8px 0 14px; }

@media (prefers-reduced-motion: reduce) {
	.epxb-type-icon, .epxb-label { transition: none; }
}
