.sawcp-widget {
	--sawcp-green: #25d366;
	--sawcp-deep: #0f4f3d;
	--sawcp-ink: #173b3f;
	--sawcp-muted: #5e7577;
	--sawcp-cream: #fffdf8;
	--sawcp-header-start: #0f5e46;
	--sawcp-header-end: #15845f;
	--sawcp-button-text: #fff;
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 99990;
	font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	font-style: normal;
	line-height: 1.4;
}

.sawcp-widget,
.sawcp-widget *,
.sawcp-widget *::before,
.sawcp-widget *::after {
	box-sizing: border-box;
}

.sawcp-widget button,
.sawcp-widget a {
	font-family: inherit;
}

.sawcp-launcher {
	position: relative;
	display: flex;
	align-items: center;
	gap: 11px;
	min-height: 58px;
	padding: 8px 17px 8px 9px;
	border: 0;
	border-radius: 999px;
	color: var(--sawcp-button-text);
	background: var(--sawcp-green);
	box-shadow: 0 16px 40px rgba(15, 79, 61, .3);
	cursor: pointer;
	transition: transform .2s ease, box-shadow .2s ease;
}

.sawcp-launcher:hover {
	color: var(--sawcp-button-text);
	transform: translateY(-3px);
	box-shadow: 0 20px 48px rgba(15, 79, 61, .36);
}

.sawcp-launcher:focus-visible,
.sawcp-widget a:focus-visible,
.sawcp-widget button:focus-visible {
	outline: 3px solid #f6c85f;
	outline-offset: 3px;
}

.sawcp-launcher-icon {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	flex: 0 0 42px;
	border-radius: 50%;
	color: var(--sawcp-green);
	background: #fff;
}

.sawcp-launcher-icon svg {
	display: block;
	width: 25px;
	height: 25px;
}

.sawcp-launcher-copy {
	display: block;
	color: var(--sawcp-button-text);
	line-height: 1.15;
	text-align: left;
}

.sawcp-launcher-copy strong {
	display: block;
	color: var(--sawcp-button-text);
	font-size: 13px;
	font-weight: 800;
}

.sawcp-launcher-copy span {
	display: block;
	margin-top: 3px;
	color: var(--sawcp-button-text);
	opacity: .88;
	font-size: 9px;
	font-weight: 600;
}

.sawcp-pulse {
	position: absolute;
	top: 0;
	right: 4px;
	width: 12px;
	height: 12px;
	border: 3px solid var(--sawcp-button-text);
	border-radius: 50%;
	background: #f6c85f;
}

.sawcp-panel {
	position: absolute;
	right: 0;
	bottom: 72px;
	width: min(390px, calc(100vw - 28px));
	max-height: min(700px, calc(100vh - 115px));
	overflow: auto;
	border: 1px solid rgba(23, 59, 63, .13);
	border-radius: 24px;
	background: var(--sawcp-cream);
	box-shadow: 0 28px 80px rgba(16, 45, 48, .26);
	opacity: 0;
	visibility: hidden;
	transform: translateY(16px) scale(.97);
	transform-origin: right bottom;
	transition: opacity .22s ease, transform .22s ease, visibility .22s;
	pointer-events: none;
}

.sawcp-widget.is-open .sawcp-panel {
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}

.sawcp-widget.sawcp-position--bottom-left {
	right: auto;
	left: 22px;
}

.sawcp-position--bottom-left .sawcp-panel {
	right: auto;
	left: 0;
	transform-origin: left bottom;
}

.sawcp-widget.sawcp-position--middle-right {
	top: 50%;
	right: 22px;
	bottom: auto;
	transform: translateY(-50%);
}

.sawcp-position--middle-right .sawcp-panel {
	top: 50%;
	right: calc(100% + 14px);
	bottom: auto;
	transform: translateY(-50%) translateX(16px) scale(.97);
	transform-origin: right center;
}

.sawcp-position--middle-right.is-open .sawcp-panel {
	transform: translateY(-50%) translateX(0) scale(1);
}

.sawcp-widget.sawcp-position--middle-left {
	top: 50%;
	right: auto;
	bottom: auto;
	left: 22px;
	transform: translateY(-50%);
}

.sawcp-position--middle-left .sawcp-panel {
	top: 50%;
	right: auto;
	bottom: auto;
	left: calc(100% + 14px);
	transform: translateY(-50%) translateX(-16px) scale(.97);
	transform-origin: left center;
}

.sawcp-position--middle-left.is-open .sawcp-panel {
	transform: translateY(-50%) translateX(0) scale(1);
}

.sawcp-panel-head {
	position: relative;
	padding: 23px 54px 22px 23px;
	color: var(--sawcp-button-text);
	background: linear-gradient(135deg, var(--sawcp-header-start), var(--sawcp-header-end));
}

.sawcp-panel-head small {
	display: block;
	margin: 0 0 7px;
	color: var(--sawcp-button-text);
	opacity: .78;
	font-size: 9px;
	font-weight: 850;
	letter-spacing: .13em;
}

.sawcp-panel-head h2 {
	margin: 0;
	color: var(--sawcp-button-text);
	font-size: 22px;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -.025em;
}

.sawcp-close {
	position: absolute;
	top: 14px;
	right: 14px;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid rgba(255,255,255,.28);
	border-radius: 50%;
	color: var(--sawcp-button-text);
	background: rgba(255,255,255,.1);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.sawcp-close:hover {
	color: var(--sawcp-button-text);
	background: rgba(255,255,255,.2);
}

.sawcp-panel-body {
	padding: 21px 22px 22px;
}

.sawcp-intro {
	margin: 0;
	color: var(--sawcp-muted);
	font-size: 12px;
	line-height: 1.65;
}

.sawcp-topics {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin: 17px 0;
}

.sawcp-agent[hidden],
.sawcp-topics[hidden],
.sawcp-offline[hidden],
.sawcp-note[hidden] {
	display: none !important;
}

.sawcp-topic {
	min-height: 34px;
	padding: 7px 10px;
	border: 1px solid rgba(23,59,63,.16);
	border-radius: 999px;
	color: #335457;
	background: #fff;
	font-size: 10px;
	font-weight: 750;
	line-height: 1.2;
	cursor: pointer;
}

.sawcp-topic:hover,
.sawcp-topic.is-active {
	border-color: var(--sawcp-green);
	color: var(--sawcp-header-start);
	background: #edf9f2;
}

.sawcp-agent-list {
	display: grid;
	gap: 9px;
}

.sawcp-agent {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr) 24px;
	gap: 12px;
	align-items: center;
	min-height: 76px;
	padding: 11px 12px;
	border: 1px solid rgba(23,59,63,.13);
	border-radius: 17px;
	color: var(--sawcp-ink);
	background: #fff;
	text-decoration: none !important;
	box-shadow: 0 7px 20px rgba(23,59,63,.05);
	transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.sawcp-agent:hover {
	border-color: rgba(37,211,102,.7);
	color: var(--sawcp-ink);
	transform: translateY(-2px);
	box-shadow: 0 11px 27px rgba(23,59,63,.1);
}

.sawcp-agent-avatar {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	overflow: hidden;
	border-radius: 16px;
	color: var(--sawcp-button-text);
	background: linear-gradient(145deg, #173b3f, #28766b);
	font-size: 15px;
	font-weight: 850;
	letter-spacing: .02em;
}

.sawcp-agent-avatar img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	border: 0;
	object-fit: cover;
}

.sawcp-agent-copy {
	min-width: 0;
	line-height: 1.25;
}

.sawcp-agent-copy strong,
.sawcp-agent-copy span,
.sawcp-agent-copy small {
	display: block;
}

.sawcp-agent-copy strong {
	overflow: hidden;
	margin: 0;
	color: var(--sawcp-ink);
	font-size: 13px;
	font-weight: 820;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sawcp-agent-copy > span {
	overflow: hidden;
	margin-top: 3px;
	color: var(--sawcp-muted);
	font-size: 10px;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sawcp-agent-copy small {
	margin-top: 6px;
	color: var(--sawcp-header-end);
	font-size: 9px;
	font-weight: 700;
}

.sawcp-agent-copy small i {
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-right: 5px;
	border-radius: 50%;
	background: var(--sawcp-green);
	box-shadow: 0 0 0 3px rgba(37,211,102,.13);
}

.sawcp-agent.is-on-duty {
	border-color: rgba(37,211,102,.48);
	background: linear-gradient(135deg, #fff, #f3fcf6);
}

.sawcp-agent.is-on-duty .sawcp-agent-status {
	color: var(--sawcp-header-start);
}

.sawcp-agent.is-off-duty .sawcp-agent-status {
	color: #78888a;
}

.sawcp-agent.is-off-duty .sawcp-agent-status i {
	background: #aeb8b9;
	box-shadow: 0 0 0 3px rgba(110,130,132,.11);
}

.sawcp-agent-arrow {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	color: var(--sawcp-header-end);
	background: #edf9f2;
	font-size: 14px;
	font-weight: 850;
}

.sawcp-offline {
	margin: 17px 0 0;
	padding: 18px;
	border: 1px solid rgba(23,59,63,.13);
	border-radius: 17px;
	background: #f4f7f5;
	text-align: left;
}

.sawcp-offline strong {
	display: block;
	color: var(--sawcp-ink);
	font-size: 13px;
	font-weight: 820;
}

.sawcp-offline p {
	margin: 7px 0 14px;
	color: var(--sawcp-muted);
	font-size: 10px;
	line-height: 1.6;
}

.sawcp-offline a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 38px;
	padding: 8px 14px;
	border-radius: 999px;
	color: var(--sawcp-button-text);
	background: var(--sawcp-header-start);
	font-size: 10px;
	font-weight: 800;
	text-decoration: none !important;
}

.sawcp-offline a:hover {
	color: var(--sawcp-button-text);
	background: var(--sawcp-header-end);
}

.sawcp-note {
	margin: 12px 0 0;
	color: #778b8d;
	font-size: 9px;
	line-height: 1.5;
	text-align: center;
}

.sawcp-sr {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

@media (max-width: 720px) {
	.sawcp-widget {
		top: auto;
		right: 14px;
		bottom: calc(20px + env(safe-area-inset-bottom));
		left: auto;
		transform: none;
	}

	.sawcp-widget.sawcp-position--bottom-left,
	.sawcp-widget.sawcp-position--middle-left {
		top: auto;
		right: auto;
		bottom: calc(20px + env(safe-area-inset-bottom));
		left: 14px;
		transform: none;
	}

	.sawcp-widget.sawcp-position--bottom-right,
	.sawcp-widget.sawcp-position--middle-right {
		top: auto;
		right: 14px;
		bottom: calc(20px + env(safe-area-inset-bottom));
		left: auto;
		transform: none;
	}

	.sawcp-launcher {
		min-width: 58px;
		min-height: 58px;
		padding: 8px;
	}

	.sawcp-launcher-copy {
		display: none;
	}

	.sawcp-panel {
		right: 0;
		top: auto;
		bottom: 70px;
		left: auto;
		width: min(370px, calc(100vw - 28px));
		max-height: calc(100vh - 110px - env(safe-area-inset-bottom));
		transform: translateY(16px) scale(.97);
		transform-origin: right bottom;
	}

	.sawcp-widget.sawcp-position--bottom-left .sawcp-panel,
	.sawcp-widget.sawcp-position--middle-left .sawcp-panel {
		right: auto;
		top: auto;
		bottom: 70px;
		left: 0;
		transform: translateY(16px) scale(.97);
		transform-origin: left bottom;
	}

	.sawcp-widget.sawcp-position--bottom-right .sawcp-panel,
	.sawcp-widget.sawcp-position--middle-right .sawcp-panel {
		right: 0;
		top: auto;
		bottom: 70px;
		left: auto;
		transform: translateY(16px) scale(.97);
		transform-origin: right bottom;
	}

	.sawcp-widget.is-open .sawcp-panel,
	.sawcp-widget.sawcp-position--bottom-left.is-open .sawcp-panel,
	.sawcp-widget.sawcp-position--middle-left.is-open .sawcp-panel,
	.sawcp-widget.sawcp-position--bottom-right.is-open .sawcp-panel,
	.sawcp-widget.sawcp-position--middle-right.is-open .sawcp-panel {
		transform: translateY(0) scale(1);
	}

	.sawcp-panel-head {
		padding: 20px 50px 19px 20px;
	}

	.sawcp-panel-head h2 {
		font-size: 20px;
	}

	.sawcp-panel-body {
		padding: 19px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sawcp-panel,
	.sawcp-launcher,
	.sawcp-agent {
		transition: none;
	}
}

@media print {
	.sawcp-widget {
		display: none !important;
	}
}
