.supa-chat-widget {
	position: fixed;
	bottom: var(--supa-chat-bottom-offset, 24px);
	z-index: 99999;
	font-family: Arial, Helvetica, sans-serif;
	display: inline-block;
	border: none;
	box-shadow: none;
}

.supa-chat-right {
	right: var(--supa-chat-side-offset, 24px);
}

.supa-chat-left {
	left: var(--supa-chat-side-offset, 24px);
}

.supa-chat-toggle {
	border: 0;
	overflow: hidden;
	padding: 0;
	cursor: pointer;
	transition: transform 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
}

.supa-chat-toggle:hover,
.supa-chat-toggle:focus-visible {
	transform: translateY(-2px);
}

.supa-chat-toggle img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border: 0;
	box-shadow: none;
}

.supa-chat-toggle {
	position: relative;
}

.supa-chat-modal {
	position: absolute;
	bottom: calc(100% + 14px);
	width: min(280px, 82vw);
	border-radius: var(--supa-chat-modal-border-radius, 16px);
	border-width: var(--supa-chat-modal-border-width, 1px);
	border-style: solid;
	border-color: var(--supa-chat-modal-border-color, #e5e7eb);
	padding: 16px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: all 0.2s ease;
	pointer-events: none;
}

.supa-chat-right .supa-chat-modal {
	right: 0;
}

.supa-chat-left .supa-chat-modal {
	left: 0;
}

.supa-chat-widget.is-open .supa-chat-modal,
.supa-chat-widget[data-trigger-mode="hover"]:hover .supa-chat-modal,
.supa-chat-widget[data-trigger-mode="hover"].is-open .supa-chat-modal {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

/* Attention effect for the modal */
@keyframes supa-chat-modal-attention {
	0% {
		box-shadow: 0 0 0 0px var(--supa-chat-modal-border-color, rgba(229, 231, 235, 0.5));
	}
	50% {
		box-shadow: 0 0 0 2px var(--supa-chat-modal-border-color, rgba(229, 231, 235, 0.5));
	}
	100% {
		box-shadow: 0 0 0 0px var(--supa-chat-modal-border-color, rgba(229, 231, 235, 0.5));
	}
}

.supa-chat-widget.is-open .supa-chat-modal {
	animation: supa-chat-modal-attention 2s infinite ease-out;
}

/* Define a custom property for modal border color with 50% opacity */
:root {
	--supa-chat-modal-border-color-50: rgba( var(--supa-chat-modal-border-color-rgb, 229, 231, 235), 0.5 );
}

.supa-chat-modal__title {
	font-size: 15px;
	font-weight: 700;
	margin-bottom: 6px;
}

.supa-chat-modal__description {
	font-size: 13px;
	line-height: 1.5;
	margin: 0 0 10px;
	opacity: 0.9;
}

.supa-chat-links {
	list-style: none;
	padding: 0;
	margin: 0;
}

.supa-chat-links li + li {
	margin-top: 8px;
}

.supa-chat-links a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	border-radius: 10px;
	text-decoration: none;
	font-size: 14px;
	border: 1px solid var(--supa-chat-item-border, #e5e7eb);
	background-color: var(--supa-chat-item-bg, #f5f7fb);
	color: var(--supa-chat-item-color, #111827);
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.supa-chat-link-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	font-size: 16px;
}

.supa-chat-link-icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 4px;
}

.supa-chat-link-label {
	flex: 1;
}

.supa-chat-links a:hover,
.supa-chat-links a:focus-visible {
	background-color: var(--supa-chat-item-hover-bg, #e5e7eb);
	color: var(--supa-chat-item-hover-text, var(--supa-chat-item-color, #111827));
	border-color: var(--supa-chat-item-hover-border, var(--supa-chat-item-border, #e5e7eb));
	transform: translateX(4px);
}
