/* Floating email support button — matched to the supplied reference. */
.stides-sup {
	--stides-sup-red: #d9000d;
	--stides-sup-red-hover: #b8000b;
	position: fixed;
	right: 18px;
	bottom: 78px;
	z-index: 99992;
	font-family: Arial, Helvetica, sans-serif;
	line-height: 1.55;
	transition: opacity 0.24s ease, visibility 0.24s ease;
}

body.home .stides-sup,
body.wp-front-page .stides-sup {
	bottom: 20px;
}

.stides-sup,
.stides-sup * {
	box-sizing: border-box;
}

.stides-sup__btn {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--stides-sup-red);
	color: #fff;
	border: 0;
	border-radius: 30px;
	padding: 13px 22px;
	font: 700 16px Arial, Helvetica, sans-serif;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
	transform-origin: center;
	animation:
		stides-sup-in 0.55s cubic-bezier(0.2, 0.9, 0.25, 1.2) both,
		stides-sup-pulse 2.8s ease-in-out 0.75s infinite;
	-webkit-tap-highlight-color: transparent;
}

.stides-sup__btn::after {
	content: "";
	position: absolute;
	inset: -2px;
	z-index: -1;
	border: 2px solid rgba(217, 0, 13, 0.45);
	border-radius: inherit;
	pointer-events: none;
	opacity: 0;
	transform: scale(0.98);
	animation: stides-sup-ring 2.8s ease-out 0.75s infinite;
}

.stides-sup__btn:hover,
.stides-sup__btn:focus-visible,
.stides-sup.is-open .stides-sup__btn {
	background: var(--stides-sup-red-hover);
}

.stides-sup__btn:hover,
.stides-sup__btn:focus-visible {
	animation-play-state: paused;
}

.stides-sup__btn:hover::after,
.stides-sup__btn:focus-visible::after {
	animation-play-state: paused;
}

.stides-sup.is-open .stides-sup__btn {
	animation: none;
}

.stides-sup.is-open .stides-sup__btn::after {
	animation: none;
	opacity: 0;
}

.stides-sup__btn:focus-visible {
	outline: 3px solid rgba(217, 0, 13, 0.38);
	outline-offset: 3px;
}

.stides-sup__btn svg {
	width: 20px;
	height: 20px;
	flex: none;
	fill: #fff;
}

.stides-sup__panel {
	position: absolute;
	right: 0;
	bottom: 60px;
	width: 290px;
	max-width: calc(100vw - 20px);
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(10px) scale(0.97);
	transform-origin: bottom right;
	transition:
		opacity 0.24s ease,
		transform 0.24s cubic-bezier(0.2, 0.9, 0.25, 1.05),
		visibility 0.24s ease;
}

.stides-sup.is-open .stides-sup__panel {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0) scale(1);
}

.stides-sup__head {
	background: var(--stides-sup-red);
	color: #fff;
	padding: 14px 16px;
	font-weight: 700;
	font-size: 16px;
}

.stides-sup__head small {
	display: block;
	font-weight: 400;
	font-size: 12px;
	opacity: 0.9;
	margin-top: 2px;
}

.stides-sup__link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	color: #222;
	text-decoration: none;
	font-size: 15px;
}

.stides-sup__link:hover,
.stides-sup__link:focus-visible {
	background: #f6f6f6;
	color: #222;
	text-decoration: none;
}

.stides-sup__link:focus-visible {
	outline: 2px solid rgba(217, 0, 13, 0.45);
	outline-offset: -2px;
}

.stides-sup__text {
	min-width: 0;
}

.stides-sup__text b {
	display: block;
	font-size: 14px;
}

.stides-sup__text span {
	font-size: 13px;
	color: #555;
	overflow-wrap: anywhere;
}

.stides-sup__ic {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	background: var(--stides-sup-red);
}

.stides-sup__ic svg {
	width: 20px;
	height: 20px;
	fill: #fff;
}

/* Keep the age gate, mini-cart drawer, and mobile navigation unobstructed. */
body:has(.stides-agegate) .stides-sup,
body:has(.wc-block-components-drawer__screen-overlay--with-slide-in) .stides-sup,
body:has(.wp-block-navigation__responsive-container.is-menu-open) .stides-sup {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

@keyframes stides-sup-in {
	from {
		opacity: 0;
		transform: translateY(16px) scale(0.92);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes stides-sup-pulse {
	0%,
	100% {
		box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(217, 0, 13, 0.18);
	}

	50% {
		box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32), 0 0 0 7px rgba(217, 0, 13, 0.08);
	}
}

@keyframes stides-sup-ring {
	0% {
		opacity: 0.55;
		transform: scale(0.98);
	}

	70% {
		opacity: 0;
		transform: scale(1.13, 1.32);
	}

	100% {
		opacity: 0;
		transform: scale(1.13, 1.32);
	}
}

@media (max-width: 640px) {
	.stides-sup {
		right: max(10px, env(safe-area-inset-right));
		bottom: 72px;
	}

	body.home .stides-sup,
	body.wp-front-page .stides-sup {
		bottom: max(16px, env(safe-area-inset-bottom));
	}

	.stides-sup__btn {
		padding: 11px 18px;
		font-size: 15px;
	}

	.stides-sup__panel {
		width: 270px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.stides-sup,
	.stides-sup__panel {
		transition: none;
	}

	.stides-sup__btn,
	.stides-sup__btn::after {
		animation: none;
	}
}

@media print {
	.stides-sup {
		display: none !important;
	}
}
