.fgbfw-bar-root {
	width: 100%;
}

.fgbfw-bar-root.sitewide {
	clear: both;
	flex: 0 0 100%;
	position: relative;
	z-index: 1;
	margin-top: 12px;
}

.fgbfw-bar-root.fgbfw-bar--pending {
	display: none;
}

.fgbfw-bar-root.fgbfw-bar--ready {
	display: block;
}

.fgbfw-bar {
	box-sizing: border-box;
	margin: 0 auto 18px;
	padding: 16px 18px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
	color: #1d2327;
	max-width: min(1120px, calc(100% - 32px));
	width: 100%;
}

.fgbfw-bar__content {
	display: flex;
	align-items: center;
	gap: 14px;
}

.fgbfw-bar__icon {
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	object-fit: contain;
}

.fgbfw-bar__body {
	flex: 1 1 auto;
	min-width: 0;
}

.fgbfw-bar__message {
	margin: 0 0 12px;
	font-size: 15px;
	line-height: 1.4;
	font-weight: 600;
}

.fgbfw-bar__gift-link {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.fgbfw-bar__gift-link:hover,
.fgbfw-bar__gift-link:focus {
	text-decoration-thickness: 2px;
}

/* Progress track + tier milestones */
.fgbfw-bar__progress {
	position: relative;
	padding-bottom: 22px;
}

.fgbfw-bar__track {
	overflow: hidden;
	height: 10px;
	border-radius: 999px;
	background: #e7edf2;
	box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.fgbfw-bar__fill {
	height: 100%;
	min-width: 0;
	border-radius: inherit;
	box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.12);
	transition: width 320ms ease;
}

.fgbfw-bar__markers {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 10px;
	pointer-events: none;
}

.fgbfw-bar__marker {
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	flex-direction: column;
	align-items: center;
}

.fgbfw-bar__marker-dot {
	position: relative;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #ffffff;
	border: 2px solid #c3ccd6;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
	transition: border-color 200ms ease, background-color 200ms ease;
}

.fgbfw-bar__marker.is-unlocked .fgbfw-bar__marker-dot {
	background: #00a32a;
	border-color: #00a32a;
}

.fgbfw-bar__marker.is-unlocked .fgbfw-bar__marker-dot::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 4px;
	width: 3px;
	height: 6px;
	border: solid #ffffff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.fgbfw-bar__marker-label {
	position: absolute;
	top: 16px;
	font-size: 11px;
	line-height: 1.2;
	font-weight: 600;
	color: #64748b;
	white-space: nowrap;
}

.fgbfw-bar__marker.is-unlocked .fgbfw-bar__marker-label {
	color: #1d2327;
}

.fgbfw-bar--unlocked {
	border-color: #b8dbc5;
	background: linear-gradient(180deg, #ffffff 0%, #f3fbf6 100%);
}

.fgbfw-gift-quantity {
	display: inline-block;
	min-width: 2em;
	text-align: center;
}

.fgbfw-free-gift-cart-item .product-name,
.fgbfw-free-gift-cart-item .wc-block-cart-item__product {
	font-weight: 600;
}

@media (max-width: 480px) {
	.fgbfw-bar__content {
		align-items: flex-start;
	}

	.fgbfw-bar__icon {
		width: 32px;
		height: 32px;
	}

	.fgbfw-bar__marker-label {
		font-size: 10px;
	}
}
