/* Sconto nel tempo — Swappify */

.vc-timed-timeline{
	--vc-td-ink:#0b1f3a;
	--vc-td-brand:#0445AF;
	--vc-td-accent:#04B8D8;
	--vc-td-soft:#e8f4ff;
	--vc-td-line:#c5d8f0;
	margin:14px 0 18px;
	padding:16px 16px 14px;
	border-radius:18px;
	background:
		radial-gradient(120% 90% at 0% 0%, rgba(4,184,216,.18), transparent 55%),
		radial-gradient(100% 80% at 100% 100%, rgba(4,69,175,.12), transparent 50%),
		linear-gradient(160deg,#f7fbff 0%,#eef5ff 100%);
	border:1px solid rgba(4,69,175,.12);
	box-shadow:0 10px 28px rgba(4,69,175,.08);
	animation:vcTimedIn .45s ease both;
}
.vc-timed-timeline__head{
	display:flex;
	align-items:baseline;
	justify-content:space-between;
	gap:12px;
	margin-bottom:14px;
}
.vc-timed-timeline__kicker{
	font-weight:800;
	font-size:.95rem;
	letter-spacing:.02em;
	color:var(--vc-td-brand);
}
.vc-timed-timeline__age{
	font-size:.78rem;
	font-weight:600;
	color:#5b6b82;
}
.vc-timed-timeline__steps{
	list-style:none;
	margin:0;
	padding:0;
	display:grid;
	grid-template-columns:repeat(3,minmax(0,1fr));
	gap:10px;
	position:relative;
}
.vc-timed-timeline__steps::before{
	content:"";
	position:absolute;
	left:12%;
	right:12%;
	top:14px;
	height:3px;
	border-radius:999px;
	background:linear-gradient(90deg,var(--vc-td-brand),var(--vc-td-accent));
	opacity:.35;
	z-index:0;
}
.vc-timed-timeline__step{
	position:relative;
	z-index:1;
	display:flex;
	flex-direction:column;
	align-items:center;
	text-align:center;
	gap:6px;
	padding:0 2px 2px;
	transition:transform .25s ease;
}
.vc-timed-timeline__marker{
	width:16px;
	height:16px;
	border-radius:50%;
	background:#fff;
	border:3px solid var(--vc-td-line);
	box-shadow:0 0 0 4px rgba(255,255,255,.7);
	transition:transform .25s ease,border-color .25s ease,background .25s ease,box-shadow .25s ease;
}
.vc-timed-timeline__meta{display:flex;flex-direction:column;gap:2px;min-width:0}
.vc-timed-timeline__label{
	font-size:.72rem;
	font-weight:700;
	line-height:1.25;
	color:#334155;
}
.vc-timed-timeline__hint{
	font-size:.68rem;
	font-weight:600;
	color:#64748b;
}
.vc-timed-timeline__price{
	font-size:.95rem;
	font-weight:800;
	color:var(--vc-td-ink);
	letter-spacing:-.01em;
}
.vc-timed-timeline__step.is-active{
	transform:translateY(-2px);
}
.vc-timed-timeline__step.is-active .vc-timed-timeline__marker{
	border-color:var(--vc-td-accent);
	background:linear-gradient(135deg,var(--vc-td-brand),var(--vc-td-accent));
	box-shadow:0 0 0 5px rgba(4,184,216,.22),0 6px 16px rgba(4,69,175,.28);
	animation:vcTimedPulse 1.8s ease-in-out infinite;
}
.vc-timed-timeline__step.is-active .vc-timed-timeline__label,
.vc-timed-timeline__step.is-active .vc-timed-timeline__price{
	color:var(--vc-td-brand);
}
.vc-timed-timeline__step.is-active .vc-timed-timeline__hint{
	color:var(--vc-td-accent);
}

.vc-timed-price{display:inline-flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.vc-timed-price__was{opacity:.55;font-weight:600;text-decoration:line-through}
.vc-timed-price__is{font-weight:800;color:var(--vc-td-brand,#0445AF);text-decoration:none}

/* Card / loop rail */
.vc-timed-rail{
	--vc-td-brand:#0445AF;
	--vc-td-accent:#04B8D8;
	display:grid;
	grid-template-columns:repeat(3,minmax(0,1fr));
	gap:6px;
	position:relative;
	width:100%;
	margin-top:2px;
	animation:vcTimedIn .4s ease both;
}
.vc-timed-rail__track{
	position:absolute;
	left:10%;
	right:10%;
	top:7px;
	height:2px;
	border-radius:999px;
	background:linear-gradient(90deg,var(--vc-td-brand),var(--vc-td-accent));
	opacity:.3;
}
.vc-timed-rail__step{
	position:relative;
	z-index:1;
	display:flex;
	flex-direction:column;
	align-items:center;
	gap:3px;
	text-align:center;
}
.vc-timed-rail__dot{
	width:10px;
	height:10px;
	border-radius:50%;
	background:#fff;
	border:2px solid #b7c9e4;
}
.vc-timed-rail__amount{
	font-size:.78rem;
	font-weight:800;
	line-height:1.15;
	color:#0b1f3a;
}
.vc-timed-rail__amount .woocommerce-Price-amount{font-size:inherit;font-weight:inherit}
.vc-timed-rail__badge{
	font-size:.62rem;
	font-weight:700;
	letter-spacing:.02em;
	color:#64748b;
	line-height:1.1;
}
.vc-timed-rail__step.is-active .vc-timed-rail__dot{
	border-color:transparent;
	background:linear-gradient(135deg,var(--vc-td-brand),var(--vc-td-accent));
	box-shadow:0 0 0 3px rgba(4,184,216,.25);
	animation:vcTimedPulse 1.8s ease-in-out infinite;
}
.vc-timed-rail__step.is-active .vc-timed-rail__amount{color:var(--vc-td-brand)}
.vc-timed-rail__step.is-active .vc-timed-rail__badge{color:var(--vc-td-accent)}

.vc-home-product__price .vc-timed-rail{margin-top:4px}
.price .vc-timed-rail{display:grid}

/* Seller form preview + toggle */
.vc-timed-opt{
	position:relative;
	display:flex!important;
	align-items:flex-start;
	gap:12px;
	margin:10px 0 4px;
	padding:12px;
	width:100%;
	box-sizing:border-box;
	border:2px solid #cbd5e1;
	border-radius:12px;
	background:#f8fafc;
	font-size:15px;
	font-weight:700;
	color:#0f172a;
	text-align:left;
	cursor:pointer;
	transition:border-color .15s ease,background .15s ease,opacity .15s ease;
}
.vc-timed-opt.is-disabled{opacity:.45;pointer-events:none}
.vc-timed-opt.is-on,.vc-timed-opt:has(.vc-timed-opt__input:checked){
	border-color:#0445AF;
	background:#e8f1ff;
}
.vc-timed-opt__input{
	position:absolute!important;
	opacity:0!important;
	width:28px!important;
	height:28px!important;
	pointer-events:none!important;
}
.vc-timed-opt__box{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	width:28px;
	height:28px;
	flex:0 0 28px;
	margin-top:1px;
	border:2px solid #0445AF;
	border-radius:7px;
	background:#fff;
	box-sizing:border-box;
}
.vc-timed-opt.is-on .vc-timed-opt__box,
.vc-timed-opt__input:checked + .vc-timed-opt__box{
	background:#0445AF;
	border-color:#0445AF;
}
.vc-timed-opt.is-on .vc-timed-opt__box::after,
.vc-timed-opt__input:checked + .vc-timed-opt__box::after{
	content:"";
	width:7px;
	height:13px;
	margin-top:-2px;
	border:solid #fff;
	border-width:0 3px 3px 0;
	transform:rotate(45deg);
}
.vc-timed-opt__copy{display:flex;flex-direction:column;gap:2px;min-width:0}
.vc-timed-opt__title{font-weight:800;color:#0445AF;line-height:1.25}
.vc-timed-opt__desc{font-size:12.5px;font-weight:600;color:#475569;line-height:1.35}

.vc-timed-preview{
	margin:8px 0 4px;
	padding:12px;
	border-radius:14px;
	background:
		radial-gradient(110% 90% at 0% 0%, rgba(4,184,216,.14), transparent 55%),
		linear-gradient(165deg,#f8fbff,#eef5ff);
	border:1px solid rgba(4,69,175,.12);
	animation:vcTimedIn .35s ease both;
}
.vc-timed-preview[hidden],
.vc-quick-product__form>.vc-timed-preview[hidden],
#wcfm-main-contentainer .vc-timed-preview[hidden]{display:none!important}
.vc-timed-preview__lead{
	margin:0 0 12px;
	font-size:13px;
	font-weight:700;
	line-height:1.4;
	color:#0b1f3a;
	text-align:left;
}
.vc-timed-preview__lead--prices{margin-top:12px;color:#334155;font-weight:700;font-size:12.5px}
.vc-timed-date{
	display:grid;
	grid-template-columns:minmax(0,0.7fr) minmax(0,1.2fr) minmax(0,0.85fr);
	gap:8px;
	margin:0 0 4px;
}
.vc-timed-date__field{
	display:flex;
	flex-direction:column;
	gap:4px;
	min-width:0;
	margin:0;
}
.vc-timed-date__label{
	font-size:11px;
	font-weight:700;
	letter-spacing:.02em;
	text-transform:uppercase;
	color:#64748b;
}
.vc-timed-date__select{
	width:100%;
	min-height:44px;
	padding:10px 12px;
	border:1.5px solid #c5d4ea;
	border-radius:12px;
	background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230445AF' d='M1.1 1.2 6 6.1l4.9-4.9 1.1 1.1L6 8.3.0 2.3z'/%3E%3C/svg%3E") no-repeat right 12px center;
	background-size:12px 8px;
	appearance:none;
	-webkit-appearance:none;
	font-size:15px;
	font-weight:700;
	color:#0b1f3a;
	box-shadow:0 1px 0 rgba(4,69,175,.04);
}
.vc-timed-date__select:focus{
	outline:2px solid #04B8D8;
	outline-offset:2px;
	border-color:#0445AF;
}
.vc-timed-preview__steps{
	list-style:none;
	margin:0;
	padding:0;
	display:grid;
	gap:8px;
}
.vc-timed-preview__step{
	display:grid;
	grid-template-columns:1fr auto;
	grid-template-rows:auto auto;
	column-gap:10px;
	row-gap:1px;
	align-items:center;
	padding:8px 10px;
	border-radius:10px;
	background:rgba(255,255,255,.72);
	border:1px solid transparent;
}
.vc-timed-preview__step.is-active{
	border-color:rgba(4,69,175,.25);
	box-shadow:0 4px 14px rgba(4,69,175,.1);
}
.vc-timed-preview__label{font-size:13px;font-weight:800;color:#0445AF}
.vc-timed-preview__hint{grid-column:1;font-size:11.5px;font-weight:600;color:#64748b}
.vc-timed-preview__amount{
	grid-row:1 / span 2;
	grid-column:2;
	font-size:15px;
	font-weight:800;
	color:#0b1f3a;
}

@keyframes vcTimedIn{
	from{opacity:0;transform:translateY(6px)}
	to{opacity:1;transform:none}
}
@keyframes vcTimedPulse{
	0%,100%{box-shadow:0 0 0 4px rgba(4,184,216,.18),0 4px 12px rgba(4,69,175,.2)}
	50%{box-shadow:0 0 0 7px rgba(4,184,216,.28),0 6px 16px rgba(4,69,175,.28)}
}

@media(max-width:480px){
	.vc-timed-timeline__label{font-size:.66rem}
	.vc-timed-timeline__price{font-size:.86rem}
	.vc-timed-rail__amount{font-size:.72rem}
}
