.kw-free-shipping {
	display: grid;
	gap: 10px;
}

.kw-free-shipping-bar__container {
	background: #213236;
	margin-top: -30px;
	margin-left: -30px !important;
	margin-right: -30px !important;
	padding: 30px;
	padding-bottom: 0px;
	margin-bottom: 50px;
}

.nav-dropdown .kw-free-shipping {
	min-width: 300px;
}

.kw-free-shipping__bar {
	background: #ddd;
	border-radius: 5px;
	height: 8px;
	width: 100%;
	margin-top: 10px;
	margin-bottom: 30px;
}

.kw-free-shipping__bar {
	position: relative;
	height: 8px;
	background-color: #82a521;
}


.kw-free-shipping__bar--striped {
	background-color: #365153;
}

.kw-free-shipping__bar-progress {
	background: #31B6A6;
	border-radius: 5px;
	display: block;
	height: 8px;
}

.kw-free-shipping__notice {
	font-weight: 500;
	font-size: 17px;
	line-height: 21px;
	background: #1B2C30;
	padding: 14px 50px;
	width: calc(100% + 60px);
	margin: 0 -30px !important;
	color: #fff;
	font-weight: 600;
}

.kw-free-shipping__back-to-shop {
	font-weight: 500;
	font-size: 17px;
	line-height: 21px;
	background: var(--color-3);
	padding: 14px 50px;
	width: calc(100% + 60px);
	margin: 0 -30px !important;
	color: #fff;
	font-weight: 600;
}

.kw-free-shipping__back-to-shop a {
	color: #FFF!important;
	font-size: 14px;
}

.kw-free-shipping__notice span.amount {
	color: #fff;
}

.kw-free-shipping__back-to-shop {
	margin-bottom: -15px;
}

.woocommerce-checkout .kw-free-shipping-bar__container {
	margin-bottom: 0!important;
	padding-bottom: 0px;
	border-radius: 12px;
	overflow: hidden;
}

#cart-popup .kw-free-shipping__back-to-shop {
	display: none;
}


.kw-free-shipping-bar {
    position: relative;
    color: #fff;
	width: 100%;
}

/* Steps Section */
.kw-free-shipping-bar__steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    text-align: center;
}

/* Static Progress Line Behind Circles */
.kw-free-shipping-bar__steps-bar::before {
    content: "";
    position: absolute;
    top: 25px; /* Half of the circle height to center the line */
	transform: translateY(-50%);
    left: 12%;
	width: 75%;
    height: 4px;
    background-color: #365153;
    z-index: 1;
    border-radius: 2px;
}

/* Dynamic Fill Progress */
.kw-free-shipping-bar__steps-bar::after {
    content: "";
    position: absolute;
    top: 25px;
	transform: translateY(-50%);
    left: 12%;
    height: 4px;
    background-color: #31B6A6;
    width: calc(var(--bar-width, 0%) * 0.75); /* ← this is the fix */
    z-index: 2;
    border-radius: 2px;
    transition: width 0.4s ease;
}


.kw-free-shipping-bar__step {
    flex: 1;
    position: relative;
    z-index: 3; /* Ensure circles are above the line */
}

.kw-free-shipping-bar__icon {
    margin: 0 auto;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #365153;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px;
}

/* Specific Icons for Each Step */
.kw-free-shipping-bar__step--1 .kw-free-shipping-bar__icon {
    background-color: #31B6A6;
    background-image: url("images/play-white.svg");
}

.kw-free-shipping-bar__step--2 .kw-free-shipping-bar__icon {
    background-image: url("images/truck-white.svg");
}

.kw-free-shipping-bar__step--3 .kw-free-shipping-bar__icon,
.kw-free-shipping-bar__step--4 .kw-free-shipping-bar__icon {
    background-image: url("images/gift-white.svg");
}

/* Active Circle Coloring */
.kw-free-shipping-bar__step--active .kw-free-shipping-bar__icon {
    background-color: #31B6A6;
}

.kw-free-shipping-bar__step--active .kw-free-shipping-bar__is-completed {
    background-image: url("images/checkmark.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
    color: transparent;
    font-size: 0; /* Fully hide text */
    height: 18px; /* Optional: match icon height */
	display: block;
}

.kw-free-shipping-bar__label {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
	display: flex;
    flex-direction: column;
	text-transform: uppercase;
}

/* Optional: Responsive Adjustments */
@media (max-width: 600px) {
    .kw-free-shipping-bar__icon {
        width: 40px;
        height: 40px;
    }
	
	.kw-free-shipping-bar__steps-bar::before,
	.kw-free-shipping-bar__steps-bar::after{
		top: 20px;
	}

    .kw-free-shipping-bar__label {
        font-size: 12px;
    }
}




@media only screen and (max-width: 549px){
	.kw-free-shipping__notice{
		margin: 0 -30px !important;
		width: calc(100% + 60px);
		border-radius: unset;
		padding: 14px 30px;
		font-size: 13px;
		line-height: 16px;
	}
	
	.kw-free-shipping-bar__container{
		margin-bottom: 30px;
	}
}
