/* Paco Preventivo — toast + indicatore flottante (site-wide). */
:root { --projecta-header: #1a3654; --projecta-accent: #2c8fa6; }

/* Toast di conferma — in alto, sotto l'header (top impostato via JS) */
.paco-toast {
	position: fixed;
	left: 50%;
	top: 80px; /* fallback; sovrascritto via JS in base all'altezza header */
	transform: translate(-50%, -18px);
	display: inline-flex;
	align-items: center;
	gap: 13px;
	background: var(--projecta-header);
	color: #fff;
	font: 600 15px/1.35 Arial, Helvetica, sans-serif;
	padding: 14px 20px;
	border-radius: 10px;
	border-left: 5px solid var(--projecta-accent);
	box-shadow: 0 14px 38px rgba(0, 0, 0, .26);
	z-index: 100000;
	opacity: 0;
	transition: opacity .25s ease, transform .25s ease;
	max-width: 94vw;
}
.paco-toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
.paco-toast-ico {
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--projecta-accent);
	color: #fff;
	font-size: 15px;
	font-weight: 800;
}
.paco-toast-msg { font-weight: 600; }
.paco-toast-link {
	flex: 0 0 auto;
	margin-left: 4px;
	background: var(--projecta-accent);
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 700;
	font-size: 14px;
	line-height: 1;
	padding: 9px 15px;
	border-radius: 7px;
	white-space: nowrap;
	transition: background .15s ease, color .15s ease;
}
.paco-toast-link:hover { background: #fff; color: var(--projecta-header) !important; }
@media (max-width: 560px) {
	.paco-toast { flex-wrap: wrap; justify-content: center; text-align: center; gap: 9px; }
	.paco-toast-link { margin-left: 0; }
}

/* Indicatore flottante "Preventivo" */
.paco-fab {
	position: fixed;
	right: 18px;
	bottom: 18px;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	background: var(--projecta-accent);
	color: #fff !important;
	text-decoration: none !important;
	font: 700 14px/1 Arial, Helvetica, sans-serif;
	padding: 12px 18px;
	border-radius: 999px;
	box-shadow: 0 8px 24px rgba(26, 54, 84, .28);
	z-index: 99999;
	transition: transform .15s ease, background .15s ease, opacity .2s ease;
	opacity: .55;
}
.paco-fab:hover { background: var(--projecta-header); transform: translateY(-1px); }
.paco-fab.has-items { opacity: 1; }
.paco-fab-ico { font-size: 17px; line-height: 1; }
.paco-fab-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: #fff;
	color: var(--projecta-header);
	font-size: 12.5px;
	font-weight: 800;
}
.paco-fab:not(.has-items) .paco-fab-count { background: rgba(255, 255, 255, .35); color: #fff; }

@media (max-width: 600px) {
	.paco-fab-txt { display: none; }
	.paco-fab { right: 14px; bottom: 14px; padding: 12px 14px; }
}

/* Pulsante preventivo per l'header (shortcode [paco_preventivo_button]) */
.paco-prev-button {
	position: relative;
	display: inline-flex !important;
	align-items: center;
	gap: 9px;
	color: inherit;
	text-decoration: none !important;
	line-height: 1;
	vertical-align: middle;
}
.paco-prev-button:hover { color: var(--projecta-accent); }
.paco-prev-button .paco-prev-button-label { font-size: inherit; font-weight: 600; line-height: 1; white-space: nowrap; }
.paco-prev-button .paco-prev-button-ico { position: relative; display: inline-flex; align-items: center; }
.paco-prev-button .paco-prev-button-ico svg { width: 24px; height: 24px; display: block; vertical-align: middle; }
.paco-prev-button .paco-prev-count {
	position: absolute;
	top: -8px;
	right: -10px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: var(--projecta-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
}
/* Nasconde il badge quando il preventivo è vuoto */
.paco-prev-button:not(.has-items) .paco-prev-count { display: none; }
