.kfm-wa-contact {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
	color: #2c241f;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}

.kfm-wa-contact__avatar {
	position: relative;
	display: grid;
	flex: 0 0 48px;
	place-items: center;
	width: 48px;
	height: 48px;
	overflow: hidden;
	border-radius: 50%;
	background: #f2ede8;
	color: #615247;
	font-size: 20px;
	font-weight: 500;
}

.kfm-wa-contact__avatar img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.kfm-wa-contact__avatar img[hidden] {
	display: none;
}

.kfm-wa-contact__body {
	display: flex;
	flex: 1 1 0;
	min-width: 0;
	flex-direction: column;
	align-items: flex-start;
	gap: 3px;
}

.kfm-wa-contact__name,
.kfm-wa-contact__number {
	display: block;
	max-width: 100%;
	overflow-wrap: anywhere;
}

.kfm-wa-contact__name {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.45;
}

.kfm-wa-contact__number {
	color: #625c57;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
	unicode-bidi: isolate;
}

.kfm-wa-contact:focus-visible {
	outline: 2px solid #dc6600;
	outline-offset: 3px;
}

.footer.footer--reference .footer-whatsapp {
	padding-block: 0 30px;
}

.footer.footer--reference .footer-whatsapp h2 {
	margin: 0 0 22px;
	color: var(--footer-heading);
	font-size: 20px;
	font-weight: 600;
}

.footer-whatsapp__heading {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	margin-bottom: 22px;
}

.footer.footer--reference .footer-whatsapp__heading h2 {
	margin: 0;
}

.footer-whatsapp__availability {
	margin: 0;
	color: #d1c3b5;
	font-size: 14px;
	line-height: 1.5;
}

.footer.footer--reference .footer-whatsapp__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	gap: 20px 0;
}

.footer-whatsapp__list > li {
	min-width: 0;
}

.footer-whatsapp__list > li + li {
	border-inline-start: 1px solid var(--footer-rule);
	padding-inline-start: 20px;
}

.footer.footer--reference .footer-whatsapp .kfm-wa-contact {
	min-height: 64px;
	padding-block: 6px;
	padding-inline: 0 16px;
	color: var(--footer-heading);
}

.footer-whatsapp .kfm-wa-contact__avatar {
	flex-basis: 52px;
	width: 52px;
	height: 52px;
	background: #493b2f;
	color: #fff7ef;
}

.footer-whatsapp .kfm-wa-contact__name {
	font-size: 17px;
}

.footer-whatsapp .kfm-wa-contact__number {
	color: #d1c3b5;
	font-size: 14px;
}

.footer.footer--reference .footer-whatsapp a:hover .kfm-wa-contact__name {
	color: #ffc17c;
}

/* 紧凑单列工具：文字提示独立于固定栏宽，长译文与 RTL 不撑大入口。 */
.kfm-contact-rail {
	position: fixed;
	z-index: 98;
	inset-inline-end: var(--kfm-rail-inline-adjust, 0);
	top: var(--kfm-rail-block-start, 50%);
	width: max-content;
	max-width: 52px;
	color: #242b35;
	font-family: inherit;
	transform: translateY(-50%);
}

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

.kfm-contact-rail [hidden] {
	display: none !important;
}

.kfm-contact-rail-enabled aside-content {
	--cncartgo-dock-handle-display: none;
	--cncartgo-dock-toolbar-display: none;
}

.kfm-contact-rail svg {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentcolor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.kfm-quick-tools__toggle {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: 28px;
	min-height: 52px;
	margin: 0;
	padding: 6px 3px;
	border: 0;
	border-start-start-radius: 6px;
	border-end-start-radius: 6px;
	background: #ff7900;
	color: #242b35;
	cursor: pointer;
}

.kfm-quick-tools__toggle > svg:first-child {
	width: 17px;
	height: 17px;
}

.kfm-contact-rail .kfm-quick-tools__arrow {
	width: 14px;
	height: 14px;
}

.kfm-contact-rail[dir="rtl"] .kfm-quick-tools__arrow {
	transform: rotate(180deg);
}

.kfm-quick-tools__actions {
	display: flex;
	flex-direction: column;
	width: 52px;
	padding: 2px;
	border: 1px solid #e4e7eb;
	border-inline-end: 0;
	border-start-start-radius: 7px;
	border-end-start-radius: 7px;
	background: #fff;
	box-shadow: 0 2px 6px #17202c12;
}

.kfm-contact-rail__entry {
	position: static;
	margin: 0;
	padding: 0;
	border: 0;
}

.kfm-wa-widget__trigger,
.kfm-quick-tools__collapse {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 42px;
	margin: 0;
	padding: 8px;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: #242b35;
	font: inherit;
	text-decoration: none;
	cursor: pointer;
	list-style: none;
	-webkit-tap-highlight-color: transparent;
}

.kfm-wa-widget__trigger::-webkit-details-marker {
	display: none;
}

.kfm-wa-widget__trigger::marker {
	content: "";
}

.kfm-quick-tools__actions > :not(:first-child) {
	border-top: 1px solid #f0f1f3;
}

.kfm-wa-widget__trigger:hover,
.kfm-wa-widget__trigger:focus-visible,
.kfm-contact-rail__entry[open] > summary {
	background: #fff4e8;
	color: #a94900;
}

[data-whatsapp-widget] > summary > svg {
	color: #16873e;
}

.kfm-quick-tools__history:hover > svg {
	color: #c65b00;
}

.kfm-quick-tools__collapse {
	min-height: 26px;
	padding: 5px;
	color: #a94900;
}

.kfm-quick-tools__collapse:hover {
	background: #fff4e8;
}

.kfm-quick-tools__tip,
.kfm-quick-tools__hint {
	position: absolute;
	inset-inline-end: calc(100% + 10px);
	top: 50%;
	width: max-content;
	max-width: min(240px, calc(100vw - 80px));
	margin: 0;
	padding: 7px 10px;
	border: 1px solid #e4e7eb;
	border-radius: 5px;
	background: #fff;
	color: #242b35;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.5;
	text-align: start;
	white-space: normal;
	overflow-wrap: anywhere;
	transform: translateY(-50%);
}

.kfm-quick-tools__tip {
	z-index: 2;
	display: none;
}

.kfm-quick-tools__hint {
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 3px;
	padding: 3px 4px 3px 9px;
	background: #fffaf5;
	border-color: #e7bd9a;
}

.kfm-quick-tools__hint button {
	display: grid;
	place-items: center;
	flex: 0 0 24px;
	width: 24px;
	min-height: 26px;
	padding: 5px;
	border: 0;
	border-radius: 3px;
	background: transparent;
	color: #625c57;
	cursor: pointer;
}

.kfm-quick-tools__hint button svg {
	width: 12px;
	height: 12px;
}

.kfm-quick-tools__hint::after,
.kfm-quick-tools__tip::after {
	position: absolute;
	inset-inline-start: 100%;
	top: calc(50% - 8px);
	width: 10px;
	height: 16px;
	content: "";
}

.kfm-wa-widget__trigger:focus-visible > .kfm-quick-tools__tip,
.kfm-quick-tools__collapse:focus-visible > .kfm-quick-tools__tip,
.kfm-quick-tools__toggle:focus-visible > .kfm-quick-tools__tip {
	display: block;
}

@media (hover: hover) {

	.kfm-wa-widget__trigger:hover > .kfm-quick-tools__tip,
	.kfm-quick-tools__collapse:hover > .kfm-quick-tools__tip,
	.kfm-quick-tools__toggle:hover > .kfm-quick-tools__tip {
		display: block;
	}
}

.kfm-contact-rail[data-hint-visible="true"] .kfm-quick-tools__toggle > .kfm-quick-tools__tip,
.kfm-contact-rail[data-tip-dismissed="true"] .kfm-quick-tools__tip,
.kfm-contact-rail__entry[open] > summary > .kfm-quick-tools__tip {
	display: none;
}

.kfm-contact-rail :is(button, summary, a):focus-visible {
	outline: 2px solid #a94900;
	outline-offset: 2px;
}

.kfm-wa-widget__popover {
	position: absolute;
	inset-inline-end: calc(100% + 10px);
	top: 0;
	display: flex;
	flex-direction: column;
	width: min(320px, calc(100vw - 84px));
	max-height: min(560px, calc(100dvh - 32px));
	margin: 0;
	padding: 12px 16px;
	border: 1px solid #e4e7eb;
	border-radius: 8px;
	background: #fff;
	color: #242b35;
	box-shadow: 0 2px 6px #17202c12;
}

.kfm-wa-widget__popover::before {
	position: absolute;
	inset-inline-start: 100%;
	top: 0;
	width: 10px;
	height: 100%;
	content: "";
}

.kfm-contact-rail__entry:not([open]) .kfm-wa-widget__popover {
	display: none;
}

.kfm-wa-widget__header {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: space-between;
	min-height: 38px;
	gap: 10px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.kfm-wa-widget__header h2 {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: #242b35;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.kfm-wa-widget__header h2 svg {
	color: #c65b00;
}

.kfm-wa-widget__header button,
.kfm-contact-rail__address button {
	display: grid;
	place-items: center;
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	padding: 7px;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: #554e48;
	cursor: pointer;
}

.kfm-wa-widget__header button:hover,
.kfm-contact-rail__address button:hover {
	background: #f4f4f4;
}

.kfm-wa-widget__header button svg,
.kfm-contact-rail__address button svg {
	width: 18px;
	height: 18px;
}

.kfm-wa-widget__list,
.kfm-contact-rail__emails {
	min-height: 0;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	list-style: none;
}

.kfm-wa-widget__list li + li,
.kfm-contact-rail__emails li + li {
	border-top: 1px solid #ededed;
}

.kfm-wa-widget .kfm-wa-contact {
	min-height: 68px;
	padding-block: 10px;
}

.kfm-wa-widget .kfm-wa-contact:hover .kfm-wa-contact__name {
	color: #a94900;
}

.kfm-wa-widget .kfm-wa-contact:focus-visible {
	outline-offset: -2px;
	border-radius: 4px;
}

.kfm-contact-rail__emails li {
	padding-block: 12px 0;
}

.kfm-contact-rail__emails li + li {
	margin-top: 14px;
}

.kfm-contact-rail__caption {
	margin: 0 0 5px;
	color: #625c57;
	font-size: 12px;
	line-height: 1.5;
}

.kfm-contact-rail__address {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 4px;
}

.kfm-contact-rail__address a {
	min-width: 0;
	color: #242b35;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.5;
	text-decoration: none;
	overflow-wrap: anywhere;
	unicode-bidi: isolate;
}

.kfm-contact-rail__send {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 44px;
	margin-top: 14px;
	padding: 9px 10px;
	border-radius: 5px;
	background: #ff7900;
	color: #242b35;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none;
}

.kfm-contact-rail__send svg {
	width: 16px;
	height: 16px;
}

.kfm-contact-rail__send:hover {
	background: #ed6e00;
	color: #242b35;
}

.kfm-contact-rail__status {
	margin: 8px 0 0;
	color: #625c57;
	font-size: 12px;
	line-height: 1.5;
}

.kfm-contact-rail__status:empty {
	display: none;
}

@media (max-width: 1100px) {

	.footer.footer--reference .footer-whatsapp__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.footer-whatsapp__list > li:nth-child(odd) {
		border-inline-start: 0;
		padding-inline-start: 0;
	}
}

@media (max-width: 600px) {

	.footer.footer--reference .footer-whatsapp__list {
		grid-template-columns: minmax(0, 1fr);
	}

	.footer-whatsapp__list > li + li {
		border-inline-start: 0;
		padding-inline-start: 0;
	}

	.kfm-contact-rail {
		top: var(--kfm-rail-block-start, 65%);
	}

	.kfm-wa-widget__popover {
		padding-inline: 12px;
	}

	.kfm-wa-widget .kfm-wa-contact {
		gap: 8px;
	}

	.kfm-wa-widget .kfm-wa-contact__avatar {
		flex-basis: 36px;
		width: 36px;
		height: 36px;
	}
}

@media (pointer: coarse) {

	.kfm-wa-widget__trigger {
		min-height: 44px;
	}

	.kfm-quick-tools__collapse {
		min-height: 32px;
	}
}

@media (prefers-reduced-motion: no-preference) {

	.kfm-quick-tools__toggle,
	.kfm-wa-widget__trigger,
	.kfm-quick-tools__collapse {
		transition:
			background-color 120ms ease-out,
			color 120ms ease-out;
	}
}
