/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

.nova-floatbar {
	position: fixed;
	top: 50%;
	right: 14px;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	gap: 2px;
	transform: translateY(-50%);
}

.nova-floatbar__item {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	padding: 0;
	border: 0;
	background: #24a91f;
	color: #fff;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.nova-floatbar__item:hover,
.nova-floatbar__item:focus-visible {
	background: #1d8b1a;
	transform: translateX(-3px);
	outline: none;
}

.nova-floatbar__item svg {
	width: 22px;
	height: 22px;
	display: block;
}

.nova-floatbar__item--top {
	flex-direction: column;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.nova-floatbar__top-caret {
	position: absolute;
	top: -7px;
	left: 50%;
	width: 0;
	height: 0;
	border-right: 7px solid transparent;
	border-bottom: 7px solid #24a91f;
	border-left: 7px solid transparent;
	transform: translateX(-50%);
}

.nova-floatbar__top-label {
	font-size: 12px;
	line-height: 1;
}

.nova-floatbar__qr-wrap {
	position: relative;
}

.nova-floatbar__panel {
	position: absolute;
	top: 50%;
	right: calc(100% + 10px);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	width: 148px;
	padding: 10px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 14px 30px rgba(7, 31, 12, 0.16);
	color: #18371a;
	text-decoration: none;
	opacity: 0;
	pointer-events: none;
	transform: translateY(-50%) translateX(12px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.nova-floatbar__panel img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
}

.nova-floatbar__panel span {
	font-size: 12px;
	line-height: 1;
	color: #4b6a4b;
}

.nova-floatbar__panel strong {
	font-size: 13px;
	line-height: 1.2;
	color: #1e4b1c;
}

.nova-floatbar__qr-wrap:hover .nova-floatbar__panel,
.nova-floatbar__qr-wrap:focus-within .nova-floatbar__panel,
.nova-floatbar__qr-wrap.is-open .nova-floatbar__panel {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(-50%) translateX(0);
}

@media (max-width: 1024px) {
	.nova-floatbar {
		display: none;
	}
}
