/* =============================================
   Cart Drawer — Two-Milestone Progress Bar
   ============================================= */

.hd3-cart-drawer__milestones {
    padding: 8px 16px 10px;
    border-bottom: 1px solid var(--border-color);
    background: var(--accent-soft);
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.hd3-milestones__hint {
    margin: 0;
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 0.2px;
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: break-word;
    min-width: 0;
    max-width: 100%;
}

.hd3-milestones__hint strong {
    color: var(--primary-dark);
    font-weight: 700;
}

.hd3-milestones__hint.is-free {
    color: var(--primary);
    font-weight: 500;
}

.hd3-milestones__hint.is-warning {
    color: var(--warm);
}

/* Track wrapper */
.hd3-milestones__track-wrap {
    position: relative;
    height: 36px;
    display: flex;
    align-items: flex-start;
    padding-top: 6px;
}

.hd3-milestones__track {
    position: absolute;
    left: 0;
    right: 0;
    top: 15px;
    height: 4px;
    background: var(--border-color);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.hd3-milestones__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    border-radius: var(--radius-full);
    width: 0%;
    will-change: width;
    transition: background var(--transition);
}

.hd3-milestones__fill.is-complete {
    background: var(--primary);
}

.hd3-milestones__fill.is-warning {
    background: var(--warm);
}

/* Milestone marker */
.hd3-milestone {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    transform: translateX(-50%);
    top: 0;
}

/* Shield badge */
.hd3-milestone__badge {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.hd3-milestone__badge svg.hd3-badge-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: fill var(--transition), filter var(--transition);
}

.hd3-milestone__badge svg.hd3-badge-check {
    position: relative;
    width: 10px;
    height: 10px;
    color: var(--white);
    opacity: 0;
    transition: opacity var(--transition);
    z-index: 1;
}

.hd3-milestone__badge.is-reached svg.hd3-badge-bg path {
    fill: var(--accent);
    stroke: var(--primary);
}

.hd3-milestone__badge.is-reached svg.hd3-badge-bg {
    filter: drop-shadow(0 1px 4px rgba(24, 86, 108, 0.3));
}

.hd3-milestone__badge.is-reached svg.hd3-badge-check {
    opacity: 1;
}

.hd3-milestone__label {
    font-family: var(--font-ui);
    font-size: 0.58rem;
    color: var(--text-muted);
    white-space: nowrap;
    letter-spacing: 0.3px;
    font-weight: 500;
    margin-top: 0;
}

.hd3-milestone__label.is-reached {
    color: var(--primary);
    font-weight: 600;
}

/* Last milestone: right-align so label doesn't overflow */
#hd3-milestone-2 {
    transform: translateX(-100%);
    align-items: flex-end;
}
