/* Gradinarul Contact Widget */
.gcw {
	--gcw-size: 52px;
	--gcw-lift: 0px;
	--gcw-radius: 18px;
	position: fixed;
	z-index: 120; /* above Blocksy back-to-top (110) */
	right: var(--gcw-side, 19px);
	bottom: calc(var(--theme-frame-size, 0px) + var(--gcw-bottom, 25px) + var(--gcw-lift));
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	font-family: inherit;
	line-height: 1.35;
	transition: bottom .3s ease;
}

/* Toggle button */
.gcw__toggle {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--gcw-size);
	height: var(--gcw-size);
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--gcw-primary, #0c6641);
	color: #fff;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(4, 61, 37, .28);
	transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.gcw__toggle:hover,
.gcw.is-open .gcw__toggle {
	background: var(--gcw-dark, #043d25);
	color: #fff;
}

.gcw__toggle:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 28px rgba(4, 61, 37, .32);
}

.gcw__toggle:focus-visible,
.gcw__item:focus-visible {
	outline: 3px solid rgba(135, 189, 166, .9);
	outline-offset: 3px;
}

/* Soft pulse ring to draw attention (closed state only) */
.gcw__toggle::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--gcw-primary, #0c6641);
	opacity: .35;
	z-index: -1;
	animation: gcw-pulse 2.6s ease-out infinite;
}

.gcw.is-open .gcw__toggle::before {
	animation: none;
	opacity: 0;
}

@keyframes gcw-pulse {
	0% { transform: scale(1); opacity: .35; }
	70%, 100% { transform: scale(1.45); opacity: 0; }
}

.gcw__toggle-icon {
	position: absolute;
	display: flex;
	transition: opacity .2s ease, transform .25s ease;
}

.gcw__toggle-icon svg {
	width: 26px;
	height: 26px;
}

.gcw__toggle-icon--close {
	opacity: 0;
	transform: rotate(-90deg) scale(.6);
}

.gcw.is-open .gcw__toggle-icon--open {
	opacity: 0;
	transform: rotate(90deg) scale(.6);
}

.gcw.is-open .gcw__toggle-icon--close {
	opacity: 1;
	transform: none;
}

.gcw__toggle-icon--close svg {
	width: 22px;
	height: 22px;
}

/* Small phone badge on the button */
.gcw__badge {
	position: absolute;
	top: -2px;
	right: -2px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	color: var(--gcw-primary, #0c6641);
	box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
	transition: opacity .2s ease, transform .2s ease;
}

.gcw__badge svg {
	width: 11px;
	height: 11px;
}

.gcw.is-open .gcw__badge {
	opacity: 0;
	transform: scale(.5);
}

/* Hover tooltip (desktop) */
.gcw__tip {
	position: absolute;
	right: calc(var(--gcw-size) + 12px);
	bottom: calc(var(--gcw-size) / 2);
	transform: translate(6px, 50%);
	padding: 7px 12px;
	border-radius: 8px;
	background: var(--gcw-dark, #043d25);
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

@media (hover: hover) {
	.gcw:not(.is-open) .gcw__toggle:hover + .gcw__tip {
		opacity: 1;
		visibility: visible;
		transform: translate(0, 50%);
	}
}

/* Panel */
.gcw__panel {
	position: absolute;
	right: 0;
	bottom: calc(var(--gcw-size) + 14px);
	width: 300px;
	max-width: calc(100vw - var(--gcw-side, 19px) * 2);
	overflow: hidden;
	border-radius: var(--gcw-radius);
	background: #fff;
	box-shadow: 0 20px 50px rgba(4, 61, 37, .22), 0 2px 8px rgba(0, 0, 0, .06);
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px) scale(.97);
	transform-origin: bottom right;
	transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}

.gcw.is-open .gcw__panel {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.gcw__head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 18px;
	background: var(--gcw-primary, #0c6641);
	color: #fff;
}

.gcw__head-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .16);
}

.gcw__head-icon svg {
	width: 22px;
	height: 22px;
}

.gcw__title,
.gcw__subtitle {
	margin: 0;
	color: #fff;
}

.gcw__title {
	font-size: 17px;
	font-weight: 700;
}

.gcw__subtitle {
	margin-top: 2px;
	font-size: 13px;
	opacity: .85;
}

.gcw__list {
	margin: 0;
	padding: 8px;
	list-style: none;
}

.gcw__list li {
	margin: 0;
	padding: 0;
}

.gcw__item {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 56px;
	padding: 8px 10px;
	border-radius: 12px;
	color: var(--theme-palette-color-4, #000);
	text-decoration: none;
	transition: background .2s ease;
}

.gcw__item:hover {
	background: var(--theme-palette-color-6, #f2f5f7);
	color: var(--theme-palette-color-4, #000);
}

.gcw__item-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: #fff;
	background: var(--gcw-primary, #0c6641);
}

.gcw__item-icon svg {
	width: 20px;
	height: 20px;
}

.gcw__item--viber .gcw__item-icon { background: #7360f2; }
.gcw__item--whatsapp .gcw__item-icon { background: #25d366; }

.gcw__item-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.gcw__item-label {
	font-size: 15px;
	font-weight: 600;
}

.gcw__item-number {
	font-size: 13px;
	color: var(--theme-palette-color-3, #3a4f66);
	white-space: nowrap;
}

/* Tablet & mobile */
@media (max-width: 689.98px) {
	.gcw {
		--gcw-size: 50px;
		right: var(--gcw-side-m, 16px);
		bottom: calc(var(--theme-frame-size, 0px) + var(--gcw-bottom-m, 16px) + var(--gcw-lift) + env(safe-area-inset-bottom, 0px));
	}

	.gcw__panel {
		width: calc(100vw - var(--gcw-side-m, 16px) * 2);
		max-width: 340px;
	}

	.gcw__tip {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gcw,
	.gcw *,
	.gcw *::before {
		animation: none !important;
		transition: none !important;
	}
}

@media print {
	.gcw { display: none; }
}
