.exito-delivery-checkout-experience {
	--exito-xp-ink: #111c35;
	--exito-xp-blue: #246fe5;
	--exito-xp-blue-dark: #174ea7;
	position: fixed;
	inset: 0;
	z-index: 99990;
	display: grid;
	place-items: center;
	padding: 24px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .16s ease, visibility 0s linear .16s;
	font-family: inherit;
	box-sizing: border-box;
}

.exito-delivery-checkout-experience *,
.exito-delivery-checkout-experience *::before,
.exito-delivery-checkout-experience *::after { box-sizing: border-box; }

.exito-delivery-checkout-experience.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition: opacity .16s ease, visibility 0s;
}

.exito-delivery-checkout-experience.is-leaving { pointer-events: none; }

.exito-delivery-checkout-experience__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(241, 245, 250, .5);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}

.exito-delivery-checkout-experience__card {
	position: relative;
	width: min(460px, 100%);
	padding: 26px 28px 25px;
	border: 1px solid rgba(17, 28, 53, .09);
	border-radius: 18px;
	background: rgba(255, 255, 255, .76);
	box-shadow: 0 8px 24px rgba(17, 28, 53, .07);
	text-align: center;
	color: var(--exito-xp-ink);
	overflow: hidden;
}

.exito-delivery-checkout-experience__scene {
	position: relative;
	width: 340px;
	height: 160px;
	margin: 0 auto 12px;
	overflow: hidden;
}

.exito-delivery-checkout-experience__route {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 20px;
	height: 2px;
	border-radius: 4px;
	background: rgba(17, 28, 53, .14);
}

.exito-delivery-checkout-experience__route::before,
.exito-delivery-checkout-experience__route::after {
	content: '';
	position: absolute;
	top: -4px;
	width: 10px;
	height: 10px;
	border: 2px solid var(--exito-xp-blue);
	border-radius: 50%;
	background: #fff;
}

.exito-delivery-checkout-experience__route::before { left: 3px; }
.exito-delivery-checkout-experience__route::after { right: 3px; }

.exito-delivery-checkout-experience__route i {
	position: absolute;
	left: 25px;
	right: 25px;
	top: -1px;
	height: 2px;
	background: repeating-linear-gradient(90deg, var(--exito-xp-blue) 0 9px, transparent 9px 17px);
	background-size: 34px 2px;
	opacity: .48;
}

.exito-delivery-checkout-experience__van {
	position: absolute;
	z-index: 3;
	left: 64px;
	top: 55px;
	width: 204px;
	height: 82px;
	transform: translateX(-285px);
}

.exito-delivery-checkout-experience__van-cargo {
	position: absolute;
	left: 0;
	top: 7px;
	width: 125px;
	height: 63px;
	border-radius: 9px 4px 3px 7px;
	background: linear-gradient(145deg, #2d7aec, var(--exito-xp-blue));
	box-shadow: inset 0 -8px 0 rgba(0, 0, 0, .06);
}

.exito-delivery-checkout-experience__van-cargo > i {
	position: absolute;
	left: 15px;
	top: 16px;
	display: none;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 30px;
	padding: 3px 6px;
	border-radius: 6px;
	background: rgba(255, 255, 255, .94);
	font-style: normal;
	box-shadow: 0 2px 8px rgba(16, 35, 64, .12);
	overflow: hidden;
}

.exito-delivery-checkout-experience__van-cargo > i.has-logo {
	display: flex;
}

.exito-delivery-checkout-experience__van-brand img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.exito-delivery-checkout-experience__van-door {
	position: absolute;
	z-index: 4;
	left: 7px;
	top: 12px;
	width: 110px;
	height: 54px;
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 5px 2px 2px 5px;
	background: var(--exito-xp-blue-dark);
	transform: scaleX(.05);
	transform-origin: right center;
	opacity: .25;
}

.exito-delivery-checkout-experience__van-door::after {
	content: '';
	position: absolute;
	right: 9px;
	top: 24px;
	width: 10px;
	height: 3px;
	border-radius: 3px;
	background: rgba(255, 255, 255, .7);
}

.exito-delivery-checkout-experience__van-cabin {
	position: absolute;
	left: 120px;
	top: 19px;
	width: 75px;
	height: 51px;
	border-radius: 5px 18px 6px 3px;
	background: #eef2f8;
	box-shadow: inset 0 -8px 0 #d8dee9;
}

.exito-delivery-checkout-experience__van-cabin::before {
	content: '';
	position: absolute;
	left: 9px;
	top: -12px;
	width: 42px;
	height: 23px;
	border-radius: 7px 15px 0 0;
	background: #eef2f8;
	transform: skewX(17deg);
}

.exito-delivery-checkout-experience__van-window {
	position: absolute;
	left: 23px;
	top: -7px;
	width: 29px;
	height: 20px;
	border-radius: 4px 10px 2px 2px;
	background: #2f3b55;
	transform: skewX(15deg);
}

.exito-delivery-checkout-experience__van-light {
	position: absolute;
	right: -2px;
	top: 28px;
	width: 7px;
	height: 10px;
	border-radius: 2px 5px 5px 2px;
	background: #ffd961;
	box-shadow: 8px 0 14px rgba(255, 217, 97, .55);
}

.exito-delivery-checkout-experience__wheel {
	position: absolute;
	z-index: 5;
	top: 57px;
	width: 27px;
	height: 27px;
	border: 6px solid #263148;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 0 rgba(0, 0, 0, .12);
}

.exito-delivery-checkout-experience__wheel i {
	position: absolute;
	inset: 4px;
	border-radius: 50%;
	background: var(--exito-xp-blue);
}

.exito-delivery-checkout-experience__wheel i::after {
	content: '';
	position: absolute;
	left: 50%;
	top: -4px;
	width: 2px;
	height: 15px;
	background: #fff;
	transform: translateX(-50%);
}

.exito-delivery-checkout-experience__wheel--back { left: 23px; }
.exito-delivery-checkout-experience__wheel--front { right: 18px; }

.exito-delivery-checkout-experience__item {
	position: absolute;
	z-index: 4;
	top: 10px;
	left: 116px;
	width: 27px;
	height: 31px;
	border: 1px solid #b68b4d;
	border-radius: 3px;
	background: linear-gradient(145deg, #f4d39d, #dca65b);
	box-shadow: inset 0 -5px 0 rgba(112, 69, 20, .08), 0 4px 10px rgba(17, 28, 53, .09);
	opacity: 0;
}

.exito-delivery-checkout-experience__item::before {
	content: '';
	position: absolute;
	left: 50%;
	top: 0;
	width: 5px;
	height: 100%;
	background: rgba(255, 244, 220, .6);
	transform: translateX(-50%);
}

.exito-delivery-checkout-experience__item--two { left: 97px; width: 24px; height: 26px; }
.exito-delivery-checkout-experience__item--three { left: 128px; width: 22px; height: 25px; }
.exito-delivery-checkout-experience[data-item-count="1"] .exito-delivery-checkout-experience__item--two,
.exito-delivery-checkout-experience[data-item-count="1"] .exito-delivery-checkout-experience__item--three,
.exito-delivery-checkout-experience[data-item-count="2"] .exito-delivery-checkout-experience__item--three { display: none; }

.exito-delivery-checkout-experience__motion {
	position: absolute;
	z-index: 1;
	left: 24px;
	top: 77px;
	width: 43px;
	height: 2px;
	border-radius: 4px;
	background: var(--exito-xp-blue);
	opacity: 0;
}

.exito-delivery-checkout-experience__motion--two { left: 38px; top: 91px; width: 29px; }

.exito-delivery-checkout-experience__complete {
	position: absolute;
	z-index: 6;
	left: 50%;
	top: 52px;
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	border: 2px solid rgba(36, 111, 229, .16);
	border-radius: 50%;
	background: rgba(255, 255, 255, .94);
	box-shadow: 0 9px 24px rgba(36, 111, 229, .14);
	color: var(--exito-xp-blue);
	font: 800 25px/1 Arial, sans-serif;
	opacity: 0;
	transform: translate(-50%, 8px) scale(.65);
}

.exito-delivery-checkout-experience__title {
	display: block;
	margin: 0 0 7px;
	font-size: clamp(19px, 4vw, 23px);
	font-weight: 750;
	line-height: 1.25;
	letter-spacing: -.02em;
}

.exito-delivery-checkout-experience__status {
	display: block;
	min-height: 22px;
	font-size: 14px;
	line-height: 1.55;
	color: #667086;
}

.exito-delivery-checkout-experience__line {
	display: block;
	position: relative;
	width: 92px;
	height: 3px;
	margin: 18px auto 0;
	border-radius: 9px;
	background: #e8edf5;
	overflow: hidden;
}

.exito-delivery-checkout-experience__line i {
	position: absolute;
	inset: 0 auto 0 0;
	width: 42%;
	border-radius: inherit;
	background: var(--exito-xp-blue);
	transform: translateX(-120%);
}

.exito-delivery-checkout-experience.is-active .exito-delivery-checkout-experience__route i { animation: exito-xp-road .65s linear infinite; }
.exito-delivery-checkout-experience.is-active .exito-delivery-checkout-experience__van {
	animation: exito-xp-arrive .48s .05s cubic-bezier(.2,.8,.25,1) forwards, exito-xp-cruise .72s 1.45s ease-in-out infinite alternate;
}
.exito-delivery-checkout-experience.is-active .exito-delivery-checkout-experience__item--one { animation: exito-xp-load .35s .48s cubic-bezier(.2,.75,.25,1) forwards; }
.exito-delivery-checkout-experience.is-active .exito-delivery-checkout-experience__item--two { animation: exito-xp-load .35s .66s cubic-bezier(.2,.75,.25,1) forwards; }
.exito-delivery-checkout-experience.is-active .exito-delivery-checkout-experience__item--three { animation: exito-xp-load .35s .84s cubic-bezier(.2,.75,.25,1) forwards; }
.exito-delivery-checkout-experience.is-active .exito-delivery-checkout-experience__van-door { animation: exito-xp-door .3s 1.12s ease forwards; }
.exito-delivery-checkout-experience.is-active .exito-delivery-checkout-experience__wheel { animation: exito-xp-wheel .38s linear infinite; }
.exito-delivery-checkout-experience.is-active .exito-delivery-checkout-experience__motion--one { animation: exito-xp-motion .65s 1.55s ease-out infinite; }
.exito-delivery-checkout-experience.is-active .exito-delivery-checkout-experience__motion--two { animation: exito-xp-motion .65s 1.78s ease-out infinite; }
.exito-delivery-checkout-experience.is-active .exito-delivery-checkout-experience__line i { animation: exito-xp-line 1.15s .18s ease-in-out infinite; }

.exito-delivery-checkout-experience.is-completing .exito-delivery-checkout-experience__van {
	animation: exito-xp-depart .34s cubic-bezier(.55,.05,.75,.35) forwards;
}

@keyframes exito-xp-arrive { from { transform: translateX(-285px); } to { transform: translateX(0); } }
@keyframes exito-xp-cruise { from { transform: translateX(0) translateY(0); } to { transform: translateX(0) translateY(-2px); } }
@keyframes exito-xp-depart { from { transform: translateX(0); } to { transform: translateX(350px); } }
@keyframes exito-xp-load {
	0% { opacity: 0; transform: translateY(-28px) rotate(-7deg) scale(.9); }
	20%, 72% { opacity: 1; }
	100% { opacity: 0; transform: translateY(75px) rotate(2deg) scale(.72); }
}
@keyframes exito-xp-door { to { opacity: 1; transform: scaleX(1); } }
@keyframes exito-xp-wheel { to { transform: rotate(360deg); } }
@keyframes exito-xp-road { to { background-position-x: 34px; } }
@keyframes exito-xp-motion {
	0% { opacity: 0; transform: translateX(22px) scaleX(.3); }
	35% { opacity: .5; }
	100% { opacity: 0; transform: translateX(-20px) scaleX(1); }
}
@keyframes exito-xp-complete { to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes exito-xp-complete-idle { 0%, 100% { transform: translate(-50%, 0) scale(1); } 50% { transform: translate(-50%, -2px) scale(1.03); } }
@keyframes exito-xp-line { 0% { transform: translateX(-120%); } 55%, 100% { transform: translateX(340%); } }

body.exito-delivery-checkout-experience-active { overflow: hidden; }

@media (max-width: 520px) {
	.exito-delivery-checkout-experience { padding: 16px; }
	.exito-delivery-checkout-experience__card { padding: 22px 16px 23px; border-radius: 16px; }
	.exito-delivery-checkout-experience__scene { width: 290px; max-width: 100%; height: 145px; transform: scale(.92); transform-origin: center bottom; margin-top: -5px; }
	.exito-delivery-checkout-experience__van { left: 40px; }
}

@media (prefers-reduced-motion: reduce) {
	.exito-delivery-checkout-experience,
	.exito-delivery-checkout-experience * {
		animation-duration: .001ms !important;
		animation-delay: 0s !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
	}
	.exito-delivery-checkout-experience__item,
	.exito-delivery-checkout-experience__motion { display: none !important; }
	.exito-delivery-checkout-experience__van { transform: translateX(0); }
	.exito-delivery-checkout-experience__van-door { opacity: 1; transform: scaleX(1); }
	.exito-delivery-checkout-experience__complete { display: none; }
}
