/* Cookie preferences, using the CMS's two categories and consent values. */
.cookie-popup {
	box-sizing: border-box;
	inset: 0;
	width: 100%;
	max-width: 512px;
	max-height: 88vh;
	height: 88vh;
	margin: auto auto 0;
	padding: 0;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 14px 14px 0 0;
	background: var(--tru-navy);
	color: #fff;
}

.cookie-popup[open] {
	display: flex;
	flex-direction: column;
}

.cookie-popup::backdrop {
	background: rgba(0, 0, 0, .8);
	backdrop-filter: blur(4px);
}

.cookie-popup__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	flex-shrink: 0;
	padding: 20px 24px;
	border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.cookie-popup__heading .cookie-popup__eyebrow {
	margin: 0;
	color: var(--tru-pink);
	font: 700 10px / 15px "Montserrat", sans-serif;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.cookie-popup__heading .cookie-popup__title {
	margin: 4px 0 0;
	color: #fff;
	font: 900 18px / 28px "Montserrat", sans-serif;
	letter-spacing: -.45px;
	text-transform: uppercase;
}

.cookie-popup__close {
	flex-shrink: 0;
	margin: -4px -4px 0 0;
	padding: 0;
	border: 0;
	background: none;
	color: #9ca3af;
	cursor: pointer;
	transition: color .15s;
}

.cookie-popup__close:hover {
	color: #fff;
}

.cookie-popup__close:focus-visible,
.cookie-popup__switch:focus-visible,
.cookie-popup__action:focus-visible {
	outline: 2px solid var(--tru-pink);
	outline-offset: 4px;
}

.cookie-popup__close svg {
	display: block;
	width: 20px;
	height: 20px;
}

.cookie-popup__content {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding: 20px 24px;
}

.cookie-popup__choices {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cookie-popup__choice {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 16px;
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 10px;
	background: rgba(255, 255, 255, .02);
}

.cookie-popup__choice-copy {
	flex: 1;
	min-width: 0;
}

.cookie-popup__choice-copy h3 {
	margin: 0;
	color: #fff;
	font: 900 14px / 20px "Montserrat", sans-serif;
	letter-spacing: .35px;
	text-transform: uppercase;
}

.cookie-popup__choice-copy p {
	margin: 6px 0 0;
	color: #99a1af;
	font: 400 14px / 1.625 "Source Sans 3", "Source Sans Pro", Arial, sans-serif;
}

.cookie-popup__choice-copy .cookie-popup__always-on {
	margin-left: 8px;
	vertical-align: middle;
	color: #6a7282;
	font: 600 10px / 15px "Source Sans 3", "Source Sans Pro", Arial, sans-serif;
	letter-spacing: 1px;
}

.cookie-popup__choice-copy .cookie-popup__choice-examples {
	margin-top: 8px;
	color: #4a5565;
	font-size: 11px;
}

.cookie-popup__switch {
	position: relative;
	flex: 0 0 44px;
	width: 44px;
	height: 24px;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 999px;
	background: rgba(255, 255, 255, .05);
	cursor: pointer;
	transition: background-color .15s, border-color .15s;
}

.cookie-popup__switch:hover {
	border-color: rgba(255, 255, 255, .4);
}

.cookie-popup__switch-thumb {
	position: absolute;
	top: 50%;
	left: 4px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #99a1af;
	transform: translateY(-50%);
	transition: left .15s, background-color .15s;
}

.cookie-popup__switch[aria-checked="true"] {
	border-color: var(--tru-pink);
	background: var(--tru-pink);
}

.cookie-popup__switch[aria-checked="true"] .cookie-popup__switch-thumb {
	left: calc(100% - 20px);
	background: #fff;
}

.cookie-popup__switch:disabled {
	border-color: rgba(255, 255, 255, .1);
	background: rgba(255, 255, 255, .1);
	cursor: not-allowed;
}

.cookie-popup__footer {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex-shrink: 0;
	padding: 20px 24px;
	border-top: 1px solid rgba(255, 255, 255, .1);
}

.cookie-popup__action {
	display: inline-flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 10px 20px;
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 10px;
	background: none;
	color: #fff;
	font: 700 12px / 16px "Montserrat", sans-serif;
	letter-spacing: .6px;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .15s, border-color .15s;
}

.cookie-popup__action:hover {
	border-color: rgba(255, 255, 255, .5);
	background: rgba(255, 255, 255, .05);
}

.cookie-popup__action--primary {
	border-color: var(--tru-pink);
	background: var(--tru-pink);
}

.cookie-popup__action--primary:hover {
	border-color: var(--tru-pink-light);
	background: var(--tru-pink-light);
}

@media (min-width: 640px) {
	.cookie-popup {
		width: calc(100% - 32px);
		margin: auto;
		border-radius: 10px;
	}

	.cookie-popup__footer {
		flex-direction: row-reverse;
	}
}
