/**
 * VERHI cookie consent layer - v3.5.29
 *
 * Scoped, self-contained styles for the built-in cookie banner. It mirrors
 * the WP Consent banner used on come-to-china.com and is written so Kadence theme
 * styles, header/footer and floating icons are not affected.
 */

#wpconsent-root,
#wpconsent-root *,
#wpconsent-root *::before,
#wpconsent-root *::after {
	box-sizing: border-box;
}

#wpconsent-root {
	--wpconsent-shadow: 0 18px 40px -24px rgba(22, 50, 79, 0.35), 0 8px 18px -12px rgba(47, 111, 214, 0.25);
	--wpconsent-border-radius: 10px;
	--wpconsent-padding: 15px 20px;
	--wpconsent-min-width: 526px;
	--wpconsent-mobile-breakpoint: 767px;
	--wpconsent-close-size: 12px;
	--wpconsent-close-color: #16324f;
	--wpconsent-title-size: 20px;
	--wpconsent-line-height: 1.4;
	--wpconsent-focus-outline-color: #7ab8ff;
	--wpconsent-focus-outline-width: 2px;
	--wpconsent-focus-outline-offset: 2px;
	font-family: inherit;
	line-height: 1.4;
}

#wpconsent-root .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

#wpconsent-root button {
	font-family: inherit;
}

#wpconsent-root button:focus-visible,
#wpconsent-root a:focus-visible,
#wpconsent-root input:focus-visible {
	outline: var(--wpconsent-focus-outline-width) solid var(--wpconsent-focus-outline-color);
	outline-offset: var(--wpconsent-focus-outline-offset);
}

/* Banner card */
#wpconsent-banner-holder {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: var(--wpconsent-z-index, 900000);
	display: none;
}

#wpconsent-banner-holder.wpconsent-banner-visible {
	display: block;
}

#wpconsent-banner-holder .wpconsent-banner {
	position: fixed;
	top: auto;
	left: 10px;
	right: auto;
	bottom: 10px;
	width: var(--wpconsent-min-width, 526px);
	max-width: calc(100vw - 20px);
	max-height: calc(100vh - 20px);
	overflow: auto;
	background:
		radial-gradient(circle at 92% 6%, rgba(53, 182, 232, 0.18), transparent 44%),
		radial-gradient(circle at 4% 100%, rgba(47, 111, 214, 0.10), transparent 42%),
		var(--wpconsent-background, #ffffff);
	color: var(--wpconsent-text, #16324f);
	border-radius: var(--wpconsent-border-radius, 10px);
	box-shadow: var(--wpconsent-shadow);
	padding: var(--wpconsent-padding, 15px 20px);
	display: grid;
	gap: 10px;
	border: 1px solid rgba(47, 111, 214, 0.16);
}

#wpconsent-banner-holder .wpconsent-banner-header {
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

#wpconsent-banner-holder .wpconsent-banner-logo img {
	display: block;
	height: 30px;
	width: auto;
	max-width: 140px;
}

#wpconsent-banner-holder .wpconsent-banner-body {
	max-height: 55vh;
	overflow-x: hidden;
	overflow-y: auto;
	font-size: var(--wpconsent-font-size, 16px);
	line-height: var(--wpconsent-line-height, 1.4);
	text-align: center;
	padding: 0 10px;
	margin-bottom: 5px;
}

#wpconsent-banner-holder .wpconsent-banner-body p {
	font-size: inherit;
	color: inherit;
	line-height: var(--wpconsent-line-height, 1.4);
	margin: 12px 0 0;
}

#wpconsent-banner-holder .wpconsent-banner-body p:first-child {
	margin-top: 0;
}

#wpconsent-banner-holder .wpconsent-banner-body a {
	color: var(--vh-blue, #2f6fd6);
	text-decoration: underline;
	text-underline-offset: 3px;
}

#wpconsent-banner-holder .wpconsent-banner-footer {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

#wpconsent-banner-holder .wpconsent-banner-button,
#wpconsent-preferences-modal .wpconsent-banner-button {
	height: 45px;
	padding: 10px;
	margin: 0;
	width: 100%;
	white-space: nowrap;
	border-radius: 4px;
	cursor: pointer;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	text-align: center;
	border: none;
	text-transform: none;
	text-decoration: none;
}

#wpconsent-banner-holder .wpconsent-banner-footer.wpconsent-button-size-small .wpconsent-banner-button,
#wpconsent-preferences-modal .wpconsent-preferences-buttons.wpconsent-button-size-small .wpconsent-banner-button {
	height: 30px;
	padding: 5px 10px;
	font-size: 14px;
}

#wpconsent-banner-holder .wpconsent-banner-footer.wpconsent-button-corner-slightly-rounded .wpconsent-banner-button,
#wpconsent-preferences-modal .wpconsent-preferences-buttons.wpconsent-button-corner-slightly-rounded .wpconsent-banner-button {
	border-radius: 20px;
}

#wpconsent-banner-holder .wpconsent-banner-button.wpconsent-accept-all,
#wpconsent-preferences-modal .wpconsent-banner-button.wpconsent-accept-all {
	background-color: var(--wpconsent-accept-bg, #c7000b);
	color: var(--wpconsent-accept-color, #ffffff);
}

#wpconsent-banner-holder .wpconsent-banner-button.wpconsent-cancel-all,
#wpconsent-preferences-modal .wpconsent-banner-button.wpconsent-close-preferences {
	background-color: var(--wpconsent-cancel-bg, #ffffff);
	color: var(--wpconsent-cancel-color, #000000);
}

#wpconsent-banner-holder .wpconsent-banner-button.wpconsent-preferences-all,
#wpconsent-preferences-modal .wpconsent-banner-button.wpconsent-save-preferences {
	background-color: var(--wpconsent-preferences-bg, #ffffff);
	color: var(--wpconsent-preferences-color, #000000);
}

#wpconsent-banner-holder .wpconsent-banner-button:hover,
#wpconsent-preferences-modal .wpconsent-banner-button:hover {
	filter: brightness(0.94);
}

#wpconsent-banner-holder .wpconsent-banner-button.wpconsent-accept-all:hover,
#wpconsent-preferences-modal .wpconsent-banner-button.wpconsent-accept-all:hover {
	background-color: var(--wpconsent-accept-bg, #c7000b);
}

/* Preference modal */
#wpconsent-preferences-modal {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.55);
	display: none;
	justify-content: center;
	align-items: center;
	z-index: 10202020;
}

#wpconsent-preferences-modal.wpconsent-modal-open {
	display: flex;
}

#wpconsent-preferences-modal .wpconsent-preferences-content {
	background-color: var(--wpconsent-background, #ffffff);
	color: var(--wpconsent-text, #16324f);
	padding: 0 26px 26px;
	border-radius: 10px;
	max-width: 90%;
	width: 800px;
	max-height: 90vh;
	overflow: hidden;
	box-shadow: var(--wpconsent-shadow);
	display: flex;
	flex-direction: column;
	position: relative;
}

#wpconsent-preferences-modal .wpconsent-preferences-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 26px;
	padding-bottom: 10px;
	flex-shrink: 0;
}

#wpconsent-preferences-modal h2 {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: var(--wpconsent-text, #16324f);
}

#wpconsent-preferences-modal .wpconsent-preferences-header-right {
	display: flex;
	align-items: center;
	gap: 10px;
}

#wpconsent-preferences-modal .wpconsent-banner-logo img {
	display: block;
	height: 30px;
	width: auto;
	max-width: 140px;
}

#wpconsent-preferences-modal .wpconsent-preferences-header-close {
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	height: 30px;
	width: 30px;
	font-size: 22px;
	line-height: 1;
	color: var(--wpconsent-text, #16324f);
}

#wpconsent-preferences-modal .wpconsent-preferences-body {
	flex: 1 1 auto;
	overflow-y: auto;
	overflow-x: hidden;
	min-height: 0;
}

#wpconsent-preferences-modal .wpconsent_preferences_panel_description p {
	margin: 0.7em 0 20px;
	font-size: 14px;
	line-height: 2em;
	opacity: 0.8;
	color: var(--wpconsent-text, #16324f);
}

#wpconsent-preferences-modal .wpconsent-preference-cookies {
	font-size: 14px;
}

#wpconsent-preferences-modal .wpconsent-preferences-accordion-item {
	display: flex;
	flex-direction: column;
}

#wpconsent-preferences-modal .wpconsent-cookie-category {
	display: flex;
	flex-direction: column;
	border-bottom: 1px solid var(--wpconsent-outline-color, rgba(47, 111, 214, 0.18));
	cursor: pointer;
}

#wpconsent-preferences-modal .wpconsent-cookie-category:first-child {
	border-top: 1px solid var(--wpconsent-outline-color, rgba(47, 111, 214, 0.18));
}

#wpconsent-preferences-modal .wpconsent-preferences-accordion-header {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 0;
	gap: 16px;
}

#wpconsent-preferences-modal .wpconsent-cookie-category-text {
	padding-right: 20px;
	width: 100%;
	min-width: 0;
}

#wpconsent-preferences-modal .wpconsent-cookie-category-text label {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--wpconsent-text, #16324f);
	cursor: pointer;
}

#wpconsent-preferences-modal .wpconsent-preferences-accordion-toggle {
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	margin-right: 12px;
	display: inline-flex;
	align-items: center;
	vertical-align: middle;
}

#wpconsent-preferences-modal .wpconsent-preferences-accordion-arrow {
	border: solid var(--wpconsent-text, #16324f);
	border-width: 0 2px 2px 0;
	display: inline-block;
	padding: 3.5px;
	position: relative;
	top: -3px;
	transform: rotate(45deg);
	transition: transform 0.3s ease;
}

#wpconsent-preferences-modal .wpconsent-preferences-accordion-item.active > .wpconsent-preferences-accordion-header .wpconsent-preferences-accordion-arrow {
	transform: rotate(-135deg);
	top: 2px;
}

#wpconsent-preferences-modal .wpconsent-preferences-accordion-content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out;
	font-size: 14px;
}

#wpconsent-preferences-modal .wpconsent-preferences-accordion-item.active > .wpconsent-preferences-accordion-content {
	max-height: 2000px;
	transition: max-height 0.3s ease-in;
}

#wpconsent-preferences-modal .wpconsent-cookie-service {
	margin-left: 20px;
	position: relative;
}

#wpconsent-preferences-modal .wpconsent-cookie-service .wpconsent-preferences-accordion-header {
	padding: 12px 0;
}

#wpconsent-preferences-modal .wpconsent-category-description,
#wpconsent-preferences-modal .wpconsent-service-description,
#wpconsent-preferences-modal .wpconsent-cookie-policy-text {
	margin: 6px 0 14px;
	color: var(--wpconsent-text, #16324f);
}

#wpconsent-preferences-modal .wpconsent-service-url {
	margin: 4px 0 12px;
	color: var(--wpconsent-text, #16324f);
}

#wpconsent-preferences-modal .wpconsent-preferences-accordion-content a,
#wpconsent-preferences-modal .wpconsent-cookie-policy-text a {
	color: var(--vh-blue, #2f6fd6);
	text-decoration: underline;
	text-underline-offset: 3px;
}

#wpconsent-preferences-modal .wpconsent-cookie-category-checkbox {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	flex-shrink: 0;
}

#wpconsent-preferences-modal .wpconsent-preferences-checkbox-toggle {
	display: inline-block;
	height: 20px;
	position: relative;
	width: 36px;
	flex-shrink: 0;
}

#wpconsent-preferences-modal .wpconsent-preferences-checkbox-toggle input {
	opacity: 0;
	height: 100%;
	width: 100%;
	position: absolute;
	margin: 0;
	cursor: pointer;
}

#wpconsent-preferences-modal .wpconsent-preferences-checkbox-toggle .wpconsent-preferences-checkbox-toggle-slider {
	background-color: #c9d6e8;
	border-radius: 20px;
	bottom: 0;
	cursor: pointer;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
	transition: background-color 0.3s ease;
}

#wpconsent-preferences-modal .wpconsent-preferences-checkbox-toggle .wpconsent-preferences-checkbox-toggle-slider::before {
	background-color: #ffffff;
	border-radius: 50%;
	bottom: 3px;
	content: "";
	height: 14px;
	left: 3px;
	position: absolute;
	transition: transform 0.3s ease;
	width: 14px;
}

#wpconsent-preferences-modal .wpconsent-preferences-checkbox-toggle input:checked + .wpconsent-preferences-checkbox-toggle-slider {
	background-color: var(--wpconsent-accept-bg, #c7000b);
}

#wpconsent-preferences-modal .wpconsent-preferences-checkbox-toggle input:checked + .wpconsent-preferences-checkbox-toggle-slider::before {
	transform: translateX(16px);
}

#wpconsent-preferences-modal .wpconsent-preferences-checkbox-toggle.wpconsent-preferences-checkbox-toggle-disabled .wpconsent-preferences-checkbox-toggle-slider {
	background-color: #c9d6e8 !important;
	cursor: not-allowed;
	opacity: 0.5;
}

#wpconsent-preferences-modal .wpconsent-preferences-checkbox-toggle.wpconsent-preferences-checkbox-toggle-disabled input {
	cursor: not-allowed;
}

#wpconsent-preferences-modal .wpconsent-preference-cookies .wpconsent-preferences-list-header,
#wpconsent-preferences-modal .wpconsent-preference-cookies .wpconsent-preferences-list-item {
	display: grid;
	grid-template-columns: 1fr 4fr 1fr;
	gap: 15px;
	padding: 12px 14px;
	align-items: center;
	border-bottom: 1px solid rgba(47, 111, 214, 0.14);
	margin-bottom: 0;
	font-size: 13px;
}

#wpconsent-preferences-modal .wpconsent-preference-cookies .wpconsent-preferences-list-item:last-child {
	border-bottom: none;
}

#wpconsent-preferences-modal .wpconsent-preferences-list-header {
	font-weight: 600;
}

#wpconsent-preferences-modal .wpconsent-preferences-actions {
	margin-top: 20px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-shrink: 0;
}

#wpconsent-preferences-modal .wpconsent-preferences-buttons {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	gap: 10px;
}

#wpconsent-preferences-modal .wpconsent-preferences-buttons-left {
	display: flex;
	gap: 10px;
}

#wpconsent-preferences-modal .wpconsent-preferences-buttons .wpconsent-banner-button {
	width: auto;
	white-space: nowrap;
}

/* Floating settings button is hidden by default, matching the live site. */
#wpconsent-consent-floating {
	position: fixed;
	bottom: 20px;
	left: 20px;
	z-index: 9999;
	background-color: #2f6fd6;
	color: #ffffff;
	border: none;
	padding: 10px;
	line-height: 8px;
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.24);
	transition: background-color 0.3s ease, transform 0.2s ease;
}

#wpconsent-consent-floating:hover {
	transform: translateY(-2px);
}

#wpconsent-consent-floating svg {
	display: block;
	width: 24px;
	height: 24px;
}

/* Mobile: full-width card that stays above the WhatsApp and knowledge icons */
@media (max-width: 767px) {
	#wpconsent-banner-holder .wpconsent-banner {
		left: 10px;
		right: 10px;
		bottom: 138px;
		width: auto;
		min-width: 0;
		max-height: calc(100vh - 150px);
		padding: 14px 16px;
	}

	#wpconsent-banner-holder .wpconsent-banner-body {
		max-height: 40vh;
		padding: 0 4px;
	}

	#wpconsent-banner-holder .wpconsent-banner-footer {
		flex-direction: column;
		gap: 6px;
	}

	#wpconsent-preferences-modal .wpconsent-preferences-content {
		width: 100%;
		max-width: 100%;
		max-height: 100%;
		height: 100%;
		border-radius: 0;
		padding: 0 16px 16px;
	}

	#wpconsent-preferences-modal .wpconsent-preferences-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	#wpconsent-preferences-modal .wpconsent-preferences-header-right {
		width: 100%;
		justify-content: space-between;
	}

	#wpconsent-preferences-modal .wpconsent-preferences-actions {
		flex-direction: column;
		align-items: stretch;
	}

	#wpconsent-preferences-modal .wpconsent-preferences-buttons {
		flex-direction: column;
		align-items: stretch;
	}

	#wpconsent-preferences-modal .wpconsent-preferences-buttons-left {
		flex-direction: column;
		width: 100%;
		padding-right: 0;
	}

	#wpconsent-preferences-modal .wpconsent-preferences-buttons .wpconsent-banner-button {
		width: 100%;
	}

	#wpconsent-preferences-modal .wpconsent-preference-cookies .wpconsent-preferences-list-header,
	#wpconsent-preferences-modal .wpconsent-preference-cookies .wpconsent-preferences-list-item {
		grid-template-columns: 1fr 2fr;
		gap: 8px;
		padding: 10px 8px;
	}

	#wpconsent-preferences-modal .wpconsent-preference-cookies .wpconsent-preferences-list-header .cookie-duration,
	#wpconsent-preferences-modal .wpconsent-preference-cookies .wpconsent-preferences-list-item .cookie-duration {
		grid-column: 2;
	}
}

@media (prefers-reduced-motion: reduce) {
	#wpconsent-root *,
	#wpconsent-root *::before,
	#wpconsent-root *::after {
		transition: none !important;
		animation: none !important;
	}
}
