.httpid-consent-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.4);
	z-index: 99990;
}

.httpid-consent {
	position: fixed;
	z-index: 100000;
	background: #ffffff;
	color: #111111;
	padding: 20px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
	max-width: 600px;
	width: calc(100% - 40px);
	border-radius: 8px;
}

.httpid-consent--bottom {
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	max-width: none;
	border-radius: 0;
}

.httpid-consent--bottom-left {
	left: 20px;
	bottom: 20px;
}

.httpid-consent--bottom-right {
	right: 20px;
	bottom: 20px;
}

.httpid-consent--center {
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}

.httpid-consent__title {
	margin: 0 0 12px;
	font-size: 20px;
}

.httpid-consent__message {
	margin-bottom: 16px;
}

.httpid-consent__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.httpid-consent__button {
	border: none;
	border-radius: 4px;
	padding: 10px 16px;
	cursor: pointer;
}

.httpid-consent-open {
	overflow: hidden;
}

.httpid-consent-modal {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 100010;
	padding: 20px;
}

.httpid-consent-modal.is-open {
	display: flex;
}

.httpid-consent-modal__content {
	background: #ffffff;
	color: #111111;
	padding: 20px;
	border-radius: 8px;
	max-width: 700px;
	width: 100%;
	max-height: 80vh;
	overflow: auto;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.httpid-consent-preferences {
	display: none;
	margin: 16px 0;
	padding: 12px;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	background: #fafafa;
}

.httpid-consent-preferences.is-open {
	display: block;
}

.httpid-consent-preferences__header h3 {
	margin: 0 0 16px;
	font-size: 18px;
}

.httpid-consent-preferences__list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.httpid-consent-category {
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	padding: 16px;
}

.httpid-consent-category__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.httpid-consent-category__title {
	font-weight: 600;
	font-size: 16px;
}

.httpid-consent-category__description {
	margin-top: 10px;
	color: #444444;
}

.httpid-consent-toggle {
	position: relative;
	display: inline-block;
	width: 46px;
	height: 24px;
}

.httpid-consent-toggle input {
	opacity: 0;
	width: 0;
	height: 0;
}

.httpid-consent-toggle__slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: #cccccc;
	transition: 0.2s;
	border-radius: 999px;
}

.httpid-consent-toggle__slider:before {
	position: absolute;
	content: '';
	height: 18px;
	width: 18px;
	left: 3px;
	bottom: 3px;
	background: #ffffff;
	transition: 0.2s;
	border-radius: 50%;
}

.httpid-consent-toggle input:checked + .httpid-consent-toggle__slider {
	background: #1e7e34;
}

.httpid-consent-toggle input:checked + .httpid-consent-toggle__slider:before {
	transform: translateX(22px);
}

.httpid-consent-toggle input:disabled + .httpid-consent-toggle__slider {
	opacity: 0.6;
	cursor: not-allowed;
}

@media (max-width: 640px) {
	.httpid-consent {
		padding: 16px;
		width: calc(100% - 20px);
	}

	.httpid-consent__buttons {
		flex-direction: column;
		align-items: stretch;
	}
}
