.setka-wa[hidden],
.setka-wa__panel[hidden] {
	display: none !important;
}

.setka-wa {
	position: fixed;
	z-index: 99990;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
	max-width: min(360px, calc(100vw - 32px));
	font-family: inherit;
	line-height: 1.35;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .2s ease, transform .2s ease;
}

.setka-wa--ready {
	opacity: 1;
	transform: translateY(0);
}

.setka-wa--bottom-right {
	right: 22px;
	bottom: 22px;
}

.setka-wa--bottom-left {
	left: 22px;
	bottom: 22px;
	align-items: flex-start;
}

.setka-wa__launcher,
.setka-wa__action {
	-webkit-tap-highlight-color: transparent;
	text-decoration: none !important;
}

.setka-wa__launcher {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 54px;
	max-width: min(320px, calc(100vw - 32px));
	padding: 12px 18px;
	border: 0;
	border-radius: 999px;
	background: var(--setka-wa-color, #25d366);
	color: var(--setka-wa-text, #fff) !important;
	box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.setka-wa__launcher:hover,
.setka-wa__launcher:focus-visible {
	color: var(--setka-wa-text, #fff) !important;
	filter: brightness(.96);
	transform: translateY(-1px);
	box-shadow: 0 13px 32px rgba(0, 0, 0, .22);
}

.setka-wa__launcher:focus-visible,
.setka-wa__action:focus-visible,
.setka-wa__close:focus-visible {
	outline: 3px solid rgba(37, 211, 102, .3);
	outline-offset: 3px;
}

.setka-wa__icon {
	width: 28px;
	height: 28px;
	flex: 0 0 28px;
}

.setka-wa__panel {
	position: relative;
	width: min(340px, calc(100vw - 32px));
	padding: 24px;
	border: 1px solid rgba(20, 39, 28, .1);
	border-radius: 20px;
	background: #fff;
	color: #14271c;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .2);
}

.setka-wa__title {
	display: block;
	padding-right: 24px;
	font-size: 19px;
	line-height: 1.25;
}

.setka-wa__description,
.setka-wa__context {
	margin: 10px 0 0;
	font-size: 14px;
}

.setka-wa__context {
	padding: 10px 12px;
	border-radius: 10px;
	background: #f3f7f1;
	font-weight: 600;
}

.setka-wa__action {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin-top: 16px;
	padding: 10px 16px;
	border-radius: 12px;
	background: var(--setka-wa-color, #25d366);
	color: var(--setka-wa-text, #fff) !important;
	font-weight: 700;
}

.setka-wa__close {
	position: absolute;
	top: 10px;
	right: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #52635a;
	font: inherit;
	font-size: 25px;
	cursor: pointer;
}

.setka-wa--preview::before {
	content: "Тест";
	position: absolute;
	top: -9px;
	right: 12px;
	z-index: 2;
	padding: 3px 8px;
	border-radius: 999px;
	background: #14271c;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
}

@media (max-width: 782px) {
	.setka-wa--bottom-right {
		right: 14px;
		bottom: 14px;
	}

	.setka-wa--bottom-left {
		left: 14px;
		bottom: 14px;
	}

	.setka-wa__launcher {
		width: 58px;
		height: 58px;
		min-height: 58px;
		padding: 0;
	}

	.setka-wa__launcher > span {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.setka-wa,
	.setka-wa__launcher {
		transition: none;
	}
}


