.ybw-widget {
	--ybw-green: #25d366;
	--ybw-deep: #0f4f3d;
	--ybw-ink: #173b3f;
	--ybw-muted: #5e7577;
	--ybw-cream: #fffdf8;
	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;
}

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

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

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

.ybw-launcher:hover {
	color: #fff;
	transform: translateY(-3px);
	box-shadow: 0 20px 48px rgba(15, 79, 61, .36);
}

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

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

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

.ybw-launcher-copy {
	display: block;
	color: #fff;
	line-height: 1.15;
	text-align: left;
}

.ybw-launcher-copy strong {
	display: block;
	color: #fff;
	font-size: 13px;
	font-weight: 800;
}

.ybw-launcher-copy span {
	display: block;
	margin-top: 3px;
	color: rgba(255,255,255,.88);
	font-size: 9px;
	font-weight: 600;
}

.ybw-pulse {
	position: absolute;
	top: 0;
	right: 4px;
	width: 12px;
	height: 12px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: #f6c85f;
}

.ybw-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(--ybw-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;
}

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

.ybw-panel-head {
	position: relative;
	padding: 23px 54px 22px 23px;
	color: #fff;
	background: linear-gradient(135deg, #0f5e46, #15845f);
}

.ybw-panel-head small {
	display: block;
	margin: 0 0 7px;
	color: #c8f4dc;
	font-size: 9px;
	font-weight: 850;
	letter-spacing: .13em;
}

.ybw-panel-head h2 {
	margin: 0;
	color: #fff;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -.025em;
}

.ybw-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: #fff;
	background: rgba(255,255,255,.1);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.ybw-close:hover {
	color: #fff;
	background: rgba(255,255,255,.2);
}

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

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

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

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

.ybw-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;
}

.ybw-topic:hover,
.ybw-topic.is-active {
	border-color: var(--ybw-green);
	color: #0f5e46;
	background: #edf9f2;
}

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

.ybw-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(--ybw-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;
}

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

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

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

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

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

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

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

.ybw-agent-copy small {
	margin-top: 6px;
	color: #15845f;
	font-size: 9px;
	font-weight: 700;
}

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

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

.ybw-agent.is-on-duty .ybw-agent-status {
	color: #0f7a4f;
}

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

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

.ybw-agent-arrow {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	color: #15845f;
	background: #edf9f2;
	font-size: 14px;
	font-weight: 850;
}

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

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

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

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

.ybw-offline a:hover {
	color: #fff;
	background: #0a6249;
}

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

.ybw-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) {
	.ybw-widget {
		right: 14px;
		bottom: calc(20px + env(safe-area-inset-bottom));
	}

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

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

	.ybw-panel {
		right: 0;
		bottom: 70px;
		width: min(370px, calc(100vw - 28px));
		max-height: calc(100vh - 110px - env(safe-area-inset-bottom));
	}

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

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

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

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

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