/* NLWGen SEO — cookie banner: structure and colour only; size, position and
   radius are written per screen size by CookieBanner::css(). */

.nlwgen-consent {
	position: fixed;
	z-index: 99999;
	box-sizing: border-box;
	display: flex;
	gap: 16px 24px;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	padding: 18px 22px;
	font-family: inherit;
	line-height: 1.5;
	box-shadow: 0 6px 32px rgba(0, 0, 0, .28);
}

.nlwgen-consent[hidden] {
	display: none;
}

.nlwgen-consent * {
	box-sizing: border-box;
}

/* Takes the height of its text and no more: what can grow without limit is the
   full text, and that scrolls inside itself. */
.nlwgen-consent__body {
	flex: 1 1 320px;
	min-width: 0;
}

.nlwgen-consent__title {
	margin: 0 0 4px;
	font-size: 1.07em;
	font-weight: 700;
}

.nlwgen-consent__text {
	margin: 0;
	font-size: .93em;
	opacity: .92;
}

.nlwgen-consent__text p {
	margin: 0 0 6px;
}

.nlwgen-consent__text p:last-child {
	margin-bottom: 0;
}

.nlwgen-consent__text a {
	color: inherit;
	text-decoration: underline;
}

/* Opens the long text. Reads as a link so it does not compete with the
   answer buttons, which are the point of the banner. */
.nlwgen-consent__more {
	appearance: none;
	display: inline-block;
	margin-top: 6px;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: .88em;
	color: inherit;
	text-decoration: underline;
	cursor: pointer;
	opacity: .85;
}

.nlwgen-consent__more:hover {
	opacity: 1;
}

.nlwgen-consent__details {
	max-height: 32vh;
	overflow-y: auto;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid currentColor;
	font-size: .88em;
	line-height: 1.6;
	opacity: .92;
}

.nlwgen-consent__details[hidden] {
	display: none;
}

.nlwgen-consent__details p,
.nlwgen-consent__details ul,
.nlwgen-consent__details ol {
	margin: 0 0 10px;
}

.nlwgen-consent__details p:last-child,
.nlwgen-consent__details ul:last-child {
	margin-bottom: 0;
}

.nlwgen-consent__details ul,
.nlwgen-consent__details ol {
	padding-left: 20px;
}

/* The banner is its own little document, so emphasis is spelled out here
   rather than left to whatever the theme happens to set. */
.nlwgen-consent strong,
.nlwgen-consent b {
	font-weight: 700;
}

.nlwgen-consent em,
.nlwgen-consent i {
	font-style: italic;
}

.nlwgen-consent__details li {
	margin-bottom: 4px;
}

.nlwgen-consent__details a {
	color: inherit;
	text-decoration: underline;
}

/* The category switches, shown when the visitor asks to choose. */
.nlwgen-consent__categories {
	flex: 1 1 100%;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	align-items: center;
	margin-top: 4px;
	padding-top: 12px;
	border-top: 1px solid currentColor;
	font-size: .93em;
}

.nlwgen-consent__categories[hidden] {
	display: none;
}

.nlwgen-consent__category {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
}

.nlwgen-consent__category input {
	margin: 0;
	accent-color: currentColor;
}

.nlwgen-consent__category input:disabled + span {
	opacity: .7;
	cursor: default;
}

.nlwgen-consent__categories .nlwgen-consent__button {
	flex: 0 0 auto;
	margin-left: auto;
	padding: 7px 16px;
}

.nlwgen-consent__button--settings {
	background: transparent;
	color: inherit;
	border-color: currentColor;
	opacity: .85;
}

.nlwgen-consent__actions {
	display: flex;
	gap: 10px;
	flex: 0 0 auto;
	flex-wrap: wrap;
	align-items: center;
}

/* Stacked layouts put the buttons on their own line, where they may as well
   share it evenly instead of huddling to one side. */
.nlwgen-consent__actions .nlwgen-consent__button {
	flex: 1 1 auto;
	min-width: 120px;
}

@media (min-width: 601px) {
	.nlwgen-consent__actions .nlwgen-consent__button {
		flex: 0 0 auto;
	}
}

.nlwgen-consent__button {
	appearance: none;
	display: inline-block;
	text-align: center;
	text-decoration: none;
	font: inherit;
	font-size: .93em;
	font-weight: 600;
	padding: 10px 20px;
	border: 1px solid transparent;
	border-radius: 0;
	cursor: pointer;
	transition: opacity .15s ease;
}

.nlwgen-consent__button:hover {
	opacity: .85;
}

.nlwgen-consent__button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* ---- colours ---- */

.nlwgen-consent--dark {
	background: #16181c;
	color: #f2f3f5;
}

.nlwgen-consent--dark .nlwgen-consent__button--accept {
	background: #f2f3f5;
	color: #16181c;
}

/* Refusing is given the same weight as accepting — same size, same filled
   shape, only a quieter colour. A refusal that reads as the lesser option is
   the thing regulators look for. */
.nlwgen-consent--dark .nlwgen-consent__button--decline {
	background: #3a3f47;
	color: #f2f3f5;
	border-color: #3a3f47;
}

.nlwgen-consent--dark .nlwgen-consent__button--link,
.nlwgen-consent--dark .nlwgen-consent__button--settings {
	background: transparent;
	color: #f2f3f5;
	border-color: rgba(242, 243, 245, .45);
}

.nlwgen-consent--light {
	background: #ffffff;
	color: #1d2327;
	border: 1px solid #d6d8db;
}

.nlwgen-consent--light .nlwgen-consent__button--accept {
	background: #1d2327;
	color: #ffffff;
}

.nlwgen-consent--light .nlwgen-consent__button--decline {
	background: #e4e6e8;
	color: #1d2327;
	border-color: #e4e6e8;
}

.nlwgen-consent--light .nlwgen-consent__button--link,
.nlwgen-consent--light .nlwgen-consent__button--settings {
	background: transparent;
	color: #1d2327;
	border-color: #c3c4c7;
}

@media (prefers-reduced-motion: reduce) {
	.nlwgen-consent__button {
		transition: none;
	}
}

/* The way back to the choice: a shortcode anywhere, or a quiet corner button. */
.nlwgen-consent-open {
	appearance: none;
	font: inherit;
	font-size: 13px;
	padding: 7px 14px;
	border: 1px solid currentColor;
	border-radius: 6px;
	background: transparent;
	color: inherit;
	cursor: pointer;
	opacity: .8;
}

.nlwgen-consent-open:hover {
	opacity: 1;
}

.nlwgen-consent-open--corner {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 99998;
	background: #16181c;
	color: #f2f3f5;
	border-color: transparent;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .25);
	opacity: .65;
}

.nlwgen-consent-open--corner:hover,
.nlwgen-consent-open--corner:focus-visible {
	opacity: 1;
}

@media print {
	.nlwgen-consent,
	.nlwgen-consent-open--corner {
		display: none;
	}
}
