/**
 * Cookie consent banner, preferences dialog and persistent control.
 *
 * Palette follows the site: #1A2332 (navy), #4175BA (primary blue),
 * #3B7AAC (hover), #F7F8F9 (light surface), #E2E8F0 (borders).
 */

.cpdos-consent-root button {
	font-family: inherit;
}

/* Buttons ---------------------------------------------------------------- */

.cpdos-btn {
	display: inline-block;
	padding: 12px 22px;
	border: 2px solid transparent;
	border-radius: 4px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cpdos-btn--primary {
	background-color: #4175BA;
	border-color: #4175BA;
	color: #ffffff;
}

.cpdos-btn--primary:hover,
.cpdos-btn--primary:focus {
	background-color: #3B7AAC;
	border-color: #3B7AAC;
	color: #ffffff;
}

.cpdos-btn--secondary {
	background-color: transparent;
	border-color: #ffffff;
	color: #ffffff;
}

.cpdos-btn--secondary:hover,
.cpdos-btn--secondary:focus {
	background-color: rgba(255, 255, 255, 0.12);
	color: #ffffff;
}

.cpdos-btn--link {
	background: none;
	border-color: transparent;
	color: #ffffff;
	text-decoration: underline;
	padding-left: 8px;
	padding-right: 8px;
}

.cpdos-btn--link:hover,
.cpdos-btn--link:focus {
	color: #EDF4F9;
}

.cpdos-consent-root :focus-visible,
.cpdos-linkish:focus-visible {
	outline: 3px solid #4175BA;
	outline-offset: 2px;
}

/* Banner ----------------------------------------------------------------- */

.cpdos-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99998;
	background-color: #1A2332;
	color: #F7F8F9;
	box-shadow: 0 -4px 24px rgba(26, 35, 50, 0.25);
}

.cpdos-banner[hidden] {
	display: none;
}

.cpdos-banner__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 22px 24px;
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: center;
	justify-content: space-between;
}

.cpdos-banner__text {
	flex: 1 1 460px;
}

.cpdos-banner__title {
	margin: 0 0 6px;
	font-size: 18px;
	line-height: 1.3;
	color: #ffffff;
	letter-spacing: 0;
}

.cpdos-banner__text p {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: #E2E8F0;
}

.cpdos-banner__text a {
	color: #ffffff;
	text-decoration: underline;
}

.cpdos-banner__actions {
	flex: 0 1 auto;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

/* Preferences dialog ------------------------------------------------------ */

.cpdos-modal {
	position: fixed;
	inset: 0;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.cpdos-modal[hidden] {
	display: none;
}

.cpdos-modal__backdrop {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-color: rgba(26, 35, 50, 0.65);
	border: 0;
	padding: 0;
	cursor: pointer;
}

.cpdos-modal__panel {
	position: relative;
	width: 100%;
	max-width: 640px;
	max-height: 88vh;
	overflow-y: auto;
	background-color: #ffffff;
	color: #1A2332;
	border-radius: 8px;
	padding: 32px;
	box-shadow: 0 18px 48px rgba(26, 35, 50, 0.35);
}

.cpdos-modal__close {
	position: absolute;
	top: 10px;
	right: 12px;
	background: none;
	border: 0;
	font-size: 28px;
	line-height: 1;
	color: #718096;
	cursor: pointer;
}

.cpdos-modal__close:hover {
	color: #1A2332;
}

.cpdos-modal__title {
	margin: 0 0 10px;
	font-size: 24px;
	line-height: 1.25;
	color: #1A2332;
}

.cpdos-modal__intro {
	margin: 0 0 20px;
	font-size: 15px;
	line-height: 1.6;
	color: #4A5568;
}

.cpdos-group {
	border: 1px solid #E2E8F0;
	border-radius: 6px;
	padding: 16px 18px;
	margin-bottom: 14px;
	background-color: #F7F9FB;
}

.cpdos-group__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.cpdos-group__badge {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #23426c;
	background-color: #EDF4F9;
	border-radius: 999px;
	padding: 4px 10px;
}

.cpdos-group__desc {
	margin: 10px 0 0;
	font-size: 14px;
	line-height: 1.6;
	color: #4A5568;
}

.cpdos-toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	cursor: pointer;
}

.cpdos-toggle input[disabled] {
	cursor: not-allowed;
}

.cpdos-toggle input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: #4175BA;
}

.cpdos-toggle__label {
	font-size: 16px;
	font-weight: 600;
	color: #1A2332;
}

.cpdos-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 22px;
}

.cpdos-modal__panel .cpdos-btn--secondary {
	border-color: #4175BA;
	color: #4175BA;
}

.cpdos-modal__panel .cpdos-btn--secondary:hover,
.cpdos-modal__panel .cpdos-btn--secondary:focus {
	background-color: #EDF4F9;
	color: #23426c;
}

.cpdos-modal__foot {
	margin: 18px 0 0;
	font-size: 14px;
	color: #718096;
}

.cpdos-modal__foot a {
	color: #4175BA;
}

.cpdos-modal__status {
	margin: 10px 0 0;
	font-size: 14px;
	color: #4A5568;
	min-height: 1em;
}

body.cpdos-modal-open {
	overflow: hidden;
}

/* Persistent control ------------------------------------------------------ */

.cpdos-tab {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 99997;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	background-color: #1A2332;
	color: #ffffff;
	border: 0;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(26, 35, 50, 0.3);
	opacity: 0.85;
}

.cpdos-tab:hover,
.cpdos-tab:focus {
	opacity: 1;
	background-color: #23426c;
	color: #ffffff;
}

.cpdos-tab[hidden] {
	display: none;
}

/* Footer links ------------------------------------------------------------ */

.cpdos-footer-links {
	margin-top: 8px;
	font-size: 14px;
	line-height: 1.8;
}

.cpdos-footer-links a,
.cpdos-linkish {
	color: inherit;
	text-decoration: underline;
}

.cpdos-footer-links > * + *::before {
	content: "\00b7";
	margin: 0 8px;
	text-decoration: none;
	display: inline-block;
}

.cpdos-linkish {
	background: none;
	border: 0;
	padding: 0;
	font-size: inherit;
	font-family: inherit;
	line-height: inherit;
	cursor: pointer;
}

/* Do Not Sell page -------------------------------------------------------- */

.cpdos-dns {
	border: 1px solid #E2E8F0;
	border-left: 4px solid #4175BA;
	border-radius: 6px;
	background-color: #F7F8F9;
	padding: 20px 22px;
	margin: 24px 0;
}

.cpdos-dns__status {
	margin: 0 0 14px;
	font-size: 16px;
	line-height: 1.6;
	color: #1A2332;
}

.cpdos-dns__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
}

.cpdos-dns .cpdos-btn--secondary {
	border-color: #4175BA;
	color: #4175BA;
}

.cpdos-dns .cpdos-btn--secondary:hover,
.cpdos-dns .cpdos-btn--secondary:focus {
	background-color: #EDF4F9;
	color: #23426c;
}

/* Small screens ----------------------------------------------------------- */

@media (max-width: 700px) {
	.cpdos-banner__inner {
		padding: 18px 18px 20px;
	}

	.cpdos-banner__actions {
		width: 100%;
	}

	.cpdos-banner__actions .cpdos-btn {
		flex: 1 1 auto;
	}

	.cpdos-modal__panel {
		padding: 24px 20px;
	}

	.cpdos-tab {
		font-size: 12px;
		padding: 8px 12px;
	}
}

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