/* ==========================================================================
   Help Widget — floating "Serve aiuto?" button + contact menu
   ========================================================================== */

.len-help {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 9990;
	font-family: inherit;
}

.len-help__fab {
	display: flex;
	align-items: center;
	gap: 10px;
	border: none;
	background: var(--color-primary, #1E7F6B);
	color: #fff;
	border-radius: 999px;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(21, 90, 77, 0.35);
	transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
	width: 56px;
	height: 56px;
	justify-content: center;
	padding: 0;
}

.len-help__fab:hover {
	background: var(--color-primary-dark, #155a4d);
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(21, 90, 77, 0.42);
}

.len-help__fab:focus-visible {
	outline: 2px solid var(--color-primary-dark, #155a4d);
	outline-offset: 3px;
}

.len-help__fab-icon {
	width: 24px;
	height: 24px;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
}

.len-help__fab-icon svg {
	width: 100%;
	height: 100%;
}

.len-help__fab-icon .len-help__icon-close {
	display: none;
}

.len-help[data-open="true"] .len-help__fab-icon .len-help__icon-chat {
	display: none;
}

.len-help[data-open="true"] .len-help__fab-icon .len-help__icon-close {
	display: flex;
}

.len-help__fab-badge {
	position: absolute;
	top: -4px;
	right: -4px;
	background: #e53935;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	min-width: 18px;
	height: 18px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
	border: 2px solid #fff;
}

.len-help__fab-label {
	position: absolute;
	right: 66px;
	bottom: 17px;
	white-space: nowrap;
	background: #fff;
	color: var(--color-primary-dark, #155a4d);
	font-size: 13px;
	font-weight: 600;
	padding: 7px 14px;
	border-radius: 999px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
	pointer-events: none;
}

.len-help__panel {
	position: absolute;
	right: 0;
	bottom: 68px;
	width: 340px;
	max-width: calc(100vw - 40px);
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
	padding: 22px;
	opacity: 0;
	transform: translateY(12px) scale(0.98);
	pointer-events: none;
	transition: opacity 0.16s ease, transform 0.16s ease;
}

.len-help[data-open="true"] .len-help__panel {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}

.len-help__panel-title {
	margin: 0 0 4px;
	font-size: 19px;
	font-weight: 700;
	color: #1a1a1a;
}

.len-help__panel-sub {
	margin: 0 0 16px;
	font-size: 13.5px;
	color: #6b7280;
}

.len-help__list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid #eef0f0;
}

.len-help__item {
	border-bottom: 1px solid #eef0f0;
}

.len-help__link {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 4px;
	text-decoration: none;
	color: inherit;
	border-radius: 10px;
	transition: background 0.15s ease;
}

.len-help__link:hover,
.len-help__link:focus-visible {
	background: #f5f8f7;
}

.len-help__icon {
	width: 40px;
	height: 40px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	color: #fff;
}

.len-help__icon svg {
	width: 20px;
	height: 20px;
}

.len-help__icon--faq { background: #2f6fd1; }
.len-help__icon--wa { background: #25d366; }
.len-help__icon--mail { background: #6fbf3f; }
.len-help__icon--callback { background: #52c19b; }
.len-help__icon--chat { background: #2f7de1; }

.len-help__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.len-help__text strong {
	font-size: 14.5px;
	color: #1a1a1a;
}

.len-help__text span {
	font-size: 12.5px;
	color: #8a8f8c;
}

.len-help__chevron {
	margin-left: auto;
	flex: none;
	color: #c7cbc9;
}

.len-help__footer {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid #eef0f0;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: #8a8f8c;
}

.len-help__footer svg {
	width: 16px;
	height: 16px;
	color: var(--color-primary, #1E7F6B);
	flex: none;
}

/* Modal for the callback request form */
.len-help-modal {
	position: fixed;
	inset: 0;
	z-index: 9995;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.len-help-modal[data-open="true"] {
	display: flex;
}

.len-help-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 22, 0.55);
}

.len-help-modal__panel {
	position: relative;
	background: #fff;
	border-radius: 18px;
	max-width: 460px;
	width: 100%;
	max-height: 88vh;
	overflow-y: auto;
	padding: 28px 24px 24px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.len-help-modal__title {
	margin: 0 0 16px;
	font-size: 20px;
	font-weight: 700;
	color: #1a1a1a;
	padding-right: 32px;
}

.len-help-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 32px;
	height: 32px;
	border-radius: 999px;
	border: none;
	background: #f2f3f2;
	color: #4b5045;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.len-help-modal__close:hover {
	background: #e6e8e6;
}

/* Mobile bottom tab bar (Home/Prodotti/Cerca/Area/Aiuto) sits fixed at the
   bottom below 767px — lift the widget above it so they don't overlap. */
@media (max-width: 767px) {
	.len-help {
		bottom: calc(51px + env(safe-area-inset-bottom, 0px) + 14px);
	}

	body.woocommerce-account .len-help {
		bottom: 14px;
	}
}

/* Mobile: pill variant with label always visible */
@media (max-width: 640px) {
	.len-help {
		right: 14px;
	}

	.len-help__fab {
		width: auto;
		padding: 0 18px 0 16px;
	}

	.len-help__fab-label-inline {
		font-size: 14px;
		font-weight: 700;
		color: #fff;
	}

	.len-help__fab-label {
		display: none;
	}

	.len-help__panel {
		width: calc(100vw - 28px);
		right: -6px;
	}
}

@media (min-width: 641px) {
	.len-help__fab-label-inline {
		display: none;
	}
}
