/* ═══════════════════════════════════════
   SHIPPING PROGRESS BAR
   ═══════════════════════════════════════ */

.tp-progress-wrap {
    margin: 8px 0;
}

.tp-progress-text {
    font-size: 12px;
    color: #C9A84C;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.tp-progress-text strong { color: #121212; }

/* Texte "Livraison offerte !" en doré */
.tp-progress-reached {
    color: #C9A84C !important;
    font-weight: 600;
}

.tp-progress-bar {
    position: relative;
    height: 5px;
    background: #e5e5e5;
    border-radius: 999px;
    overflow: visible;
}

.tp-progress-fill {
    height: 100%;
    background: #C9A84C;
    border-radius: 999px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

/* Icône centrée exactement sur la ligne de la barre
   top:0 + bottom:0 + margin:auto + height explicite = centrage automatique
   fiable sur tous les navigateurs / densités d'écran */
.tp-progress-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    transition: left 0.5s ease;
    filter: grayscale(0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}
.tp-progress-icon.reached {
    filter: none;
    animation: tpBounce 0.5s ease;
}
.tp-progress-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}
.tp-progress-icon svg {
    width: 20px;
    height: 20px;
}

@keyframes tpBounce {
    0%, 100% { transform: translateY(-50%); }
    50%       { transform: translateY(calc(-50% - 5px)); }
}

/* Product page variant */
.tp-product-progress-bar {
    margin: 12px 0 0;
    padding: 12px 0;
    border-top: 1px solid #e5e5e5;
}

/* Checkout — wrapper commun aux deux barres */
.tp-checkout-bar-wrap {
    margin: 0 0 16px;
}
.tp-checkout-bar-wrap .tp-progress-wrap {
    padding: 14px 16px;
    background: #faf8f4;
    border: 1px solid #e8dfc7;
    border-radius: 8px;
    margin: 0;
}

/* Responsive — tablet (≤ 768px) */
@media (max-width: 768px) {
    .tp-checkout-bar-wrap .tp-progress-wrap {
        padding: 12px 14px;
    }
    .tp-progress-text {
        font-size: 11px;
    }
}

/* Responsive — mobile (≤ 480px) */
@media (max-width: 480px) {
    .tp-checkout-bar-wrap .tp-progress-wrap {
        padding: 10px 12px;
    }
    .tp-progress-text {
        font-size: 10px;
        letter-spacing: 0.03em;
    }
    .tp-progress-icon {
        height: 16px;
        width: 16px;
    }
    .tp-progress-icon img,
    .tp-progress-icon svg {
        width: 16px;
        height: 16px;
    }
}
