.sst-button {
	position: fixed;
	right: max(20px, env(safe-area-inset-right));
	bottom: max(20px, env(safe-area-inset-bottom));
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--accent-1, #ffee58) 38%, transparent);
	border-radius: 50%;
	background: color-mix(in srgb, var(--wp--preset--color--accent-1, #ffee58) 20%, transparent);
	color: var(--wp--preset--color--contrast, #111);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16), 0 8px 20px rgba(0, 0, 0, 0.1);
	cursor: pointer;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(8px);
	transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.sst-button.sst-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

.sst-button:hover {
	border-color: color-mix(in srgb, var(--wp--preset--color--accent-1, #ffee58) 65%, transparent);
	background: color-mix(in srgb, var(--wp--preset--color--accent-1, #ffee58) 30%, transparent);
}

.sst-button:active {
	transform: translateY(1px) scale(0.97);
}

.sst-button:focus-visible {
	outline: 2px solid var(--wp--preset--color--contrast, #111);
	outline-offset: 3px;
}

.sst-icon {
	display: block;
	width: 24px;
	height: 24px;
}

.sst-button .visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

@media (prefers-color-scheme: dark) {
	.sst-button {
		border-color: color-mix(in srgb, var(--wp--preset--color--accent-1, #ffee58) 42%, transparent);
		background: color-mix(in srgb, var(--wp--preset--color--accent-1, #ffee58) 22%, transparent);
		color: #ffef9e;
		box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 8px 20px rgba(0, 0, 0, 0.4);
	}

	.sst-button:hover {
		border-color: color-mix(in srgb, var(--wp--preset--color--accent-1, #ffee58) 75%, transparent);
		background: color-mix(in srgb, var(--wp--preset--color--accent-1, #ffee58) 32%, transparent);
	}

	.sst-button:focus-visible {
		outline-color: #ffef9e;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sst-button {
		transition: none;
	}

	.sst-button:active {
		transform: translateY(0);
	}
}

@media print {
	.sst-button {
		display: none;
	}
}
