/* Free Shipping Timeline Bar - Exact Image Match */

.fst-timeline-container {
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 20px 30px;
    margin: 20px auto;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fst-shop-timeline-wrapper {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.fst-message {
    text-align: center;
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 400;
    line-height: 1.5;
    width: 100%;
    word-wrap: break-word;
}

.fst-message strong {
    color: #000;
    font-weight: 700;
}

.fst-progress-wrapper {
    position: relative;
    margin-bottom: 0;
    width: 100%;
    max-width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    margin-left: -1rem;
}

.fst-progress-bar {
    width: 100%;
    height: 8px;
    background: #d0d0d0;
    border-radius: 10px;
    overflow: visible;
    position: relative;
    flex-grow: 1;
}

.fst-progress-fill {
    height: 100%;
    background: #000;
    border-radius: 10px;
    transition: width 0.6s ease;
    position: relative;
}

.fst-milestones {
    position: relative;
    height: 38px;
    margin-top: -20px;
    width: 100%;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
}

.fst-milestone {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
}

.fst-milestone-icon {
    width: 29px;
    height: 29px;
    background: #f5f5f5;
    border: 3px solid #bbb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.fst-milestone.achieved .fst-milestone-icon {
    border-color: #000;
    background: #000;
    color: #fff;
}

.fst-milestone:hover .fst-milestone-icon {
    transform: scale(1.08);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
    .fst-timeline-container {
        padding: 15px 18px;
        margin: 15px auto;
        border-radius: 10px;
    }
    
    .fst-message {
        font-size: 13px;
        margin-bottom: 12px;
        line-height: 1.4;
    }
    
    .fst-progress-bar {
        height: 6px;
    }
    
    .fst-milestone-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
        border-width: 2px;
    }
    
    .fst-milestones {
        height: 32px;
        margin-top: -16px;
    }
    
    .fst-milestone {
        top: 0;
    }
}

@media (max-width: 480px) {
    .fst-timeline-container {
        padding: 12px 12px;
        margin: 12px auto;
    }
    
    .fst-message {
        font-size: 12px;
        margin-bottom: 10px;
        line-height: 1.3;
    }
    
    .fst-progress-bar {
        height: 5px;
    }
    
    .fst-milestone-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
        border-width: 2px;
    }
    
    .fst-milestones {
        height: 28px;
        margin-top: -13px;
    }
    
    .fst-milestone {
        top: 0;
    }
}

/* Print styles */
@media print {
    .fst-timeline-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Offcanvas/Modal specific adjustments */
.popup-shopping-cart .fst-timeline-container,
.cart-threshold .fst-timeline-container {
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    margin-bottom: 15px;
    padding: 16px 16px;
    width: calc(100% - 32px);
}

@media (max-width: 768px) {
    .popup-shopping-cart .fst-timeline-container,
    .cart-threshold .fst-timeline-container {
        padding: 12px 12px;
        width: calc(100% - 24px);
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .popup-shopping-cart .fst-timeline-container,
    .cart-threshold .fst-timeline-container {
        padding: 10px 10px;
        width: calc(100% - 20px);
    }
}

/* Free Gift/Mystery Box Fee - Display as FREE */
.fst-free-label {
    color: #0F6E56 !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    display: inline-block;
}
