/* ==========================================================================
   EPP Progress Bar Widget
   ========================================================================== */

.eppro-progress-bars {
    width: 100%;
}

.eppro-pb-item {
    width: 100%;
}

.eppro-pb-item:not(:last-child) {
    margin-bottom: 20px;
}

/* ── Label row ── */
.eppro-pb-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
    line-height: 1.4;
}

.eppro-pb-label-text {
    font-weight: 600;
}

.eppro-pb-label-pct {
    font-weight: 600;
    opacity: 0.75;
    font-size: 0.9em;
}

/* ── Track ── */
.eppro-pb-track {
    position: relative;
    width: 100%;
    height: 16px;
    background-color: #e5e7eb;
    border-radius: 50px;
    overflow: visible;
}

/* ── Fill ── */
.eppro-pb-fill {
    position: relative;
    height: 100%;
    background-color: #1d4ed8;
    border-radius: inherit;
    transition: width 1.2s cubic-bezier(.4,0,.2,1);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: visible;
    max-width: 100%;
}

/* ── Stripe overlay ── */
.eppro-pb-fill--striped {
    background-image: linear-gradient(
        45deg,
        rgba(255,255,255,.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255,255,255,.15) 50%,
        rgba(255,255,255,.15) 75%,
        transparent 75%,
        transparent
    );
    background-size: 1rem 1rem;
}

.eppro-pb-fill--animated {
    animation: eppro-pb-stripes 1s linear infinite;
}

@keyframes eppro-pb-stripes {
    0%   { background-position: 0 0; }
    100% { background-position: 1rem 0; }
}

/* ── Inside percentage ── */
.eppro-pb-inside-pct {
    font-size: 0.72em;
    font-weight: 700;
    color: #fff;
    padding-right: 8px;
    white-space: nowrap;
    line-height: 1;
}

/* ── Tooltip percentage ── */
.eppro-pb-tooltip {
    position: absolute;
    right: 0;
    bottom: calc(100% + 6px);
    transform: translateX(50%);
    background-color: #1d4ed8;
    color: #fff;
    font-size: 0.75em;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    line-height: 1.6;
}

.eppro-pb-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: inherit;
}
