/**
 * Cookie Care script blocker frontend styles.
 *
 * Blocked iframes are hidden (their src is about:blank anyway) and replaced
 * by a placeholder with a per-category Enable button, inserted by
 * assets/js/unblock.js.
 *
 * @package CookieCare
 */

/* Hide blocked iframes; the placeholder stands in for them. */
iframe[data-cookiecare-blocked] {
	display: none !important;
}

.cookiecare-embed-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-height: 120px;
	margin: 0 0 16px;
	padding: 24px 16px;
	background: #f0f2f5;
	border: 2px dashed #c3c7cf;
	border-radius: 8px;
	color: #4b5563;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
}

.cookiecare-embed-placeholder__text {
	margin: 0;
	padding: 0;
}

.cookiecare-embed-placeholder__button {
	padding: 8px 22px;
	border: 0;
	border-radius: 4px;
	background: #2271b1;
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.4;
	cursor: pointer;
	transition: background-color 0.15s ease-in-out;
}

.cookiecare-embed-placeholder__button:hover,
.cookiecare-embed-placeholder__button:focus-visible {
	background: #135e96;
}

.cookiecare-embed-placeholder__button:focus-visible {
	outline: 2px solid #135e96;
	outline-offset: 2px;
}

@media (max-width: 480px) {
	.cookiecare-embed-placeholder {
		min-height: 96px;
		padding: 16px 12px;
		font-size: 13px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cookiecare-embed-placeholder,
	.cookiecare-embed-placeholder__button {
		transition: none;
		animation: none;
	}
}
