.cookie-consent-overlay {
	display: none;
	position: fixed;
	left: 0;
	bottom: 0;
	width: 100%;
	z-index: 1000;
	justify-content: center;

	&.open {
		display: flex;
	}

	&.expanded .cookie-consent-details {
		display: block;
	}
}

.cookie-consent-box {
	position: relative;
	width: 800px;
	max-width: 100%;
	max-height: 100vh;
	margin: 0 20px;
	padding: 20px;
	box-sizing: border-box;
	overflow: auto;
}

.cookie-consent-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 30px;
	height: 30px;
	line-height: 28px;
	padding: 0;
	font-size: 22px;
}

.cookie-consent-title {
	font-size: 20px;
	line-height: 1.2em;
	margin-bottom: 15px;
}

.cookie-consent-intro {
	font-size: 14px;
	line-height: 1.4em;
	margin-bottom: 15px;
}

.cookie-consent-details {
	display: none;
}

.cookie-consent-groups {
	display: block;
}

.cookie-consent-group {
	display: block;
	padding: 10px 0;

	.cookie-consent-group-title {
		font-size: 14px;
	}

	.cookie-consent-group-desc {
		display: block;
		font-size: 13px;
		line-height: 1.3em;
		margin-top: 2px;
	}

	.cookie-consent-group-cookies {
		margin: 10px 0 0 0;
		padding: 0;
		list-style-type: none;

		li {
			font-size: 13px;

			&:last-child {
				margin-bottom: -10px;
			}
		}

		label {
			display: grid;
			grid-template-areas: "name checkbox" "desc checkbox";
			grid-template-columns: 1fr auto;

			&::before {
				grid-area: checkbox;
				margin: 0;
				align-self: center;
			}

			> span {
				display: block;
			}
			.cookie-consent-cookie-name {
				grid-area: name;
			}
			.cookie-consent-cookie-desc {
				grid-area: desc;
			}
		}
	}
}

.cookie-consent-links {
	display: block;
	text-align: center;
	font-size: 0;

	a {
		font-size: 12px;
		text-decoration: underline;
		margin: 0 8px;
	}
}

.cookie-consent-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin-top: 20px;
}

.cookie-consent-btn {
	font-size: 16px;
	line-height: 18px;
	padding: 12px 20px;
}

.cookie-embed-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 150px;
	background-color: #eee;
	background-size: cover;
	background-position: center;
	text-align: center;
}

.cookie-embed-consent {
	padding: 10px 20px;
	cursor: pointer;
	background-color: #fff;
	border: 1px solid #888;
	font-size: 14px;
}