/* ==========================================================================
   Gift Progress Bar
   ========================================================================== */

.bbdepot-gift-progress {
    background: #fff;
    color: #000;
    padding: 14px 16px;
    margin-bottom: 24px;
    border-radius: 4px;
}

.bbdepot-progress-title {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color: #000;
    text-align: center;
}

.bbdepot-progress-steps {
    position: relative;
    min-height: 18px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #000;
    font-weight: 700;
}

.bbdepot-progress-steps .step {
    position: absolute;
    top: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0.35;
    transform: translateX(-50%);
    white-space: nowrap;
}

.bbdepot-progress-steps .step-label-short {
    display: none;
}

.bbdepot-progress-steps .step.completed,
.bbdepot-progress-steps .step.active {
    opacity: 1;
}

.bbdepot-progress-track {
    position: relative;
    background: rgba(0, 0, 0, 0.08);
    height: 4px;
    border-radius: 2px;
    margin-bottom: 28px;
    overflow: visible;
}

.bbdepot-progress-fill {
    position: relative;
    z-index: 1;
    background: var(--theme-button-background-initial-color, #f7b500);
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s ease;
}

.bbdepot-progress-marker-wrap {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translate(-50%, -50%);
}

.bbdepot-progress-marker {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    color: #000;
}

.bbdepot-progress-marker.is-completed {
    background: var(--theme-button-background-initial-color, #f7b500);
    border-color: var(--theme-button-background-initial-color, #f7b500);
}

.bbdepot-progress-marker-label {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    line-height: 1.2;
    color: #000;
    white-space: nowrap;
    text-align: center;
}

/* Free shipping: slightly smaller secondary marker on the track */
.bbdepot-progress-marker--shipping {
    width: 14px;
    height: 14px;
    font-size: 9px;
}

.bbdepot-gift-progress--mini-cart .bbdepot-progress-marker--shipping {
    width: 12px;
    height: 12px;
    font-size: 8px;
}

.bbdepot-progress-message {
    font-size: 13px;
    margin: 0;
    color: #000;
}

.bbdepot-progress-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.bbdepot-gift-choose-link {
    flex-shrink: 0;
    padding: 0;
    background: none;
    color: #000;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: underline;
    white-space: nowrap;
}

.bbdepot-gift-choose-link:hover,
.bbdepot-gift-choose-link:focus {
    background: none;
    color: #000;
    text-decoration: underline;
}

.bbdepot-all-unlocked {
    color: #000;
    font-weight: 600;
}

/* Mini cart / Blocksy side cart variant */
.bbdepot-gift-progress--mini-cart {
    margin-bottom: 16px;
    padding: 12px 16px;
}

.ct-cart-content > .bbdepot-gift-progress--mini-cart {
    margin-top: -22px;
    margin-left: -20px;
    margin-right: -20px;
    border-radius: 2px 2px 0 0;
}

#woo-cart-panel .bbdepot-gift-progress--mini-cart {
    margin-bottom: 20px;
}

.bbdepot-gift-progress--mini-cart .bbdepot-progress-steps {
    min-height: 16px;
    font-size: 10px;
}

.bbdepot-gift-progress--mini-cart .bbdepot-progress-title {
    font-size: 13px;
    margin-bottom: 10px;
}

.bbdepot-gift-progress--mini-cart .bbdepot-progress-message {
    font-size: 12px;
}

.bbdepot-gift-progress--mini-cart .bbdepot-gift-choose-link {
    font-size: 12px;
}

.bbdepot-gift-progress--mini-cart .bbdepot-progress-track {
    margin-bottom: 24px;
}

.bbdepot-gift-progress--mini-cart .bbdepot-progress-marker {
    width: 14px;
    height: 14px;
    font-size: 9px;
    border-width: 1.5px;
}

.bbdepot-gift-progress--mini-cart .bbdepot-progress-marker-label {
    font-size: 9px;
}

/* Mobile: shorter labels, tighter edge alignment */
@media screen and (max-width: 480px) {
    .bbdepot-gift-progress {
        padding: 12px 10px;
    }

    .bbdepot-progress-steps {
        min-height: 16px;
        font-size: 10px;
    }

    .bbdepot-progress-steps .step-label-long {
        display: none;
    }

    .bbdepot-progress-steps .step-label-short {
        display: inline;
    }

    .bbdepot-progress-steps .step--first {
        transform: translateX(0);
    }

    .bbdepot-progress-steps .step--last {
        transform: translateX(-100%);
    }

    .bbdepot-progress-marker {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }

    .bbdepot-progress-marker-wrap.marker--first {
        transform: translate(0, -50%);
        align-items: flex-start;
    }

    .bbdepot-progress-marker-wrap.marker--last {
        transform: translate(-100%, -50%);
        align-items: flex-end;
    }

    .bbdepot-progress-marker-label {
        font-size: 9px;
    }

    .bbdepot-progress-marker-wrap.marker--first .bbdepot-progress-marker-label {
        left: 0;
        transform: none;
        text-align: left;
    }

    .bbdepot-progress-marker-wrap.marker--last .bbdepot-progress-marker-label {
        left: auto;
        right: 0;
        transform: none;
        text-align: right;
    }
}

.bbdepot-gift-progress--mini-cart .bbdepot-progress-steps .step-label-long {
    display: none;
}

.bbdepot-gift-progress--mini-cart .bbdepot-progress-steps .step-label-short {
    display: inline;
}

