.sowc-floating,
.sowc-floating * {
	box-sizing: border-box;
}

.sowc-floating {
	position: fixed;
	width: var(--sowc-size, 60px);
	height: var(--sowc-size, 60px);
	right: max(var(--sowc-right, 24px), env(safe-area-inset-right));
	bottom: max(var(--sowc-bottom, 24px), env(safe-area-inset-bottom));
	z-index: 9999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1;
	pointer-events: auto;
}

.sowc-floating .sowc-trigger {
	display: flex;
	flex: 0 0 var(--sowc-size, 60px);
	align-items: center;
	justify-content: center;
	width: var(--sowc-size, 60px);
	min-width: var(--sowc-size, 60px);
	max-width: var(--sowc-size, 60px);
	height: var(--sowc-size, 60px);
	min-height: var(--sowc-size, 60px);
	max-height: var(--sowc-size, 60px);
	margin: 0;
	border: 0;
	padding: 0;
	border-radius: 50%;
	-webkit-appearance: none;
	appearance: none;
	background-color: var(--sowc-button, #25d366);
	background-image: none;
	box-shadow: 0 8px 26px rgba(20, 27, 38, .22);
	color: var(--sowc-icon, #fff);
	cursor: pointer;
	font: inherit;
	line-height: 1;
	overflow: hidden;
	pointer-events: auto;
	text-align: center;
	text-decoration: none;
	vertical-align: middle;
	animation: sowc-enter .45s cubic-bezier(.2, .8, .2, 1) both;
	transition: transform .18s ease, box-shadow .18s ease;
}

.sowc-floating .sowc-trigger:hover,
.sowc-floating .sowc-trigger:focus-visible {
	background-color: var(--sowc-button, #25d366);
	color: var(--sowc-icon, #fff);
	transform: translateY(-3px) scale(1.04);
	box-shadow: 0 12px 30px rgba(20, 27, 38, .28);
}

.sowc-floating .sowc-trigger::before,
.sowc-floating .sowc-trigger::after {
	display: none;
	content: none;
}

.sowc-trigger:focus-visible,
.sowc-start:focus-visible,
.sowc-close:focus-visible,
.sowc-product-button:focus-visible {
	outline: 3px solid #fbbc34;
	outline-offset: 3px;
}

.sowc-floating .sowc-trigger svg {
	display: block;
	flex: 0 0 55%;
	width: 55%;
	max-width: none;
	height: 55%;
	max-height: none;
	pointer-events: none;
}

.sowc-floating .sowc-popup {
	position: absolute;
	right: 0;
	bottom: calc(var(--sowc-size, 60px) + 14px);
	z-index: 2;
	width: min(320px, calc(100vw - 24px));
	padding: 24px;
	border: 1px solid rgba(95, 86, 198, .12);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 18px 50px rgba(32, 25, 67, .2);
	color: #211d38;
	opacity: 0;
	pointer-events: none;
	transform: translateY(8px) scale(.97);
	transform-origin: right bottom;
	visibility: hidden;
}

.sowc-floating .sowc-popup[hidden] {
	display: none !important;
}

.sowc-floating .sowc-popup.is-open {
	display: block;
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0) scale(1);
	visibility: visible;
	animation: sowc-popup-in .2s ease-out both;
}

.sowc-popup::before {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 5px;
	border-radius: 18px 18px 0 0;
	background: linear-gradient(90deg, var(--sowc-accent, #5f56c6), #a88edd, #fbbc34);
	content: "";
}

.sowc-popup h2 {
	margin: 11px 32px 2px 0;
	color: #211d38;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
}

.sowc-popup p {
	margin: 0 0 18px;
	color: #666077;
	font-size: 14px;
}

.sowc-popup-mark {
	display: grid;
	width: 38px;
	height: 38px;
	place-items: center;
	border-radius: 12px;
	background: #edf9f1;
	color: #1cae52;
}

.sowc-popup-mark svg {
	width: 22px;
	height: 22px;
}

.sowc-floating .sowc-popup .sowc-close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	min-width: 36px;
	max-width: 36px;
	height: 36px;
	min-height: 36px;
	max-height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	-webkit-appearance: none;
	appearance: none;
	background-color: transparent;
	background-image: none;
	box-shadow: none;
	color: #716b80;
	cursor: pointer;
	font: 400 22px/1 Arial, sans-serif;
	text-align: center;
	text-transform: none;
	touch-action: manipulation;
	transition: background-color .17s ease, color .17s ease, transform .17s ease;
}

.sowc-floating .sowc-popup .sowc-close:hover {
	background-color: #f0f0f1;
	color: #211d38;
}

.sowc-floating .sowc-popup .sowc-close:focus-visible {
	outline: 2px solid var(--sowc-accent, #5f56c6);
	outline-offset: 2px;
	background-color: #f6f7f7;
	color: #211d38;
}

.sowc-floating .sowc-popup .sowc-close:active {
	transform: scale(.95);
}

.sowc-floating .sowc-popup .sowc-close::before,
.sowc-floating .sowc-popup .sowc-close::after {
	display: none;
	content: none;
}

.sowc-start {
	display: block;
	padding: 11px 16px;
	border-radius: 10px;
	background: var(--sowc-accent, #5f56c6);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	transition: filter .18s ease, transform .18s ease;
}

.sowc-start:hover {
	color: #fff;
	filter: brightness(.94);
	transform: translateY(-1px);
}

.sowc-product-button {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-height: 44px;
	margin-top: 12px;
	padding: 10px 17px;
	border: 1px solid var(--sowc-accent, #5f56c6);
	border-radius: 8px;
	background: #fff;
	color: var(--sowc-accent, #5f56c6);
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.sowc-product-button:hover {
	background: var(--sowc-accent, #5f56c6);
	color: #fff;
	transform: translateY(-1px);
}

.sowc-product-icon,
.sowc-product-icon svg {
	display: block;
	width: 20px;
	height: 20px;
}

@keyframes sowc-enter {
	from { opacity: 0; transform: translateY(12px) scale(.86); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes sowc-popup-in {
	from { opacity: 0; transform: translateY(8px) scale(.97); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 782px) {
	.sowc-floating {
		right: max(var(--sowc-right, 20px), env(safe-area-inset-right));
		bottom: max(var(--sowc-bottom, 20px), env(safe-area-inset-bottom));
	}

	.sowc-floating .sowc-popup {
		position: fixed;
		right: 12px;
		bottom: calc(max(var(--sowc-bottom, 20px), env(safe-area-inset-bottom)) + var(--sowc-size, 60px) + 14px);
		left: auto;
		width: min(320px, calc(100vw - 24px));
		max-width: calc(100vw - 24px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.sowc-trigger,
	.sowc-popup.is-open {
		animation: none;
	}

	.sowc-trigger,
	.sowc-start,
	.sowc-product-button {
		transition: none;
	}
}
