/**
 * Cookie notice: the notice, Manage cookies and [occ_cookie_choices]. D-448.
 *
 * Self-contained: OCC's shared tokens when they are on the page, plain values
 * otherwise. Accept all and Essential only share one look on purpose
 * (D-448 item 5).
 */

.occ-cn {
	--occ-cn-brand: var(--occ-ui-brand, #a41e32);
	--occ-cn-brand-hover: var(--occ-ui-brand-hover, #7d1626);
	--occ-cn-text: var(--occ-ui-text, #101828);
	--occ-cn-text-2: var(--occ-ui-text-2, #344054);
	--occ-cn-text-3: var(--occ-ui-text-3, #475467);
	--occ-cn-line: var(--occ-ui-line, #e4e7ec);
	--occ-cn-off: #667085;
	--occ-cn-ok: #067647;
	color: var(--occ-cn-text);
	font-size: 15px;
	line-height: 1.5;
}

.occ-cn [hidden],
.occ-cn[hidden] {
	display: none !important;
}

/* ---------- the notice ---------- */

.occ-cn-notice {
	position: fixed;
	left: 24px;
	right: 24px;
	bottom: 24px;
	z-index: 99990;
	display: flex;
	align-items: center;
	gap: 28px;
	max-width: 1240px;
	margin: 0 auto;
	padding: 22px 26px;
	box-sizing: border-box;
	background: #ffffff;
	border: 1px solid var(--occ-cn-line);
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(16, 24, 40, 0.16);
}

.occ-cn-notice__text {
	flex: 1 1 auto;
	min-width: 0;
}

.occ-cn-notice__head {
	display: block;
	margin-bottom: 4px;
	font-size: 16px;
}

.occ-cn-notice p {
	margin: 0;
	font-size: 14px;
	color: var(--occ-cn-text-2);
}

.occ-cn a {
	color: var(--occ-cn-brand);
	text-decoration: underline;
}

.occ-cn a:hover {
	color: var(--occ-cn-brand-hover);
}

/* ---------- buttons ---------- */

.occ-cn-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	flex-shrink: 0;
}

.occ-cn .occ-cn-btn {
	min-height: 44px;
	margin: 0;
	padding: 0 18px;
	border-radius: 8px;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
}

.occ-cn .occ-cn-btn--main {
	background: var(--occ-cn-brand);
	border: 1px solid var(--occ-cn-brand);
	color: #ffffff;
}

.occ-cn .occ-cn-btn--main:hover,
.occ-cn .occ-cn-btn--main:focus-visible {
	background: var(--occ-cn-brand-hover);
	border-color: var(--occ-cn-brand-hover);
	color: #ffffff;
}

.occ-cn .occ-cn-btn--plain {
	background: #ffffff;
	border: 1px solid #d0d5dd;
	color: var(--occ-cn-text);
}

.occ-cn .occ-cn-btn--plain:hover,
.occ-cn .occ-cn-btn--plain:focus-visible {
	background: #f9fafb;
	color: var(--occ-cn-text);
}

.occ-cn .occ-cn-btn:focus-visible,
.occ-cn .occ-cn-more:focus-visible,
.occ-cn .occ-cn-back:focus-visible {
	outline: 2px solid #2f5d95;
	outline-offset: 2px;
}

/* ---------- Manage cookies ---------- */

.occ-cn-overlay {
	position: fixed;
	inset: 0;
	z-index: 99995;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
	background: rgba(16, 24, 40, 0.45);
}

.occ-cn-dialog {
	display: flex;
	flex-direction: column;
	width: 720px;
	max-width: 100%;
	max-height: calc(100vh - 48px);
	background: #ffffff;
	border-radius: 14px;
	box-shadow: 0 20px 48px rgba(16, 24, 40, 0.25);
	outline: none;
}

.occ-cn-dialog__top {
	padding: 22px 28px 8px;
}

.occ-cn-dialog__top h2 {
	margin: 0 0 6px;
	font-family: inherit;
	font-weight: 700;
	letter-spacing: normal;
	text-transform: none;
	font-size: 22px;
	line-height: 1.3;
	color: var(--occ-cn-text);
}

.occ-cn-dialog__top p {
	margin: 0;
	font-size: 14px;
	color: var(--occ-cn-text-3);
}

.occ-cn .occ-cn-back {
	display: none;
	margin: 0 0 6px;
	padding: 6px 0;
	min-height: 36px;
	background: none;
	border: 0;
	color: var(--occ-cn-text-2);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.occ-cn .occ-cn-back::before {
	content: "< ";
}

.occ-cn-dialog__body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 0 28px;
}

.occ-cn-dialog__foot {
	padding: 16px 28px;
	border-top: 1px solid var(--occ-cn-line);
}

.occ-cn-dialog__foot .occ-cn-buttons {
	justify-content: flex-end;
}

/* ---------- kinds ---------- */

.occ-cn-kind {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px 0;
	border-bottom: 1px solid #eaecf0;
}

.occ-cn-kind:last-child {
	border-bottom: 0;
}

.occ-cn-kind__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.occ-cn-kind__head strong {
	font-size: 16px;
}

.occ-cn-kind__text {
	margin: 0;
	font-size: 14px;
	color: var(--occ-cn-text-3);
}

.occ-cn-always {
	font-size: 13px;
	font-weight: 600;
	color: var(--occ-cn-ok);
}

.occ-cn .occ-cn-more {
	align-self: flex-start;
	margin: 0;
	padding: 4px 0;
	background: none;
	border: 0;
	color: var(--occ-cn-brand);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

.occ-cn-list {
	overflow-x: auto;
}

.occ-cn-list table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	font-size: 13px;
	color: var(--occ-cn-text-2);
}

.occ-cn-list th,
.occ-cn-list td {
	padding: 7px 12px 7px 0;
	border: 0;
	border-bottom: 1px solid #f2f4f7;
	background: none;
	text-align: left;
	vertical-align: top;
}

.occ-cn-list th {
	font-weight: 600;
	color: #667085;
	border-bottom-color: #eaecf0;
}

.occ-cn-list code {
	padding: 0;
	background: none;
	font-size: 12px;
	color: var(--occ-cn-text-3);
}

/* ---------- toggles (D-448: toggles, not checkboxes) ---------- */

.occ-cn-toggle {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.occ-cn-toggle input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
}

.occ-cn-toggle__track {
	position: relative;
	flex-shrink: 0;
	width: 44px;
	height: 24px;
	border-radius: 12px;
	background: var(--occ-cn-off);
	transition: background 0.15s;
}

.occ-cn-toggle__track::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 20px;
	height: 20px;
	border-radius: 10px;
	background: #ffffff;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.3);
	transition: transform 0.15s;
}

.occ-cn-toggle input:checked + .occ-cn-toggle__track {
	background: var(--occ-cn-brand);
}

.occ-cn-toggle input:checked + .occ-cn-toggle__track::after {
	transform: translateX(20px);
}

.occ-cn-toggle input:focus-visible + .occ-cn-toggle__track {
	outline: 2px solid #2f5d95;
	outline-offset: 2px;
}

/* ---------- [occ_cookie_choices] ---------- */

.occ-cn-choices {
	margin: 16px 0 24px;
	padding: 4px 24px 20px;
	border: 1px solid var(--occ-cn-line);
	border-radius: 12px;
	background: #ffffff;
}

.occ-cn-choices .occ-cn-buttons {
	justify-content: flex-end;
}

.occ-cn-status {
	margin: 8px 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--occ-cn-ok);
}

.occ-cn-status:empty {
	display: none;
}

/* ---------- phones ---------- */

@media (max-width: 782px) {
	.occ-cn-notice {
		left: 0;
		right: 0;
		bottom: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
		padding: 20px 16px 24px;
		border-radius: 16px 16px 0 0;
		border-width: 1px 0 0;
		box-shadow: 0 -8px 24px rgba(16, 24, 40, 0.14);
	}

	.occ-cn-notice .occ-cn-buttons {
		flex-direction: column-reverse;
	}

	.occ-cn-notice .occ-cn-btn {
		width: 100%;
		min-height: 48px;
	}

	.occ-cn-overlay {
		padding: 0;
		align-items: stretch;
	}

	.occ-cn-dialog {
		width: 100%;
		max-height: none;
		height: 100%;
		border-radius: 0;
	}

	.occ-cn .occ-cn-back {
		display: inline-block;
	}

	.occ-cn-dialog__top,
	.occ-cn-dialog__body,
	.occ-cn-dialog__foot {
		padding-left: 16px;
		padding-right: 16px;
	}

	.occ-cn-dialog__foot .occ-cn-buttons {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.occ-cn-dialog__foot .occ-cn-btn--plain {
		grid-column: 1 / -1;
		order: 3;
	}

	.occ-cn-choices {
		padding: 4px 16px 16px;
	}

	.occ-cn-choices .occ-cn-btn {
		flex: 1 1 100%;
	}
}

html.occ-cn-modal,
html.occ-cn-modal body {
	overflow: hidden;
}
