.zc-contact-launcher,
.zc-contact-overlay,
.zc-contact-sheet,
.zc-contact-sheet * {
	box-sizing: border-box;
}

.zc-contact-launcher[hidden],
.zc-contact-overlay[hidden],
.zc-contact-panel[hidden],
.zc-contact-success[hidden],
.zc-contact-member-only[hidden],
.zc-contact-guest-only[hidden] {
	display: none !important;
}

.zc-contact-launcher {
	position: fixed;
	right: 20px;
	bottom: 22px;
	z-index: 10010;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 15px 0 12px;
	border: 1px solid rgba(255, 255, 255, .72);
	border-radius: 999px;
	background: linear-gradient(135deg, #0b2f7a, #174ca5);
	color: #fff;
	box-shadow: 0 12px 28px rgba(7, 29, 59, .24);
	font: 800 13px/1.2 -apple-system, BlinkMacSystemFont, "HarmonyOS Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: transform .16s ease, box-shadow .16s ease, bottom .18s ease;
}

.zc-contact-launcher:hover,
.zc-contact-launcher:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 16px 34px rgba(7, 29, 59, .29);
	color: #fff;
}

.zc-contact-launcher svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.zc-contact-overlay {
	position: fixed;
	inset: 0;
	z-index: 2147483200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(3, 13, 31, .66);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	font-family: -apple-system, BlinkMacSystemFont, "HarmonyOS Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.zc-contact-sheet {
	position: relative;
	width: min(100%, 600px);
	max-height: min(88vh, 780px);
	overflow: auto;
	border: 1px solid rgba(217, 226, 241, .96);
	border-radius: 20px;
	background: #fff;
	color: #152139;
	box-shadow: 0 28px 80px rgba(3, 13, 31, .3);
	outline: none;
	overscroll-behavior: contain;
}

.zc-contact-head {
	position: sticky;
	top: 0;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 20px 14px;
	border-bottom: 1px solid #e8edf5;
	background: rgba(255, 255, 255, .96);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}

.zc-contact-identity {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.zc-contact-identity img {
	width: 46px;
	height: 46px;
	flex: 0 0 auto;
	border-radius: 13px;
	box-shadow: 0 6px 16px rgba(11, 47, 122, .18);
}

.zc-contact-eyebrow {
	margin: 0 0 3px;
	color: #6a7689;
	font-size: 12px;
	font-weight: 700;
}

.zc-contact-head h2 {
	margin: 0;
	color: #0b2f7a;
	font-size: 23px;
	line-height: 1.15;
}

.zc-contact-close {
	width: 38px;
	height: 38px;
	flex: 0 0 auto;
	border: 0;
	border-radius: 50%;
	background: #f0f3f8;
	color: #445169;
	font-size: 27px;
	line-height: 1;
	cursor: pointer;
}

.zc-contact-close:hover,
.zc-contact-close:focus-visible {
	background: #e4e9f2;
	color: #0b2f7a;
}

.zc-contact-tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	margin: 16px 20px 0;
	padding: 4px;
	border-radius: 12px;
	background: #f0f3f8;
}

.zc-contact-tab {
	min-height: 38px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: #667187;
	font-size: 14px;
	font-weight: 800;
	cursor: pointer;
}

.zc-contact-tab.is-active {
	background: #fff;
	color: #0b2f7a;
	box-shadow: 0 4px 12px rgba(15, 35, 70, .08);
}

.zc-contact-panel {
	padding: 18px 20px 20px;
}

.zc-contact-lead {
	margin: 0 0 17px;
	color: #5f6b7f;
	font-size: 13px;
	line-height: 1.65;
}

.zc-contact-types {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 17px;
	padding: 0;
	border: 0;
}

.zc-contact-types legend {
	width: 100%;
	margin-bottom: 8px;
	color: #24324a;
	font-size: 14px;
	font-weight: 850;
}

.zc-contact-types label {
	position: relative;
	margin: 0;
	cursor: pointer;
}

.zc-contact-types input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.zc-contact-types span {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 0 12px;
	border: 1px solid #dbe3ef;
	border-radius: 999px;
	background: #fff;
	color: #556177;
	font-size: 13px;
	font-weight: 750;
	transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.zc-contact-types input:checked + span {
	border-color: #0b2f7a;
	background: #eaf0ff;
	color: #0b2f7a;
	box-shadow: inset 0 0 0 1px rgba(11, 47, 122, .08);
}

.zc-contact-types input:focus-visible + span {
	outline: 3px solid rgba(23, 78, 181, .25);
	outline-offset: 2px;
}

.zc-contact-field {
	position: relative;
	display: block;
	margin: 0 0 16px;
}

.zc-contact-field > span {
	display: block;
	margin: 0 0 7px;
	color: #24324a;
	font-size: 14px;
	font-weight: 850;
}

.zc-contact-field em {
	margin-left: 4px;
	color: #8b95a6;
	font-size: 12px;
	font-style: normal;
	font-weight: 600;
}

.zc-contact-field textarea,
.zc-contact-field input {
	width: 100%;
	border: 1px solid #d6deeb;
	border-radius: 11px;
	background: #fbfcfe;
	color: #17233a;
	font: 500 15px/1.58 inherit;
	outline: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.zc-contact-field textarea {
	min-height: 132px;
	padding: 12px 13px 28px;
	resize: vertical;
}

.zc-contact-field input {
	height: 44px;
	padding: 0 13px;
}

.zc-contact-field textarea:focus,
.zc-contact-field input:focus {
	border-color: #174eb5;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(23, 78, 181, .12);
}

.zc-contact-field > small {
	position: absolute;
	right: 11px;
	bottom: 8px;
	color: #8a95a7;
	font-size: 11px;
	font-weight: 600;
}

.zc-contact-field > small b {
	font-weight: 750;
}

.zc-contact-account-note {
	display: grid;
	gap: 3px;
	margin: 2px 0 17px;
	padding: 11px 12px;
	border: 1px solid #d9e4f6;
	border-radius: 11px;
	background: #f1f6ff;
}

.zc-contact-account-note strong {
	color: #26334b;
	font-size: 13px;
}

.zc-contact-account-note span {
	color: #758095;
	font-size: 11px;
	line-height: 1.5;
}

.zc-contact-external {
	margin: 2px 0 17px;
	padding: 0 12px;
	border: 1px solid #e2e7ef;
	border-radius: 11px;
	background: #f8fafc;
}

.zc-contact-external summary {
	padding: 12px 0;
	color: #44516a;
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
}

.zc-contact-external summary em {
	margin-left: 5px;
	color: #8b95a6;
	font-size: 11px;
	font-style: normal;
	font-weight: 650;
}

.zc-contact-external .zc-contact-field {
	margin-bottom: 7px;
}

.zc-contact-external p {
	margin: 0 0 11px;
	color: #7b8698;
	font-size: 11px;
	line-height: 1.5;
}

.zc-contact-honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.zc-contact-form-status {
	min-height: 20px;
	margin: 0 0 8px;
	color: #ba1533;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
}

.zc-contact-submit {
	width: 100%;
	min-height: 46px;
	border: 0;
	border-radius: 11px;
	background: linear-gradient(135deg, #d7193f, #b91332);
	color: #fff;
	box-shadow: 0 10px 22px rgba(215, 25, 63, .2);
	font-size: 15px;
	font-weight: 850;
	cursor: pointer;
}

.zc-contact-submit:hover,
.zc-contact-submit:focus-visible {
	background: linear-gradient(135deg, #e12148, #c41639);
}

.zc-contact-submit:disabled {
	opacity: .56;
	cursor: wait;
}

.zc-contact-success {
	padding: 18px 8px 8px;
	text-align: center;
}

.zc-contact-success-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: #e7f6ef;
	color: #13815f;
	font-size: 28px;
	font-weight: 900;
}

.zc-contact-success h3 {
	margin: 12px 0 7px;
	color: #11233f;
	font-size: 23px;
}

.zc-contact-success p {
	margin: 4px 0;
	color: #667288;
	font-size: 13px;
	line-height: 1.55;
}

.zc-contact-success div {
	display: flex;
	justify-content: center;
	gap: 9px;
	margin-top: 17px;
}

.zc-contact-success button,
.zc-contact-history-head button {
	min-height: 38px;
	padding: 0 13px;
	border: 1px solid #d4ddea;
	border-radius: 9px;
	background: #fff;
	color: #0b2f7a;
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
}

.zc-contact-success button:last-child {
	border-color: #0b2f7a;
	background: #0b2f7a;
	color: #fff;
}

.zc-contact-history-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.zc-contact-history-head h3 {
	margin: 0 0 3px;
	color: #12223d;
	font-size: 18px;
}

.zc-contact-history-head p {
	margin: 0;
	color: #7a8598;
	font-size: 11px;
}

.zc-contact-history {
	display: grid;
	gap: 11px;
}

.zc-contact-history-item {
	padding: 14px;
	border: 1px solid #dfe5ef;
	border-radius: 12px;
	background: #f8fafc;
}

.zc-contact-history-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 8px;
}

.zc-contact-history-meta div {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
}

.zc-contact-history-type,
.zc-contact-history-status {
	display: inline-flex;
	align-items: center;
	min-height: 25px;
	padding: 0 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 800;
}

.zc-contact-history-type {
	background: #edf2fb;
	color: #315080;
}

.zc-contact-history-status {
	background: #fff2d7;
	color: #8a5b00;
}

.zc-contact-history-status[data-status="processing"] {
	background: #e8f0ff;
	color: #174da3;
}

.zc-contact-history-status[data-status="replied"] {
	background: #e6f6ee;
	color: #137251;
}

.zc-contact-history-status[data-status="closed"] {
	background: #edf0f4;
	color: #667080;
}

.zc-contact-history-time {
	flex: 0 0 auto;
	color: #8b95a6;
	font-size: 11px;
}

.zc-contact-history-message {
	margin: 0;
	color: #354158;
	font-size: 13px;
	line-height: 1.58;
	white-space: pre-wrap;
}

.zc-contact-thread {
	display: grid;
	gap: 8px;
	max-height: 320px;
	overflow: auto;
	padding: 12px;
	border: 1px solid #e4e9f1;
	border-radius: 11px;
	background: #fff;
	overscroll-behavior: contain;
}

.zc-contact-message {
	width: fit-content;
	max-width: 84%;
	padding: 9px 11px 7px;
	border-radius: 12px;
	background: #edf2f8;
	color: #354158;
}

.zc-contact-message.is-host {
	justify-self: start;
	border-bottom-left-radius: 4px;
	background: #fff0f3;
	color: #3d3540;
}

.zc-contact-message.is-user {
	justify-self: end;
	border-bottom-right-radius: 4px;
	background: #eaf0ff;
	color: #173a77;
}

.zc-contact-message strong {
	display: block;
	margin-bottom: 3px;
	color: #68758a;
	font-size: 10px;
}

.zc-contact-message.is-host strong {
	color: #b71534;
}

.zc-contact-message p {
	margin: 0;
	font-size: 13px;
	line-height: 1.55;
	white-space: pre-wrap;
}

.zc-contact-message time {
	display: block;
	margin-top: 4px;
	color: #8b95a6;
	font-size: 9px;
	text-align: right;
}

.zc-contact-composer {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid #e3e8f0;
}

.zc-contact-composer label {
	display: grid;
	gap: 6px;
	color: #4f5c71;
	font-size: 11px;
	font-weight: 800;
}

.zc-contact-composer textarea {
	width: 100%;
	min-height: 66px;
	padding: 9px 10px;
	resize: vertical;
	border: 1px solid #d6deeb;
	border-radius: 9px;
	background: #fff;
	color: #17233a;
	font: 500 13px/1.55 inherit;
	outline: none;
}

.zc-contact-composer textarea:focus {
	border-color: #174eb5;
	box-shadow: 0 0 0 3px rgba(23, 78, 181, .1);
}

.zc-contact-composer > div {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 7px;
}

.zc-contact-composer button {
	min-width: 74px;
	min-height: 34px;
	padding: 0 13px;
	border: 0;
	border-radius: 8px;
	background: #0b2f7a;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
}

.zc-contact-composer button:disabled {
	opacity: .56;
	cursor: wait;
}

.zc-contact-composer-status {
	color: #ba1533;
	font-size: 11px;
	font-weight: 700;
}

.zc-contact-conversation-closed {
	margin: 10px 0 0;
	color: #7b8698;
	font-size: 11px;
	text-align: center;
}

.zc-contact-history-reply {
	margin-top: 10px;
	padding: 10px 11px;
	border-left: 3px solid #d7193f;
	border-radius: 7px;
	background: #fff7f8;
}

.zc-contact-history-reply strong {
	display: block;
	margin-bottom: 3px;
	color: #b71534;
	font-size: 11px;
}

.zc-contact-history-reply p {
	margin: 0;
	color: #3d4657;
	font-size: 13px;
	line-height: 1.55;
	white-space: pre-wrap;
}

.zc-contact-empty,
.zc-contact-loading {
	margin: 8px 0;
	padding: 28px 14px;
	border: 1px dashed #d7dfeb;
	border-radius: 12px;
	background: #fafbfd;
	color: #7d8798;
	text-align: center;
	font-size: 13px;
	line-height: 1.6;
}

.zc-contact-foot {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 7px 14px;
	padding: 12px 18px 15px;
	border-top: 1px solid #edf0f5;
	color: #8993a4;
	font-size: 10px;
	font-weight: 650;
}

body.zc-contact-open {
	overflow: hidden !important;
}

@media (max-width: 760px) {
	.zc-contact-launcher {
		right: 12px;
		bottom: calc(76px + env(safe-area-inset-bottom, 0px));
		min-height: 42px;
		padding-right: 13px;
		font-size: 12px;
	}

	.zc-contact-launcher.zc-contact-pwa-lift {
		bottom: calc(128px + env(safe-area-inset-bottom, 0px));
	}

	.zc-contact-overlay {
		align-items: flex-end;
		padding: 0;
	}

	.zc-contact-sheet {
		width: 100%;
		max-height: min(89vh, 800px);
		border-right: 0;
		border-bottom: 0;
		border-left: 0;
		border-radius: 20px 20px 0 0;
		padding-bottom: env(safe-area-inset-bottom, 0px);
	}

	.zc-contact-head {
		padding: 14px 16px 12px;
	}

	.zc-contact-identity img {
		width: 40px;
		height: 40px;
		border-radius: 11px;
	}

	.zc-contact-head h2 {
		font-size: 20px;
	}

	.zc-contact-tabs {
		margin: 13px 16px 0;
	}

	.zc-contact-panel {
		padding: 16px;
	}

	.zc-contact-types {
		gap: 7px;
	}

	.zc-contact-types span {
		min-height: 32px;
		padding: 0 10px;
		font-size: 12px;
	}

	.zc-contact-field textarea {
		min-height: 120px;
	}
}

@media (max-width: 360px) {
	.zc-contact-launcher span {
		display: none;
	}

	.zc-contact-launcher {
		width: 44px;
		padding: 0;
		justify-content: center;
	}

	.zc-contact-success div {
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.zc-contact-sheet {
		animation: zcContactSheetIn .24s ease-out both;
	}

	@keyframes zcContactSheetIn {
		from { transform: translateY(18px); opacity: .25; }
		to { transform: translateY(0); opacity: 1; }
	}
}

@media print {
	.zc-contact-launcher,
	.zc-contact-overlay {
		display: none !important;
	}
}
