.wt-scm-wrapper {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 10px;
	position: fixed;
	pointer-events: none;
}

.wt-scm-wrapper *,
.wt-scm-wrapper *::before,
.wt-scm-wrapper *::after {
	box-sizing: border-box;
}

.wt-scm-item {
	align-items: center;
	background: var(--wt-scm-bg, #0068ff);
	border: 2px solid var(--wt-scm-border, #0068ff);
	border-radius: var(--wt-scm-radius, 50px);
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
	color: var(--wt-scm-color, #fff);
	display: inline-flex;
	font-size: 15px;
	font-weight: 600;
	gap: 10px;
	justify-content: center;
	line-height: 1;
	min-height: var(--wt-scm-size, 56px);
	min-width: var(--wt-scm-size, 56px);
	padding: 0;
	pointer-events: auto;
	position: relative;
	text-decoration: none;
	transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.wt-scm-item:hover,
.wt-scm-item:focus {
	color: var(--wt-scm-color, #fff);
	text-decoration: none;
}

.wt-scm-item:focus-visible {
	outline: 3px solid rgba(34, 113, 177, 0.45);
	outline-offset: 3px;
}

.wt-scm-icon {
	align-items: center;
	display: inline-flex;
	flex: 0 0 auto;
	height: calc(var(--wt-scm-size, 56px) * 0.48);
	justify-content: center;
	width: calc(var(--wt-scm-size, 56px) * 0.48);
}

.wt-scm-icon svg,
.wt-scm-icon img {
	display: block;
	height: 100%;
	width: 100%;
}

.wt-scm-icon svg {
	fill: currentColor;
}

/* ── Custom image mode ──────────────────────────────────────────────────── */

/* When using a custom image, the image fills the entire circular button */
.wt-scm-has-image {
	padding: 0;
	overflow: hidden;
	background: var(--wt-scm-bg, #0068ff) !important;
}

/* Full-bleed cover image */
.wt-scm-custom-img {
	display: block;
	height: var(--wt-scm-size, 56px);
	width: var(--wt-scm-size, 56px);
	object-fit: cover;
	object-position: center;
	border-radius: inherit;
	flex-shrink: 0;
}

/* When display mode is icons-text, keep the image square, add right padding for text */
.wt-scm-display-icons-text .wt-scm-has-image {
	padding-right: calc(var(--wt-scm-size, 56px) * 0.32);
}

.wt-scm-display-icons-text .wt-scm-has-image .wt-scm-custom-img {
	flex-shrink: 0;
}

.wt-scm-display-icons-text .wt-scm-item {
	min-width: max(var(--wt-scm-size, 56px), 148px);
	padding-left: calc(var(--wt-scm-size, 56px) * 0.28);
	padding-right: calc(var(--wt-scm-size, 56px) * 0.32);
}

.wt-scm-label {
	color: currentColor;
	max-width: 180px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wt-scm-tooltip {
	background: #111827;
	border-radius: 6px;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.25;
	max-width: 220px;
	opacity: 0;
	padding: 7px 9px;
	pointer-events: none;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	transition: opacity 160ms ease, transform 160ms ease;
	visibility: hidden;
	white-space: nowrap;
}

.wt-scm-position-bottom-right .wt-scm-tooltip,
.wt-scm-position-middle-right .wt-scm-tooltip {
	right: calc(100% + 10px);
}

.wt-scm-position-bottom-left .wt-scm-tooltip,
.wt-scm-position-middle-left .wt-scm-tooltip {
	left: calc(100% + 10px);
}

.wt-scm-item:hover .wt-scm-tooltip,
.wt-scm-item:focus .wt-scm-tooltip {
	opacity: 1;
	transform: translateY(-50%);
	visibility: visible;
}

.wt-scm-hover-scale .wt-scm-item:hover,
.wt-scm-hover-scale .wt-scm-item:focus {
	transform: scale(1.08);
}

.wt-scm-hover-rotate .wt-scm-item:hover,
.wt-scm-hover-rotate .wt-scm-item:focus {
	transform: rotate(5deg);
}

.wt-scm-hover-glow .wt-scm-item:hover,
.wt-scm-hover-glow .wt-scm-item:focus {
	box-shadow: 0 0 0 6px rgba(0, 104, 255, 0.18), 0 14px 32px rgba(15, 23, 42, 0.22);
}

.wt-scm-animation-pulse .wt-scm-item {
	animation: wtScmPulse 2s ease-in-out infinite;
}

.wt-scm-animation-bounce .wt-scm-item {
	animation: wtScmBounce 2.4s ease-in-out infinite;
}

.wt-scm-animation-shake .wt-scm-item {
	animation: wtScmShake 3s ease-in-out infinite;
}

.wt-scm-animation-floating .wt-scm-item {
	animation: wtScmFloating 3s ease-in-out infinite;
}

@keyframes wtScmPulse {
	0%,
	100% {
		box-shadow: 0 0 0 0 rgba(0, 104, 255, 0.32), 0 12px 30px rgba(15, 23, 42, 0.18);
	}

	50% {
		box-shadow: 0 0 0 12px rgba(0, 104, 255, 0), 0 12px 30px rgba(15, 23, 42, 0.18);
	}
}

@keyframes wtScmBounce {
	0%,
	20%,
	50%,
	80%,
	100% {
		transform: translateY(0);
	}

	40% {
		transform: translateY(-10px);
	}

	60% {
		transform: translateY(-5px);
	}
}

@keyframes wtScmShake {
	0%,
	88%,
	100% {
		transform: translateX(0);
	}

	91%,
	97% {
		transform: translateX(-4px);
	}

	94% {
		transform: translateX(4px);
	}
}

@keyframes wtScmFloating {
	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-7px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.wt-scm-wrapper .wt-scm-item {
		animation: none;
		transition: none;
	}
}

@media (max-width: 480px) {
	.wt-scm-wrapper {
		gap: 8px;
	}

	.wt-scm-display-icons-text .wt-scm-item {
		min-width: max(var(--wt-scm-size, 56px), 132px);
	}

	.wt-scm-label {
		max-width: 140px;
	}

	.wt-scm-tooltip {
		display: none;
	}
}
