/* Frontend progress bar styles */
.wtpb-wrap {
    margin: 12px 0 18px;
    padding: 8px 10px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #eee;
    font-size: 14px;
    line-height: 1.45
}

.wtpb-wrap .wtpb-message {
    font-weight: 600;
    text-align: center;
    margin-bottom: 8px
}

.wtpb-wrap .wtpb-rail {
    position: relative;
    height: 10px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: visible;
    margin: 18px
}

.wtpb-wrap .wtpb-bar {
    height: 10px;
    border-radius: 999px 0 0 999px;
    background: #111;
    transition: width .35s ease
}

.wtpb-wrap .wtpb-milestone {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #111;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .06)
}

.wtpb-wrap .wtpb-milestone.reached {
    background: #111;
    color: #fff
}

.wtpb-wrap .wtpb-icon {
    font-size: 14px;
    line-height: 1
}

.wtpb-wrap .wtpb-tip {
    position: absolute;
    top: -34px;
    white-space: nowrap;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
    transform: translateX(-50%);
    left: 50%;
    color: black !important;
    
}

.wtpb-wrap .wtpb-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 12px;
    font-size: 12px;
    opacity: .8
}

/* Theme-friendly spacing */
.woocommerce-mini-cart .wtpb-wrap {
    margin-top: 8px;
    margin-bottom: 8px
}

/* Flatsome tweaks */
.off-canvas .wtpb-wrap {
    background: #fff
}

/* Mystery box styles */
.wtpb-mystery-message {
    margin-top: 12px;
    padding: 8px 12px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    color: #0369a1;
    font-size: 13px;
}

.wtpb-original-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 8px;
    opacity: 0.7;
}

.wtpb-free-price {
    color: #16a34a;
    font-weight: 600;
}

/* Hide duplicate fee display */
tr.fee th:contains("Tiered Discount"),
tr.fee:has(th:contains("Tiered Discount")) {
    display: none !important;
}

tr.fee[data-title*="Tiered Discount"] {
    display: none !important;
}

/* Shop page product badge */
.woocommerce ul.products li.product {
    position: relative;
}

.wtpb-shop-badge {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #000000;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 13px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    line-height: 1.2;
    white-space: nowrap;
    display: inline-block;
}

/* Custom legend text */
.wtpb-custom-legend {
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.6;
}