/* Leads: the line above an enquiry form that says which product it is about, and the mobile contact bar. */

/* Neutral tint and inherited text colour, so the line reads on light and on dark sections alike. */
.kpco-lead-chip {
	align-items: center;
	background: rgba(127, 127, 127, .14);
	border-left: 3px solid var(--fs-color-primary, currentColor);
	border-radius: 4px;
	display: flex;
	flex-wrap: wrap;
	gap: 0 .75em;
	justify-content: space-between;
	margin: 0 0 1em;
	padding: .2em .5em .2em .9em;
}

.kpco-lead-chip__text {
	padding: .45em 0;
}

/* The theme styles every <button> as a large uppercase button. This one is a text link that performs an action. */
.kpco-lead-chip .kpco-lead-chip__remove,
.kpco-lead-chip .kpco-lead-chip__remove:hover {
	background: none;
	border: 0;
	box-shadow: none;
	color: inherit;
	cursor: pointer;
	font: inherit;
	letter-spacing: 0;
	margin: 0;
	min-height: 44px;
	min-width: 44px;
	padding: 0 .4em;
	text-decoration: underline;
	text-transform: none;
}

.kpco-lead-chip .kpco-lead-chip__remove:hover {
	text-decoration: none;
}

.kpco-lead-chip .kpco-lead-chip__remove:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.kpco-contact-bar {
	display: none;
}

/* 849 px is the theme's own limit for "mobile" (its .show-for-medium). */
@media screen and (max-width: 849px) {
	.kpco-contact-bar {
		background: #fff;
		border-top: 1px solid rgba(0, 0, 0, .14);
		bottom: 0;
		box-shadow: 0 -2px 10px rgba(0, 0, 0, .08);
		display: flex;
		left: 0;
		padding-bottom: env(safe-area-inset-bottom, 0px);
		position: fixed;
		right: 0;
		transition: transform .2s ease, visibility .2s;
		/* Above the page and the sticky header, below the theme's off-canvas menu and lightboxes (1042 and up). */
		z-index: 1000;
	}

	.kpco-contact-bar--away {
		transform: translateY(100%);
		visibility: hidden;
	}

	/* Fixed dark-on-white rather than theme colours: the contrast then holds whatever the palette is. */
	.kpco-contact-bar .kpco-contact-bar__item {
		align-items: center;
		border-top: 3px solid transparent;
		color: #1a1a1a;
		display: flex;
		flex: 1 1 0;
		flex-direction: column;
		font-size: 13px;
		font-weight: 600;
		gap: 2px;
		justify-content: center;
		line-height: 1.2;
		min-height: 56px;
		min-width: 0;
		padding: 5px 4px 6px;
		text-align: center;
		text-decoration: none;
	}

	.kpco-contact-bar .kpco-contact-bar__item + .kpco-contact-bar__item {
		border-left: 1px solid rgba(0, 0, 0, .12);
	}

	/* The booking link is the one we most want tapped; the accent line is decoration, not information. */
	.kpco-contact-bar .kpco-contact-bar__item--visning,
	.kpco-contact-bar .kpco-contact-bar__item--service {
		border-top-color: var(--fs-color-primary, #1a1a1a);
		font-weight: 700;
	}

	.kpco-contact-bar .kpco-contact-bar__item:hover,
	.kpco-contact-bar .kpco-contact-bar__item:active {
		background: #f2f2f2;
		color: #000;
	}

	.kpco-contact-bar .kpco-contact-bar__item:focus-visible {
		outline: 3px solid #1a1a1a;
		outline-offset: -3px;
	}

	.kpco-contact-bar .kpco-icon {
		flex: none;
	}

	/* Room for the bar, so it never covers the end of the page or the footer links. */
	body.kpco-has-contact-bar {
		padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
	}

	body.kpco-has-contact-bar .back-to-top {
		bottom: calc(72px + env(safe-area-inset-bottom, 0px));
	}
}

@media (prefers-reduced-motion: reduce) {
	.kpco-contact-bar {
		transition: none;
	}
}

@media print {
	.kpco-contact-bar {
		display: none;
	}
}
