/*
 * Štítek GARAN = záruka výrobce na trvanlivost (nařízení EU 2025/1960) na detailu produktu.
 * Šablona application/modules/shop/views/blocks/garan.latte, chování public/js/garan.js.
 *
 * Vidět je „vnořený" štítek, celý se ukáže najetím myši (tady), kliknutím nebo ťuknutím (JS).
 * Font Inter předepisují pravidla štítku; hostovaný u nás (OFL, public/fonts/inter/OFL.txt).
 */
@font-face {
	font-family: 'GaranInter';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/inter/inter-latin-ext-400-normal.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'GaranInter';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/inter/inter-latin-400-normal.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* jen číslice a čárka (počet let) */
@font-face {
	font-family: 'GaranInter';
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url('../fonts/inter/inter-latin-800-normal.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.garan {
	position: relative;
	display: inline-block;
	max-width: 100%;
	margin-bottom: 20px;
}

.garan-nested {
	display: block;
	max-width: 100%;
	padding: 0;
	border: 1px solid #d0d0d0;
	background: #fff;
	line-height: 0;
	cursor: pointer;
}

.garan-nested:focus-visible {
	outline: 2px solid #009cdd;
	outline-offset: 2px;
}

.garan-nested svg {
	display: block;
	width: 240px;
	max-width: 100%;
	height: auto;
}

/* padding-top místo mezery: myš musí přejet z vnořeného štítku na celý, aniž by hover zhasl */
.garan-full {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 50;
	padding-top: 8px;
}

.garan.is-open .garan-full {
	display: block;
}

@media (hover: hover) {
	.garan:hover .garan-full {
		display: block;
	}
}

.garan-full-inner {
	width: 380px;
	max-width: calc(100vw - 32px);
	padding: 12px;
	border: 1px solid #d0d0d0;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}

.garan-full svg {
	display: block;
	width: 100%;
	height: auto;
}

.garan-full a {
	display: inline-block;
	margin-top: 8px;
	font-size: 14px;
}

.garan text {
	font-family: 'GaranInter', Inter, Arial, sans-serif;
	fill: #231f20;
}

/* velikosti a prostrkání přebrané z oficiálních SVG (jednotky viewBoxu) */
.garan .garan-years {
	font-weight: 800;
}

.garan-nested .garan-years {
	font-size: 41.56px;
	letter-spacing: -.02em;
}

.garan-full .garan-years {
	font-size: 80px;
	letter-spacing: -.03em;
}

.garan .garan-field {
	font-size: 9px;
	font-weight: 400;
}
