/* Reuse the Inter fonts already shipped with both storefronts. */
@font-face {
	font-family: 'Garan Inter';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('/xn/fonts/inter/inter-v12-latin-regular.woff2') format('woff2');
}

@font-face {
	font-family: 'Garan Inter';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('/xn/fonts/inter/inter-v12-latin-700.woff2') format('woff2');
}

.garan-label {
	margin: .75rem 0;
}

.garan-label__trigger,
.garan-label__close {
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.garan-label__trigger {
	display: block;
	width: fit-content;
	max-width: 100%;
	font-size: .875rem;
	text-align: left;
}

.garan-label__trigger:focus-visible,
.garan-label__close:focus-visible {
	outline: 2px solid #034ea2;
	outline-offset: 4px;
}

.garan-label__preview,
.garan-label__full {
	display: block;
	width: 100%;
	height: auto;
	background: #fff;
}

.garan-label__preview {
	width: 200px;
	max-width: 100%;
}

.garan-label--compact {
	margin: 0;
}

.garan-label--compact .garan-label__preview {
	width: 160px;
}

.garan-label__show {
	color: #034ea2;
	text-decoration: underline;
}

.garan-label--compact .garan-label__show {
	display: none;
}

.garan-label__popover {
	position: fixed;
	position-area: bottom span-all;
	justify-self: anchor-center;
	position-try-fallbacks: flip-block, --garan-label-centered;
	inset: auto;
	box-sizing: border-box;
	width: 352px;
	max-width: calc(100vw - 2rem);
	max-height: calc(100dvh - 2rem);
	margin: .4rem 0;
	padding: .75rem;
	overflow: auto;
	border: 1px solid #ccc;
	border-radius: .4rem;
	background: #fff;
	box-shadow: 0 .25rem 1rem rgb(0 0 0 / 20%);
	color: #231f20;
	font-size: 1rem;
	line-height: 1.45;
	text-align: left;
}

@position-try --garan-label-centered {
	position-area: none;
	inset: 0;
	margin: auto;
}

.garan-label__popover:popover-open {
	animation: garan-label-enter .3s ease-in-out;
}

@keyframes garan-label-enter {
	from {
		opacity: 0;
		transform: translateY(4px) scale(.8);
		animation-timing-function: cubic-bezier(.16, 0, .22, 1);
	}
	65% {
		opacity: 1;
		transform: translateY(0) scale(1.04);
	}
	85% {
		transform: translateY(0) scale(.99);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.garan-label__popover:popover-open {
		animation: none;
	}
}

.garan-label__close {
	display: block;
	width: 2rem;
	height: 2rem;
	margin-left: auto;
	font-size: 1.5rem;
	line-height: 1;
}

.garan-label__duration,
.garan-label__identity {
	font-family: 'Garan Inter', Inter, sans-serif;
	fill: #231f20;
}

.garan-label__duration {
	font-weight: 700;
}

.garan-label__duration--preview {
	font-size: 41.56px;
	letter-spacing: -.02em;
}

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

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

.garan-label__information {
	display: inline-block;
	margin-top: .5rem;
	font-size: .875rem;
}
