/* Cookie consent banner & settings modal */

.cookie-consent-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999999;
	background: #fff;
	box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.15);
	font-family: "Roboto", Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	color: #333;
	transform: translateY(100%);
	transition: transform .3s ease;
	display: none;
}

.cookie-consent-banner.is-visible {
	display: block;
	transform: translateY(0);
}

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

.cookie-consent-banner__text {
	flex: 1 1 320px;
}

.cookie-consent-banner__text a {
	color: #2397ef;
	text-decoration: underline;
}

.cookie-consent-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.cookie-consent-btn {
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	border-radius: 4px;
	padding: 10px 16px;
	border: 1px solid #2397ef;
	background: #fff;
	color: #2397ef;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color .2s ease, color .2s ease;
}

.cookie-consent-btn:hover {
	background: #eaf5ff;
}

.cookie-consent-btn--primary {
	background: #2397ef;
	border-color: #2397ef;
	color: #fff;
}

.cookie-consent-btn--primary:hover {
	background: #1383d8;
}

.cookie-consent-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1000000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	font-family: "Roboto", Helvetica, Arial, sans-serif;
	font-size: 14px;
	color: #333;
}

.cookie-consent-modal.is-visible {
	display: flex;
}

.cookie-consent-modal__backdrop {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
}

.cookie-consent-modal__dialog {
	position: relative;
	background: #fff;
	border-radius: 8px;
	max-width: 560px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	padding: 28px 24px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.cookie-consent-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 32px;
	height: 32px;
	border: none;
	background: transparent;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: #888;
}

.cookie-consent-modal__close:hover {
	color: #333;
}

.cookie-consent-modal__dialog h3 {
	margin: 0 0 12px;
	font-size: 20px;
	font-weight: 700;
}

.cookie-consent-modal__dialog > p {
	margin: 0 0 20px;
	color: #666;
}

.cookie-consent-category {
	border-top: 1px solid #eee;
	padding: 14px 0;
}

.cookie-consent-category__head label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	cursor: pointer;
}

.cookie-consent-category__head input[type="checkbox"] {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
}

.cookie-consent-category p {
	margin: 6px 0 0 28px;
	color: #666;
	font-size: 13px;
}

.cookie-consent-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid #eee;
}

@media (max-width: 640px) {
	.cookie-consent-banner__inner {
		flex-direction: column;
		align-items: stretch;
	}

	.cookie-consent-banner__actions {
		flex-direction: column;
	}

	.cookie-consent-btn {
		width: 100%;
	}
}
