/* Rework first-party cookie consent — compact bar, doesn't block forms */

.rework-cookie-banner {
	position: fixed;
	left: 12px;
	right: 12px;
	bottom: 12px;
	z-index: 99999;
	display: none;
	pointer-events: none;
}

.rework-cookie-banner.is-open {
	display: block;
}

.rework-cookie-banner__panel {
	pointer-events: auto;
	max-width: 520px;
	margin: 0 auto;
	padding: 14px 16px;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 12px 32px rgba(13, 59, 94, 0.18);
	box-sizing: border-box;
	font-family: inherit;
	color: #1f2937;
}

.rework-cookie-banner__text {
	margin: 0 0 10px;
	font-size: 13px;
	line-height: 1.45;
}

.rework-cookie-banner__text a {
	color: #0a65fc;
	text-decoration: underline;
}

.rework-cookie-banner__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.rework-cookie-banner__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 14px;
	border: 0;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	box-sizing: border-box;
	transition: transform 140ms cubic-bezier(0.23, 1, 0.32, 1), opacity 160ms ease;
}

.rework-cookie-banner__btn:active {
	transform: scale(0.97);
}

.rework-cookie-banner__btn--accept {
	background: #0a65fc;
	color: #fff;
}

.rework-cookie-banner__btn--decline {
	background: #eef2f7;
	color: #1f2937;
}

/* Settings control is rendered inside [rework_footer_about] — not a floating pill. */
.footer-about__cookie {
	margin: 12px 0 0;
}

.footer-about__cookie-btn.rework-cookie-settings,
button.rework-cookie-settings.footer-about__cookie-btn {
	display: inline;
	position: static;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: inherit;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.footer-about__cookie-btn.rework-cookie-settings:hover,
.footer-about__cookie-btn.rework-cookie-settings:focus-visible {
	color: #0a65fc;
}

/* Hide legacy WordPress GDPR UI if plugin still active */
.wordpress-gdpr-popup,
.wordpress-gdpr-popup-backdrop,
.wordpress-gdpr-privacy-settings-popup,
.wordpress-gdpr-privacy-settings-popup-backdrop,
.wordpress-gdpr-privacy-settings-popup-container {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

@media (max-width: 767px) {
	.rework-cookie-banner {
		left: 8px;
		right: 8px;
		bottom: 8px;
	}

	.rework-cookie-banner__panel {
		max-width: none;
		max-height: 32vh;
		overflow: auto;
		padding: 10px 12px;
	}

	.rework-cookie-banner__text {
		margin: 0 0 8px;
		font-size: 12px;
		line-height: 1.35;
	}

	.rework-cookie-banner__actions {
		width: 100%;
		gap: 6px;
	}

	.rework-cookie-banner__btn {
		flex: 1 1 calc(50% - 4px);
		min-width: 0;
		min-height: 36px;
		padding: 0 10px;
		font-size: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rework-cookie-banner__btn {
		transition: none;
	}
}
