:root {
	--polaris-blue: #005ca9;
	--polaris-blue-dark: #003f75;
	--polaris-header-bg: #003a70;
	--polaris-close-color: #f6be00;
	--polaris-panel-width: 430px;
	--polaris-title-row-height: 40px;
	--polaris-header-height: 62px;
}

.polaris-beacon,
.polaris-beacon * {
	box-sizing: border-box;
}

.polaris-beacon {
	position: relative;
	z-index: 2147483000;
	font-family: Arial, Helvetica, sans-serif;
}

.polaris-beacon__launcher {
	position: fixed;
	right: max(24px, env(safe-area-inset-right));
	bottom: max(24px, env(safe-area-inset-bottom));
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 78px;
	height: 78px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: linear-gradient(145deg, #fff, #dcebf7);
	box-shadow: 0 10px 30px rgba(0, 63, 117, 0.34);
	appearance: none;
	-webkit-appearance: none;
	line-height: 0;
	overflow: hidden;
	cursor: pointer;
	transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
	animation: polaris-beacon-float 3.2s ease-in-out infinite;
}

.polaris-beacon__launcher:hover {
	transform: translateY(-4px) scale(1.04);
	box-shadow: 0 14px 36px rgba(0, 63, 117, 0.42);
}

.polaris-beacon.is-open .polaris-beacon__launcher {
	opacity: 0;
	pointer-events: none;
}

.polaris-beacon__launcher:focus-visible,
.polaris-beacon__close:focus-visible {
	outline: 3px solid #f3b61f;
	outline-offset: 3px;
}

.polaris-beacon__launcher img,
.polaris-beacon__launcher .polaris-beacon__lottie {
	display: block;
	flex: 0 0 auto;
	width: 72px;
	height: 72px;
	margin: 0;
	border-radius: 50%;
	object-fit: cover;
	overflow: hidden;
	pointer-events: none;
}

.polaris-beacon__launcher--lottie {
	background: #fff;
	box-shadow: 0 10px 28px rgba(0, 63, 117, 0.28);
	animation: none;
}

.polaris-beacon__launcher--lottie:hover {
	transform: translateY(-3px) scale(1.03);
}

.polaris-beacon__launcher--lottie .polaris-beacon__lottie {
	width: 64px !important;
	height: 64px !important;
	max-width: 64px;
	max-height: 64px;
	border-radius: 50%;
	/* Midpoint between prior +2px (too right) and -2px (too left). */
	transform: none;
	margin-left: 0;
}

.polaris-beacon__launcher--lottie .polaris-beacon__lottie canvas,
.polaris-beacon__launcher--lottie .polaris-beacon__lottie svg {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	margin: 0 auto !important;
}

.polaris-beacon__launcher--lottie .polaris-beacon__ring,
.polaris-beacon__launcher--lottie .polaris-beacon__status {
	display: none;
}

.polaris-beacon__ring {
	position: absolute;
	inset: -6px;
	z-index: -1;
	border: 3px solid rgba(0, 92, 169, 0.45);
	border-radius: 50%;
	animation: polaris-beacon-pulse 2.4s ease-out infinite;
}

.polaris-beacon__status {
	position: absolute;
	right: 2px;
	bottom: 5px;
	width: 17px;
	height: 17px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: #35ad58;
}

.polaris-beacon__panel {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(var(--polaris-panel-width), 100vw);
	background: #fff;
	box-shadow: -12px 0 40px rgba(10, 30, 50, 0.24);
	transform: translateX(105%);
	visibility: hidden;
	transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), visibility 320ms;
}

.polaris-beacon.is-open .polaris-beacon__panel {
	transform: translateX(0);
	visibility: visible;
}

.polaris-beacon__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: var(--polaris-header-height);
	padding: 8px 18px 8px 22px;
	color: #fff;
	background: var(--polaris-header-bg);
}

.polaris-beacon__branding {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	flex: 1 1 auto;
}

.polaris-beacon__title-icon {
	display: block;
	flex: 0 0 auto;
	width: var(--polaris-title-row-height);
	height: var(--polaris-title-row-height);
	object-fit: contain;
}

.polaris-beacon__titles {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	height: var(--polaris-title-row-height);
}

.polaris-beacon__titles strong,
.polaris-beacon__titles span {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.polaris-beacon__titles strong {
	font-size: 18px;
	line-height: 1.15;
}

.polaris-beacon__titles span {
	margin-top: 2px;
	font-size: 13px;
	line-height: 1.15;
	opacity: 0.86;
}

.polaris-beacon__close {
	display: grid;
	flex: 0 0 32px;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	color: #003a70;
	background: var(--polaris-close-color);
	font: 400 24px/1 Arial, sans-serif;
	cursor: pointer;
	transition: filter 160ms ease, transform 160ms ease;
}

.polaris-beacon__close:hover {
	filter: brightness(1.08);
	transform: scale(1.04);
}

.polaris-beacon__chat {
	height: calc(100% - var(--polaris-header-height));
	padding-bottom: max(10px, env(safe-area-inset-bottom));
	background: #fff;
	overflow: hidden;
}

.polaris-beacon__chat iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	background: #fff;
}

.polaris-beacon__backdrop {
	position: fixed;
	inset: 0;
	background: rgba(6, 20, 34, 0.42);
	opacity: 0;
	transition: opacity 260ms ease;
}

.polaris-beacon.is-open .polaris-beacon__backdrop {
	opacity: 1;
}

body.polaris-beacon-open {
	overflow: hidden;
}

@keyframes polaris-beacon-pulse {
	0% {
		opacity: 0.8;
		transform: scale(0.88);
	}
	75%,
	100% {
		opacity: 0;
		transform: scale(1.28);
	}
}

@keyframes polaris-beacon-float {
	0%,
	100% {
		margin-bottom: 0;
	}
	50% {
		margin-bottom: 7px;
	}
}

@media (max-width: 600px) {
	.polaris-beacon__launcher {
		right: max(16px, env(safe-area-inset-right));
		bottom: max(16px, env(safe-area-inset-bottom));
		width: 68px;
		height: 68px;
	}

	.polaris-beacon__launcher img,
	.polaris-beacon__launcher .polaris-beacon__lottie {
		width: 62px;
		height: 62px;
	}

	.polaris-beacon__launcher--lottie .polaris-beacon__lottie {
		width: 56px !important;
		height: 56px !important;
		max-width: 56px;
		max-height: 56px;
	}

	.polaris-beacon__panel {
		width: 100vw;
	}
}

@media (prefers-reduced-motion: reduce) {
	.polaris-beacon__launcher,
	.polaris-beacon__ring {
		animation: none;
	}

	.polaris-beacon__panel,
	.polaris-beacon__backdrop {
		transition-duration: 1ms;
	}
}
