/* Mobile readability improvements for .cart-data price/qty/delivery sections */
@media (max-width: 767px) {
	/* Section headings: Totale, Quantità, Tempi di consegna */
	.cart-data h5,
	.cart-row h5 {
		font-size: 1.1rem;
		font-weight: 700;
		margin-bottom: 6px;
	}

	/* Price box wrapper */
	.riep-tot .price {
		font-size: 1.4rem;
		font-weight: 700;
		height: auto;
		line-height: 1.4;
		padding: 8px 10px;
	}

	/* Highlighted price figure (€ value) */
	.riep-tot .price .evd,
	.riep-tot .evd {
		font-size: 1.7rem;
		font-weight: 700;
	}

	/* Secondary note: (IVA inc.) */
	.riep-tot .price .nml,
	.riep-tot .nml {
		font-size: 0.85rem;
	}

	/* Original/crossed-out price (outlet: #prezzo_intero, configuratori: .scont) */
	.riep-tot #prezzo_intero,
	.riep-tot .scont {
		font-size: 1.1rem;
	}

	/* Quantity input */
	.riep-quant .insert,
	.riep-quant input[type="number"] {
		font-size: 1.2rem;
		height: 48px;
		padding: 8px 12px;
	}

	/* Delivery time text */
	.riep-time p {
		font-size: 1rem;
		line-height: 1.5;
	}

	/* Configurator sticky total bar (#prezzo-low) */
	body.configurator-page #main-content.config {
		padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
	}

	#prezzo-low.newprice {
		z-index: 9500;
		padding: 6px 10px calc(6px + env(safe-area-inset-bottom, 0px));
	}

	#prezzo-low.newprice h5 {
		margin: 0 0 4px;
		font-size: 13px;
		line-height: 1.2;
	}

	#prezzo-low.newprice .riep-tot {
		flex-direction: row;
		flex-wrap: nowrap;
		justify-content: center;
		align-items: baseline;
		gap: 0.35em;
	}

	#prezzo-low.newprice .riep-tot .price {
		font-size: 13px;
		font-weight: 700;
		line-height: 1.25;
		padding: 0;
		margin: 0;
		width: auto;
		flex: 0 0 auto;
	}

	#prezzo-low.newprice .riep-tot .price.growone {
		flex-grow: 0;
	}

	#prezzo-low.newprice .riep-tot .price .evd {
		font-size: 15px;
	}

	#prezzo-low.newprice .riep-tot .price .nml,
	#prezzo-low.newprice .riep-tot .price .nml em {
		font-size: 11px;
	}

	#prezzo-low.newprice .riep-tot .scont {
		font-size: 12px;
	}
}

/* Hide bottom overlays on configurator (sticky bar + riepilogo add-to-cart) */
body.configurator-page footer .wa-float,
body.configurator-page .cky-btn-revisit-wrapper,
body.configurator-page .cky-revisit-bottom-left,
body.configurator-page div[class*="cky-btn-revisit"],
body.conf-sticky-price-on footer .wa-float,
body.conf-sticky-price-on .cky-btn-revisit-wrapper,
body.conf-sticky-price-on .cky-revisit-bottom-left,
body.conf-sticky-price-on div[class*="cky-btn-revisit"] {
	display: none !important;
}

@media (max-width: 767px) {
	body.configurator-page #tab_riepilogo .riep-none {
		position: relative;
		z-index: 9600;
		padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
	}

	body.configurator-page #addCart {
		min-height: 48px;
		width: 100%;
	}
}
