/**
 * Sticky conversiebalk — alleen mobiel.
 *
 * Alles staat binnen de media query, zodat desktop ongemoeid blijft.
 *
 * @package WordPress
 * @subpackage Korff_Dakwerken
 * @since Korff Dakwerken 2.5
 */

.sticky-cta {
	display: none;
}

@media screen and (max-width: 767px) {

	.sticky-cta {
		display: block;
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		z-index: 999;
		background-color: #fff;
		box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
		padding-bottom: env(safe-area-inset-bottom);
	}

	.sticky-cta__list {
		display: flex;
		align-items: stretch;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.sticky-cta__item {
		flex: 1 1 0;
		margin: 0;
		padding: 0;
		list-style: none;
		position: relative;
	}

	.sticky-cta__item + .sticky-cta__item::before {
		content: "";
		position: absolute;
		left: 0;
		top: 12px;
		bottom: 12px;
		width: 1px;
		background: rgba(0, 0, 0, 0.12);
	}

	.sticky-cta__link {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 4px;
		min-height: 56px;
		padding: 8px 4px;
		text-decoration: none;
		color: #222;
		-webkit-tap-highlight-color: rgba(227, 6, 19, 0.1);
	}

	.sticky-cta__link:hover,
	.sticky-cta__link:focus {
		text-decoration: none;
		color: #e30613;
	}

	.sticky-cta__icon {
		display: flex;
		align-items: center;
		justify-content: center;
		height: 24px;
		color: #e30613;
	}

	.sticky-cta__icon svg,
	.sticky-cta__icon img {
		display: block;
		width: 24px;
		height: 24px;
	}

	.sticky-cta__label {
		font-size: 11px;
		line-height: 1.2;
		font-weight: 600;
		text-align: center;
		letter-spacing: -0.2px;
	}

	/* Ruimte onder de pagina zodat de balk de footer niet afdekt. */
	body.has-sticky-cta {
		padding-bottom: 72px;
	}

	/*
	 * De Cookiebot-widget staat standaard linksonder op bottom: 10px en ligt daarmee
	 * over de eerste knop heen — met een z-index die alles overstemt, dus die knop is
	 * dan niet aan te tikken. Boven de balk zetten. Alleen waar de balk ook echt staat.
	 */
	body.has-sticky-cta #CookiebotWidget {
		bottom: calc(68px + env(safe-area-inset-bottom)) !important;
	}
}

@media screen and (max-width: 359px) {

	.sticky-cta__label {
		font-size: 10px;
	}

	.sticky-cta__link {
		padding: 8px 2px;
	}
}
