/**
 * EU Guarantee Notice and GARAN Label for WordPress and WooCommerce, front end: the notice, the
 * dialogs and the screen reader text, on every page that shows the notice. The label's own rules
 * and its font are in frontend.css, loaded only where a label is shown.
 * The notice artwork is © European Union, source: European Commission.
 */

.ncgaran-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Dialogs, for the label and the notice. */
.ncgaran-dialog {
	position: fixed;
	box-sizing: border-box;
	width: auto;
	max-width: min(92vw, 420px);
	max-height: 92vh;
	padding: 2.5em 1.25em 1.25em;
	border: 0;
	border-radius: 4px;
	background: #fff;
	color: #1e1e1e;
	text-align: left;
	overflow: auto;
}

.ncgaran-dialog--notice {
	max-width: min(92vw, 640px);
}

.ncgaran-dialog__title {
	margin: 0 2em 0.75em 0;
	padding: 0;
	color: #1e1e1e;
	font-size: 1.125em;
	font-weight: 600;
	line-height: 1.3;
}

.ncgaran-dialog__title:focus,
.ncgaran-label__full:focus {
	outline: none;
}

.ncgaran-dialog::backdrop {
	background: rgba(0, 0, 0, 0.6);
}

.ncgaran-dialog a {
	color: #034ea2;
}

.ncgaran-dialog__close {
	position: absolute;
	top: 0.25em;
	right: 0.25em;
	width: 2em;
	height: 2em;
	padding: 0;
	border: 0;
	background: none;
	color: #1e1e1e;
	font-size: 1.5em;
	line-height: 1;
	cursor: pointer;
}

.ncgaran-label__qr:focus-visible,
.ncgaran-notice__qr:focus-visible {
	outline: 3px solid #034ea2;
	outline-offset: 2px;
}

.ncgaran-dialog__close:focus-visible {
	outline: 2px solid currentColor;
}

/* The notice. */
.ncgaran-notice {
	margin: 0.5em 0;
}

.ncgaran-notice__link {
	text-decoration: underline;
	cursor: pointer;
}

/* The shield before the link: the notice's own symbol, the height of the text. */
.ncgaran-notice__link img.ncgaran-notice__icon {
	display: inline-block;
	width: auto;
	height: 1.25em;
	max-width: none;
	margin: 0 0.35em 0 0;
	padding: 0;
	border: 0;
	box-shadow: none;
	vertical-align: -0.25em;
}

.ncgaran-notice__figure {
	margin: 0;
}

/* Swaps the notice image for its official text, and back. */
.ncgaran-notice__toggle {
	display: inline-block;
	margin: 0 0 0.75em;
	padding: 0.4em 0.9em;
	border: 1px solid #034ea2;
	border-radius: 3px;
	background: #fff;
	color: #034ea2;
	font: inherit;
	font-size: 0.875em;
	line-height: 1.4;
	cursor: pointer;
}

.ncgaran-notice__toggle:hover {
	background: #034ea2;
	color: #fff;
}

.ncgaran-notice__toggle:focus-visible {
	outline: 3px solid #034ea2;
	outline-offset: 2px;
}

.ncgaran-notice__art[hidden],
.ncgaran-notice-text[hidden] {
	display: none;
}

/* The notice as text: the Commission's wording, laid out as a readable page. */
.ncgaran-notice-text {
	max-width: 595px;
	color: #1e1e1e;
	font-size: 1rem;
	line-height: 1.55;
}

.ncgaran-notice-text h3 {
	margin: 0 0 0.75em;
	font-weight: 700;
	color: #034ea2;
	font-size: 1.35em;
	line-height: 1.2;
}

.ncgaran-notice-text h4 {
	margin: 1.25em 0 0.5em;
	font-weight: 700;
	font-size: 1.1em;
	line-height: 1.3;
}

.ncgaran-notice-text p,
.ncgaran-notice-text ul,
.ncgaran-notice-text ol {
	margin: 0 0 0.75em;
}

.ncgaran-notice-text ul,
.ncgaran-notice-text ol {
	padding-left: 1.5em;
}

.ncgaran-notice-text__qr img {
	display: block;
	width: 130px;
	max-width: none;
	height: 130px;
	aspect-ratio: 1 / 1;
	background: #fff;
}

.ncgaran-notice-text__qr a:focus-visible {
	outline: 3px solid #034ea2;
	outline-offset: 2px;
}

.ncgaran-notice-text__lead {
	padding: 0.6em 0.8em;
	border: 1px solid #034ea2;
	color: #034ea2;
	font-size: 1.1em;
}

.ncgaran-notice__art {
	position: relative;
	width: 595px;
	max-width: 100%;
	aspect-ratio: 595.28 / 841.89;
}

.ncgaran-notice__art img {
	display: block;
	width: 100%;
	height: auto;
	background: #fff;
}

/*
 * The notice's QR code and the address under it, as a link. The area differs slightly per
 * language, so each is measured from its own file: the grey box's width, from just above the
 * QR code to just below the address, in percent of the 595.28 x 841.89 viewBox.
 */
.ncgaran-notice__qr {
	position: absolute;
}

.ncgaran-notice__art--bg .ncgaran-notice__qr { left: 60.13%; top: 43.08%; width: 33.81%; height: 20.31%; }
.ncgaran-notice__art--cs .ncgaran-notice__qr { left: 60.13%; top: 43.35%; width: 33.81%; height: 20.14%; }
.ncgaran-notice__art--da .ncgaran-notice__qr { left: 59.52%; top: 38.77%; width: 34.43%; height: 21.15%; }
.ncgaran-notice__art--de .ncgaran-notice__qr { left: 60.13%; top: 46.35%; width: 33.81%; height: 20.34%; }
.ncgaran-notice__art--el .ncgaran-notice__qr { left: 60.13%; top: 43.53%; width: 33.81%; height: 20.25%; }
.ncgaran-notice__art--en .ncgaran-notice__qr { left: 59.84%; top: 43.74%; width: 34.11%; height: 19.20%; }
.ncgaran-notice__art--es .ncgaran-notice__qr { left: 59.96%; top: 43.84%; width: 33.81%; height: 20.30%; }
.ncgaran-notice__art--et .ncgaran-notice__qr { left: 59.52%; top: 40.98%; width: 34.43%; height: 21.48%; }
.ncgaran-notice__art--fi .ncgaran-notice__qr { left: 59.52%; top: 42.54%; width: 34.43%; height: 20.37%; }
.ncgaran-notice__art--fr .ncgaran-notice__qr { left: 59.96%; top: 44.05%; width: 33.81%; height: 20.55%; }
.ncgaran-notice__art--ga .ncgaran-notice__qr { left: 59.96%; top: 43.87%; width: 33.81%; height: 20.15%; }
.ncgaran-notice__art--hr .ncgaran-notice__qr { left: 59.96%; top: 42.20%; width: 33.81%; height: 20.04%; }
.ncgaran-notice__art--hu .ncgaran-notice__qr { left: 60.13%; top: 43.90%; width: 33.81%; height: 19.32%; }
.ncgaran-notice__art--it .ncgaran-notice__qr { left: 59.96%; top: 43.85%; width: 33.81%; height: 20.74%; }
.ncgaran-notice__art--lt .ncgaran-notice__qr { left: 59.52%; top: 43.21%; width: 34.43%; height: 19.49%; }
.ncgaran-notice__art--lv .ncgaran-notice__qr { left: 59.52%; top: 41.54%; width: 34.43%; height: 19.38%; }
.ncgaran-notice__art--mt .ncgaran-notice__qr { left: 59.96%; top: 40.44%; width: 33.81%; height: 21.68%; }
.ncgaran-notice__art--nl .ncgaran-notice__qr { left: 59.96%; top: 44.24%; width: 33.81%; height: 20.69%; }
.ncgaran-notice__art--pl .ncgaran-notice__qr { left: 60.13%; top: 43.75%; width: 33.81%; height: 19.76%; }
.ncgaran-notice__art--pt .ncgaran-notice__qr { left: 59.96%; top: 42.58%; width: 34.96%; height: 20.57%; }
.ncgaran-notice__art--ro .ncgaran-notice__qr { left: 59.96%; top: 45.58%; width: 33.81%; height: 19.20%; }
.ncgaran-notice__art--sk .ncgaran-notice__qr { left: 60.13%; top: 43.34%; width: 33.81%; height: 20.15%; }
.ncgaran-notice__art--sl .ncgaran-notice__qr { left: 59.96%; top: 40.70%; width: 33.81%; height: 21.42%; }
.ncgaran-notice__art--sv .ncgaran-notice__qr { left: 59.52%; top: 40.53%; width: 34.43%; height: 20.25%; }

.ncgaran-notice__figure figcaption {
	margin-top: 0.5em;
	font-size: 0.875em;
}

.ncgaran-notice-footer {
	padding: 1em;
	font-size: 0.875em;
	text-align: center;
}

.ncgaran-notice-checkout {
	margin: 1em 0;
}

.ncgaran-notice-cart {
	margin: 1em 0;
}
