.ogcc-banner {
	--ogcc-bg: #f3f6f1;
	--ogcc-surface: #fff;
	--ogcc-text: #1c2b1a;
	--ogcc-muted: #4a5c47;
	--ogcc-accent: #da5831;
	--ogcc-accent-hover: #2a3828;
	--ogcc-border: #d5e0d2;
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: auto;
	color: var(--ogcc-text);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.5;
}

.ogcc-banner[hidden] {
	display: none !important;
}

.ogcc-banner *,
.ogcc-banner *::before,
.ogcc-banner *::after {
	box-sizing: border-box;
}

.ogcc-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 20, 20, 0.55);
	pointer-events: auto;
}

.ogcc-panel {
	position: relative;
	z-index: 1;
	pointer-events: auto;
	width: min(560px, calc(100% - 32px));
	max-height: min(85vh, 720px);
	margin: 16px;
	padding: 22px 24px 20px;
	overflow: auto;
	background: var(--ogcc-bg);
	border: 1px solid var(--ogcc-border);
	border-radius: 12px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
	animation: ogcc-rise 0.25s ease;
}

.ogcc-title {
	margin: 0 0 8px;
	font-size: 1.25rem;
	line-height: 1.3;
	color: var(--ogcc-text);
}

.ogcc-desc,
.ogcc-privacy {
	margin: 0 0 14px;
	color: var(--ogcc-text);
}

.ogcc-privacy a,
.ogcc-cookie-details summary,
.ogcc-btn-link {
	color: var(--ogcc-accent);
}

.ogcc-privacy a:hover,
.ogcc-btn-link:hover,
.ogcc-cookie-details summary:hover {
	color: var(--ogcc-accent-hover);
}

.ogcc-actions,
.ogcc-settings-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.ogcc-actions {
	flex-wrap: nowrap;
}

.ogcc-actions .ogcc-btn-primary,
.ogcc-actions .ogcc-btn-ghost {
	flex: 0 1 auto;
}

.ogcc-actions .ogcc-btn-link {
	margin-left: auto;
	flex: 0 0 auto;
	padding: 4px 0 4px 8px;
	font-size: 0.82rem;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
}

.ogcc-btn {
	appearance: none;
	border-radius: 12px;
	padding: 10px 16px;
	font: inherit;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none;
}

button.ogcc-btn.ogcc-btn-primary,
.ogcc-btn-primary {
	border: 1px solid #2f6b3a !important;
	background: #2f6b3a !important;
	color: #fff !important;
	font-weight: 600;
}

button.ogcc-btn.ogcc-btn-primary:hover,
button.ogcc-btn.ogcc-btn-primary:focus,
.ogcc-btn-primary:hover,
.ogcc-btn-primary:focus {
	border-color: #255730 !important;
	background: #255730 !important;
	color: #fff !important;
}

.ogcc-btn-ghost {
	border: 1px solid #2a3828 !important;
	background: #fff !important;
	color: #2a3828 !important;
	font-weight: 600;
}

.ogcc-btn-ghost:hover {
	border-color: var(--ogcc-accent);
	color: var(--ogcc-accent);
}

.ogcc-btn-link {
	border: 0 !important;
	background: transparent !important;
	padding-left: 8px;
	padding-right: 8px;
	color: #2a3828 !important;
	font-weight: 600;
	text-decoration: underline;
	width: auto !important;
}

.ogcc-settings {
	display: none;
	margin-top: 16px;
}

.ogcc-banner.ogcc-settings-open .ogcc-settings {
	display: block;
}

.ogcc-cat {
	margin: 0 0 10px;
	padding: 12px 14px;
	background: var(--ogcc-surface);
	border: 1px solid var(--ogcc-border);
	border-radius: 12px;
}

.ogcc-cat-label {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	cursor: pointer;
}

.ogcc-cat-label input {
	width: 1.15rem;
	height: 1.15rem;
	margin-top: 0.2rem;
	accent-color: var(--ogcc-accent);
	flex: 0 0 auto;
}

.ogcc-cat-title {
	display: block;
	font-weight: 700;
}

.ogcc-cat-desc,
.ogcc-cookie-empty {
	display: block;
	color: var(--ogcc-muted);
}

.ogcc-cookie-details {
	margin-top: 8px;
}

.ogcc-cookie-details summary {
	cursor: pointer;
	font-size: 0.95rem;
}

.ogcc-cookie-list {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
}

.ogcc-cookie-list li {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: baseline;
	margin: 0 0 6px;
	color: var(--ogcc-muted);
}

.ogcc-cookie-list code {
	padding: 1px 6px;
	background: var(--ogcc-bg);
	border-radius: 6px;
	color: var(--ogcc-text);
}

.ogcc-settings-actions {
	margin-top: 12px;
}

.ogcc-btn:focus-visible,
.ogcc-float:focus-visible,
.ogcc-cat-label input:focus-visible,
.ogcc-settings-link:focus-visible {
	outline: 2px solid var(--ogcc-accent);
	outline-offset: 2px;
}

.ogcc-float {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 999990;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #2f7a3a;
	color: #fff !important;
	box-shadow: 0 6px 18px rgba(28, 43, 26, 0.22);
	cursor: pointer;
}

.ogcc-float:hover {
	background: #255730;
	color: #fff !important;
}

button.ogcc-float svg,
.ogcc-float svg {
	display: block;
	width: 24px;
	height: 24px;
	color: #fff !important;
	fill: #fff !important;
}

button.ogcc-float svg path,
.ogcc-float svg path {
	fill: #fff !important;
	color: #fff !important;
}

html:not(.ogcc-booted) .ogcc-float,
html.ogcc-open .ogcc-float {
	visibility: hidden;
}

html.ogcc-open,
html.ogcc-open body {
	overflow: hidden;
}

.ogcc-settings-link {
	border: 0;
	padding: 0;
	background: none;
	color: #2f6b3a;
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.ogcc-settings-link:hover {
	color: #255730;
}

@media (max-width: 519px) {
	.ogcc-panel {
		width: calc(100% - 24px);
		margin: 12px;
		border-radius: 12px;
	}

	.ogcc-settings-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.ogcc-actions {
		flex-direction: row;
		flex-wrap: nowrap;
		gap: 8px;
	}

	.ogcc-settings-actions .ogcc-btn,
	.ogcc-actions .ogcc-btn-primary,
	.ogcc-actions .ogcc-btn-ghost {
		width: auto;
		flex: 1 1 auto;
	}

	.ogcc-actions .ogcc-btn-link {
		flex: 0 0 auto;
		width: auto !important;
		margin-left: auto !important;
	}

	.ogcc-float {
		width: 44px;
		height: 44px;
	}

	.ogcc-float svg {
		width: 22px;
		height: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ogcc-panel,
	.ogcc-backdrop,
	.ogcc-float,
	.ogcc-btn {
		animation: none !important;
		transition: none !important;
	}
}

html.ogcc-open iframe[src*="getresponse"],
html.ogcc-open iframe[src*="gr-cdn.com"],
html.ogcc-open [class*="gr-popup"],
html.ogcc-open [id*="gr-popup"] {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

@keyframes ogcc-rise {
	from {
		opacity: 0;
		transform: translateY(12px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}
