.order {
	appearance: none;
	border: 0;
	background: #1c212e;
	position: relative;
	height: 63px;
	width: 240px;
	padding: 0;
	outline: none;
	cursor: pointer;
	border-radius: 32px;
	-webkit-mask-image: -webkit-radial-gradient(white, black);
	-webkit-tap-highlight-color: transparent;
	overflow: hidden;
	transition: transform 0.3s ease;
}

.order span {
	position: absolute;
	left: 0;
	right: 0;
	text-align: center;
	top: 19px;
	line-height: 24px;
	color: #fff;
	font-size: 16px;
	font-weight: 500;
	opacity: 1;
	transition: opacity 0.3s ease;
}

.order span.default {
	transition-delay: 0.3s;
}

.order span.success svg {
	width: 12px;
	height: 10px;
	display: inline-block;
	vertical-align: top;
	fill: none;
	margin: 7px 4px;
	stroke:#168f78;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 16px;
	stroke-dashoffset: 0;
	transition: stroke-dashoffset 0.3s ease;
}

.order span.success {
	stroke-dashoffset: 16px;
	opacity: 0;
}

.order:active {
	transform: scale(0.96);
}

.order .lines {
	opacity: 0;
	position: absolute;
	height: 3px;
	background: #fff;
	border-radius: 2px;
	width: 6px;
	top: 30px;
	left: 100%;
	box-shadow: 15px 0 0 #fff, 30px 0 0 #fff, 45px 0 0 #fff, 60px 0 0 #fff,
		75px 0 0 #fff, 90px 0 0 #fff, 105px 0 0 #fff, 120px 0 0 #fff,
		135px 0 0 #fff, 150px 0 0 #fff, 165px 0 0 #fff, 180px 0 0 #fff,
		195px 0 0 #fff, 210px 0 0 #fff, 225px 0 0 #fff, 240px 0 0 #fff,
		255px 0 0 #fff, 270px 0 0 #fff, 285px 0 0 #fff, 300px 0 0 #fff,
		315px 0 0 #fff, 330px 0 0 #fff;
}

.order .back,
.order .box {
	border-radius: 2px;
	background: linear-gradient(#fff, #cdd9ed);
	position: absolute;
}

.order .truck {
	width: 60px;
	height: 41px;
	left: 100%;
	z-index: 1;
	top: 11px;
	position: absolute;
	transform: translateX(24px);
}

.order .truck:before,
.order .truck:after {
	content: "";
	height: 2px;
	width: 20px;
	right: 58px;
	position: absolute;
	display: block;
	background: #fff;
	border-radius: 1px;
	transform-origin: 100% 50%;
}

.order .truck:before {
	transform: rotate(-90deg);
	top: 4px;
}

.order .truck:after {
	transform: rotate(90deg);
	bottom: 4px;
}

.order .truck .back {
	left: 0;
	top: 0;
	width: 60px;
	height: 41px;
	z-index: 1;
}

.order .truck .front {
	overflow: hidden;
	position: absolute;
	border-radius: 2px 9px 9px 2px;
	width: 26px;
	height: 41px;
	left: 60px;
}

.order .truck .front:before,
.order .truck .front:after {
	content: "";
	position: absolute;
	display: block;
}

.order .truck .front:before {
	height: 13px;
	width: 2px;
	left: 0;
	top: 14px;
	background: linear-gradient(#6c7486, #3f4656);
}

.order .truck .front:after {
	border-radius: 2px 9px 9px 2px;
	background: #275efe;
	width: 24px;
	height: 41px;
	right: 0;
}

.order .truck .front .window {
	overflow: hidden;
	border-radius: 2px 8px 8px 2px;
	background: #7699ff;
	transform: perspective(4px) rotateY(3deg);
	width: 22px;
	height: 41px;
	position: absolute;
	left: 2px;
	top: 0;
	z-index: 1;
	transform-origin: 0 50%;
}

.order .truck .front .window:before,
.order .truck .front .window:after {
	content: "";
	position: absolute;
	right: 0;
}

.order .truck .front .window:before {
	top: 0;
	bottom: 0;
	width: 14px;
	background: #1c212e;
}

.order .truck .light:before {
	content: "";
	height: 4px;
	width: 7px;
	opacity: 0;
	transform: perspective(2px) rotate(-15deg) scaleX(0.94);
	position: absolute;
	transform-origin: 0 50%;
	left: 3px;
	top: 50%;
	margin-top: 2px;
	background: linear-gradient(90deg, #f0dc5f, rgba(240, 220, 95, 0.7), rgba(240, 220, 95, 0));
}

.order .truck .light.top {
	top: 4px;
}

.order .truck .light.bottom {
	bottom: 4px;
}

.order .box {
	width: 21px;
	height: 21px;
	right: 100%;
	top: 21px;
}

.order .truck.front .window:after {
	width: 14px;
	top: 7px;
	height: 4px;
	position: absolute;
	background: rgba(255, 255, 255, 0.14);
	transform: skewY(14deg);
	box-shadow: 0 7px rgba(255, 255, 255, 0.14);
}

.order .truck .light {
	width: 3px;
	height: 8px;
	left: 83px;
	transform-origin: 100% 50%;
	position: absolute;
	border-radius: 2px;
	transform: scaleX(0.8);
	background: #f0dc5f;
}

.order .box:before,
.order .box:after {
	content: "";
	top: 10px;
	position: absolute;
	left: 0;
	right: 0;
}

.order .box:before {
	height: 3px;
	margin-top: -1px;
	background: rgba(0, 0, 0, 0.1);
}

.order .box:after {
	height: 1px;
	background: rgba(0, 0, 0, 0.15);
}

.order.animate .default {
	opacity: 0;
	transition-delay: 0s;
}

.order.animate .success {
	stroke-dashoffset: 0;
	opacity: 1;
	transition-delay: 7s;
}

.order.animate .success svg {
	transition-delay: 7.3s;
}

.order.animate .truck {
	animation: truck 10s ease forwards;
}

.order.animate .truck:before {
	animation: door1 2.4s ease forwards 0.3s;
}

.order.animate .truck:after {
	animation: door2 2.4s ease forwards 0.6s;
}

.order.animate .truck .light:before,
.order.animate .truck .light:after {
	animation: light 10s ease forwards;
}

.order.animate .box {
	animation: box 10s ease forwards;
}

.order.animate .lines {
	animation: lines 10s ease forwards;
}

@keyframes truck {
	10%, 30% {
		transform: translateX(-164px);
	} 40% {
		transform: translateX(-104px);
	} 60% {
		transform: translateX(-224px);
	} 75%, 100% {
		transform: translateX(24px);
	}
}

@keyframes lines {
	0%, 30% {
		opacity: 0;
		transform: scaleY(0.7) translateX(0);
	} 35%, 65% {
		opacity: 1;
	} 70% {
		opacity: 0;
	} 100% {
		transform: scaleY(0.7) translateX(-400px);
	}
}

@keyframes light {
	0%, 30% {
		opacity: 0;
		transform: perspective(2px) rotateY(-15deg) scaleX(0.88);
	} 40%, 100% {
		opacity: 1;
		transform: perspective(2px) rotateY(-15deg) scaleX(0.94);
	}
}

@keyframes door1 {
	30%, 50% {
		transform: rotate(32deg);
	}
}

@keyframes door2 {
	30%, 50% {
		transform: rotate(-32deg);
	}
}

@keyframes box {
	8%, 10% {
		transform: translateX(40px);
		opacity: 1;
	} 25% {
		transform: translateX(112px);
		opacity: 1;
	} 26% {
		transform: translateX(112px);
		opacity: 0;
	} 27%, 100% {
		transform: translateX(0px);
		opacity: 0;
	}
}