/*
 * Easy Cookie Compliance: banner and choices panel.
 * All the choice buttons share one look (equal prominence of accepting and rejecting); the X is as visible.
 */
.easycc {
	--easycc-accent: #1d1d1c;
	--easycc-text: #1d1d1c;
	--easycc-background: #ffffff;
	--easycc-muted: #5a5a5a;
	position: fixed;
	z-index: 2147483000;
	right: 16px;
	bottom: 16px;
	left: 16px;
	display: flex;
	justify-content: center;
	pointer-events: none;
	font-size: 15px;
	line-height: 1.5;
}

.easycc[hidden],
.easycc-reopen[hidden],
.easycc [hidden] {
	display: none !important;
}

/* A valid choice is there already (class set by the script of the head, before the first paint). */
html.easycc-decided #easycc {
	display: none;
}

.easycc__box {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 720px;
	max-height: calc(100vh - 32px);
	overflow: auto;
	padding: 24px;
	border-radius: 8px;
	background: var(--easycc-background);
	color: var(--easycc-text);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
	pointer-events: auto;
}

.easycc__title {
	margin: 0 40px 8px 0;
	font-size: 18px;
	font-weight: 700;
}

.easycc__subtitle {
	margin: 16px 0 8px;
	font-weight: 700;
}

.easycc__message p {
	margin: 0 0 8px;
}

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

#easycc .easycc__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 2px solid var(--easycc-accent);
	border-radius: 4px;
	background: var(--easycc-background);
	color: var(--easycc-accent);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	white-space: nowrap;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
}

.easycc__category {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0 16px;
	align-items: center;
	padding: 10px 0;
	border-top: 1px solid #e3e3e3;
}

/* The checkbox drawn as a switch: still a real checkbox (role="switch") for keyboards and screen readers. */
#easycc .easycc__category input {
	position: relative;
	grid-row: 1;
	grid-column: 2;
	box-sizing: border-box;
	width: 44px;
	height: 24px;
	margin: 0;
	border: 0;
	border-radius: 12px;
	background: #b8b8b8;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	transition: background-color 0.2s;
}

#easycc .easycc__category input::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
	transition: transform 0.2s;
}

#easycc .easycc__category input:checked {
	background: var(--easycc-accent);
}

#easycc .easycc__category input:checked::before {
	transform: translateX(20px);
}

/* Technical cookies: always on, not changeable. */
#easycc .easycc__category input:disabled {
	cursor: default;
	opacity: 0.5;
}

@media (prefers-reduced-motion: reduce) {
	#easycc .easycc__category input,
	#easycc .easycc__category input::before {
		transition: none;
	}
}

#easycc .easycc__category label {
	grid-row: 1;
	grid-column: 1;
	margin: 0;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.easycc__description {
	grid-column: 1 / -1;
	margin: 4px 0 0;
	color: var(--easycc-muted);
	font-size: 14px;
}

.easycc__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

/* Same size, colour and weight for every choice. */
#easycc .easycc__button {
	flex: 1 1 160px;
	min-height: 44px;
	padding: 10px 16px;
	border: 2px solid var(--easycc-accent);
	border-radius: 4px;
	background: var(--easycc-accent);
	color: #ffffff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	white-space: normal;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
}

/*
 * Themes style every button (Hello Elementor: transparent with a coloured border, filled on hover and focus): the
 * selectors above and below are specific enough to win, and the states the themes change are set again here.
 */
#easycc .easycc__button:hover,
#easycc .easycc__button:focus {
	background: var(--easycc-accent);
	color: #ffffff;
	opacity: 0.85;
}

#easycc .easycc__close:hover,
#easycc .easycc__close:focus {
	background: var(--easycc-background, #ffffff);
	color: var(--easycc-accent);
	opacity: 0.85;
}

#easycc .easycc__button:focus-visible,
#easycc .easycc__close:focus-visible,
button.easycc-reopen.easycc-reopen:focus-visible,
#easycc .easycc__category input:focus-visible {
	outline: 3px solid #2271b1;
	outline-offset: 2px;
}

/*
 * Tab to reopen the choices: comes out of the bottom edge, on the right, and rises when pointed at or focused
 * (on small screens it stays up, there is no pointer).
 */
button.easycc-reopen.easycc-reopen {
	--easycc-tab-height: 50px;
	--easycc-tab-offset: -35px;
	position: fixed;
	z-index: 2147482999;
	right: 40px;
	bottom: var(--easycc-tab-offset);
	box-sizing: border-box;
	min-width: 100px;
	height: var(--easycc-tab-height);
	margin: 0;
	padding: 15px;
	border: 0;
	border-radius: 12px 12px 0 0;
	background: #f0f0f0;
	color: #222222;
	font-family: inherit;
	font-size: 15px;
	font-weight: 400;
	line-height: normal;
	cursor: pointer;
	white-space: nowrap;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: rgba(0, 0, 0, 0.19) 0 10px 20px, rgba(0, 0, 0, 0.23) 0 6px 6px;
	transition: bottom 0.5s;
}

button.easycc-reopen.easycc-reopen:hover,
button.easycc-reopen.easycc-reopen:focus {
	bottom: 0;
	background: #f0f0f0;
	color: #222222;
}

@media (max-width: 768px) {
	button.easycc-reopen.easycc-reopen {
		bottom: 0;
		transition: transform 0.3s;
	}

	/* Away from the bottom of the page: tucked under the edge (it comes out at the bottom, see banner.js). */
	button.easycc-reopen.easycc-reopen--away {
		transform: translateY(100%);
		visibility: hidden;
		transition: transform 0.3s, visibility 0s 0.3s;
	}
}

@media (prefers-reduced-motion: reduce) {
	button.easycc-reopen.easycc-reopen {
		transition: none;
	}
}

/* Notice in place of a held frame (video, map). */
.easycc-placeholder {
	display: flex;
	box-sizing: border-box;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 200px;
	padding: 20px;
	border: 1px solid #d0d0d0;
	background: #f4f4f4;
	color: #1d1d1c;
	font-size: 15px;
	line-height: 1.5;
	text-align: center;
}

.easycc-placeholder__message {
	max-width: 520px;
	margin: 0 0 12px;
}

.easycc-placeholder__buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.easycc-placeholder button.easycc-placeholder__button {
	min-height: 44px;
	padding: 8px 16px;
	border: 2px solid var(--easycc-accent, #1d1d1c);
	border-radius: 4px;
	background: var(--easycc-accent, #1d1d1c);
	color: #ffffff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	white-space: normal;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
}

.easycc-placeholder button.easycc-placeholder__button--secondary {
	background: #ffffff;
	color: var(--easycc-accent, #1d1d1c);
}

.easycc-placeholder button.easycc-placeholder__button:hover,
.easycc-placeholder button.easycc-placeholder__button:focus {
	background: var(--easycc-accent, #1d1d1c);
	color: #ffffff;
	opacity: 0.85;
}

.easycc-placeholder button.easycc-placeholder__button--secondary:hover,
.easycc-placeholder button.easycc-placeholder__button--secondary:focus {
	background: #ffffff;
	color: var(--easycc-accent, #1d1d1c);
}

.easycc-placeholder button.easycc-placeholder__button:focus-visible {
	outline: 3px solid #2271b1;
	outline-offset: 2px;
}

@media (max-width: 600px) {
	.easycc {
		right: 0;
		bottom: 0;
		left: 0;
	}

	/* Compact on phones: the banner must not cover the page. */
	.easycc {
		font-size: 14px;
		line-height: 1.4;
	}

	.easycc__box {
		max-height: 85vh;
		padding: 14px 14px 12px;
		border-radius: 8px 8px 0 0;
	}

	.easycc__title {
		margin-bottom: 6px;
		font-size: 16px;
	}

	#easycc .easycc__close {
		top: 8px;
		right: 8px;
		width: 36px;
		height: 36px;
		font-size: 24px;
	}

	.easycc__description {
		font-size: 13px;
	}

	.easycc__buttons {
		gap: 8px;
		margin-top: 10px;
	}

	/* The three choices on one row, still equal. */
	#easycc .easycc__button {
		flex: 1 1 0;
		min-width: 0;
		min-height: 44px;
		padding: 8px 6px;
		font-size: 14px;
		line-height: 1.2;
	}
}

/* Cookie list of the cookie policy ([easycc_cookie_list]). */
.easycc-cookie-list__scroll {
	overflow-x: auto;
	margin: 0 0 24px;
}

.easycc-cookie-list__table {
	width: 100%;
	min-width: 560px;
	border-collapse: collapse;
	font-size: 14px;
	line-height: 1.45;
}

.easycc-cookie-list__table th,
.easycc-cookie-list__table td {
	padding: 8px 10px;
	border: 1px solid #d9d9d9;
	text-align: left;
	vertical-align: top;
}

.easycc-cookie-list__table th {
	background: #f4f4f4;
	font-weight: 700;
}

.easycc-cookie-list__table code {
	white-space: normal;
	overflow-wrap: break-word;
}
