/* Kea Skies responsive polish layer: late-loaded, migration-friendly shell fixes. */

html body #page-container .et-l--header .XS__cart_box,
html body #page-container .et-l--header .kea-header-cart-link,
html body #page-container .et_pb_section_1_tb_header .XS__cart_box,
html body #page-container .et_pb_section_1_tb_header .kea-header-cart-link {
	position: relative !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 44px !important;
	min-width: 44px !important;
	height: 44px !important;
	min-height: 44px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid rgba(22, 76, 55, .14) !important;
	border-radius: 999px !important;
	background: rgba(255, 255, 255, .96) !important;
	box-shadow: 0 10px 26px rgba(31, 42, 35, .08) !important;
	color: #164c37 !important;
	text-decoration: none !important;
}

html body #page-container .XS__cart_box .XS__cart_icon {
	display: block !important;
	width: 22px !important;
	height: 22px !important;
	margin: 0 !important;
}

html body #page-container .XS__cart_box .XS__cart_count {
	position: absolute !important;
	top: -4px !important;
	right: -3px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-width: 18px !important;
	height: 18px !important;
	padding: 0 5px !important;
	border: 2px solid #fff !important;
	border-radius: 999px !important;
	background: #4c9f70 !important;
	color: #fff !important;
	font-size: 11px !important;
	font-weight: 800 !important;
	line-height: 1 !important;
}

html body #page-container .XS__cart_box:hover,
html body #page-container .XS__cart_box:focus-visible {
	border-color: rgba(22, 76, 55, .28) !important;
	box-shadow: 0 14px 34px rgba(31, 42, 35, .12) !important;
	outline: none !important;
	transform: translateY(-1px) !important;
}

/* Consent and chat need to feel intentional on small screens, not bolted over CTAs. */
#zcb-banner {
	box-sizing: border-box !important;
	width: 100% !important;
	max-height: min(42dvh, 280px) !important;
	padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
	overflow: auto !important;
	z-index: 99998 !important;
}

#zcb-banner button,
#zcb-banner a,
#zcb-banner input[type="button"],
#zcb-banner input[type="submit"] {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-width: 84px !important;
	min-height: 44px !important;
	padding: 10px 18px !important;
	border-radius: 8px !important;
	font-weight: 750 !important;
	line-height: 1.1 !important;
	white-space: nowrap !important;
}

#zcb-banner input[type="email"],
#zcb-banner input[type="text"] {
	min-height: 44px !important;
	border-radius: 999px !important;
}

@media (max-width: 640px) {
	#zcb-banner {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) auto auto !important;
		align-items: center !important;
		gap: 8px !important;
		width: calc(100% - 24px) !important;
		left: 12px !important;
		right: 12px !important;
		bottom: 10px !important;
		max-height: 96px !important;
		padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
		overflow: hidden !important;
		border-radius: 14px !important;
		box-shadow: 0 18px 46px rgba(0, 0, 0, .22) !important;
		font-size: 10.5px !important;
		line-height: 1.22 !important;
	}

	#zcb-banner p,
	#zcb-banner div {
		margin-top: 0 !important;
		margin-bottom: 0 !important;
	}

	#zcb-banner button,
	#zcb-banner a,
	#zcb-banner input[type="button"],
	#zcb-banner input[type="submit"] {
		min-width: 64px !important;
		min-height: 40px !important;
		padding: 8px 10px !important;
		font-size: 12px !important;
	}
}

body.kea-cookie-banner-visible #zsiq_float,
body.kea-cookie-banner-visible #zsiq_floatmain {
	bottom: calc(var(--kea-cookie-banner-height, 0px) + 18px + env(safe-area-inset-bottom, 0px)) !important;
}

/* Homepage signup panel: protect the large green block from Divi/mobile cascade drift. */
html body.home #page-container .et_pb_section .et_pb_row_9 {
	box-sizing: border-box !important;
	overflow: hidden !important;
	border-radius: 18px !important;
	background-color: #087346 !important;
	background-image:
		linear-gradient(0deg, rgba(8, 115, 70, .92), rgba(8, 115, 70, .92)),
		url("/wp-content/uploads/2025/06/Maori-pattern@3x-1.webp") !important;
	background-position: center !important;
	background-size: cover !important;
	color: #fff !important;
}

html body.home #page-container .et_pb_section .et_pb_row_9 h1,
html body.home #page-container .et_pb_section .et_pb_row_9 h2,
html body.home #page-container .et_pb_section .et_pb_row_9 h3,
html body.home #page-container .et_pb_section .et_pb_row_9 p,
html body.home #page-container .et_pb_section .et_pb_row_9 .et_pb_text_inner {
	color: #fff !important;
}

html body.home #page-container .et_pb_row_9 .kea-newsletter-form,
html body.home #page-container .et_pb_row_9 .footer_zcampaign {
	display: grid !important;
	grid-template-columns: minmax(280px, 560px) auto !important;
	align-items: center !important;
	justify-content: center !important;
	width: min(100%, 760px) !important;
	max-width: 760px !important;
	margin: 28px auto 0 !important;
	gap: 14px !important;
}

html body.home #page-container .et_pb_row_9 .kea-newsletter-form input[type="email"],
html body.home #page-container .et_pb_row_9 .footer_zcampaign input[type="email"],
html body.home #page-container .et_pb_row_9 .footer_zcampaign input[type="text"] {
	width: 100% !important;
	min-width: 0 !important;
	min-height: 58px !important;
	padding: 0 28px !important;
	border: 0 !important;
	border-radius: 999px !important;
	font-size: 16px !important;
}

html body.home #page-container .et_pb_row_9 .kea-newsletter-form button,
html body.home #page-container .et_pb_row_9 .footer_zcampaign button,
html body.home #page-container .et_pb_row_9 .footer_zcampaign input[type="submit"] {
	min-height: 58px !important;
	padding: 0 30px !important;
	border-radius: 999px !important;
	font-weight: 800 !important;
}

@media (max-width: 640px) {
	html body.home #page-container .et_pb_section .et_pb_row_9 {
		width: min(100% - 32px, 560px) !important;
		max-width: min(100% - 32px, 560px) !important;
		margin-right: auto !important;
		margin-left: auto !important;
		padding: 42px 24px 46px !important;
	}

	html body.home #page-container .et_pb_row_9 .kea-newsletter-form,
	html body.home #page-container .et_pb_row_9 .footer_zcampaign {
		grid-template-columns: minmax(0, 1fr) !important;
		width: 100% !important;
		gap: 12px !important;
	}

	html body.home #page-container .et_pb_row_9 .kea-newsletter-form input[type="email"],
	html body.home #page-container .et_pb_row_9 .footer_zcampaign input[type="email"],
	html body.home #page-container .et_pb_row_9 .footer_zcampaign input[type="text"],
	html body.home #page-container .et_pb_row_9 .kea-newsletter-form button,
	html body.home #page-container .et_pb_row_9 .footer_zcampaign button,
	html body.home #page-container .et_pb_row_9 .footer_zcampaign input[type="submit"] {
		width: 100% !important;
	}
}

/* Shared footer form and socials: keep the same footprint on every template. */
html body #page-container footer.et-l--footer .kea-newsletter-form,
html body #page-container footer.et-l--footer .footer_zcampaign {
	grid-template-columns: minmax(220px, 1fr) auto !important;
	width: min(100%, 500px) !important;
	max-width: 500px !important;
	gap: 12px !important;
}

html body #page-container footer.et-l--footer .kea-newsletter-form input[type="email"],
html body #page-container footer.et-l--footer .footer_zcampaign input[type="email"],
html body #page-container footer.et-l--footer .footer_zcampaign input[type="text"] {
	width: 100% !important;
	min-width: 0 !important;
	min-height: 48px !important;
	padding: 0 22px !important;
	border-radius: 999px !important;
	font-size: 15px !important;
}

html body #page-container footer.et-l--footer .kea-newsletter-form button,
html body #page-container footer.et-l--footer .footer_zcampaign button,
html body #page-container footer.et-l--footer .footer_zcampaign input[type="submit"] {
	min-height: 48px !important;
	padding: 0 24px !important;
	border-radius: 999px !important;
	font-weight: 800 !important;
}

html body #page-container footer.et-l--footer .et_pb_social_media_follow,
html body #page-container footer.et-l--footer .social_icons {
	align-items: center !important;
	gap: 10px !important;
}

html body #page-container footer.et-l--footer .et_pb_social_media_follow a,
html body #page-container footer.et-l--footer .social_icons a {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 44px !important;
	min-width: 44px !important;
	height: 44px !important;
	min-height: 44px !important;
	border: 1px solid rgba(22, 76, 55, .14) !important;
	border-radius: 50% !important;
	background: rgba(249, 249, 247, .82) !important;
	color: #164c37 !important;
	box-shadow: none !important;
}

html body #page-container footer.et-l--footer .et_pb_social_media_follow a::before,
html body #page-container footer.et-l--footer .social_icons a::before {
	display: block !important;
	font-size: 18px !important;
	line-height: 1 !important;
}

html body #page-container footer.et-l--footer a {
	text-underline-offset: .18em !important;
}

@media (max-width: 980px) {
	html body #page-container footer.et-l--footer .et_pb_row_6_tb_footer {
		grid-template-columns: minmax(0, 1fr) !important;
		width: min(520px, calc(100% - 48px)) !important;
		max-width: min(520px, calc(100% - 48px)) !important;
		gap: 28px !important;
	}

	html body #page-container footer.et-l--footer .et_pb_column_12_tb_footer {
		max-width: none !important;
	}

	html body #page-container footer.et-l--footer .kea-newsletter-form,
	html body #page-container footer.et-l--footer .footer_zcampaign {
		width: 100% !important;
		max-width: none !important;
	}
}

@media (max-width: 640px) {
	html body #page-container footer.et-l--footer .kea-newsletter-form,
	html body #page-container footer.et-l--footer .footer_zcampaign {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	html body #page-container footer.et-l--footer .kea-newsletter-form button,
	html body #page-container footer.et-l--footer .footer_zcampaign button,
	html body #page-container footer.et-l--footer .footer_zcampaign input[type="submit"] {
		width: 100% !important;
	}
}

/* Product galleries should feel deliberate and touch-safe. */
html body #page-container .kea-gallery-nav {
	top: 50% !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 46px !important;
	height: 46px !important;
	min-width: 46px !important;
	min-height: 46px !important;
	padding: 0 !important;
	border: 1px solid rgba(22, 76, 55, .12) !important;
	background: rgba(255, 255, 255, .9) !important;
	box-shadow: 0 12px 32px rgba(31, 42, 35, .12) !important;
	transform: translateY(-50%) !important;
}

html body #page-container .kea-gallery-nav:hover,
html body #page-container .kea-gallery-nav:focus-visible {
	transform: translateY(-50%) scale(1.035) !important;
}

html body #page-container .kea-gallery-nav--prev {
	left: 18px !important;
}

html body #page-container .kea-gallery-nav--next {
	right: 18px !important;
}

@media (max-width: 767px) {
	html body #page-container .kea-gallery-nav {
		width: 44px !important;
		height: 44px !important;
		min-width: 44px !important;
		min-height: 44px !important;
	}

	html body #page-container .kea-gallery-nav--prev {
		left: 12px !important;
	}

	html body #page-container .kea-gallery-nav--next {
		right: 12px !important;
	}

	body.kea-single-product-route #page-container .product-full-details > .kea-product-guide-preview--mobile {
		width: 100% !important;
		margin: 22px 0 26px !important;
	}

	body.kea-single-product-route #page-container .product-full-details > .kea-product-guide-preview--mobile .kea-product-guide-open {
		width: 100% !important;
	}

	body.kea-single-product-route #page-container .swiper-thumbs .video-thumbnail-info,
	body.kea-single-product-route #page-container .swiper-thumbs .audio-thumbnail-info {
		display: none !important;
	}

	body.kea-single-product-route #page-container .swiper-thumbs .media-type-overlay {
		display: grid !important;
		position: absolute !important;
		top: 50% !important;
		left: 50% !important;
		width: 28px !important;
		height: 28px !important;
		place-items: center !important;
		transform: translate(-50%, -50%) !important;
		pointer-events: none !important;
		z-index: 2 !important;
	}

	body.kea-single-product-route #page-container .swiper-thumbs .media-type-overlay svg {
		display: block !important;
		width: 26px !important;
		height: 26px !important;
		filter: drop-shadow(0 2px 5px rgba(4, 24, 16, .38)) !important;
	}
}

body.kea-single-product-whitianga-aerodrome-nzwt #page-container .product-full-details {
	margin-bottom: 24px !important;
}

/* Home card thumbnails: glassy, softer, and big enough to tap without shouting. */
html body #page-container .kea-home-card-media-strip {
	gap: 9px !important;
	pointer-events: auto !important;
}

html body #page-container .kea-home-card-media-thumb {
	flex: 0 0 64px !important;
	width: 64px !important;
	height: 44px !important;
	min-width: 64px !important;
	min-height: 44px !important;
	border: 1px solid rgba(255, 255, 255, .78) !important;
	border-radius: 8px !important;
	overflow: hidden !important;
	background-color: rgba(255, 255, 255, .46) !important;
	background-image: var(--kea-thumb-image) !important;
	background-position: center !important;
	background-size: cover !important;
	background-repeat: no-repeat !important;
	box-shadow: 0 10px 24px rgba(31, 42, 35, .14), inset 0 1px 0 rgba(255, 255, 255, .82) !important;
	backdrop-filter: blur(12px) saturate(1.12) !important;
	-webkit-backdrop-filter: blur(12px) saturate(1.12) !important;
}

html body #page-container .kea-home-card-media-thumb img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	border: 0 !important;
	border-radius: inherit !important;
}

html body #page-container .kea-home-card-media-thumb.is-active {
	border-color: rgba(255, 255, 255, .94) !important;
	box-shadow: 0 12px 28px rgba(31, 42, 35, .18), inset 0 0 0 2px rgba(76, 159, 112, .64), inset 0 1px 0 rgba(255, 255, 255, .9) !important;
}

@media (min-width: 768px) {
	html body.home #page-container .et_pb_row_8 > .et_pb_column.kea-home-linked-card .kea-home-card-media-strip,
	html body.home #main-content .et_pb_row_8 > .et_pb_column.kea-home-linked-card .kea-home-card-media-strip {
		bottom: 206px !important;
	}
}

html body #page-container .kea-home-card-action,
html body #page-container .kea-news-card__read,
html body #page-container .related-post-card__link,
html body #page-container .et_pb_toggle_title {
	min-height: 44px !important;
	display: inline-flex !important;
	align-items: center !important;
}

html body #page-container .et_pb_toggle_title {
	display: flex !important;
}

@media (min-width: 768px) {
	html body.home #page-container .et_pb_row_8 > .et_pb_column.kea-home-linked-card,
	html body.home #main-content .et_pb_row_8 > .et_pb_column.kea-home-linked-card {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) !important;
		grid-template-rows: minmax(0, 1fr) auto !important;
		align-items: stretch !important;
	}

	html body.home #page-container .et_pb_row_8 > .et_pb_column.kea-home-linked-card::before,
	html body.home #main-content .et_pb_row_8 > .et_pb_column.kea-home-linked-card::before {
		display: none !important;
	}

	html body.home #page-container .kea-home-card-main-media,
	html body.home #main-content .kea-home-card-main-media {
		position: relative !important;
		z-index: 1 !important;
		display: block !important;
		grid-column: 1 / -1 !important;
		grid-row: 1 !important;
		width: 100% !important;
		height: 100% !important;
		min-height: 0 !important;
		border-radius: 18px 18px 0 0 !important;
		background-image: var(--kea-card-image) !important;
		background-position: var(--kea-card-position, center) !important;
		background-size: cover !important;
		background-repeat: no-repeat !important;
		filter: saturate(1.02) contrast(1.01) brightness(1.02) !important;
		pointer-events: none !important;
	}

	html body.home #page-container .kea-home-card-main-media > img,
	html body.home #main-content .kea-home-card-main-media > img {
		position: absolute !important;
		width: 1px !important;
		height: 1px !important;
		opacity: 0 !important;
		pointer-events: none !important;
		border: 0 !important;
	}

	html body.home #page-container .kea-home-wellington-card .kea-home-card-main-media,
	html body.home #main-content .kea-home-wellington-card .kea-home-card-main-media {
		background-position: 42% 48% !important;
	}

	html body.home #page-container .et_pb_column_12 .kea-home-card-main-media,
	html body.home #main-content .et_pb_column_12 .kea-home-card-main-media {
		background-position: center 58% !important;
	}

	html body.home #page-container .et_pb_row_8 > .et_pb_column.kea-home-linked-card > .et_pb_module,
	html body.home #main-content .et_pb_row_8 > .et_pb_column.kea-home-linked-card > .et_pb_module {
		grid-column: 1 / -1 !important;
		grid-row: 2 !important;
	}
}

/* Mobile buyer cards: keep the image, preview rail, and copy in clear layers. */
@media (max-width: 767px) {
	html body.home #page-container .et_pb_row_8,
	html body.home #main-content .et_pb_row_8 {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) !important;
		width: min(100% - 28px, 520px) !important;
		max-width: min(100% - 28px, 520px) !important;
		gap: 18px !important;
	}

	html body.home #page-container .et_pb_row_8 > .et_pb_column.kea-home-linked-card,
	html body.home #main-content .et_pb_row_8 > .et_pb_column.kea-home-linked-card,
	html body.home #page-container .et_pb_row_8 > .et_pb_column.kea-home-linked-card:hover,
	html body.home #main-content .et_pb_row_8 > .et_pb_column.kea-home-linked-card:hover,
	html body.home #page-container .et_pb_row_8 > .et_pb_column.kea-home-linked-card:focus-within,
	html body.home #main-content .et_pb_row_8 > .et_pb_column.kea-home-linked-card:focus-within {
		display: grid !important;
		grid-template-rows: 188px auto !important;
		align-items: stretch !important;
		height: auto !important;
		min-height: 0 !important;
		max-height: none !important;
		padding: 0 !important;
		border-radius: 16px !important;
		background: #fff !important;
		box-shadow: 0 16px 38px rgba(48, 55, 45, .075) !important;
		overflow: hidden !important;
		transform: none !important;
	}

	html body.home #page-container .et_pb_row_8 > .et_pb_column.kea-home-linked-card::before,
	html body.home #main-content .et_pb_row_8 > .et_pb_column.kea-home-linked-card::before,
	html body.home #page-container .et_pb_row_8 > .et_pb_column.kea-home-linked-card:hover::before,
	html body.home #main-content .et_pb_row_8 > .et_pb_column.kea-home-linked-card:hover::before,
	html body.home #page-container .et_pb_row_8 > .et_pb_column.kea-home-linked-card:focus-within::before,
	html body.home #main-content .et_pb_row_8 > .et_pb_column.kea-home-linked-card:focus-within::before {
		display: none !important;
	}

	html body.home #page-container .kea-home-card-main-media,
	html body.home #main-content .kea-home-card-main-media {
		position: relative !important;
		z-index: 1 !important;
		display: block !important;
		grid-row: 1 !important;
		width: 100% !important;
		height: 188px !important;
		min-height: 188px !important;
		border-radius: 16px 16px 0 0 !important;
		background-image: var(--kea-card-image) !important;
		background-position: var(--kea-card-position, center) !important;
		background-size: cover !important;
		background-repeat: no-repeat !important;
		filter: saturate(1.02) contrast(1.01) brightness(1.02) !important;
		pointer-events: none !important;
	}

	html body.home #page-container .kea-home-card-main-media > img,
	html body.home #main-content .kea-home-card-main-media > img {
		position: absolute !important;
		width: 1px !important;
		height: 1px !important;
		opacity: 0 !important;
		pointer-events: none !important;
		border: 0 !important;
	}

	html body.home #page-container .kea-home-wellington-card .kea-home-card-main-media,
	html body.home #main-content .kea-home-wellington-card .kea-home-card-main-media {
		background-position: 42% 48% !important;
	}

	html body.home #page-container .et_pb_column_12 .kea-home-card-main-media,
	html body.home #main-content .et_pb_column_12 .kea-home-card-main-media {
		background-position: center 58% !important;
	}

	html body.home #page-container .et_pb_row_8 > .et_pb_column.kea-home-linked-card .kea-home-card-media-strip,
	html body.home #main-content .et_pb_row_8 > .et_pb_column.kea-home-linked-card .kea-home-card-media-strip {
		position: absolute !important;
		z-index: 5 !important;
		top: 154px !important;
		right: auto !important;
		bottom: auto !important;
		left: 14px !important;
		display: flex !important;
		gap: 7px !important;
		align-items: center !important;
		width: fit-content !important;
		max-width: calc(100% - 28px) !important;
		padding: 0 2px 2px !important;
		overflow-x: auto !important;
	}

	html body.home #page-container .kea-home-card-media-thumb,
	html body.home #main-content .kea-home-card-media-thumb {
		flex: 0 0 58px !important;
		width: 58px !important;
		min-width: 58px !important;
		height: 40px !important;
		min-height: 40px !important;
		border-radius: 9px !important;
		background-color: rgba(255, 255, 255, .72) !important;
		background-image: var(--kea-thumb-image) !important;
		background-position: center !important;
		background-size: cover !important;
		background-repeat: no-repeat !important;
		box-shadow: 0 9px 22px rgba(8, 25, 18, .16), inset 0 1px 0 rgba(255, 255, 255, .9) !important;
	}

	html body.home #page-container .et_pb_row_8 > .et_pb_column.kea-home-linked-card > .et_pb_module,
	html body.home #main-content .et_pb_row_8 > .et_pb_column.kea-home-linked-card > .et_pb_module {
		position: relative !important;
		z-index: 3 !important;
		grid-row: 2 !important;
		width: 100% !important;
		min-height: 0 !important;
		padding: 34px 16px 16px !important;
		border: 0 !important;
		border-top: 1px solid rgba(22, 76, 55, .08) !important;
		border-radius: 0 !important;
		background: #fff !important;
		box-shadow: none !important;
		backdrop-filter: none !important;
		-webkit-backdrop-filter: none !important;
	}

	html body.home #page-container .et_pb_row_8 > .et_pb_column.kea-home-linked-card h1,
	html body.home #page-container .et_pb_row_8 > .et_pb_column.kea-home-linked-card h2,
	html body.home #page-container .et_pb_row_8 > .et_pb_column.kea-home-linked-card h3,
	html body.home #main-content .et_pb_row_8 > .et_pb_column.kea-home-linked-card h1,
	html body.home #main-content .et_pb_row_8 > .et_pb_column.kea-home-linked-card h2,
	html body.home #main-content .et_pb_row_8 > .et_pb_column.kea-home-linked-card h3 {
		margin-bottom: 8px !important;
		font-size: clamp(24px, 7vw, 30px) !important;
		line-height: 1.08 !important;
	}

	html body.home #page-container .kea-home-card-meta,
	html body.home #main-content .kea-home-card-meta,
	html body.home #page-container .kea-home-card-foot,
	html body.home #main-content .kea-home-card-foot {
		gap: 10px !important;
	}
}
