/* HortiSignal Consent banner — design tokens */
.hs-consent {
	--hs-consent-graphite: #141817;
	--hs-consent-paper: #f4f2ec;
	--hs-consent-green: #a8f06a;
	--hs-consent-radius: 5px;
	--hs-consent-font: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
	font-family: var(--hs-consent-font);
	color: var(--hs-consent-graphite);
	box-sizing: border-box;
}

.hs-consent *,
.hs-consent *::before,
.hs-consent *::after {
	box-sizing: border-box;
}

.hs-consent[hidden] {
	display: none !important;
}

.hs-consent__backdrop {
	position: fixed;
	inset: 0;
	background: rgba(20, 24, 23, 0.35);
	z-index: 99998;
}

.hs-consent__panel {
	position: fixed;
	z-index: 99999;
	left: 16px;
	right: 16px;
	bottom: 16px;
	max-width: 480px;
	margin: 0 auto;
	background: var(--hs-consent-paper);
	color: var(--hs-consent-graphite);
	border: 1px solid rgba(20, 24, 23, 0.12);
	border-radius: var(--hs-consent-radius);
	box-shadow: 0 12px 40px rgba(20, 24, 23, 0.18);
	padding: 18px 18px 16px;
}

@media (min-width: 640px) {
	.hs-consent__panel {
		left: auto;
		right: 24px;
		bottom: 24px;
		margin: 0;
	}
}

.hs-consent__title {
	margin: 0 0 8px;
	font-size: 1.05rem;
	font-weight: 650;
	line-height: 1.3;
}

.hs-consent__text,
.hs-consent__summary {
	margin: 0 0 10px;
	font-size: 0.875rem;
	line-height: 1.45;
	opacity: 0.92;
}

.hs-consent__summary {
	padding: 8px 10px;
	background: rgba(20, 24, 23, 0.05);
	border-radius: var(--hs-consent-radius);
}

.hs-consent__link {
	color: var(--hs-consent-graphite);
	text-decoration: underline;
	text-underline-offset: 2px;
	font-size: 0.875rem;
}

.hs-consent__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 10px;
}

.hs-consent__meta-btn {
	appearance: none;
	border: 0;
	background: transparent;
	color: var(--hs-consent-graphite);
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.2;
	padding: 0;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
	text-align: left;
}

.hs-consent__meta-btn:focus-visible {
	outline: 2px solid var(--hs-consent-graphite);
	outline-offset: 2px;
}

.hs-consent__meta-link {
	margin-left: auto;
	text-align: right;
	white-space: nowrap;
}

.hs-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.hs-consent__btn {
	appearance: none;
	border: 1px solid transparent;
	border-radius: var(--hs-consent-radius);
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.2;
	padding: 10px 14px;
	cursor: pointer;
	flex: 1 1 auto;
	min-width: 120px;
	text-align: center;
}

.hs-consent__btn:focus-visible {
	outline: 2px solid var(--hs-consent-graphite);
	outline-offset: 2px;
}

.hs-consent__btn--accept {
	background: var(--hs-consent-green);
	color: var(--hs-consent-graphite);
	border-color: transparent;
}

.hs-consent__btn--reject {
	background: transparent;
	color: var(--hs-consent-graphite);
	border-color: rgba(20, 24, 23, 0.35);
}

.hs-consent__prefs {
	margin-top: 12px;
	border-top: 1px solid rgba(20, 24, 23, 0.1);
	padding-top: 12px;
}

.hs-consent__prefs[hidden] {
	display: none !important;
}

.hs-consent__row {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 8px 12px;
	align-items: start;
	margin-bottom: 12px;
}

.hs-consent__row-title {
	font-size: 0.9rem;
	font-weight: 650;
	margin: 0;
}

.hs-consent__row-help {
	grid-column: 1 / -1;
	margin: 0;
	font-size: 0.8rem;
	line-height: 1.4;
	opacity: 0.85;
}

.hs-consent__switch {
	position: relative;
	width: 42px;
	height: 24px;
	flex-shrink: 0;
}

.hs-consent__switch input {
	position: absolute;
	opacity: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	cursor: pointer;
}

.hs-consent__switch input:disabled {
	cursor: not-allowed;
}

.hs-consent__switch-ui {
	display: block;
	width: 100%;
	height: 100%;
	background: rgba(20, 24, 23, 0.2);
	border-radius: 999px;
	transition: background 0.15s ease;
}

.hs-consent__switch-ui::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	transition: transform 0.15s ease;
}

.hs-consent__switch input:checked + .hs-consent__switch-ui {
	background: var(--hs-consent-green);
}

.hs-consent__switch input:checked + .hs-consent__switch-ui::after {
	transform: translateX(18px);
}

.hs-consent__switch input:focus-visible + .hs-consent__switch-ui {
	outline: 2px solid var(--hs-consent-graphite);
	outline-offset: 2px;
}

.hs-consent__manage {
	position: fixed;
	z-index: 99990;
	right: 16px;
	bottom: 16px;
	appearance: none;
	border: 1px solid rgba(20, 24, 23, 0.2);
	background: var(--hs-consent-paper);
	color: var(--hs-consent-graphite);
	border-radius: var(--hs-consent-radius);
	font-family: var(--hs-consent-font);
	font-size: 0.75rem;
	font-weight: 600;
	padding: 8px 10px;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(20, 24, 23, 0.12);
}

.hs-consent__manage:focus-visible {
	outline: 2px solid var(--hs-consent-graphite);
	outline-offset: 2px;
}

.hs-consent__manage[hidden] {
	display: none !important;
}
