/* NQC cookie consent: banner, preferences dialog and settings button. Matches the site: square corners,
   Montserrat headings, Nunito Sans text, navy and accent blue. */
#nqc-consent { --cc-navy: #142B46; --cc-accent: #2878C8; --cc-text: #5D6676; --cc-line: #E4E9F0; --cc-light: #F5F8FC; font-family: 'Nunito Sans', Arial, sans-serif; }
#nqc-consent [hidden] { display: none !important; }
#nqc-consent *, #nqc-consent *::before, #nqc-consent *::after { box-sizing: border-box; }

/* banner */
.nqc-cc-banner {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 10001;
	width: min(1140px, calc(100% - 48px));
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 26px;
	align-items: center;
	padding: 26px 30px;
	background: #FFFFFF;
	border-top: 4px solid var(--cc-accent);
	box-shadow: 0 24px 60px rgba(20, 43, 70, .22);
	transform: translate(-50%, 30px);
	opacity: 0;
	transition: transform .5s cubic-bezier(.23, 1, .32, 1), opacity .4s linear;
}
.nqc-cc-banner.is-in { transform: translate(-50%, 0); opacity: 1; }
.nqc-cc-icon {
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #5FA8EE 0%, var(--cc-accent) 45%, #315B91 100%);
	color: #FFFFFF;
}
.nqc-cc-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.nqc-cc-title { font-family: 'Montserrat', Arial, sans-serif; font-weight: 800; font-size: 18px; line-height: 1.3; color: var(--cc-navy); margin: 0 0 6px; }
.nqc-cc-text { font-size: 15px; line-height: 25px; color: var(--cc-text); margin: 0; }
.nqc-cc-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* buttons, square and uppercase like the site */
#nqc-consent .nqc-cc-btn {
	font-family: 'Nunito Sans', Arial, sans-serif;
	font-size: 13.5px;
	font-weight: 700;
	line-height: 20px;
	letter-spacing: .03em;
	text-transform: uppercase;
	padding: 12px 22px;
	border: 1px solid var(--cc-navy);
	border-radius: 0;
	background: #FFFFFF;
	color: var(--cc-navy);
	cursor: pointer;
	white-space: nowrap;
	transition: background-color .25s linear, color .25s linear, border-color .25s linear;
}
#nqc-consent .nqc-cc-btn:hover,
#nqc-consent .nqc-cc-btn:focus-visible { background: var(--cc-navy); color: #FFFFFF; }
#nqc-consent .nqc-cc-btn-primary { background: var(--cc-accent); border-color: var(--cc-accent); color: #FFFFFF; }
#nqc-consent .nqc-cc-btn-primary:hover,
#nqc-consent .nqc-cc-btn-primary:focus-visible { background: var(--cc-navy); border-color: var(--cc-navy); color: #FFFFFF; }
#nqc-consent .nqc-cc-btn-link { border-color: transparent; color: var(--cc-accent); padding-left: 10px; padding-right: 10px; }
#nqc-consent .nqc-cc-btn-link:hover,
#nqc-consent .nqc-cc-btn-link:focus-visible { background: var(--cc-light); color: var(--cc-navy); }
#nqc-consent button:focus-visible { outline: 2px solid #5FA8EE; outline-offset: 2px; }
/* Hello Elementor paints every focused or hovered button pink (#c36); keep our own colours */
#nqc-consent .nqc-cc-btn:focus:not(:focus-visible):not(:hover) { background: #FFFFFF; color: var(--cc-navy); }
#nqc-consent .nqc-cc-btn-primary:focus:not(:focus-visible):not(:hover) { background: var(--cc-accent); color: #FFFFFF; }
#nqc-consent .nqc-cc-btn-link:focus:not(:focus-visible):not(:hover) { background: transparent; color: var(--cc-accent); }
#nqc-consent .nqc-cc-close:focus { background: var(--cc-light); }
#nqc-consent .nqc-cc-close:hover,
#nqc-consent .nqc-cc-close:focus-visible { background: var(--cc-navy); }
#nqc-consent .nqc-cc-close:hover span,
#nqc-consent .nqc-cc-close:focus-visible span { background: #FFFFFF; }
#nqc-consent .nqc-cc-fab:focus:not(:focus-visible):not(:hover) { background: #FFFFFF; color: var(--cc-accent); }
/* Hello also gives every [type=button] a pink border and text; the id prefix outranks it */
#nqc-consent .nqc-cc-fab { border: 0; color: var(--cc-accent); background: #FFFFFF; }
#nqc-consent .nqc-cc-fab:hover,
#nqc-consent .nqc-cc-fab:focus-visible { background: var(--cc-accent); color: #FFFFFF; }
#nqc-consent .nqc-cc-close { border: 0; }

/* preferences dialog */
.nqc-cc-modal { position: fixed; inset: 0; z-index: 10002; display: flex; align-items: center; justify-content: center; padding: 20px; }
.nqc-cc-overlay { position: absolute; inset: 0; background: rgba(15, 34, 56, .62); opacity: 0; transition: opacity .3s linear; }
.nqc-cc-dialog {
	position: relative;
	width: min(620px, 100%);
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	background: #FFFFFF;
	border-top: 4px solid var(--cc-accent);
	box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
	transform: translateY(24px);
	opacity: 0;
	transition: transform .45s cubic-bezier(.23, 1, .32, 1), opacity .3s linear;
}
.nqc-cc-modal.is-in .nqc-cc-overlay { opacity: 1; }
.nqc-cc-modal.is-in .nqc-cc-dialog { transform: none; opacity: 1; }
.nqc-cc-head { padding: 30px 34px 10px; }
.nqc-cc-sub { font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--cc-accent); margin: 0 0 4px; }
.nqc-cc-h { font-family: 'Montserrat', Arial, sans-serif; font-weight: 800; font-size: 24px; line-height: 1.3; color: var(--cc-navy); margin: 0 0 10px; }
.nqc-cc-close {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: var(--cc-light);
	cursor: pointer;
}
.nqc-cc-close span { position: absolute; left: 10px; top: 17px; width: 16px; height: 2px; background: var(--cc-navy); }
.nqc-cc-close span:first-child { transform: rotate(45deg); }
.nqc-cc-close span:last-child { transform: rotate(-45deg); }
.nqc-cc-close:hover { background: var(--cc-navy); }
.nqc-cc-close:hover span { background: #FFFFFF; }
.nqc-cc-list { list-style: none; margin: 0; padding: 6px 34px 4px; }
.nqc-cc-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: start; padding: 18px 0; border-top: 1px solid var(--cc-line); }
.nqc-cc-item h3 { font-family: 'Montserrat', Arial, sans-serif; font-weight: 700; font-size: 16px; line-height: 1.4; color: var(--cc-navy); margin: 0 0 4px; }
.nqc-cc-item p { font-size: 14.5px; line-height: 23px; color: var(--cc-text); margin: 0; }
.nqc-cc-always { font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--cc-accent); white-space: nowrap; padding-top: 2px; }

/* switch */
.nqc-cc-switch { position: relative; display: inline-block; width: 50px; height: 28px; flex: 0 0 auto; }
.nqc-cc-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.nqc-cc-switch span { position: absolute; inset: 0; background: #CBD5E1; border-radius: 28px; transition: background-color .25s linear; }
.nqc-cc-switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; background: #FFFFFF; border-radius: 50%; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .25s cubic-bezier(.23, 1, .32, 1); }
.nqc-cc-switch input:checked + span { background: var(--cc-accent); }
.nqc-cc-switch input:checked + span::after { transform: translateX(22px); }
.nqc-cc-switch input:focus-visible + span { outline: 2px solid #5FA8EE; outline-offset: 2px; }
.nqc-cc-foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; padding: 18px 34px 30px; border-top: 1px solid var(--cc-line); background: var(--cc-light); }

/* settings button, shown after a choice is saved */
.nqc-cc-fab {
	position: fixed;
	left: 24px;
	bottom: 24px;
	z-index: 998;
	width: 46px;
	height: 46px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 0;
	background: #FFFFFF;
	color: var(--cc-accent);
	box-shadow: 0 0 30px rgba(0, 0, 0, .12);
	cursor: pointer;
	transition: color .25s linear, background-color .25s linear, transform .25s linear;
}
.nqc-cc-fab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.nqc-cc-fab:hover,
.nqc-cc-fab:focus-visible { background: var(--cc-accent); color: #FFFFFF; transform: translateY(-3px); }
.nqc-cc-footlink { color: #8FC1F2 !important; text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; }
.nqc-cc-footlink:hover { color: #FFFFFF !important; }
html.nqc-cc-lock { overflow: hidden; }

@media (max-width: 1024px) {
	.nqc-cc-banner { grid-template-columns: auto minmax(0, 1fr); }
	.nqc-cc-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 767px) {
	.nqc-cc-banner { bottom: 12px; width: calc(100% - 24px); grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 20px 18px; }
	.nqc-cc-icon { display: none; }
	.nqc-cc-title { font-size: 17px; }
	.nqc-cc-text { font-size: 14px; line-height: 22px; }
	.nqc-cc-actions { display: grid; grid-template-columns: 1fr 1fr; }
	.nqc-cc-actions .nqc-cc-btn-primary { grid-column: 1 / -1; grid-row: 1; }
	#nqc-consent .nqc-cc-btn { padding: 12px 10px; text-align: center; }
	.nqc-cc-modal { padding: 10px; align-items: flex-end; }
	.nqc-cc-dialog { max-height: calc(100vh - 20px); }
	.nqc-cc-head { padding: 26px 20px 6px; }
	.nqc-cc-h { font-size: 21px; padding-right: 40px; }
	.nqc-cc-list { padding: 4px 20px; }
	.nqc-cc-foot { padding: 16px 20px 22px; display: grid; grid-template-columns: 1fr 1fr; }
	.nqc-cc-foot .nqc-cc-btn-primary { grid-column: 1 / -1; }
	.nqc-cc-fab { left: 16px; bottom: 16px; width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
	.nqc-cc-banner, .nqc-cc-dialog, .nqc-cc-overlay { transition: none; }
}
