/* A local information card: no backdrop, page lock or consent controls. */
#thps-cookie-notice,
#thps-cookie-notice *,
.thps-cookie-notice-footer,
.thps-cookie-notice-footer * {
	box-sizing: border-box;
}

#thps-cookie-notice[hidden],
.thps-cookie-notice-footer[hidden] {
	display: none !important;
}

#thps-cookie-notice {
	position: fixed;
	z-index: 900;
	right: max(20px, env(safe-area-inset-right));
	bottom: max(20px, env(safe-area-inset-bottom));
	width: min(440px, calc(100vw - 40px));
	max-width: none;
	max-height: calc(100vh - 40px);
	max-height: calc(100dvh - 40px);
	overflow: auto;
	margin: 0;
	padding: 22px;
	border: 1px solid var(--thps-v2-line, #dcd7c5);
	border-top: 4px solid var(--thps-v2-orange, #c45d22);
	border-radius: 12px;
	background: var(--thps-v2-paper, #fffef8);
	color: var(--thps-v2-ink, #263024);
	box-shadow: 0 12px 40px rgba(20, 39, 18, .2);
	font-family: var(--thps-v2-font-body, Arial, sans-serif);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;
	text-align: left;
	text-transform: none;
	overflow-wrap: anywhere;
}

#thps-cookie-notice h2 {
	margin: 0 0 10px;
	color: var(--thps-v2-forest, #20351a);
	font: 700 21px/1.2 var(--thps-v2-font-body, Arial, sans-serif);
	letter-spacing: 0;
	text-transform: none;
}

#thps-cookie-notice p {
	margin: 0 0 12px;
	font: inherit;
	color: inherit;
}

#thps-cookie-notice .thps-cookie-notice-details {
	margin: 0 0 12px;
	padding: 0;
	border: 0;
	font: inherit;
}

#thps-cookie-notice summary {
	display: list-item;
	margin: 0;
	padding: 8px 0;
	color: var(--thps-v2-forest, #20351a);
	font: 700 14px/1.4 var(--thps-v2-font-body, Arial, sans-serif);
	cursor: pointer;
}

#thps-cookie-notice .thps-cookie-notice-details-content {
	padding: 12px 0 0;
	border-top: 1px solid var(--thps-v2-line, #dcd7c5);
	font-size: 14px;
}

#thps-cookie-notice .thps-cookie-notice-details-content strong {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin-bottom: 6px;
	font-weight: 700;
}

#thps-cookie-notice .thps-cookie-notice-details-content strong span {
	display: inline-block;
	padding: 2px 7px;
	border-radius: 5px;
	background: var(--thps-v2-soft, #ece8d8);
	color: var(--thps-v2-forest, #20351a);
	font-size: 12px;
}

#thps-cookie-notice .thps-cookie-notice-duration {
	margin-bottom: 12px;
	color: #596253;
	font-size: 13px;
	line-height: 1.4;
}

#thps-cookie-notice .thps-cookie-notice-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 8px;
}

#thps-cookie-notice .thps-cookie-notice-ack,
#thps-cookie-notice .thps-cookie-notice-privacy {
	appearance: none;
	display: inline-flex;
	flex: 1 1 125px;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 44px;
	height: auto;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid var(--thps-v2-forest, #20351a);
	border-radius: 7px;
	background: var(--thps-v2-forest, #20351a);
	color: #fff;
	box-shadow: none;
	font: 700 14px/1.4 var(--thps-v2-font-body, Arial, sans-serif);
	letter-spacing: 0;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
}

#thps-cookie-notice .thps-cookie-notice-privacy {
	background: transparent;
	color: var(--thps-v2-forest, #20351a);
}

#thps-cookie-notice .thps-cookie-notice-ack:hover {
	background: var(--thps-v2-forest-deep, #142712);
}

#thps-cookie-notice .thps-cookie-notice-privacy:hover {
	background: var(--thps-v2-soft, #ece8d8);
}

#thps-cookie-notice :is(button, a, summary):focus-visible,
.thps-cookie-notice-footer .thps-cookie-notice-reopen:focus-visible {
	outline: 3px solid var(--thps-v2-orange, #c45d22);
	outline-offset: 3px;
}

.thps-cookie-notice-footer {
	position: static;
	margin: 0;
	padding: 4px 16px max(4px, env(safe-area-inset-bottom));
	background: var(--thps-v2-forest-deep, #142712);
	text-align: center;
}

.thps-cookie-notice-footer .thps-cookie-notice-reopen {
	appearance: none;
	min-height: 44px;
	margin: 0;
	padding: 10px 12px;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: var(--thps-v2-cream, #f5f1df);
	box-shadow: none;
	font: 400 13px/1.4 var(--thps-v2-font-body, Arial, sans-serif);
	letter-spacing: 0;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-transform: none;
	cursor: pointer;
}

@media (max-width: 480px) {
	#thps-cookie-notice {
		right: max(12px, env(safe-area-inset-right));
		bottom: max(12px, env(safe-area-inset-bottom));
		width: calc(100vw - 24px);
		max-height: calc(100vh - 24px);
		max-height: calc(100dvh - 24px);
		padding: 18px;
	}
}
