/* Cognitio Cookies — banner styles.
   Uses the theme's CSS variables with hardcoded fallbacks so the plugin still
   renders sanely if activated alongside a different theme. */

.cogcb {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 9990;
	background: var(--background, #F7F3EA);
	border-top: 1px solid var(--border, rgba(32, 32, 32, 0.1));
	box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
	transform: translateY(100%);
	transition: transform 0.35s ease;
}
.cogcb.is-visible { transform: translateY(0); }
.cogcb[hidden] { display: none; }

.cogcb__inner {
	max-width: 1400px;
	margin: 0 auto;
	padding: 20px 24px;
	display: flex;
	flex-wrap: wrap;
	gap: 16px 32px;
	align-items: center;
	justify-content: space-between;
}

.cogcb__text { flex: 1 1 380px; min-width: 0; }

.cogcb__title {
	font-family: var(--font-serif, Georgia, serif);
	font-size: 18px;
	font-weight: 600;
	color: var(--primary, #162C46);
	margin: 0 0 4px;
	line-height: 1.3;
}

.cogcb__msg {
	font-size: 14px;
	color: rgba(32, 32, 32, 0.75);
	line-height: 1.6;
	margin: 0;
}
.cogcb__msg a {
	color: var(--accent, #C49A3A);
	text-decoration: underline;
}
.cogcb__msg a:hover { color: var(--primary, #162C46); }

/* Preferences panel */
.cogcb__prefs {
	flex: 1 1 100%;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 32px;
	padding: 12px 16px;
	background: rgba(32, 32, 32, 0.03);
	border-left: 3px solid var(--accent, #C49A3A);
}
.cogcb__prefs[hidden] { display: none; }
.cogcb__pref {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: var(--foreground, #202020);
	cursor: pointer;
}
.cogcb__pref input { accent-color: var(--primary, #162C46); }
.cogcb__pref input:disabled + span { color: rgba(32, 32, 32, 0.55); }

/* Actions */
.cogcb__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.cogcb__btn {
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 12px 20px;
	border: 1px solid transparent;
	border-radius: 0;
	cursor: pointer;
	transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
	-webkit-appearance: none;
	appearance: none;
}
.cogcb__btn[hidden] { display: none; }

.cogcb__btn--accent {
	background: var(--accent, #C49A3A);
	color: var(--accent-foreground, #fff);
}
.cogcb__btn--accent:hover { background: #b3892f; }

.cogcb__btn--outline {
	background: transparent;
	color: var(--primary, #162C46);
	border-color: var(--primary, #162C46);
}
.cogcb__btn--outline:hover {
	background: var(--primary, #162C46);
	color: #fff;
}

.cogcb__btn--ghost {
	background: transparent;
	color: rgba(32, 32, 32, 0.6);
	text-decoration: underline;
	padding-left: 8px;
	padding-right: 8px;
}
.cogcb__btn--ghost:hover { color: var(--primary, #162C46); }

/* Reopen button — bottom-left so it doesn't clash with the theme's
   back-to-top button (bottom-right). */
.cogcb-reopen {
	position: fixed;
	bottom: 32px;
	left: 32px;
	z-index: 50;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--primary, #162C46);
	color: #fff;
	border: 1px solid transparent;
	border-radius: 0;
	cursor: pointer;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
	transition: background 0.25s ease, border-color 0.25s ease;
}
.cogcb-reopen:hover {
	background: var(--accent, #C49A3A);
}
.cogcb-reopen[hidden] { display: none; }

@media (max-width: 640px) {
	.cogcb__inner { padding: 16px; gap: 12px; }
	.cogcb__actions { width: 100%; }
	.cogcb__btn { flex: 1 1 auto; text-align: center; }
	.cogcb-reopen { bottom: 16px; left: 16px; }
}
