/* Shoplinks front end. Override the custom properties in your theme to restyle. */
.aai-shopbox {
	--aai-accent: #f59e0b;
	--aai-accent-text: #1f2937;
	--aai-border: rgba(0, 0, 0, 0.12);
	--aai-muted: rgba(0, 0, 0, 0.6);
	margin: 1.5em 0;
	padding: 1em 1.25em;
	border: 1px solid var(--aai-border);
	border-left: 4px solid var(--aai-accent);
	border-radius: 6px;
}

.aai-shopbox p {
	margin: 0;
}

.aai-shopbox__title {
	font-weight: 700;
	margin-bottom: 0.6em !important;
}

.aai-shopbox__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
}

.aai-shopbox a.aai-shopbox__btn {
	display: inline-block;
	padding: 0.45em 1em;
	border-radius: 4px;
	background: var(--aai-accent);
	color: var(--aai-accent-text);
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	box-shadow: none;
}

.aai-shopbox a.aai-shopbox__btn:hover,
.aai-shopbox a.aai-shopbox__btn:focus {
	filter: brightness(0.92);
	text-decoration: none;
}

.aai-shopbox__meta,
.aai-shopbox__note {
	margin-top: 0.75em !important;
	font-size: 0.85em;
	color: var(--aai-muted);
}

.aai-shopbox__switch {
	width: auto;
	font: inherit;
	font-size: 1em;
	margin-left: 0.25em;
	padding: 0.1em 0.25em;
	max-width: 100%;
}

/* Link groups written as a text with links */
.aai-linkgroup--text > :first-child {
	margin-top: 0;
}

.aai-linkgroup--text > :last-child {
	margin-bottom: 0;
}

.aai-linkgroup--framed {
	--aai-accent: #f59e0b;
	--aai-border: rgba(0, 0, 0, 0.12);
	margin: 1.5em 0;
	padding: 1em 1.25em;
	border: 1px solid var(--aai-border);
	border-left: 4px solid var(--aai-accent);
	border-radius: 6px;
}

/* Link groups ("European deals") shown as a list */
.aai-linkgroup--list {
	margin: 1.5em 0;
}

.aai-linkgroup--list .aai-linkgroup__title {
	font-weight: 700;
	margin: 0 0 0.4em;
}

.aai-linkgroup--list ul {
	margin: 0;
}

/* Images per region and text per country: only the variant made for the visitor's country is shown (a theme cannot
   show the others). The second line: the extra div WordPress puts into a Group block in classic themes. */
.aai-regional > [hidden],
.aai-regional > .wp-block-group__inner-container > [hidden] {
	display: none !important;
}
