/* TS-86: the cookie banner. Fixed to the top: the event page's ADD bar is fixed to the bottom (z-index 1030), and
   pop-up messages (1055) must stay on top. */
.cookie-banner[hidden],
.cookie-banner [hidden] {
	display: none !important;
}

.cookie-banner {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1040;
	max-height: 60vh;
	overflow-y: auto;
	background: #fff;
	color: #212529;
	border-bottom: 2px solid #fd4d01;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	font-size: 13px;
	line-height: 1.35;
}

.cookie-banner:focus {
	outline: none;
}

.cookie-banner-inner {
	display: flex;
	align-items: center;
	gap: 16px;
	max-width: 1320px;
	margin: 0 auto;
	padding: 8px 16px;
}

.cookie-banner-text {
	flex: 1 1 auto;
	min-width: 0;
}

.cookie-banner h2 {
	margin: 0 0 1px;
	font-size: 14px;
	line-height: 1.3;
	font-weight: 700;
}

.cookie-banner p {
	margin: 0;
}

.cookie-banner a {
	color: #0a58ca;
	font-weight: 700;
	text-decoration: underline;
}

.cookie-banner-current {
	margin-top: 3px !important;
	font-weight: 700;
}

.cookie-banner-buttons {
	display: flex;
	flex: 0 0 auto;
	gap: 8px;
}

/* Both choices look exactly the same */
.cookie-banner-button {
	min-width: 92px;
	min-height: 40px;
	padding: 4px 14px;
	border: 2px solid #212529;
	border-radius: 5px;
	background: #212529;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.cookie-banner-button:hover {
	background: #424a52;
}

.cookie-banner-button:focus-visible,
.cookie-banner a:focus-visible,
.cookie-settings:focus-visible,
[data-cookie-settings]:focus-visible {
	outline: 3px solid #0d6efd;
	outline-offset: 2px;
}

/* "Cookie settings" on the privacy page: a button that looks like the links around it */
.cookie-settings {
	padding: 0;
	border: 0;
	background: none;
	color: #0a58ca;
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

@media (max-width: 767px) {
	.cookie-banner-inner {
		flex-direction: column;
		align-items: stretch;
		gap: 7px;
		padding: 8px 12px;
	}

	.cookie-banner-button {
		flex: 1 1 0;
		min-width: 0;
	}
}

@media (max-height: 420px) {
	.cookie-banner {
		max-height: 70vh;
		font-size: 12px;
	}

	.cookie-banner-inner {
		flex-direction: row;
		align-items: center;
		padding: 6px 12px;
	}

	.cookie-banner-buttons {
		flex-direction: column;
		gap: 6px;
	}

	.cookie-banner-button {
		flex: 0 0 auto;
		min-height: 34px;
	}
}

@media print {
	.cookie-banner,
	.cookie-settings {
		display: none !important;
	}
}

/* The privacy page's tables: a list on phones, with each heading beside its answer */
.privacy-table {
	overflow-wrap: anywhere;
}

.privacy-table-group th {
	background: #e9ecef;
}

@media (max-width: 767px) {
	.privacy-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
	}

	.privacy-table,
	.privacy-table tbody,
	.privacy-table tr,
	.privacy-table th,
	.privacy-table td {
		display: block;
		width: 100%;
	}

	.privacy-table tr {
		padding: 6px 0;
		border-bottom: 1px solid #dee2e6;
	}

	.privacy-table td {
		padding: 2px 0;
		border: 0;
	}

	.privacy-table td::before {
		content: attr(data-label) ": ";
		font-weight: 700;
	}
}
