/**
 * Site chrome — header, nav, footer.
 */

:root {
	--kf-navy: #163a55;
	--kf-navy-deep: #112e44;
	--wd-header-el-font: Raleway, "Helvetica Neue", Helvetica, Arial, sans-serif !important;
	--wd-header-el-font-weight: 600 !important;
}

/* Header nav — same Raleway 600 on every page (homepage look).
   Inner pages can load extra Google Font weights (e.g. WPBakery Raleway 700–900
   on /filmer/), which made font-weight:700 render thicker than on Hem. */
.whb-header .wd-nav > li > a,
.whb-header .wd-nav-header > li > a,
.whb-header .wd-nav > li > a .nav-link-text,
.mobile-nav .wd-nav > li > a,
.wd-side-hidden .wd-nav > li > a {
	font-family: Raleway, "Helvetica Neue", Helvetica, Arial, sans-serif !important;
	font-weight: 600 !important;
	font-style: normal !important;
	font-synthesis: none;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ── Trust bar under header ── */
.kf-cart-trust-bar {
	display: block !important;
	background: #163a55 !important;
	width: 100%;
	color: #c8d8e8;
	margin: 0;
}

.kf-cart-trust-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 20px;
	max-width: 1240px;
	width: 100%;
	margin: 0 auto;
	padding: 8px 24px;
	box-sizing: border-box;
}

.kf-cart-trust-item {
	display: flex;
	align-items: center;
	gap: 7px;
	color: #c8d8e8;
	font-size: 12.5px;
	white-space: nowrap;
	padding: 2px 0;
}

.kf-home-trust .kf-cart-trust-item {
	display: flex !important;
}

.kf-cart-trust-item svg {
	color: #ffeb34;
	flex-shrink: 0;
}

.kf-cart-trust-phone {
	color: #fff;
	font-weight: 600;
}

.kf-cart-trust-phone a {
	color: #ffeb34 !important;
	text-decoration: none;
}

.kf-cart-trust-phone a:hover {
	text-decoration: underline;
}

@media (max-width: 767px) {
	.kf-cart-trust-inner,
	.kf-home-trust .kf-cart-trust-inner {
		flex-wrap: nowrap !important;
		justify-content: flex-start;
		gap: 16px;
		padding: 7px 12px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.kf-cart-trust-inner::-webkit-scrollbar {
		display: none;
	}

	.kf-cart-trust-item {
		flex: 0 0 auto;
		font-size: 11.5px;
		white-space: nowrap;
	}
}

/* ── Compact footer ── */
.kron-master-footer {
	padding: 36px 0 0 !important;
}

.kron-master-footer .footer-inner-container {
	gap: 24px;
}

.kron-master-footer .footer-brand-column {
	padding-bottom: 24px;
}

.kron-master-footer .footer-brand-logo {
	max-width: 168px;
	margin-bottom: 16px;
}

.kron-master-footer .footer-contact-block {
	margin-bottom: 16px;
	font-size: 13px;
	line-height: 1.65;
}

.kron-master-footer .footer-title {
	margin-bottom: 12px !important;
	font-size: 13px;
}

.kron-master-footer .footer-list li a {
	padding: 5px 0 !important;
	font-size: 14px;
}

.kron-master-footer .footer-links-wrapper {
	gap: 20px;
}

.kron-master-footer .footer-copyright-bar {
	margin-top: 28px;
	padding: 14px 0;
	font-size: 11px;
}

@media (min-width: 992px) {
	.kron-master-footer .footer-inner-container {
		gap: 28px;
	}
}

/* ── Site-wide header: same chrome on every page ── */
.whb-header,
.whb-main-header,
.whb-general-header,
.whb-header-bottom {
	margin: 0 !important;
}

.whb-top-bar.whb-hidden-desktop {
	display: none !important;
}

.kf-cart-trust-bar {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

/* Shop, category and product layouts still contain a pasted copy of this strip.
   The live bar is printed once after the header; hide the page-builder clone. */
.wpb-content-wrapper > .vc_row:has(.kf-cart-trust-bar):not(:has(.kf-home-trust)),
.wpb-content-wrapper > .vc_row:has(.kf-product-trust-bar) {
	display: none !important;
}

@media (min-width: 1025px) {
	:root {
		--wd-top-bar-h: 0px !important;
		--wd-header-general-h: 84px !important;
		--wd-header-bottom-h: 52px !important;
	}

	/* General row + bottom nav: the offset has to match, or the hero slides
	   under the fixed header. */
	.whb-header.whb-sticky-prepared {
		padding-top: 136px !important;
	}

	.whb-sticky-prepared .whb-main-header {
		top: 0 !important;
		left: 0;
		right: 0;
		width: 100%;
	}

	/* Scroll-stick keeps the bottom nav; the clone wrapper is otherwise
	   transparent so page content shows through the bar. */
	.whb-header.whb-sticked .whb-main-header {
		background-color: #ececec;
		z-index: 460;
		box-shadow: 0 1px 0 rgba(22, 58, 85, 0.08);
	}

	.whb-header.whb-sticked .whb-header-bottom {
		background-color: #ececec;
	}

	.whb-general-header {
		background-color: #193a56;
	}

	.whb-header-bottom {
		background-color: #ececec;
	}

	.whb-header-bottom .whb-empty-column {
		display: none !important;
		flex: 0 0 0 !important;
		width: 0 !important;
		min-width: 0 !important;
		padding: 0 !important;
		margin: 0 !important;
	}

	.whb-header-bottom .whb-col-left {
		flex: 1 1 100% !important;
		width: 100% !important;
		max-width: 100% !important;
		justify-content: center !important;
		margin: 0 !important;
	}

	.whb-header-bottom .wd-header-nav,
	.whb-header-bottom .wd-nav {
		display: flex;
		align-items: center;
		justify-content: center;
		flex-wrap: nowrap;
		width: 100%;
		margin: 0;
		gap: 0.1rem;
	}

	.whb-header-bottom .wd-nav > li {
		margin: 0 !important;
		padding: 0 !important;
	}

	.whb-header-bottom .wd-nav > li > a {
		display: flex;
		align-items: center;
		height: 52px;
		padding: 0 0.8rem;
		font-size: 0.9rem;
		font-weight: 600 !important;
		letter-spacing: 0.06em;
		line-height: 1;
		white-space: nowrap;
		color: #163a55 !important;
		text-decoration: none !important;
		border-bottom: 2px solid transparent;
		box-sizing: border-box;
	}

	.whb-header-bottom .wd-nav > li > a:hover,
	.whb-header-bottom .wd-nav > li.current-menu-item > a,
	.whb-header-bottom .wd-nav > li.current-menu-ancestor > a {
		color: #112e44 !important;
		border-bottom-color: #ffeb34;
	}

	/* inc/kf-header-tools.php moves the search element into the right column and
	   prints the booking CTA in the left one. Give the row a little more air. */
	.whb-general-header .whb-general-header-inner {
		min-height: 84px;
	}

	.kf-hbook {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		height: 38px;
		padding: 0 17px;
		border: 1px solid rgba(255, 235, 52, 0.5);
		border-radius: 999px;
		background-color: rgba(255, 235, 52, 0.08);
		color: #ffeb34 !important;
		font-size: 12px;
		font-weight: 600;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		text-decoration: none !important;
		white-space: nowrap;
		transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
	}

	.kf-hbook:hover,
	.kf-hbook:focus-visible {
		background-color: #ffeb34;
		border-color: #ffeb34;
		color: #163a55 !important;
	}

	.kf-hbook-ic {
		flex: 0 0 auto;
	}

	/* Collapsed search: only the magnifier until it is clicked. The panel is
	   absolute so opening it never reflows the header. */
	.kf-hsearch {
		position: relative;
		display: flex;
		align-items: center;
		margin-right: 6px;
	}

	.kf-hsearch-btn {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 38px;
		height: 38px;
		padding: 0;
		border: 1px solid rgba(255, 255, 255, 0.22);
		border-radius: 50%;
		background-color: transparent;
		color: #fff;
		cursor: pointer;
		transition: background-color 0.2s ease, border-color 0.2s ease;
	}

	.kf-hsearch-btn:hover,
	.kf-hsearch-btn:focus-visible,
	.kf-hsearch.is-open .kf-hsearch-btn {
		background-color: rgba(255, 255, 255, 0.12);
		border-color: rgba(255, 255, 255, 0.45);
	}

	.kf-hsearch-panel {
		position: absolute;
		top: 50%;
		right: 46px;
		width: 0;
		overflow: hidden;
		visibility: hidden;
		transform: translateY(-50%);
		/* Reveal instantly on open so the field can take focus; on close, hold
		   visibility until the width has collapsed. */
		transition: width 0.26s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0s linear 0.26s;
	}

	.kf-hsearch.is-open .kf-hsearch-panel {
		/* Narrow desktops: stop short of the logo instead of covering it. */
		width: min(320px, 22vw);
		overflow: visible;
		visibility: visible;
		transition: width 0.26s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0s;
	}

	.kf-hsearch-panel .wd-search-form {
		width: 100%;
	}

	.whb-general-header form.searchform {
		width: 100%;
		max-width: 320px;
		border-radius: 999px;
		overflow: hidden;
	}

	.whb-general-header form.searchform input[type="text"] {
		font-size: 0.9rem;
		min-height: 40px;
		height: 40px;
	}

	.whb-general-header .whb-col-center .wd-logo,
	.whb-general-header .whb-col-center .site-logo {
		margin-inline: auto;
	}

	/* The logo belongs in the middle on every page. Some cached headers still
	   print it in the left column; pull that copy to the centre of the row. */
	.whb-general-header .whb-general-header-inner {
		position: relative;
	}

	.whb-general-header .whb-visible-lg .site-logo {
		position: absolute;
		left: 50%;
		top: 50%;
		z-index: 3;
		transform: translate(-50%, -50%);
		margin: 0;
	}

	.whb-general-header .whb-col-left,
	.whb-general-header .whb-col-center {
		justify-content: flex-start !important;
	}

	.whb-general-header .wd-logo img,
	.whb-general-header .site-logo img {
		width: auto !important;
		max-width: 250px !important;
		height: auto !important;
		max-height: 58px !important;
		object-fit: contain;
	}
}

/* One-shot scale-in on the logo. Transform and opacity only, so it runs on the
   compositor and never blocks the first paint. */
@keyframes kf-logo-in {
	from {
		opacity: 0;
		transform: scale(0.9);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.whb-general-header .site-logo img {
	animation: kf-logo-in 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
	.whb-general-header .site-logo img {
		animation: none;
	}
}

/* Mobile header: icon-only booking CTA. */
@media (max-width: 1024px) {
	.kf-hbook {
		display: inline-flex;
		flex: 0 0 auto;
		align-items: center;
		justify-content: center;
		gap: 0;
		width: 36px;
		height: 36px;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background-color: transparent;
		color: #ffeb34 !important;
		text-decoration: none !important;
		white-space: nowrap;
	}

	.kf-hbook-txt {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.kf-hbook-ic {
		flex: 0 0 auto;
		width: 20px;
		height: 20px;
	}

	.kf-hsearch {
		display: none;
	}

	/* One line only: the icons shrink before anything drops to a new row. */
	.whb-general-header .whb-mobile-right,
	.whb-general-header .whb-col-mobile {
		flex-wrap: nowrap;
	}

	.whb-header-bottom .kf-hbook {
		display: none !important;
	}

	/* Sticky: keep the navy row, hide the grey search row. */
	.whb-sticked .whb-general-header.whb-not-sticky-row {
		display: block !important;
	}

	.whb-sticked .whb-header-bottom {
		display: none !important;
	}

	.whb-general-header .whb-col-mobile .kf-hbook {
		margin-right: 2px;
	}

	.whb-header-bottom .wd-search-form,
	.whb-header-bottom form.searchform {
		max-width: 100%;
		margin: 0;
	}
}

/* Full-width Woodmart dropdowns are 1920px and positioned on the
   menu item, which expands the page. Anchor them to the header row. */
.whb-header .wd-nav > li.menu-item-has-children {
	position: static;
}

.whb-header .wd-dropdown-menu.wd-design-full-width {
	left: 0 !important;
	right: 0 !important;
	width: 100% !important;
	max-width: 100%;
	box-sizing: border-box;
}

.high-cart-total {
	margin-bottom: 1em;
}

.high-cart-total .kf-high-cart-amount {
	color: #b42318;
	font-weight: 600;
}

/* DocsBot: local launcher only. chat.js loads after click. */
.kf-docsbot-launcher {
	position: fixed;
	left: 20px;
	right: auto;
	bottom: 20px;
	z-index: 99980;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 12px 16px 12px 14px;
	border: 0;
	border-radius: 999px;
	background: #163a55;
	color: #fff;
	font-family: Raleway, "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none;
}

.kf-docsbot-launcher:hover,
.kf-docsbot-launcher:focus-visible {
	background: #112e44;
	color: #fff;
}

.kf-docsbot-launcher-icon {
	display: flex;
	width: 20px;
	height: 20px;
}

.kf-docsbot-launcher.is-loading {
	opacity: 0.75;
	cursor: wait;
}

html.kf-docsbot-ready .kf-docsbot-launcher {
	display: none;
}

@media (max-width: 767px) {
	.kf-docsbot-launcher {
		left: 12px;
		right: auto;
		bottom: 12px;
		padding: 11px;
		font-size: 13px;
	}

	.kf-docsbot-launcher-label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}

	body.single-product.kf-configurator-page .kf-docsbot-launcher {
		bottom: 80px;
	}
}

/* Compact footer on phones. */
@media (max-width: 767px) {
	.main-footer .vc_column-inner {
		padding-top: 16px !important;
		padding-bottom: 0 !important;
	}

	.main-footer .wd-text-block {
		margin-bottom: 12px !important;
		font-size: 13px;
		line-height: 1.5;
	}

	.main-footer .wpb_single_image {
		margin-bottom: 8px !important;
	}

	.main-footer ul.wd-sub-menu {
		margin-bottom: 12px !important;
	}

	.main-footer ul.sub-sub-menu {
		columns: 2;
		column-gap: 14px;
	}

	.main-footer ul.sub-sub-menu > li {
		break-inside: avoid;
	}

	.main-footer ul.wd-sub-menu > li > a,
	.main-footer ul.sub-sub-menu > li > a {
		padding-top: 3px !important;
		padding-bottom: 3px !important;
		font-size: 11.5px !important;
		line-height: 1.35 !important;
	}

	.main-footer .wd-social-icons a {
		padding-top: 3px !important;
		padding-bottom: 3px !important;
	}

	.main-footer .vc_empty_space {
		height: 8px !important;
	}

	.main-footer .kf-footer-bar,
	.main-footer .kf-footer-bar * {
		font-size: 11px;
		line-height: 1.5;
	}
}

/* Public e-mail must stay readable (info@kronfonster.se is long). */
a[href^="mailto:"] {
	overflow-wrap: anywhere;
	word-break: break-word;
	white-space: normal;
}

/* Fake review / testimonial chrome. Real inspiration photos use .kf-inspo. */
.kf-rev-wrap:not(.kf-inspo),
.kf-inspo-empty,
.kf-row-reviews:not(:has(.kf-inspo)),
.woocommerce-Reviews,
#reviews.woocommerce-Reviews,
.woocommerce-product-rating,
.wd-testimonials,
.woodmart-testimonial,
.kf-testi-section,
.wasa-heading,
.wasa-img,
.wasa-monthly {
	display: none !important;
}
