.yuki-free-delivery-bar,
.yuki-free-delivery-panel {
	--yuki-free-delivery-accent: #f5b400;
	--yuki-free-delivery-dark: #173f35;
	box-sizing: border-box;
}

:root {
	--yuki-free-delivery-bar-height: 38px;
	--yuki-free-delivery-sticky-top: 0px;
}

.yuki-free-delivery-bar {
	align-items: center;
	background: var(--yuki-free-delivery-dark);
	color: #fff;
	display: flex;
	font-size: 14px;
	font-weight: 700;
	gap: 8px;
	justify-content: center;
	letter-spacing: 0.01em;
	line-height: 1.4;
	min-height: 38px;
	padding: 8px 20px 10px;
	position: sticky;
	text-align: center;
	top: var(--yuki-free-delivery-sticky-top);
	width: 100%;
	z-index: 1004;
}

.yuki-header {
	--yuki-header-sticky-offset: calc(var(--yuki-free-delivery-sticky-top) + var(--yuki-free-delivery-bar-height)) !important;
}

body.admin-bar {
	--yuki-free-delivery-sticky-top: 32px;
}

.yuki-free-delivery-bar[hidden],
.yuki-free-delivery-panel[hidden] {
	display: none !important;
}

.yuki-free-delivery-bar__icon {
	align-items: center;
	background: var(--yuki-free-delivery-accent);
	border-radius: 50%;
	color: #17241f;
	display: inline-flex;
	flex: 0 0 19px;
	font-size: 12px;
	height: 19px;
	justify-content: center;
	width: 19px;
}

.yuki-free-delivery-bar__copy {
	min-width: 0;
}

.yuki-free-delivery-bar__link,
.yuki-free-delivery-bar__link:visited,
.yuki-free-delivery-bar__link:hover,
.yuki-free-delivery-bar__link:focus {
	color: #fff !important;
	text-decoration-color: currentColor;
}

.yuki-free-delivery-bar__link {
	display: inline-block;
	font-weight: 700;
	margin-left: 10px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.yuki-free-delivery-bar__link:hover {
	text-decoration-thickness: 2px;
}

.yuki-free-delivery-bar__link:focus-visible {
	border-radius: 2px;
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.yuki-free-delivery-bar__link::before {
	content: "·";
	display: inline-block;
	margin-right: 10px;
	text-decoration: none;
}

.yuki-free-delivery-bar__link[hidden] {
	display: none !important;
}

.yuki-free-delivery-bar__track {
	background: rgb(255 255 255 / 24%);
	bottom: 0;
	height: 3px;
	left: 0;
	overflow: hidden;
	position: absolute;
	right: 0;
}

.yuki-free-delivery-bar__track > span {
	background: var(--yuki-free-delivery-accent);
	display: block;
	height: 100%;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 240ms ease;
}

.yuki-free-delivery-bar.is-achieved {
	background: #126b4f;
}

.yuki-free-delivery-panel {
	background: #f7fbf9;
	border: 1px solid #cfe2db;
	border-radius: 10px;
	color: #173f35;
	margin: 0 0 22px;
	padding: 16px;
	width: 100%;
}

.yuki-free-delivery-panel__heading {
	align-items: center;
	display: flex;
	font-size: 14px;
	font-weight: 700;
	gap: 8px;
	line-height: 1.4;
	margin: 0 0 8px;
}

.yuki-free-delivery-panel__heading::before {
	background: var(--yuki-free-delivery-accent);
	border-radius: 50%;
	color: #17241f;
	content: "✓";
	display: inline-grid;
	flex: 0 0 22px;
	font-size: 13px;
	height: 22px;
	place-items: center;
	width: 22px;
}

.yuki-free-delivery-panel__message {
	font-size: 14px;
	line-height: 1.5;
	margin: 0;
}

.yuki-free-delivery-panel__progress {
	background: #dce9e4;
	border-radius: 999px;
	height: 8px;
	margin-top: 12px;
	overflow: hidden;
}

.yuki-free-delivery-panel__progress > span {
	background: linear-gradient(90deg, #f5b400, #ef8d00);
	border-radius: inherit;
	display: block;
	height: 100%;
	transition: width 240ms ease;
	width: 0;
}

.yuki-free-delivery-panel__link {
	color: #173f35;
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	margin-top: 10px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.yuki-free-delivery-panel__link[hidden] {
	display: none !important;
}

.yuki-free-delivery-panel.is-achieved {
	background: #edf9f4;
	border-color: #93c9b6;
}

.yuki-free-delivery-panel.is-achieved .yuki-free-delivery-panel__progress > span {
	background: #16825e;
}

@media (max-width: 767px) {
	:root {
		--yuki-free-delivery-bar-height: 36px;
	}

	.yuki-free-delivery-bar {
		font-size: 12px;
		gap: 6px;
		min-height: 36px;
		padding-inline: 12px;
	}

	.yuki-free-delivery-bar__link {
		margin-left: 6px;
	}

	.yuki-free-delivery-bar__link::before {
		margin-right: 6px;
	}

	.yuki-free-delivery-panel {
		border-radius: 8px;
		margin-bottom: 16px;
		padding: 14px;
	}
}

@media (max-width: 782px) {
	body.admin-bar {
		--yuki-free-delivery-sticky-top: 46px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.yuki-free-delivery-bar__track > span,
	.yuki-free-delivery-panel__progress > span {
		transition: none;
	}
}
