:root {
	--cdr-purple: #7840E2;
	--cdr-green: #51A15C;
	--cdr-ink: #172033;
	--cdr-muted: #667085;
	--cdr-line: #E6E8EF;
	--cdr-bg: #FFFFFF;
	--cdr-soft: #F7F8FB;
	--cdr-radius: 18px;
	--cdr-shadow: 0 18px 48px rgba(23, 32, 51, 0.16);
}

.cdr-help-widget {
	position: fixed;
	right: max(18px, env(safe-area-inset-right));
	bottom: max(18px, env(safe-area-inset-bottom));
	z-index: 99999;
	font-family: inherit;
	color: var(--cdr-ink);
}

.cdr-help-widget--left {
	right: auto;
	left: max(18px, env(safe-area-inset-left));
}

.cdr-help-teaser {
	position: absolute;
	right: 0;
	bottom: 74px;
	width: min(350px, calc(100vw - 32px));
	box-sizing: border-box;
	border: 1px solid var(--cdr-line);
	border-radius: 16px;
	background: #fff;
	box-shadow: var(--cdr-shadow);
	overflow: hidden;
	animation: cdr-help-teaser-in 220ms ease-out;
}

.cdr-help-widget--left .cdr-help-teaser {
	right: auto;
	left: 0;
}

.cdr-help-teaser-card {
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr);
	gap: 10px;
	width: 100%;
	min-height: 92px;
	border: 0;
	background: transparent;
	color: var(--cdr-ink);
	padding: 14px 38px 14px 14px;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.cdr-help-teaser-card:hover {
	background: #fff;
	color: var(--cdr-ink);
}

.cdr-help-teaser-card:hover .cdr-help-teaser-copy strong {
	color: var(--cdr-ink);
}

.cdr-help-teaser-card:hover .cdr-help-teaser-copy span {
	color: var(--cdr-muted);
}

.cdr-help-teaser-card:hover .cdr-help-teaser-copy small {
	color: #9aa1ad;
}

.cdr-help-teaser-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 999px;
	background: rgba(120, 64, 226, 0.12);
	color: var(--cdr-purple);
	font-size: 22px;
	font-weight: 900;
	box-shadow: inset 0 0 0 2px rgba(81, 161, 92, 0.18);
}

.cdr-help-chat-icon {
	position: relative;
	display: inline-block;
	width: 31px;
	height: 28px;
	border: 3px solid currentColor;
	border-radius: 50% 50% 44% 50%;
	box-sizing: border-box;
	background:
		linear-gradient(currentColor, currentColor) 50% 38% / 14px 3px no-repeat,
		linear-gradient(currentColor, currentColor) 50% 58% / 14px 3px no-repeat;
}

.cdr-help-chat-icon::after {
	content: "";
	position: absolute;
	right: -3px;
	bottom: -3px;
	width: 12px;
	height: 12px;
	border-right: 3px solid currentColor;
	border-bottom: 3px solid currentColor;
	border-bottom-right-radius: 8px;
	background: var(--cdr-purple);
	transform: rotate(8deg);
}

.cdr-help-teaser-copy {
	display: grid;
	gap: 3px;
	min-width: 0;
}

.cdr-help-teaser-copy strong {
	font-size: 16px;
	line-height: 1.2;
}

.cdr-help-teaser-copy span {
	color: var(--cdr-muted);
	font-size: 13px;
	line-height: 1.35;
}

.cdr-help-teaser-copy small {
	color: #9aa1ad;
	font-size: 11px;
	line-height: 1.2;
}

.cdr-help-teaser-close {
	position: absolute;
	top: 10px;
	right: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	box-sizing: border-box;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #777f8c;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.cdr-help-teaser-close:hover {
	background: var(--cdr-soft);
	color: var(--cdr-ink);
}

.cdr-help-launcher {
	width: 56px;
	height: 56px;
	border: 0;
	border-radius: 999px;
	background: var(--cdr-purple);
	color: #fff;
	box-shadow: 0 12px 28px rgba(120, 64, 226, 0.32);
	font-size: 28px;
	font-weight: 800;
	cursor: pointer;
	overflow: hidden;
}

.cdr-help-teaser-mark {
	animation: cdr-help-pop 520ms ease-out 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.cdr-help-launcher span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.cdr-help-launcher-image {
	display: block;
	width: 42px;
	height: 42px;
	margin: auto;
	object-fit: contain;
	pointer-events: none;
	transform: scale(1.65);
	transform-origin: center;
}

.cdr-help-launcher:focus-visible,
.cdr-help-teaser button:focus-visible,
.cdr-help-panel button:focus-visible,
.cdr-help-panel input:focus-visible,
.cdr-help-panel textarea:focus-visible {
	outline: 3px solid rgba(81, 161, 92, 0.35);
	outline-offset: 2px;
}

.cdr-help-panel {
	position: absolute;
	right: 0;
	bottom: 74px;
	width: min(370px, calc(100vw - 32px));
	height: auto;
	max-height: min(520px, calc(100vh - 116px));
	display: none;
	flex-direction: column;
	overflow: hidden;
	background: var(--cdr-bg);
	border: 1px solid var(--cdr-line);
	border-radius: var(--cdr-radius);
	box-shadow: var(--cdr-shadow);
}

.cdr-help-widget--left .cdr-help-panel {
	right: auto;
	left: 0;
}

.cdr-help-widget.is-open .cdr-help-panel {
	display: flex;
}

.cdr-help-widget.is-chatting .cdr-help-panel,
.cdr-help-widget.has-expanded-content .cdr-help-panel {
	height: var(--cdr-help-panel-height, min(520px, calc(100vh - 116px)));
}

.cdr-help-widget.is-open .cdr-help-teaser {
	display: none;
}

.cdr-help-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 15px 15px 10px;
	border-bottom: 0;
	background: transparent;
}

.cdr-help-header > div:first-child {
	min-width: 0;
}

.cdr-help-header strong,
.cdr-help-header span {
	display: block;
}

.cdr-help-header strong {
	font-size: 16px;
	line-height: 1.2;
}

.cdr-help-header span {
	margin-top: 4px;
	color: var(--cdr-purple);
	font-size: 13px;
}

.cdr-help-header-actions {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
}

.cdr-help-faqs-link {
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--cdr-ink);
	padding: 6px 7px;
	font: inherit;
	font-size: 12px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
}

.cdr-help-faqs-link:hover,
.cdr-help-faqs-link:active,
.cdr-help-faqs-link:focus {
	background: transparent;
	color: var(--cdr-ink);
}

.cdr-help-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	box-sizing: border-box;
	border: 1px solid var(--cdr-line);
	border-radius: 999px;
	background: var(--cdr-soft);
	color: var(--cdr-ink);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.cdr-help-body {
	flex: 0 1 auto;
	overflow: auto;
	padding: 8px 14px 12px;
	background: #fff;
	min-height: 0;
}

.cdr-help-widget.is-chatting .cdr-help-body,
.cdr-help-widget.has-expanded-content .cdr-help-body {
	flex: 1 1 auto;
}

.cdr-help-message {
	max-width: 88%;
	margin: 0 0 10px;
	padding: 11px 13px;
	border-radius: 16px;
	font-size: 14px;
	line-height: 1.45;
}

.cdr-help-message p {
	margin: 0;
}

.cdr-help-message h3 {
	margin: 0 0 6px;
	font-size: 14px;
	line-height: 1.3;
}

.cdr-help-message--bot {
	background: #fff;
	border: 1px solid var(--cdr-line);
}

.cdr-help-message--user {
	margin-left: auto;
	background: transparent;
	border: 0;
	color: var(--cdr-purple);
	padding: 4px 0 6px;
	font-weight: 400;
	text-align: right;
}

.cdr-help-intro {
	margin: 0 0 8px;
	color: var(--cdr-muted);
	font-size: 13px;
	line-height: 1.35;
	font-weight: 600;
}

.cdr-help-featured {
	display: grid;
	gap: 6px;
	margin: 0 0 12px;
}

.cdr-help-faq-item {
	overflow: hidden;
	border: 1px solid var(--cdr-line);
	border-radius: 10px;
	background: #fff;
}

.cdr-help-faq-button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	border: 0;
	border-radius: 0;
	background: #fff !important;
	color: var(--cdr-ink) !important;
	padding: 9px 10px;
	font: inherit;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.25;
	text-align: left;
	cursor: pointer;
}

.cdr-help-faq-button:hover {
	background: #fff !important;
	color: var(--cdr-ink);
}

.cdr-help-faq-button:hover .cdr-help-faq-arrow {
	border-color: var(--cdr-ink);
}

.cdr-help-faq-button[aria-expanded="true"] {
	background: #fff !important;
	color: var(--cdr-ink) !important;
}

.cdr-help-faq-button[aria-expanded="true"] .cdr-help-faq-arrow {
	border-color: var(--cdr-ink);
}

.cdr-help-faq-button span:first-child {
	min-width: 0;
}

.cdr-help-faq-arrow {
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--cdr-ink);
	border-bottom: 2px solid var(--cdr-ink);
	transform: rotate(45deg);
	transition: transform 160ms ease;
}

.cdr-help-faq-button[aria-expanded="true"] .cdr-help-faq-arrow {
	transform: rotate(225deg);
}

.cdr-help-contact-form input::placeholder,
.cdr-help-contact-form textarea::placeholder,
.cdr-help-search-form input::placeholder {
	font-weight: 400;
	color: #7a8496;
}

.cdr-help-faq-answer {
	padding: 0 10px 8px;
	color: var(--cdr-muted);
	font-size: 12.5px;
	line-height: 1.42;
}

.cdr-help-faq-answer p {
	margin: 0 0 10px;
}

.cdr-help-start-chat {
	width: 100%;
	border: 0;
	border-radius: 999px;
	background: var(--cdr-purple);
	color: #fff;
	padding: 9px 12px;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.cdr-help-start-chat:hover {
	background: var(--cdr-purple);
	color: #fff;
}

.cdr-help-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin: 8px 0 12px;
	font-size: 12px;
}

.cdr-help-actions span {
	width: 100%;
	color: var(--cdr-muted);
}

.cdr-help-contact-form button,
.cdr-help-search-form button {
	border: 0;
	border-radius: 999px;
	background: var(--cdr-green);
	color: #fff;
	padding: 9px 14px;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.cdr-help-actions button {
	min-width: 34px;
	min-height: 28px;
	border: 1px solid var(--cdr-line);
	border-radius: 999px;
	background: #fff;
	color: var(--cdr-muted);
	padding: 5px 10px;
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

.cdr-help-actions button:hover {
	border-color: rgba(120, 64, 226, 0.28);
	color: var(--cdr-purple);
	background: rgba(120, 64, 226, 0.04);
}

.cdr-help-contact-form {
	display: grid;
	gap: 10px;
	margin: 10px 0 4px;
	padding: 12px 0 0;
	border: 0;
	border-top: 1px solid var(--cdr-line);
	border-radius: 0;
	background: transparent;
}

.cdr-help-contact-form label {
	display: grid;
	gap: 6px;
	color: var(--cdr-muted);
	font-size: 12px;
	font-weight: 800;
}

.cdr-help-contact-form input,
.cdr-help-contact-form textarea,
.cdr-help-search-form input {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--cdr-line);
	border-radius: 12px;
	background: #fff;
	color: var(--cdr-ink);
	font: inherit;
	font-size: 14px;
}

.cdr-help-contact-form input,
.cdr-help-search-form input {
	min-height: 38px;
	padding: 0 12px;
}

.cdr-help-contact-form textarea {
	min-height: 86px;
	padding: 10px 12px;
	resize: vertical;
}

.cdr-help-contact-form p {
	margin: 0;
	color: var(--cdr-muted);
	font-size: 12px;
	line-height: 1.4;
}

.cdr-help-search-form {
	display: flex;
	gap: 8px;
	padding: 8px 12px 10px;
	border-top: 1px solid var(--cdr-line);
	background: #fff;
}

.cdr-help-search-form[hidden] {
	display: none;
}

.cdr-help-search-form input {
	flex: 1;
	min-width: 0;
}

.cdr-help-search-form button {
	flex: 0 0 auto;
	background: var(--cdr-purple);
}

@media (max-width: 520px) {
	.cdr-help-widget,
	.cdr-help-widget--left {
		right: max(12px, env(safe-area-inset-right));
		left: max(12px, env(safe-area-inset-left));
		bottom: max(12px, env(safe-area-inset-bottom));
	}

	.cdr-help-panel,
	.cdr-help-teaser,
	.cdr-help-widget--left .cdr-help-teaser,
	.cdr-help-widget--left .cdr-help-panel {
		left: 0;
		right: 0;
		bottom: 72px;
		width: auto;
	}

	.cdr-help-panel,
	.cdr-help-widget--left .cdr-help-panel {
		max-height: min(620px, calc(100vh - 96px));
	}

	.cdr-help-widget.is-chatting .cdr-help-panel,
	.cdr-help-widget.has-expanded-content .cdr-help-panel,
	.cdr-help-widget--left.is-chatting .cdr-help-panel,
	.cdr-help-widget--left.has-expanded-content .cdr-help-panel {
		height: var(--cdr-help-panel-height, min(620px, calc(100vh - 96px)));
	}

	.cdr-help-header strong {
		font-size: 18px;
	}

	.cdr-help-header span,
	.cdr-help-intro,
	.cdr-help-start-chat,
	.cdr-help-search-form input,
	.cdr-help-search-form button {
		font-size: 14px;
	}

	.cdr-help-faq-button {
		font-size: 14.5px;
		padding: 10px 11px;
	}

	.cdr-help-faq-answer,
	.cdr-help-message {
		font-size: 14px;
	}

	.cdr-help-launcher {
		margin-left: auto;
		display: block;
	}

	.cdr-help-widget--left .cdr-help-launcher {
		margin-left: 0;
		margin-right: auto;
	}
}

@keyframes cdr-help-teaser-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes cdr-help-pop {
	0% {
		transform: scale(0.86);
	}
	55% {
		transform: scale(1.12);
	}
	100% {
		transform: scale(1);
	}
}
