.contact-channels-widget {
	position: fixed;
	bottom: var(--contact-channels-bottom, 24px);
	z-index: 99999;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
	font-family: inherit;
	pointer-events: none;
}

.contact-channels--right {
	right: var(--contact-channels-side, 24px);
}

.contact-channels--left {
	left: var(--contact-channels-side, 24px);
	align-items: flex-start;
}

.contact-channels-panel {
	width: min(430px, calc(100vw - 32px));
	padding: 22px;
	border: 1px solid rgb(0 0 0 / 8%);
	border-radius: 16px;
	background: var(--contact-channels-background, #fff);
	color: var(--contact-channels-text, #1a1a1a);
	box-shadow: 0 18px 55px rgb(0 0 0 / 20%);
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(12px) scale(0.98);
	transform-origin: bottom right;
	transition:
		opacity 0.2s ease,
		transform 0.2s ease,
		visibility 0.2s ease;
}

.contact-channels--left .contact-channels-panel {
	transform-origin: bottom left;
}

.contact-channels-widget.is-open .contact-channels-panel {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0) scale(1);
}

.contact-channels-panel__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.contact-channels-panel__brand {
	display: flex;
	align-items: center;
	flex: 1;
	gap: 16px;
	min-width: 0;
}
.contact-channels-panel__brand > div {
	flex: 1;
	min-width: 0;
}

.contact-channels-panel__logo {
	width: 58px;
	height: 58px;
	object-fit: contain;
	flex-shrink: 0;
}

.contact-channels-panel__title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	white-space: normal;
	overflow-wrap: normal;
	word-break: normal;
}

.contact-channels-panel__schedule {
	margin: 6px 0 0;
	color: color-mix(
		in srgb,
		var(--contact-channels-text, #1a1a1a) 65%,
		transparent
	);
	font-size: 13px;
	line-height: 1.4;
}

.contact-channels-panel__close {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--contact-channels-text, #1a1a1a);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.contact-channels-panel__close:hover {
	background: rgb(0 0 0 / 6%);
}

.contact-channels-panel__description {
	margin: 18px 0;
	color: var(--contact-channels-text, #1a1a1a);
	font-size: 14px;
	line-height: 1.55;
}

.contact-channels-panel__channels {
	display: grid;
	gap: 12px;
}

.contact-channels-channel {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 72px;
	padding: 14px 16px;
	border: 1px solid rgb(0 0 0 / 10%);
	border-radius: 12px;
	background: #fff;
	color: var(--contact-channels-text, #1a1a1a);
	text-decoration: none;
	box-shadow: 0 3px 12px rgb(0 0 0 / 5%);
	box-sizing: border-box;
	transition:
		transform 0.2s ease,
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

.contact-channels-channel:hover {
	transform: translateY(-2px);
	border-color: var(--contact-channels-primary, #006c3b);
	color: var(--contact-channels-text, #1a1a1a);
	text-decoration: none;
	box-shadow: 0 8px 20px rgb(0 0 0 / 10%);
}

.contact-channels-channel__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: color-mix(
		in srgb,
		var(--contact-channels-primary, #006c3b) 12%,
		white
	);
}

.contact-channels-channel__icon svg {
	width: 25px;
	height: 25px;
	fill: var(--contact-channels-primary, #006c3b);
}

.contact-channels-channel__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	line-height: 1.25;
}

.contact-channels-channel__content strong {
	font-size: 16px;
	font-weight: 700;
}

.contact-channels-channel__content span {
	margin-top: 3px;
	font-size: 13px;
}

.contact-channels-launcher {
	display: inline-flex;
	align-items: center;
	gap: 10px;

	height: 56px;
	padding: 5px 18px 5px 5px;

	border: 0;
	border-radius: 999px;
	pointer-events: auto;

	background: var(--contact-channels-primary, #006c3b);
	color: #fff;

	box-shadow: 0 10px 28px rgb(0 0 0 / 20%);
	cursor: pointer;
	font: inherit;

	transition:
		transform .2s ease,
		box-shadow .2s ease;
}

.contact-channels-launcher:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 34px rgb(0 0 0 / 26%);
}

.contact-channels-launcher__logo {
	width: 46px;
	height: 46px;
	flex-shrink: 0;
	padding: 4px;
	border-radius: 50%;
	background: #fff;
	object-fit: contain;
	box-sizing: border-box;
}

.contact-channels-launcher__text {
	max-width: 220px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
	text-align: left;
}

.contact-channels-launcher:focus-visible,
.contact-channels-panel__close:focus-visible,
.contact-channels-channel:focus-visible {
	outline: 3px solid color-mix(
		in srgb,
		var(--contact-channels-primary, #006c3b) 35%,
		transparent
	);
	outline-offset: 3px;
}

@media (max-width: 640px) {

	.contact-channels-widget {
		bottom: var(--contact-channels-mobile-bottom, 16px);
	}

	.contact-channels--right {
		right: var(--contact-channels-mobile-side, 16px);
		left: auto;
	}

	.contact-channels--left {
		right: auto;
		left: var(--contact-channels-mobile-side, 16px);
	}

	.contact-channels-panel {
		width: min(430px, calc(100vw - 32px));
		max-height: calc(100vh - 120px);
		overflow-y: auto;
	}

	.contact-channels-launcher {
		align-self: flex-end;
		width: 66px;
		height: 66px;
		padding: 6px;
		pointer-events: auto;
	}

	.contact-channels--left .contact-channels-launcher {
		align-self: flex-start;
	}

	.contact-channels-launcher__text {
		display: none;
	}

	.contact-channels-launcher__logo {
		width: 54px;
		height: 54px;
		padding: 5px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.contact-channels-panel,
	.contact-channels-launcher,
	.contact-channels-channel {
		transition: none;
	}
}
