html.hcm-open {
	overflow: hidden;
}

.hcm-root[hidden],
.hcm-root [hidden] {
	display: none !important;
}

.hcm-root {
	box-sizing: border-box;
	position: fixed;
	z-index: 999999;
	inset: 0;
	font-family: inherit;
	color: #111827;
}

.hcm-root *,
.hcm-root *::before,
.hcm-root *::after {
	box-sizing: inherit;
}

.hcm-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(17, 24, 39, 0.52);
}

.hcm-panel {
	position: absolute;
	right: 16px;
	bottom: 16px;
	left: 16px;
	margin: 0 auto;
	width: min(100% - 32px, 720px);
	max-height: calc(100vh - 32px);
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid rgba(17, 24, 39, 0.14);
	border-radius: 18px;
	box-shadow: 0 24px 80px rgba(17, 24, 39, 0.3);
	overflow: hidden;
}

.hcm-panel__header,
.hcm-panel__footer {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 18px 20px;
}

.hcm-panel__header {
	justify-content: space-between;
	border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.hcm-panel__header h2 {
	margin: 0;
	font-size: 1.18rem;
	line-height: 1.25;
	color: inherit;
}

.hcm-panel__body {
	padding: 18px 20px;
	overflow: auto;
}

.hcm-panel__body p {
	margin: 0 0 12px;
	font-size: 0.96rem;
	line-height: 1.55;
	color: #374151;
}

.hcm-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 0.9rem;
}

.hcm-links a,
.hcm-link-button {
	color: currentColor;
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.hcm-link-button {
	appearance: none;
	background: transparent;
	border: 0;
	padding: 0;
	font: inherit;
	cursor: pointer;
}

.hcm-gpc-notice {
	padding: 10px 12px;
	border-radius: 12px;
	background: #f3f4f6;
	color: #1f2937 !important;
}

.hcm-preferences {
	display: grid;
	gap: 10px;
	margin-top: 14px;
}

.hcm-category {
	border: 1px solid rgba(17, 24, 39, 0.1);
	border-radius: 14px;
	padding: 14px;
	background: #ffffff;
}

.hcm-category h3,
.hcm-category strong {
	display: block;
	margin: 0 0 4px;
	font-size: 0.98rem;
	line-height: 1.35;
	color: #111827;
}

.hcm-category p,
.hcm-category span span {
	display: block;
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.45;
	color: #4b5563;
}

.hcm-category--locked {
	display: flex;
	justify-content: space-between;
	gap: 16px;
}

.hcm-badge {
	align-self: flex-start;
	display: inline-flex;
	white-space: nowrap;
	padding: 4px 8px;
	border-radius: 999px;
	background: #f3f4f6;
	font-size: 0.78rem;
	line-height: 1.2;
	color: #374151;
}

.hcm-toggle-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	cursor: pointer;
}

.hcm-switch {
	position: relative;
	flex: 0 0 auto;
	width: 46px;
	height: 26px;
}

.hcm-switch input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

.hcm-switch span {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: #d1d5db;
	transition: background 160ms ease;
}

.hcm-switch span::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 1px 3px rgba(17, 24, 39, 0.22);
	transition: transform 160ms ease;
}

.hcm-switch input:checked + span {
	background: #111827;
}

.hcm-switch input:checked + span::before {
	transform: translateX(20px);
}

.hcm-switch input:focus-visible + span {
	outline: 2px solid #111827;
	outline-offset: 2px;
}

.hcm-switch input:disabled + span {
	opacity: 0.45;
	cursor: not-allowed;
}

.hcm-panel__footer {
	justify-content: flex-end;
	flex-wrap: wrap;
	border-top: 1px solid rgba(17, 24, 39, 0.08);
	background: #f9fafb;
}

.hcm-button,
.hcm-icon-button {
	appearance: none;
	font: inherit;
	cursor: pointer;
}

.hcm-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 16px;
	border-radius: 999px;
	border: 1px solid #111827;
	font-weight: 650;
	line-height: 1.2;
}

.hcm-button--primary {
	background: #111827;
	color: #ffffff;
}

.hcm-button--secondary {
	background: #ffffff;
	color: #111827;
}

.hcm-icon-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 999px;
	background: #f3f4f6;
	color: #111827;
	font-size: 1.35rem;
	line-height: 1;
}

.hcm-button:hover,
.hcm-icon-button:hover {
	filter: brightness(0.96);
}

.hcm-button:focus-visible,
.hcm-icon-button:focus-visible,
.hcm-link-button:focus-visible {
	outline: 2px solid #111827;
	outline-offset: 2px;
}

@media (max-width: 600px) {
	.hcm-panel {
		inset: auto 8px 8px;
		width: calc(100% - 16px);
		max-height: calc(100vh - 16px);
		border-radius: 16px;
	}

	.hcm-panel__header,
	.hcm-panel__footer,
	.hcm-panel__body {
		padding: 16px;
	}

	.hcm-panel__footer {
		display: grid;
		grid-template-columns: 1fr;
	}

	.hcm-button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hcm-switch span,
	.hcm-switch span::before {
		transition: none;
	}
}
