
.hdsp-sticky-banner {
	--hdsp-sticky-accent: #f97316;
	--hdsp-sticky-accent-soft: #fff1e8;
	--hdsp-sticky-ink: #171b24;
	--hdsp-sticky-muted: #667085;
	position: fixed;
	z-index: 99990;
	bottom: 18px;
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr) auto auto;
	gap: 12px;
	align-items: center;
	width: min(720px, calc(100vw - 36px));
	padding: 12px 44px 12px 13px;
	border: 1px solid rgba(16, 24, 40, .10);
	border-radius: 18px;
	background: rgba(255, 255, 255, .97);
	box-shadow: 0 20px 60px rgba(16, 24, 40, .18);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	color: var(--hdsp-sticky-ink);
	opacity: 0;
	visibility: hidden;
	transform: translateY(18px) scale(.985);
	transition: opacity .24s ease, transform .24s ease, visibility .24s ease;
	box-sizing: border-box;
}

.hdsp-sticky-banner[hidden] {
	display: none !important;
}

.hdsp-sticky-banner.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scale(1);
}

.hdsp-sticky-banner--left {
	left: 18px;
}

.hdsp-sticky-banner--right {
	right: 18px;
}

.hdsp-sticky-banner--center {
	left: 50%;
	transform: translate(-50%, 18px) scale(.985);
}

.hdsp-sticky-banner--center.is-visible {
	transform: translate(-50%, 0) scale(1);
}

.hdsp-sticky-banner--orange {
	--hdsp-sticky-accent: #f97316;
	--hdsp-sticky-accent-soft: #fff1e8;
}

.hdsp-sticky-banner--blue {
	--hdsp-sticky-accent: #2563eb;
	--hdsp-sticky-accent-soft: #edf4ff;
}

.hdsp-sticky-banner--green {
	--hdsp-sticky-accent: #159447;
	--hdsp-sticky-accent-soft: #ecf9f0;
}

.hdsp-sticky-banner--violet {
	--hdsp-sticky-accent: #7c3aed;
	--hdsp-sticky-accent-soft: #f4efff;
}

.hdsp-sticky-banner--dark {
	--hdsp-sticky-accent: #111827;
	--hdsp-sticky-accent-soft: #eef0f3;
}

.hdsp-sticky-banner__close {
	position: absolute;
	top: 8px;
	right: 9px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 29px;
	height: 29px;
	padding: 0;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: #98a2b3;
	font: 500 21px/1 Arial, sans-serif;
	cursor: pointer;
}

.hdsp-sticky-banner__close:hover {
	background: #f4f5f7;
	color: #344054;
}

.hdsp-sticky-banner__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 13px;
	background: var(--hdsp-sticky-accent-soft);
	font-size: 21px;
	line-height: 1;
}

.hdsp-sticky-banner__content {
	min-width: 0;
}

.hdsp-sticky-banner__badge {
	display: inline-block;
	margin-bottom: 3px;
	color: var(--hdsp-sticky-accent);
	font-size: 9.5px;
	font-weight: 900;
	line-height: 1;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.hdsp-sticky-banner__title {
	color: var(--hdsp-sticky-ink);
	font-size: 14px;
	font-weight: 850;
	line-height: 1.25;
	letter-spacing: -.015em;
}

.hdsp-sticky-banner__text {
	margin-top: 3px;
	color: var(--hdsp-sticky-muted);
	font-size: 11.5px;
	line-height: 1.35;
}

.hdsp-sticky-banner__coupon {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 82px;
	min-height: 45px;
	padding: 6px 9px;
	border: 1px dashed color-mix(in srgb, var(--hdsp-sticky-accent) 48%, transparent);
	border-radius: 11px;
	background: var(--hdsp-sticky-accent-soft);
	cursor: pointer;
}

.hdsp-sticky-banner__coupon-code {
	color: var(--hdsp-sticky-accent);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .04em;
}

.hdsp-sticky-banner__coupon-copy {
	margin-top: 2px;
	color: #667085;
	font-size: 8.5px;
	font-weight: 700;
}

.hdsp-sticky-banner__actions {
	display: flex;
	gap: 7px;
	align-items: center;
}

.hdsp-sticky-banner__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 0 13px;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 850;
	line-height: 1;
	text-decoration: none !important;
	white-space: nowrap;
	transition: transform .15s ease, opacity .15s ease;
}

.hdsp-sticky-banner__button:hover {
	transform: translateY(-1px);
}

.hdsp-sticky-banner__button--primary {
	border: 1px solid var(--hdsp-sticky-accent);
	background: var(--hdsp-sticky-accent);
	color: #fff !important;
}

.hdsp-sticky-banner__button--secondary {
	border: 1px solid #d9dde5;
	background: #fff;
	color: #344054 !important;
}

@media (max-width: 760px) {
	.hdsp-sticky-banner,
	.hdsp-sticky-banner--left,
	.hdsp-sticky-banner--right,
	.hdsp-sticky-banner--center {
		right: 10px;
		bottom: 10px;
		left: 10px;
		width: auto;
		grid-template-columns: 38px minmax(0, 1fr);
		gap: 10px;
		padding: 11px 38px 11px 11px;
		transform: translateY(18px) scale(.985);
	}

	.hdsp-sticky-banner.is-visible,
	.hdsp-sticky-banner--center.is-visible {
		transform: translateY(0) scale(1);
	}

	.hdsp-sticky-banner__icon {
		width: 38px;
		height: 38px;
		border-radius: 11px;
		font-size: 19px;
	}

	.hdsp-sticky-banner__coupon,
	.hdsp-sticky-banner__actions {
		grid-column: 1 / -1;
	}

	.hdsp-sticky-banner__coupon {
		flex-direction: row;
		gap: 7px;
		min-height: 35px;
	}

	.hdsp-sticky-banner__coupon-copy {
		margin-top: 0;
	}

	.hdsp-sticky-banner__actions {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hdsp-sticky-banner__actions .hdsp-sticky-banner__button:only-child {
		grid-column: 1 / -1;
	}

	.hdsp-sticky-banner__button {
		width: 100%;
		min-height: 39px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hdsp-sticky-banner {
		transition: none;
	}
}

/* Banner fissi – colore sfondo personalizzato */
.hdsp-sticky-banner[style*="--hdsp-sticky-custom-bg"] {
	background: var(--hdsp-sticky-custom-bg) !important;
	color: var(--hdsp-sticky-custom-text) !important;
}

.hdsp-sticky-banner[style*="--hdsp-sticky-custom-bg"] .hdsp-sticky-banner__title {
	color: var(--hdsp-sticky-custom-text) !important;
}

.hdsp-sticky-banner[style*="--hdsp-sticky-custom-bg"] .hdsp-sticky-banner__text,
.hdsp-sticky-banner[style*="--hdsp-sticky-custom-bg"] .hdsp-sticky-banner__coupon-copy {
	color: var(--hdsp-sticky-custom-muted) !important;
}

.hdsp-sticky-banner[style*="--hdsp-sticky-custom-bg"] .hdsp-sticky-banner__button--primary {
	border-color: var(--hdsp-sticky-custom-button) !important;
	background: var(--hdsp-sticky-custom-button) !important;
	color: #fff !important;
}

.hdsp-sticky-banner[style*="--hdsp-sticky-custom-bg"] .hdsp-sticky-banner__button--secondary {
	border-color: rgba(255,255,255,.32) !important;
	background: rgba(255,255,255,.18) !important;
	color: var(--hdsp-sticky-custom-text) !important;
}

.hdsp-sticky-banner[style*="--hdsp-sticky-custom-bg"] .hdsp-sticky-banner__close {
	color: var(--hdsp-sticky-custom-text) !important;
	opacity: .75;
}

.hdsp-sticky-banner[style*="--hdsp-sticky-custom-bg"] .hdsp-sticky-banner__badge,
.hdsp-sticky-banner[style*="--hdsp-sticky-custom-bg"] .hdsp-sticky-banner__coupon-code {
	color: var(--hdsp-sticky-custom-button) !important;
}

.hdsp-sticky-banner[style*="--hdsp-sticky-custom-bg"] .hdsp-sticky-banner__icon,
.hdsp-sticky-banner[style*="--hdsp-sticky-custom-bg"] .hdsp-sticky-banner__coupon {
	background: rgba(255,255,255,.20) !important;
}
