:root {
	--zcp-brand: var(--e-global-color-primary, #334638);
	--zcp-accent: var(--e-global-color-accent, #bd613d);
	--zcp-ink: var(--e-global-color-text, #1f2722);
	--zcp-muted: #66706a;
	--zcp-line: #e4e6e3;
	--zcp-surface: #fff;
	--zcp-soft: #f6f6f3;
	--zcp-font: var(--e-global-typography-text-font-family, Montserrat, Arial, sans-serif);
}

.zcp-contact,
.zcp-contact * {
	box-sizing: border-box;
}

.zcp-contact {
	position: fixed;
	right: calc(20px + env(safe-area-inset-right, 0px));
	bottom: calc(20px + env(safe-area-inset-bottom, 0px));
	z-index: 999990;
	width: 0;
	height: 0;
	color: var(--zcp-ink);
	font-family: var(--zcp-font);
	font-size: 16px;
	line-height: 1.45;
}

.zcp-contact button,
.zcp-contact a {
	font: inherit;
}

.zcp-contact button:focus-visible,
.zcp-contact a:focus-visible {
	outline: 3px solid var(--zcp-accent);
	outline-offset: 3px;
}

.zcp-contact button.zcp-contact__trigger {
	position: absolute;
	right: 0;
	bottom: 0;
	display: grid;
	width: 60px;
	min-width: 60px;
	max-width: 60px;
	height: 60px;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--zcp-brand);
	box-shadow: 0 10px 28px rgb(18 32 23 / 24%);
	color: #fff;
	cursor: pointer;
	transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.zcp-contact button.zcp-contact__trigger:hover {
	background: var(--zcp-brand);
	background: color-mix(in srgb, var(--zcp-brand) 88%, #000);
	box-shadow: 0 12px 32px rgb(18 32 23 / 30%);
	transform: translateY(-2px);
}

.zcp-contact__trigger svg {
	position: absolute;
	width: 27px;
	height: 27px;
	fill: currentColor;
	transition: opacity 160ms ease, transform 180ms ease;
}

.zcp-contact__trigger-close {
	opacity: 0;
	transform: rotate(-45deg) scale(0.7);
}

.zcp-contact.is-open .zcp-contact__trigger-chat {
	opacity: 0;
	transform: rotate(45deg) scale(0.7);
}

.zcp-contact.is-open .zcp-contact__trigger-close {
	opacity: 1;
	transform: rotate(0) scale(1);
}

.zcp-contact__teaser {
	position: absolute;
	right: 0;
	bottom: 74px;
	display: flex;
	width: max-content;
	max-width: min(292px, calc(100vw - 40px));
	align-items: center;
	padding: 4px;
	border: 1px solid rgb(31 39 34 / 10%);
	border-radius: 14px;
	background: var(--zcp-surface);
	box-shadow: 0 10px 30px rgb(18 32 23 / 14%);
	opacity: 0;
	pointer-events: none;
	transform: translateY(8px) scale(0.98);
	transform-origin: bottom right;
	visibility: hidden;
	transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
}

.zcp-contact.is-teaser-visible:not(.is-open) .zcp-contact__teaser {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0) scale(1);
	visibility: visible;
	transition-delay: 0s;
}

.zcp-contact button.zcp-contact__teaser-open,
.zcp-contact button.zcp-contact__teaser-close {
	min-width: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.zcp-contact button.zcp-contact__teaser-open {
	flex: 1 1 auto;
	padding: 9px 8px 9px 12px;
	font-size: 0.875rem;
	font-weight: 600;
	text-align: left;
}

.zcp-contact button.zcp-contact__teaser-close {
	display: grid;
	width: 36px;
	min-width: 36px;
	max-width: 36px;
	height: 36px;
	flex: 0 0 36px;
	place-items: center;
	padding: 0;
	border-radius: 50%;
	color: var(--zcp-muted);
}

.zcp-contact button.zcp-contact__teaser-close:hover,
.zcp-contact button.zcp-contact__panel-close:hover {
	background: var(--zcp-soft);
	color: var(--zcp-ink);
}

.zcp-contact__teaser-close svg,
.zcp-contact__panel-close svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.zcp-contact__panel {
	position: absolute;
	right: 0;
	bottom: 74px;
	width: min(370px, calc(100vw - 32px));
	max-height: calc(100vh - 118px - env(safe-area-inset-bottom, 0px));
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 24px;
	border: 1px solid rgb(31 39 34 / 10%);
	border-radius: 20px;
	background: var(--zcp-surface);
	box-shadow: 0 18px 50px rgb(18 32 23 / 20%);
	opacity: 0;
	pointer-events: none;
	transform: translateY(12px) scale(0.97);
	transform-origin: bottom right;
	visibility: hidden;
	transition: opacity 200ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 220ms;
}

.zcp-contact.is-open .zcp-contact__panel {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0) scale(1);
	visibility: visible;
	transition-delay: 0s;
}

.zcp-contact__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.zcp-contact__eyebrow {
	margin: 0 0 5px;
	color: var(--zcp-accent);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.2;
	text-transform: uppercase;
}

.zcp-contact__header h2 {
	margin: 0;
	color: var(--zcp-ink);
	font-family: var(--zcp-font);
	font-size: clamp(1.18rem, 4vw, 1.42rem);
	font-weight: 700;
	line-height: 1.25;
}

.zcp-contact button.zcp-contact__panel-close {
	display: grid;
	width: 40px;
	min-width: 40px;
	max-width: 40px;
	height: 40px;
	flex: 0 0 40px;
	place-items: center;
	padding: 0;
	border: 1px solid var(--zcp-line);
	border-radius: 50%;
	background: transparent;
	color: var(--zcp-muted);
	cursor: pointer;
}

.zcp-contact__description {
	margin: 14px 0 18px;
	color: var(--zcp-muted);
	font-size: 0.9rem;
}

.zcp-contact__primary-action {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
	min-height: 78px;
	margin-bottom: 20px;
	padding: 14px;
	border: 1px solid transparent;
	border-radius: 15px;
	background: var(--zcp-brand);
	color: #fff;
	text-decoration: none;
	transition: background-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.zcp-contact__primary-action:hover {
	background: var(--zcp-brand);
	background: color-mix(in srgb, var(--zcp-brand) 88%, #000);
	box-shadow: 0 10px 24px rgb(18 32 23 / 18%);
	color: #fff;
	transform: translateY(-2px);
}

.zcp-contact__primary-icon,
.zcp-contact__primary-arrow {
	display: grid;
	place-items: center;
	color: #fff;
}

.zcp-contact__primary-icon svg {
	width: 33px;
	height: 33px;
	fill: currentColor;
}

.zcp-contact__primary-copy {
	min-width: 0;
}

.zcp-contact__primary-copy strong,
.zcp-contact__primary-copy small {
	display: block;
	color: #fff;
}

.zcp-contact__primary-copy strong {
	font-size: 0.96rem;
	font-weight: 700;
	line-height: 1.25;
}

.zcp-contact__primary-copy small {
	margin-top: 3px;
	font-size: 0.72rem;
	line-height: 1.35;
	opacity: 0.86;
}

.zcp-contact__primary-arrow svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.zcp-contact__options {
	display: grid;
	gap: 9px;
	padding-top: 20px;
	border-top: 1px solid var(--zcp-line);
}

.zcp-contact__option {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
	min-height: 64px;
	padding: 10px 12px;
	border: 1px solid var(--zcp-line);
	border-radius: 13px;
	background: var(--zcp-surface);
	color: var(--zcp-ink);
	text-decoration: none;
	transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.zcp-contact__option:hover {
	border-color: color-mix(in srgb, var(--zcp-brand) 35%, var(--zcp-line));
	background: var(--zcp-soft);
	color: var(--zcp-ink);
	transform: translateX(2px);
}

.zcp-contact__option-icon {
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	border-radius: 50%;
	background: var(--zcp-soft);
	background: color-mix(in srgb, var(--zcp-brand) 10%, #fff);
	color: var(--zcp-brand);
}

.zcp-contact__option-icon svg {
	width: 21px;
	height: 21px;
	fill: currentColor;
}

.zcp-contact__option strong,
.zcp-contact__option small {
	display: block;
}

.zcp-contact__option strong {
	color: var(--zcp-ink);
	font-size: 0.91rem;
	font-weight: 700;
}

.zcp-contact__option small {
	margin-top: 1px;
	color: var(--zcp-muted);
	font-size: 0.75rem;
}

.zcp-contact__option-arrow {
	display: grid;
	place-items: center;
	color: var(--zcp-muted);
}

.zcp-contact__option-arrow svg {
	width: 17px;
	height: 17px;
	fill: currentColor;
}

@media (max-width: 480px) {
	.zcp-contact {
		right: calc(16px + env(safe-area-inset-right, 0px));
		bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	}

	.zcp-contact button.zcp-contact__trigger {
		width: 56px;
		min-width: 56px;
		max-width: 56px;
		height: 56px;
	}

	.zcp-contact__teaser,
	.zcp-contact__panel {
		bottom: 68px;
	}

	.zcp-contact__panel {
		width: calc(100vw - 32px - env(safe-area-inset-right, 0px));
		max-height: calc(100vh - 104px - env(safe-area-inset-bottom, 0px));
		padding: 20px;
		border-radius: 17px;
	}

	.zcp-contact__primary-action {
		grid-template-columns: 38px minmax(0, 1fr) auto;
		gap: 10px;
		min-height: 72px;
		padding: 12px;
	}

	.zcp-contact__primary-icon svg {
		width: 30px;
		height: 30px;
	}
}

@media (max-width: 767px) {
	html.zmsm-visible .zcp-contact {
		bottom: calc(var(--zmsm-menu-height, 72px) + 12px + env(safe-area-inset-bottom, 0px));
	}

	html.zmsm-visible.zmsm-has-chat-control .zcp-contact button.zcp-contact__trigger {
		opacity: 0;
		pointer-events: none;
		transform: translateY(12px) scale(0.9);
		visibility: hidden;
	}

	html.zmsm-visible .zcp-contact__teaser {
		display: none;
	}

	html.zmsm-visible .zcp-contact__panel {
		max-height: calc(100vh - var(--zmsm-menu-height, 72px) - 104px - env(safe-area-inset-bottom, 0px));
	}

	html.zmsm-visible.zmsm-has-chat-control .zcp-contact__panel {
		bottom: 0;
		max-height: calc(100vh - var(--zmsm-menu-height, 72px) - 32px - env(safe-area-inset-bottom, 0px));
	}
}

@media (prefers-reduced-motion: reduce) {
	.zcp-contact__trigger,
	.zcp-contact__trigger svg,
	.zcp-contact__teaser,
	.zcp-contact__panel,
	.zcp-contact__option {
		transition: none;
	}

	.zcp-contact__primary-action {
		transition: none;
	}

	.zcp-contact__trigger:hover,
	.zcp-contact__option:hover {
		transform: none;
	}

	.zcp-contact__primary-action:hover {
		transform: none;
	}
}
