/* Navigazione + sticky CTA verso il configuratore */

/* Voce menu "Configura ordine" come bottone */
.wd-nav .menu-item-60 > a,
.wd-nav-mobile .menu-item-60 > a,
.wd-header .menu-item-60 > a {
	background: linear-gradient(180deg, #ff9a3c 0%, #f07818 55%, #e5670a 100%) !important;
	color: #fff !important;
	border-radius: 999px !important;
	padding: 10px 18px !important;
	font-weight: 800 !important;
	box-shadow: 0 6px 18px rgba(240, 120, 24, 0.35);
}

.wd-nav .menu-item-60 > a:hover,
.wd-nav-mobile .menu-item-60 > a:hover,
.wd-header .menu-item-60 > a:hover {
	color: #fff !important;
	filter: brightness(1.05);
}

/* Sticky bar */
.mgk-sticky-order {
	position: fixed;
	left: 50%;
	transform: translateX(-50%);
	bottom: max(12px, env(safe-area-inset-bottom));
	z-index: 100040;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	width: min(720px, calc(100% - 24px));
	padding: 12px 14px;
	border-radius: 16px;
	background: #1c2612;
	color: #fff;
	box-shadow: 0 12px 36px rgba(28, 38, 18, 0.35);
}

.mgk-sticky-order__text {
	margin: 0;
	flex: 1 1 200px;
	min-width: 0;
	line-height: 1.35;
}

.mgk-sticky-order__text strong {
	display: block;
	font-size: 0.98rem;
	font-weight: 800;
}

.mgk-sticky-order__text span {
	display: block;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.82);
	margin-top: 2px;
}

.mgk-sticky-order__btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 18px;
	border-radius: 999px;
	background: linear-gradient(180deg, #ff9a3c 0%, #f07818 55%, #e5670a 100%);
	color: #fff !important;
	font-weight: 800;
	font-size: 0.95rem;
	text-decoration: none !important;
	box-shadow: 0 6px 16px rgba(240, 120, 24, 0.4);
	white-space: nowrap;
}

.mgk-sticky-order__btn:hover {
	filter: brightness(1.06);
	color: #fff !important;
}

body.mgk-configurator-page .mgk-sticky-order,
body.woocommerce-cart .mgk-sticky-order,
body.woocommerce-checkout .mgk-sticky-order {
	display: none !important;
}

/* Spazio in basso così la barra non copre il footer */
body:not(.mgk-configurator-page):not(.woocommerce-cart):not(.woocommerce-checkout) {
	padding-bottom: 96px;
}

@media (max-width: 600px) {
	.mgk-sticky-order {
		bottom: max(8px, env(safe-area-inset-bottom));
		padding: 12px;
	}

	.mgk-sticky-order__btn {
		width: 100%;
	}
}

/* Footer legale Grafitex */
.mgk-legal-footer {
	background: #151a12;
	color: rgba(255, 255, 255, 0.82);
	padding: 28px 16px calc(28px + env(safe-area-inset-bottom, 0px));
	margin-top: 0;
	font-size: 13px;
	line-height: 1.45;
}

.mgk-legal-footer__inner {
	max-width: 920px;
	margin: 0 auto;
}

.mgk-legal-footer__brand {
	margin: 0 0 14px;
	font-size: 14px;
	color: #fff;
}

.mgk-legal-footer__brand span {
	font-weight: 400;
	opacity: 0.8;
	margin: 0 0.35em;
}

.mgk-legal-footer__facts {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px 24px;
}

@media (min-width: 720px) {
	.mgk-legal-footer__facts {
		grid-template-columns: 1fr 1fr;
	}
}

.mgk-legal-footer__facts li {
	margin: 0;
	display: grid;
	gap: 2px;
}

.mgk-legal-footer__facts span {
	display: block;
	font-size: 11px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	opacity: 0.55;
}

.mgk-legal-footer__facts a,
.mgk-legal-footer__facts strong {
	color: #fff;
	text-decoration: none;
	font-weight: 600;
}

.mgk-legal-footer__facts a:hover {
	text-decoration: underline;
}

.mgk-legal-footer__copy {
	margin: 18px 0 0;
	padding-top: 14px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 12px;
	opacity: 0.7;
}

/* Spazio extra sopra sticky CTA / dock configuratore */
body:not(.mgk-configurator-page):not(.woocommerce-cart):not(.woocommerce-checkout) .mgk-legal-footer {
	padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px));
}

body.mgk-configurator-page .mgk-legal-footer {
	padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}

