.cookies-consent-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 24px;
	background: rgba(0, 0, 0, .68);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cookies-consent-overlay[hidden] {
	display: none;
}

.cookies-consent-dialog {
	width: min(920px, 100%);
	max-height: calc(100vh - 48px);
	overflow: auto;
	box-sizing: border-box;
	padding: 24px;
	border-radius: 16px;
	background: #fff;
	color: #000;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}

.cookies-consent-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.cookies-consent-header h2 {
	margin: 0;
	font-size: 1.35rem;
	line-height: 1.3;
}

.cookies-consent-close {
	border: 0;
	background: transparent;
	color: #000;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
}

.cookies-consent-close:hover,
.cookies-consent-close:focus {
	background: #000;
	color: #fff;
}

.cookies-consent-policy-link {
	color: #000;
	font-weight: 600;
	text-decoration: underline;
	transition: background-color .15s ease, color .15s ease;
	padding: 2px 4px;
	border-radius: 3px;
}

.cookies-consent-policy-link:hover,
.cookies-consent-policy-link:focus {
	background: #000;
	color: #fff;
}

.cookies-consent-options {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 20px 0;
}

.cookies-consent-option {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 14px;
	border: 1px solid #000;
	border-radius: 10px;
	background: #fff;
}

.cookies-consent-option span {
	font-size: .9rem;
	line-height: 1.45;
}

.cookies-consent-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px;
}

.cookies-consent-button {
	border: 1px solid #000;
	border-radius: 8px;
	padding: 11px 18px;
	background: #E4A627;
	color: #000;
	font-weight: 600;
	cursor: pointer;
}

.cookies-consent-button:hover,
.cookies-consent-button:focus {
	background: #000;
	color: #fff;
}

.cookies-consent-reject,
.cookies-consent-save {
	background: #fff;
	color: #000;
}

.cookies-consent-reject:hover,
.cookies-consent-reject:focus,
.cookies-consent-save:hover,
.cookies-consent-save:focus {
	background: #000;
	color: #fff;
}

.cookies-consent-footer-links {
	font-size: .85rem;
	text-align: center;
	color: #000;
}

.cookies-consent-footer-links a {
	color: #000;
	transition: background-color .15s ease, color .15s ease;
	padding: 2px 4px;
	border-radius: 3px;
}

.cookies-consent-footer-links a:hover,
.cookies-consent-footer-links a:focus {
	background: #000;
	color: #fff;
}

.cookies-consent-settings-button {
	border: 0;
	padding: 2px 4px;
	background: none;
	color: #000;
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}

.cookies-consent-settings-button:hover,
.cookies-consent-settings-button:focus {
	background: #000;
	color: #fff;
}

html.cookies-consent-open {
	overflow: hidden;
}

@media (max-width: 700px) {
	.cookies-consent-overlay {
		padding: 10px;
	}

	.cookies-consent-dialog {
		padding: 18px;
		border-radius: 12px;
	}

	.cookies-consent-options {
		grid-template-columns: 1fr;
	}

	.cookies-consent-actions {
		flex-direction: column;
	}

	.cookies-consent-button {
		width: 100%;
	}
}
