/**
 * ClearWP — стили фронтенда.
 */

/* Запрет выделения */
body.cwp-no-select,
body.cwp-no-select * {
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

body.cwp-no-select input,
body.cwp-no-select textarea,
body.cwp-no-select select,
body.cwp-no-select [contenteditable="true"] {
	-webkit-user-select: text;
	-moz-user-select: text;
	-ms-user-select: text;
	user-select: text;
}

/* Cookie-уведомление */
.clearwp-cookie {
	position: fixed;
	z-index: 999999;
	display: flex;
	align-items: center;
	gap: 16px;
	box-sizing: border-box;
	max-width: 760px;
	padding: 16px 18px;
	border-radius: 10px;
	background: var(--cwp-cookie-bg, #1e1e1e);
	color: var(--cwp-cookie-color, #fff);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
	font-size: 14px;
	line-height: 1.45;
}

.clearwp-cookie[hidden] {
	display: none !important;
}

.clearwp-cookie--bottom {
	left: 50%;
	bottom: 20px;
	transform: translateX(-50%);
	width: calc(100% - 40px);
}

.clearwp-cookie--top {
	left: 50%;
	top: 20px;
	bottom: auto;
	transform: translateX(-50%);
	width: calc(100% - 40px);
}

.clearwp-cookie--bottom-left {
	left: 20px;
	bottom: 20px;
	max-width: 420px;
}

.clearwp-cookie--bottom-right {
	right: 20px;
	bottom: 20px;
	max-width: 420px;
}

.clearwp-cookie__text {
	flex: 1 1 auto;
}

.clearwp-cookie__text a {
	color: inherit;
	text-decoration: underline;
}

.clearwp-cookie__accept {
	flex: 0 0 auto;
	padding: 9px 18px;
	border: 0;
	border-radius: 6px;
	background: var(--cwp-cookie-color, #fff);
	color: var(--cwp-cookie-bg, #1e1e1e);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.clearwp-cookie__accept:hover,
.clearwp-cookie__accept:focus {
	opacity: 0.88;
}

/* Ссылки, которые открываются скриптом */
a[data-cwp-href],
.cwp-author-link {
	cursor: pointer;
}

@media (max-width: 600px) {
	.clearwp-cookie,
	.clearwp-cookie--bottom,
	.clearwp-cookie--top,
	.clearwp-cookie--bottom-left,
	.clearwp-cookie--bottom-right {
		left: 10px;
		right: 10px;
		top: auto;
		bottom: 10px;
		width: auto;
		max-width: none;
		transform: none;
		flex-direction: column;
		align-items: stretch;
	}

	.clearwp-cookie--top {
		top: 10px;
		bottom: auto;
	}

	.clearwp-cookie__accept {
		width: 100%;
	}
}
