/* Component: cookie — consent notice (live: cookieconsent "floating, bottom-left", colours overridden). */

.hg-cookie {
	position: fixed;
	bottom: 1em;
	left: 1em;
	z-index: var(--hg-z-cookie);
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	max-width: 24em;
	padding: 2em 1.8em;
	overflow: hidden;
	font-family: var(--hg-font); /* live: the plugin font is overridden by the theme Roboto rule */
	font-size: var(--hg-fs-base);
	line-height: 1em;
	color: var(--hg-text-inverse);
	background-color: var(--hg-green);
	transition: opacity 1s ease;
}

.hg-cookie--static {
	position: relative;
	bottom: auto;
	left: auto;
}

.hg-cookie__message {
	display: block;
	margin: 0 0 1em;
}

.hg-cookie__text {
	display: block;
	margin: 0 0 1em;
	font-family: inherit;
}

.hg-cookie__actions {
	display: flex;
	align-items: center;
}

.hg-cookie__accept {
	display: block;
	flex: 1 1 auto;
	margin: 0 0 0 0.5em; /* live: second button after a hidden "Decline" */
	padding: 0.4em 0.8em;
	font-family: inherit;
	font-size: 0.9em;
	font-weight: var(--hg-fw-bold);
	line-height: inherit;
	color: #000;
	text-align: center;
	white-space: nowrap;
	background-color: #fff;
	border: 2px solid #fff;
}

.hg-cookie__accept:hover,
.hg-cookie__accept:focus {
	color: var(--hg-link-hover);
	text-decoration: underline;
}

@media screen and (max-width: 414px) and (orientation: portrait), screen and (max-width: 736px) and (orientation: landscape) {
	.hg-cookie {
		right: 0;
		bottom: 0;
		left: 0;
		max-width: none;
	}

	.hg-cookie--static {
		right: auto;
		left: auto;
	}
}

/* Behaviour (assets/js/cookie.js): hidden until the script finds no consent cookie; fades out on accept. */
.hg-cookie:not(.hg-cookie--static):not(.is-visible) {
	display: none;
}

.hg-cookie.is-dismissed {
	opacity: 0;
}

/* "Cookie policy" tab after acceptance (live .cc-revoke.cc-bottom.cc-left): reopens the notice. */
.hg-cookie-revoke {
	position: fixed;
	bottom: 0;
	left: 48px;
	z-index: var(--hg-z-cookie);
	display: flex;
	padding: 8px;
	border: 0;
	border-radius: 8px 8px 0 0;
	font-family: var(--hg-font);
	font-size: var(--hg-fs-base);
	font-weight: var(--hg-fw-light);
	line-height: 1em;
	color: var(--hg-text-inverse);
	background-color: var(--hg-green);
}

.hg-cookie-revoke[hidden] {
	display: none;
}

.hg-cookie-revoke:hover,
.hg-cookie-revoke:focus {
	text-decoration: underline;
}

@media print {
	.hg-cookie,
	.hg-cookie-revoke {
		display: none;
	}
}
