/*
 * Contact buttons (R19, restyled after the 2026-11-23 feedback to match the approved mockup).
 *
 * 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 rules for the wrapper start with `body`.
 *
 * - Always open (no toggle), in the order Zalo, Messenger, hotline, map: the option's markup runs
 *   map, phone, Messenger, Zalo, so the items are reordered here.
 * - Coloured circles with a short label or a white line icon instead of the option's sprite icons.
 * - Desktop (850 px and wider): a column in the bottom-right corner, as in the mockup. On the
 *   product page this column sits beside the content from about 1340 px up; narrower windows may
 *   cover the right edge of the page while scrolling (the reason R19 first used a bottom row).
 * - Phones and tablets: a white bar along the bottom, the button's title under each circle; the
 *   page gets that height as bottom padding so its end scrolls clear of the bar.
 */

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

/* Step 2: the column in the corner. */
body .vka-wrapper {
	right: 14px;
	bottom: 18px;
	left: auto;
	width: auto;
	padding: 0;
	background: none;
	box-shadow: none;
	border-radius: 0;
}
.vka-wrapper .vka-wheel {
	position: static;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	transform: none;
}
.vka-wrapper .vka-wheel .vka-action {
	position: static;
	bottom: auto;
	right: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	text-decoration: none;
}
.vka-wrapper .vka-wheel .vka-action:nth-child(4) { order: 1; } /* Zalo */
.vka-wrapper .vka-wheel .vka-action:nth-child(3) { order: 2; } /* Messenger */
.vka-wrapper .vka-wheel .vka-action:nth-child(2) { order: 3; } /* Phone */
.vka-wrapper .vka-wheel .vka-action:nth-child(1) { order: 4; } /* Map */

/* Step 3: coloured circles. */
.vka-wrapper .vka-wheel .vka-button {
	width: 50px;
	height: 50px;
	float: none;
	border-radius: 50%;
	display: grid;
	place-items: center;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 22px 22px;
}
.vka-wrapper .vka-wheel .vka-button i { display: none !important; }
.vka-wrapper .vka-wheel .vka-button-4 { background-color: #0068ff; }
.vka-wrapper .vka-wheel .vka-button-4::before { content: "Zalo"; }
.vka-wrapper .vka-wheel .vka-button-3 {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2C6.5 2 2 6.1 2 11.2c0 2.9 1.4 5.4 3.7 7.1V22l3.4-1.9c.9.3 1.9.4 2.9.4 5.5 0 10-4.1 10-9.2S17.5 2 12 2zm1 12.4l-2.6-2.7-4.9 2.7 5.4-5.7 2.6 2.7 4.8-2.7-5.3 5.7z'/%3E%3C/svg%3E"), linear-gradient(45deg, #00a2ff, #a334fa);
	background-size: 24px 24px, cover;
}
.vka-wrapper .vka-wheel .vka-button-2 {
	background-color: #ff9800;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 006.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 013 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.2.2 2.4.6 3.6.1.3 0 .7-.2 1l-2.3 2.2z'/%3E%3C/svg%3E");
	animation: ntv-ring 2s infinite;
}
.vka-wrapper .vka-wheel .vka-button-1 {
	background-color: #2f9e5b;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2a7 7 0 00-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 00-7-7zm0 9.5a2.5 2.5 0 110-5 2.5 2.5 0 010 5z'/%3E%3C/svg%3E");
}
@keyframes ntv-ring {
	0%, 100% { box-shadow: 0 0 0 0 rgba(255, 152, 0, .5); }
	50% { box-shadow: 0 0 0 10px rgba(255, 152, 0, 0); }
}
.back-to-top { bottom: 20px !important; right: 80px !important; }

/* Step 4 (phones and tablets, Flatsome's small and medium sizes): a white bar along the bottom. */
@media (max-width: 849px) {
	body .vka-wrapper {
		left: 0;
		right: 0;
		bottom: 0;
		background: #fff;
		border-top: 1px solid #ececf0;
		box-shadow: 0 -2px 10px rgba(0, 0, 0, .06);
		padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
	}
	.vka-wrapper .vka-wheel { flex-direction: row; justify-content: space-around; gap: 0; }
	.vka-wrapper .vka-wheel .vka-action { flex: 1; }
	.vka-wrapper .vka-wheel .vka-button { width: 32px; height: 32px; font-size: 10px; box-shadow: none; animation: none; background-size: 17px 17px; }
	.vka-wrapper .vka-wheel .vka-button-3 { background-size: 18px 18px, cover; }
	.vka-wrapper .vka-wheel .vka-action::after { content: attr(title); color: #222; font-size: 11px; font-weight: 500; white-space: nowrap; }
	body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
	.back-to-top { bottom: calc(72px + env(safe-area-inset-bottom)) !important; right: 12px !important; }
}
