/* Дополнительные стили для подвала и связанных виджетов */

/* JivoSite floating button */
.st1 {
	position: fixed;
	box-shadow: 0 12px 14px 8px #d4d4d4;
	transform: rotate(-90deg) translate(100%);
	transform-origin: bottom right;
	right: 0;
	border-top-right-radius: 34px;
	background: #4baf50;
	bottom: 30px;
	cursor: pointer;
	z-index: 10000;
}

.st2 {
	margin: 12px 33px 12px 16px;
	font: 14px Arial;
	color: #fff;
}

.st3 {
	position: absolute;
	right: 0;
	top: 0;
	width: 32px;
	height: 34px;
	background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2232%22%20height%3D%2240%22%20viewBox%3D%220%200%2032%2040%22%3E%0A%20%20%20%20%3Cg%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%0A%20%20%20%20%20%20%20%20%3Cpath%20fill%3D%22%234CAF50%22%20d%3D%22M0%200h9.02L32%2033.196V40H0z%22%2F%3E%0A%20%20%20%20%20%20%20%20%3Cpath%20fill%3D%22%2318C139%22%20d%3D%22M9%200c3.581.05%2023%205.426%2023%2033.08v.03C18.922%2030.751%209%2019.311%209%205.554V0z%22%2F%3E%0A%20%20%20%20%3C%2Fg%3E%0A%3C%2Fsvg%3E%0A");
}

/* Cookie banner */
#cookie-banner {
	position: fixed;
	left: 50%;
	transform: translateX(-50%);
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	z-index: 2147483647;
	width: min(920px, calc(100% - 32px));
	padding: 16px 18px;
	border-radius: 16px;
	display: none;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 16px;
	background: #111;
	color: #fff;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
	font:
		14px/1.45 system-ui,
		-apple-system,
		"Segoe UI",
		Roboto,
		Arial,
		sans-serif;
	box-sizing: border-box;
}

#cookie-banner * {
	box-sizing: border-box;
}

#cookie-banner p {
	margin: 0;
	flex: 1 1 360px;
}

#cookie-banner a {
	color: #ffd65c;
	text-decoration: underline;
	text-underline-offset: 2px;
}

#cookie-banner .btns {
	display: flex;
	gap: 10px;
	flex: 0 0 auto;
	align-items: center;
	justify-content: flex-end;
}

#cookie-banner button {
	appearance: none;
	border: 0;
	border-radius: 12px;
	padding: 12px 16px;
	height: 44px;
	cursor: pointer;
	white-space: nowrap;
	font-weight: 600;
	transition:
		transform 0.06s ease,
		filter 0.12s ease,
		opacity 0.12s ease;
}

#cookie-banner button:active {
	transform: translateY(1px);
}

#cookie-banner button:focus-visible {
	outline: 2px solid #ffd65c;
	outline-offset: 2px;
}

#cookie-accept {
	background: #ffd65c;
	color: #111;
}

#cookie-accept:hover {
	filter: brightness(0.97);
}

#cookie-decline {
	background: #2a2a2a;
	color: #fff;
}

#cookie-decline:hover {
	filter: brightness(1.06);
}

@media (max-width: 600px) {
	#cookie-banner {
		width: min(960px, calc(100% - 24px));
		padding: 12px;
		gap: 10px;
	}

	#cookie-banner p {
		flex: 1 1 100%;
	}

	#cookie-banner .btns {
		width: 100%;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}

	#cookie-banner button {
		width: 100%;
		padding: 12px;
		height: 44px;
		border-radius: 10px;
	}
}

@media (max-width: 380px) {
	#cookie-banner .btns {
		grid-template-columns: 1fr;
	}
}

@supports (height: 1svh) {
	#cookie-banner {
		bottom: calc(20px + env(safe-area-inset-bottom, 0px));
	}
}
