.setw-tooltip {
	position: relative;
	display: inline-block;
	padding: 12px 24px;
	color: #1f2937;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.setw-tooltip__trigger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	outline: none;
}

.setw-tooltip__trigger a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: inherit;
	text-decoration: none;
}

.setw-tooltip__trigger img {
	display: block;
	max-width: 100%;
	height: auto;
}

.setw-tooltip__trigger svg {
	display: block;
}

.setw-tooltip__content {
	position: absolute;
	z-index: 20;
	display: block;
	width: 220px;
	max-width: 220px;
	padding: 10px 12px;
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	background: #111827;
	color: #fff;
	border-radius: 6px;
	line-height: 1.4;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.setw-tooltip__content p:last-child {
	margin-bottom: 0;
}

.setw-tooltip__content::after {
	content: "";
	position: absolute;
	border-width: 6px;
	border-style: solid;
}

.setw-tooltip:hover .setw-tooltip__content,
.setw-tooltip:focus-within .setw-tooltip__content,
.setw-tooltip__trigger:focus + .setw-tooltip__content {
	visibility: visible;
	opacity: 1;
}

.setw-tooltip__content--top {
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	margin-bottom: 12px;
}

.setw-tooltip:hover .setw-tooltip__content--top,
.setw-tooltip:focus-within .setw-tooltip__content--top,
.setw-tooltip__trigger:focus + .setw-tooltip__content--top {
	animation: setwTooltipTopIn 250ms ease;
}

.setw-tooltip__content--top::after {
	top: 100%;
	left: calc(50% - 6px);
	border-color: #111827 transparent transparent transparent;
}

.setw-tooltip__content--right {
	top: 50%;
	left: 100%;
	transform: translateY(-50%);
	margin-left: 12px;
}

.setw-tooltip:hover .setw-tooltip__content--right,
.setw-tooltip:focus-within .setw-tooltip__content--right,
.setw-tooltip__trigger:focus + .setw-tooltip__content--right {
	animation: setwTooltipRightIn 250ms ease;
}

.setw-tooltip__content--right::after {
	top: calc(50% - 6px);
	right: 100%;
	border-color: transparent #111827 transparent transparent;
}

.setw-tooltip__content--bottom {
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	margin-top: 12px;
}

.setw-tooltip:hover .setw-tooltip__content--bottom,
.setw-tooltip:focus-within .setw-tooltip__content--bottom,
.setw-tooltip__trigger:focus + .setw-tooltip__content--bottom {
	animation: setwTooltipBottomIn 250ms ease;
}

.setw-tooltip__content--bottom::after {
	bottom: 100%;
	left: calc(50% - 6px);
	border-color: transparent transparent #111827 transparent;
}

.setw-tooltip__content--left {
	top: 50%;
	right: 100%;
	transform: translateY(-50%);
	margin-right: 12px;
}

.setw-tooltip:hover .setw-tooltip__content--left,
.setw-tooltip:focus-within .setw-tooltip__content--left,
.setw-tooltip__trigger:focus + .setw-tooltip__content--left {
	animation: setwTooltipLeftIn 250ms ease;
}

.setw-tooltip__content--left::after {
	top: calc(50% - 6px);
	left: 100%;
	border-color: transparent transparent transparent #111827;
}

.setw-tooltip-align-left .setw-tooltip {
	text-align: left;
}

.setw-tooltip-align-center .setw-tooltip {
	text-align: center;
}

.setw-tooltip-align-right .setw-tooltip {
	text-align: right;
}

@media (min-width: 768px) and (max-width: 1024px) {
	.setw-tooltip-align-tablet-left .setw-tooltip {
		text-align: left;
	}

	.setw-tooltip-align-tablet-center .setw-tooltip {
		text-align: center;
	}

	.setw-tooltip-align-tablet-right .setw-tooltip {
		text-align: right;
	}
}

@media (max-width: 767px) {
	.setw-tooltip-align-mobile-left .setw-tooltip {
		text-align: left;
	}

	.setw-tooltip-align-mobile-center .setw-tooltip {
		text-align: center;
	}

	.setw-tooltip-align-mobile-right .setw-tooltip {
		text-align: right;
	}
}

@keyframes setwTooltipTopIn {
	0% {
		opacity: 0;
		bottom: 110%;
	}

	100% {
		opacity: 1;
		bottom: 100%;
	}
}

@keyframes setwTooltipRightIn {
	0% {
		opacity: 0;
		left: 105%;
	}

	100% {
		opacity: 1;
		left: 100%;
	}
}

@keyframes setwTooltipBottomIn {
	0% {
		opacity: 0;
		top: 110%;
	}

	100% {
		opacity: 1;
		top: 100%;
	}
}

@keyframes setwTooltipLeftIn {
	0% {
		opacity: 0;
		right: 105%;
	}

	100% {
		opacity: 1;
		right: 100%;
	}
}
