.cookie-consent{
	position: fixed;
	left: 1rem;
	right: 1rem;
	bottom: 1rem;
	z-index: 1000;
	background: #fff;
	color: #222;
	border: 1px solid rgba(0,0,0,0.16);
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(0,0,0,0.22);
}

.cookie-consent[hidden],
.cookie-settings[hidden]{
	display: none;
}

.cookie-consent__content{
	max-width: 1100px;
	margin: 0 auto;
	padding: 1rem 1.25rem;
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.cookie-consent h2,
.cookie-settings h2{
	margin: 0 0 0.35rem;
	font-size: 1.05rem;
}

.cookie-consent p,
.cookie-settings p{
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.45;
}

.cookie-consent a{
	color: inherit;
	font-weight: bold;
}

.cookie-consent__actions{
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.5rem;
	flex-wrap: wrap;
	flex-shrink: 0;
}

.cookie-button{
	border: 1px solid #333;
	border-radius: 6px;
	background: #fff;
	color: #222;
	padding: 0.65rem 0.9rem;
	font: inherit;
	font-size: 0.85rem;
	cursor: pointer;
}

.cookie-button:hover,
.cookie-button:focus-visible{
	background: #f0f0f0;
}

.cookie-button--primary{
	background: #222;
	color: #fff;
}

.cookie-button--primary:hover,
.cookie-button--primary:focus-visible{
	background: #444;
}

.cookie-button--text{
	border-color: transparent;
	text-decoration: underline;
}

.cookie-settings{
	position: fixed;
	inset: 0;
	z-index: 1001;
	background: rgba(0,0,0,0.55);
	padding: 1rem;
	display: grid;
	place-items: center;
}

.cookie-settings__panel{
	position: relative;
	width: min(100%, 560px);
	max-height: 90vh;
	overflow-y: auto;
	box-sizing: border-box;
	background: #fff;
	color: #222;
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.cookie-settings__close{
	position: absolute;
	top: 1rem;
	right: 1rem;
	border: 0;
	background: transparent;
	font-size: 1.2rem;
	cursor: pointer;
}

.cookie-category{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 0;
	border-top: 1px solid rgba(0,0,0,0.12);
}

label.cookie-category{
	background-image: none;
	padding-left: 0;
}

.cookie-category strong,
.cookie-category span span{
	display: block;
}

.cookie-category span span{
	margin-top: 0.2rem;
	font-size: 0.85rem;
	opacity: 0.75;
}

.cookie-category__status{
	font-size: 0.8rem;
	font-weight: bold;
	white-space: nowrap;
}

.cookie-category input{
	width: 1.15rem;
	height: 1.15rem;
	accent-color: #222;
}

.cookie-settings__save{
	width: 100%;
	margin-top: 1rem;
}

.cookie-preferences-link{
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.4em;
	width: 100%;
	margin: 0.5rem auto;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: center;
	text-decoration: underline;
	cursor: pointer;
}

@media (max-width: 700px){
	.cookie-consent{
		left: 0.5rem;
		right: 0.5rem;
		bottom: 0.5rem;
	}

	.cookie-consent__content{
		align-items: stretch;
		flex-direction: column;
		gap: 0.8rem;
		padding: 1rem;
	}

	.cookie-consent__actions{
		justify-content: stretch;
	}

	.cookie-button{
		flex: 1 1 auto;
	}
}
