/* EU notice on the legal guarantee: the link and the dialog around the official file.
   The notice itself is never restyled (Commission guidelines, 2.1.4). */

.rp-gn {
	margin: 12px 0;
	font-size: 0.95em;
	line-height: 1.5;
}

/* Inside the footer bar (footer-links.css). */
.rp-gn--footer {
	margin: 0;
	padding: 2px 0;
	text-align: center;
}

.rp-gn a {
	text-decoration: underline;
}

.rp-gn-sep {
	margin: 0 4px;
}

/* Product page, checkout, shortcode: a visible box in the EU blue of the notice. */
.rp-gn-box {
	margin: 16px 0;
	max-width: 460px;
}

.rp-gn-box a.rp-gn-open {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	border: 1px solid #003399;
	border-radius: 8px;
	background: #f2f5fc;
	color: #003399;
	text-decoration: none;
	line-height: 1.35;
}

.rp-gn-box a.rp-gn-open:hover,
.rp-gn-box a.rp-gn-open:focus {
	background: #e6ecf8;
	color: #003399;
}

.rp-gn-badge {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: #003399;
	color: #fff;
	font-weight: 700;
	font-size: 13px;
	text-align: center;
}

.rp-gn-text {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	font-size: 14px;
}

.rp-gn-text strong {
	font-size: 15px;
}

.rp-gn-text span {
	text-decoration: underline;
}

.rp-gn-arrow {
	flex: 0 0 auto;
	font-size: 26px;
	line-height: 1;
}

.rp-gn-box a.rp-gn-info {
	display: inline-block;
	margin-top: 6px;
	font-size: 12px;
	color: inherit;
}

.rp-gn-dialog {
	box-sizing: border-box;
	width: min(calc(100vw - 32px), 842px);
	max-height: calc(100vh - 32px);
	padding: 16px 24px 24px;
	border: 0;
	border-radius: 8px;
	background: #fff;
	color: #1d2327;
	overflow: auto;
}

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

.rp-gn-close-wrap {
	display: flex;
	justify-content: flex-end;
	margin: 0 0 8px;
}

.rp-gn-close {
	cursor: pointer;
}

.rp-gn-figure {
	margin: 0 auto;
	max-width: 794px;
}

/* Same proportions, never cropped: only scaled down to fit narrow screens. */
.rp-gn-figure img {
	display: block;
	width: 100%;
	max-width: 794px;
	height: auto;
	margin: 0 auto;
}

.rp-gn-figure figcaption {
	margin-top: 12px;
	font-size: 0.95em;
	text-align: center;
}

.rp-gn-inline {
	margin: 24px 0;
}

@media (max-width: 600px) {
	.rp-gn-dialog {
		padding: 12px;
	}
}
