/* WidgetCat Cookies Consent — front-end styles */

.widgetcat-cc {
	--widgetcat-primary: #2563eb;
	--widgetcat-text: #ffffff;
	position: fixed;
	z-index: 999999;
	box-sizing: border-box;
	background: #1f2430;
	color: #e8eaed;
	box-shadow: 0 -2px 24px rgba(0, 0, 0, 0.25);
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

.widgetcat-cc[hidden] {
	display: none;
}

.widgetcat-cc *,
.widgetcat-cc *::before,
.widgetcat-cc *::after {
	box-sizing: border-box;
}

/* Full-width bar across the bottom */
.widgetcat-cc--bar {
	left: 0;
	right: 0;
	bottom: 0;
}

.widgetcat-cc--bar .widgetcat-cc__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 18px 24px;
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.widgetcat-cc--bar .widgetcat-cc__message {
	flex: 1 1 320px;
}

/* Floating box, corner-anchored */
.widgetcat-cc--box {
	bottom: 20px;
	width: 360px;
	max-width: calc(100vw - 40px);
	border-radius: 14px;
}

.widgetcat-cc--box.widgetcat-cc--left {
	left: 20px;
}

.widgetcat-cc--box.widgetcat-cc--right {
	right: 20px;
}

.widgetcat-cc--box .widgetcat-cc__inner {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.widgetcat-cc__message {
	margin: 0;
}

.widgetcat-cc__policy {
	color: var(--widgetcat-primary);
	text-decoration: underline;
	white-space: nowrap;
	filter: brightness(1.4);
}

.widgetcat-cc__actions {
	display: flex;
	gap: 10px;
	flex-shrink: 0;
}

.widgetcat-cc__btn {
	appearance: none;
	border: 0;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	padding: 10px 20px;
	border-radius: 8px;
	transition: transform 0.08s ease, opacity 0.15s ease, background 0.15s ease;
}

.widgetcat-cc__btn:active {
	transform: translateY(1px);
}

.widgetcat-cc__btn--accept {
	background: var(--widgetcat-primary);
	color: var(--widgetcat-text);
}

.widgetcat-cc__btn--accept:hover {
	opacity: 0.9;
}

.widgetcat-cc__btn--decline {
	background: transparent;
	color: #c7cbd1;
	border: 1px solid rgba(255, 255, 255, 0.25);
}

.widgetcat-cc__btn--decline:hover {
	background: rgba(255, 255, 255, 0.08);
}

/* Small reopen button after a choice is made */
.widgetcat-cc-reopen {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 999998;
	appearance: none;
	border: 0;
	cursor: pointer;
	font-weight: 600;
	font-size: 13px;
	padding: 8px 14px;
	border-radius: 999px;
	background: #1f2430;
	color: #e8eaed;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.widgetcat-cc-reopen[hidden] {
	display: none;
}

.widgetcat-cc-reopen:hover {
	background: #2a3040;
}

@media (max-width: 600px) {
	.widgetcat-cc--bar .widgetcat-cc__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
	}

	.widgetcat-cc__actions {
		justify-content: stretch;
	}

	.widgetcat-cc__btn {
		flex: 1;
	}
}
