/**
 * "ارسال امروز" box: purple with a countdown before the cut-off, light purple after it.
 */

.zm-ship {
	position: relative;
	margin: 18px 0;
	padding: 14px 16px;
	overflow: hidden;
	color: var(--zm-color-primary, #732bed);
	background: color-mix(in srgb, var(--zm-color-primary, #732bed) 8%, #ffffff);
	border-radius: 22px;
	isolation: isolate;
}

.zm-ship[hidden] {
	display: none;
}

.zm-ship.is-today {
	padding: 16px;
	color: #ffffff;
	background:
		radial-gradient(circle at 15% 0, rgba(255, 255, 255, 0.18), transparent 40%),
		linear-gradient(135deg, var(--zm-color-primary, #732bed), color-mix(in srgb, var(--zm-color-primary, #732bed) 50%, var(--zm-color-accent, #c01dfb)) 60%, var(--zm-color-accent, #c01dfb));
}

/* Faint hexagon pattern, as on the purple bands of the home page. */
.zm-ship.is-today::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='92' height='160'%3E%3Cpath d='M46 0v26L0 53v54l46 27v26M46 26l46 27v54l-46 27' fill='none' stroke='%23fff' stroke-opacity='.06' stroke-width='12'/%3E%3C/svg%3E") 0 0 / 70px 122px;
}

.zm-ship__row {
	display: flex;
	align-items: center;
	gap: 12px;
}

.zm-ship__icon {
	display: grid;
	flex: 0 0 44px;
	place-items: center;
	height: 44px;
	background: color-mix(in srgb, currentColor 14%, transparent);
	border-radius: 14px;
}

.zm-ship__icon svg {
	width: 24px;
	height: 24px;
}

.zm-ship.is-today .zm-ship__icon svg {
	animation: zm-ship-drive 2.4s ease-in-out infinite;
}

@keyframes zm-ship-drive {
	0%,
	100% {
		transform: translateX(0);
	}

	50% {
		transform: translateX(-3px);
	}
}

.zm-ship__body {
	min-width: 0;
}

.zm-ship__title {
	margin: 0;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.6;
}

.zm-ship__text {
	margin: 2px 0 0;
	font-size: 12.5px;
	line-height: 1.8;
	color: var(--zm-color-text, #394454);
}

.zm-ship.is-today .zm-ship__text {
	color: inherit;
	opacity: 0.88;
}

.zm-ship__clock {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 14px;
	direction: ltr;
}

.zm-ship__clock[hidden],
.zm-ship__bar[hidden] {
	display: none;
}

.zm-ship__unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 54px;
	padding: 6px 0;
	background: rgba(255, 255, 255, 0.14);
	border-radius: 12px;
}

.zm-ship__unit b {
	font-size: 19px;
	line-height: 1.3;
	font-variant-numeric: tabular-nums;
}

.zm-ship__unit small {
	font-size: 10px;
	opacity: 0.8;
}

.zm-ship__sep {
	font-weight: 700;
	opacity: 0.6;
}

/* How much of today's ordering time has passed. */
.zm-ship__bar {
	height: 5px;
	margin-top: 14px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 999px;
}

.zm-ship__bar span {
	display: block;
	width: 0;
	height: 100%;
	background: #ffffff;
	border-radius: inherit;
	box-shadow: 0 0 12px rgba(255, 255, 255, 0.7);
	transition: width 1s linear;
}

@media (prefers-reduced-motion: reduce) {
	.zm-ship.is-today .zm-ship__icon svg {
		animation: none;
	}

	.zm-ship__bar span {
		transition: none;
	}
}