/* Ogarnij Cookie Consent — garden-green, calm panel */

:root {
	--ogcc-bg: #f3f6f1;
	--ogcc-surface: #ffffff;
	--ogcc-text: #1c2b1a;
	--ogcc-muted: #4a5c47;
	--ogcc-accent: #2f6b3a;
	--ogcc-accent-hover: #255730;
	--ogcc-border: #d5e0d2;
	--ogcc-shadow: 0 -8px 32px rgba(28, 43, 26, 0.12);
	--ogcc-radius: 12px;
	--ogcc-font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.ogcc-root {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	pointer-events: none;
	font-family: var(--ogcc-font);
	color: var(--ogcc-text);
}

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

.ogcc-backdrop {
	display: none;
	position: absolute;
	inset: 0;
	background: rgba(28, 43, 26, 0.35);
	pointer-events: auto;
}

.ogcc-root.ogcc-settings-open .ogcc-backdrop {
	display: block;
}

.ogcc-banner {
	position: relative;
	width: min(720px, calc(100% - 24px));
	margin: 0 12px 12px;
	padding: 1.25rem 1.35rem 1.35rem;
	background: var(--ogcc-surface);
	border: 1px solid var(--ogcc-border);
	border-radius: var(--ogcc-radius);
	box-shadow: var(--ogcc-shadow);
	pointer-events: auto;
	animation: ogcc-rise 0.35s ease-out;
}

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

.ogcc-banner__title {
	margin: 0 0 0.5rem;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--ogcc-text);
}

.ogcc-banner__text {
	margin: 0 0 1rem;
	font-size: 0.925rem;
	line-height: 1.5;
	color: var(--ogcc-muted);
}

.ogcc-banner__privacy {
	color: var(--ogcc-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
	margin-left: 0.25em;
}

.ogcc-banner__privacy:hover {
	color: var(--ogcc-accent-hover);
}

.ogcc-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.65rem;
	align-items: center;
}

.ogcc-btn {
	appearance: none;
	border: 1px solid transparent;
	border-radius: 8px;
	padding: 0.55rem 1rem;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	line-height: 1.2;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ogcc-btn--primary {
	background: var(--ogcc-accent);
	color: #fff;
}

.ogcc-btn--primary:hover {
	background: var(--ogcc-accent-hover);
}

.ogcc-btn--ghost {
	background: var(--ogcc-bg);
	border-color: var(--ogcc-border);
	color: var(--ogcc-text);
}

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

.ogcc-btn--link {
	background: transparent;
	color: var(--ogcc-accent);
	padding-left: 0.35rem;
	padding-right: 0.35rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

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

.ogcc-panel {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--ogcc-border);
	animation: ogcc-fade 0.25s ease;
}

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

@keyframes ogcc-fade {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.ogcc-cats {
	border: 0;
	margin: 0 0 1rem;
	padding: 0;
}

.ogcc-cats__legend {
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--ogcc-muted);
	margin-bottom: 0.65rem;
	padding: 0;
}

.ogcc-cat {
	display: block;
	padding: 0.75rem 0.85rem;
	margin-bottom: 0.5rem;
	background: var(--ogcc-bg);
	border: 1px solid var(--ogcc-border);
	border-radius: 8px;
	cursor: pointer;
}

.ogcc-cat:last-of-type {
	margin-bottom: 0;
}

.ogcc-cat__head {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin-bottom: 0.25rem;
}

.ogcc-cat__head input {
	width: 1.05rem;
	height: 1.05rem;
	accent-color: var(--ogcc-accent);
	flex-shrink: 0;
}

.ogcc-cat__head strong {
	font-size: 0.95rem;
}

.ogcc-cat__desc {
	display: block;
	font-size: 0.85rem;
	line-height: 1.45;
	color: var(--ogcc-muted);
	padding-left: 1.6rem;
}

.ogcc-cookie-list {
	margin: 0.45rem 0 0;
	padding: 0 0 0 1.6rem;
	list-style: none;
	font-size: 0.78rem;
	line-height: 1.4;
	color: var(--ogcc-muted);
}

.ogcc-cookie-list li {
	margin: 0.15rem 0;
}

.ogcc-cookie-list code {
	font-size: 0.78rem;
	background: rgba(28, 43, 26, 0.06);
	padding: 0.05rem 0.3rem;
	border-radius: 3px;
	color: var(--ogcc-text);
}

.ogcc-cookie-list__provider {
	opacity: 0.85;
}

.ogcc-footer-bar {
	position: fixed !important;
	z-index: 999990 !important;
	left: 16px;
	bottom: 16px;
	margin: 0 !important;
	padding: 0 !important;
	pointer-events: none;
	width: auto !important;
	max-width: none !important;
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
}

.ogcc-footer-bar .ogcc-reopen-btn {
	pointer-events: auto;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	appearance: none !important;
	-webkit-appearance: none !important;
	margin: 0 !important;
	padding: 0 !important;
	width: 48px !important;
	height: 48px !important;
	min-width: 48px !important;
	min-height: 48px !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: #2f7a3a !important;
	color: #fff !important;
	font-size: 0 !important;
	line-height: 0 !important;
	text-decoration: none !important;
	text-indent: 0 !important;
	box-shadow: 0 4px 18px rgba(28, 43, 26, 0.28) !important;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.ogcc-footer-bar .ogcc-reopen-btn:hover,
.ogcc-footer-bar .ogcc-reopen-btn:focus {
	background: #256330 !important;
	color: #fff !important;
	text-decoration: none !important;
	box-shadow: 0 6px 22px rgba(28, 43, 26, 0.34) !important;
	transform: translateY(-2px) scale(1.03);
	outline: none;
}

.ogcc-footer-bar .ogcc-reopen-btn:focus-visible {
	outline: 2px solid #1c2b1a;
	outline-offset: 3px;
}

.ogcc-reopen-btn__icon {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	color: #fff !important;
}

.ogcc-reopen-btn__icon svg {
	display: block;
	width: 22px;
	height: 22px;
}

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

.ogcc-settings-link:hover {
	color: var(--ogcc-accent);
}

html.ogcc-open .ogcc-footer-bar {
	visibility: hidden;
}

@media (max-width: 520px) {
	.ogcc-footer-bar {
		left: 10px;
		bottom: 10px;
	}

	.ogcc-footer-bar .ogcc-reopen-btn {
		width: 44px !important;
		height: 44px !important;
		min-width: 44px !important;
		min-height: 44px !important;
	}

	.ogcc-banner {
		width: 100%;
		margin: 0;
		border-radius: var(--ogcc-radius) var(--ogcc-radius) 0 0;
		padding: 1.1rem 1rem 1.25rem;
	}

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

	.ogcc-btn {
		width: 100%;
		text-align: center;
	}

	.ogcc-btn--link {
		width: auto;
		align-self: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ogcc-banner,
	.ogcc-panel {
		animation: none;
	}
}
