/*
 * Contact buttons (R19): the four buttons always visible, in one row along the bottom.
 *
 * The markup and base CSS come from the Flatsome footer-scripts option (edited by the client);
 * these rules override it, so no option change is needed. The option's <style> prints after this
 * stylesheet, so a rule on `.vka-wrapper` alone loses to the option's own
 * `.vka-wrapper { bottom: 80px; right: 0 }`: rules for the wrapper itself start with `body`.
 *
 * Why a row at the bottom and not the option's column at the right edge: up to about 1340 px wide
 * the page content runs almost to the screen edge, and a 216 px column there sat on the product
 * page's "Add to cart" button as soon as the page opened (seen at 375, 768 and 1024 px). A row
 * 58 px tall at the very bottom only meets content that scrolls past it, and the page gets that
 * height as bottom padding so the end of every page scrolls clear of it.
 */

/* Step 1: hide the toggle; the buttons no longer need opening. */
.vka-wrapper .vka,
.vka-wrapper .vka-checkbox { display: none !important; }

/* Step 2: the four buttons in a row with tap-sized targets. */
.vka-wrapper .vka-wheel {
	position: static;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 8px;
	transform: none;
}
.vka-wrapper .vka-wheel .vka-action {
	position: static;
	bottom: auto;
	right: auto;
	min-width: 48px;
	min-height: 48px;
	align-items: center;
	justify-content: center;
}
.vka-wrapper .vka-wheel .vka-button {
	width: 48px;
	height: 48px;
	float: none;
}

/* Step 3 (850 px and wider): a rounded row in the bottom right corner. */
body .vka-wrapper {
	right: 10px;
	bottom: 10px;
	left: auto;
	width: auto;
	padding: 5px 8px;
	background: #fff;
	border-radius: 30px;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}
body {
	padding-bottom: 70px;
}
.back-to-top {
	bottom: 80px !important;
}

/* Step 4 (phones and tablets, Flatsome's small and medium sizes): a full-width bar. */
@media (max-width: 849px) {
	body .vka-wrapper {
		left: 0;
		right: 0;
		bottom: 0;
		padding: 5px 0 calc(5px + env(safe-area-inset-bottom));
		border-radius: 0;
		box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.15);
	}
	.vka-wrapper .vka-wheel {
		justify-content: space-around;
		gap: 0;
	}
	body {
		padding-bottom: calc(58px + env(safe-area-inset-bottom));
	}
	.back-to-top {
		bottom: calc(68px + env(safe-area-inset-bottom)) !important;
	}
}
